1
0
Fork 0

Skip any non-Message updates
ci/woodpecker/push/test Pipeline was successful Details

This commit is contained in:
Daniele Tricoli 2023-01-07 16:52:21 +01:00
parent 5e71c74415
commit 24d57c528c
1 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,11 @@ the specified Mastodon account.`,
updates := bot.GetUpdatesChan(u)
for update := range updates {
if update.Message == nil {
continue
}
chatID := update.Message.Chat.ID
if chatID != allowedTelegramChat {
log.Printf("Error: telegram chat %d is not the allowed one: %d\n",