Skip any non-Message updates
ci/woodpecker/push/test Pipeline was successful
Details
ci/woodpecker/push/test Pipeline was successful
Details
This commit is contained in:
parent
5e71c74415
commit
24d57c528c
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue