diff --git a/bot/core/util.go b/bot/core/util.go index 1a66d2b..f2b6790 100644 --- a/bot/core/util.go +++ b/bot/core/util.go @@ -3,7 +3,6 @@ package core import ( "context" "fmt" - "log" "path/filepath" "strings" @@ -230,8 +229,6 @@ func SendErrorMessage( ctx *ext.Context, errorMessage string, ) { - log.Println(errorMessage) - switch { case ctx.Update.Message != nil: ctx.EffectiveMessage.Reply( diff --git a/bot/main.go b/bot/main.go index 6ae9a35..1acb163 100644 --- a/bot/main.go +++ b/bot/main.go @@ -45,9 +45,9 @@ func Start() { err = updater.StartPolling(b, &ext.PollingOpts{ DropPendingUpdates: true, GetUpdatesOpts: &gotgbot.GetUpdatesOpts{ - Timeout: 9 * 60, + Timeout: 9, RequestOpts: &gotgbot.RequestOpts{ - Timeout: time.Minute * 10, + Timeout: time.Second * 10, }, AllowedUpdates: AllowedUpdates, },