diff --git a/pkg/app/handlers.go b/pkg/app/handlers.go index 3367797..48ed11c 100644 --- a/pkg/app/handlers.go +++ b/pkg/app/handlers.go @@ -23,6 +23,10 @@ func GetStartCommandHandler(logger *logrus.Logger) bot.HandlerFunc { func GetAnonymousMessagesHandler(logger *logrus.Logger, ownerChatId int) bot.HandlerFunc { return func(ctx context.Context, b *bot.Bot, update *models.Update) { + if update.Message == nil { + return + } + params := &bot.CopyMessageParams{ ChatID: ownerChatId, FromChatID: update.Message.Chat.ID,