From 39d350205a5b39402545edfcb0db898fa159aa53 Mon Sep 17 00:00:00 2001 From: Divanshu Chauhan Date: Sun, 28 Jul 2024 22:28:59 +0530 Subject: [PATCH] fix: remove unused parameter --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index dc82587f..76e50ea3 100644 --- a/main.go +++ b/main.go @@ -49,7 +49,7 @@ func main() { // Create updater and dispatcher. dispatcher := ext.NewDispatcher(&ext.DispatcherOpts{ // If an error is returned by a handler, log it and continue going. - Error: func(b *gotgbot.Bot, _ *ext.Context, err error) ext.DispatcherAction { + Error: func(_ *gotgbot.Bot, _ *ext.Context, err error) ext.DispatcherAction { log.Println("an error occurred while handling update:", err.Error()) return ext.DispatcherActionNoop },