From 3a54c0f9bb02ec59c396416561d03895e5043159 Mon Sep 17 00:00:00 2001 From: Alphyron Date: Wed, 16 Dec 2020 00:06:13 +0100 Subject: [PATCH] :bug: Fix to verify a bot if you add one. --- telegram/routines/joinchecker.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/telegram/routines/joinchecker.go b/telegram/routines/joinchecker.go index 6374b4a..ed14f22 100644 --- a/telegram/routines/joinchecker.go +++ b/telegram/routines/joinchecker.go @@ -35,6 +35,11 @@ func (j joinCheckerRoutine) Update(botAPI *tgbotapi.BotAPI, update *tgbotapi.Upd if update.Message.NewChatMembers != nil { for _, newUser := range *update.Message.NewChatMembers { + + if newUser.IsBot { + continue + } + length := 3 tasks := make([][]tgbotapi.InlineKeyboardButton, length)