🐛 Fix to verify a bot if you add one.
This commit is contained in:
parent
8027c0ff78
commit
3a54c0f9bb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user