🐛 Replace now the correct User when somebody add a another user manually

This commit is contained in:
Alphyron 2020-07-05 21:19:51 +02:00
parent 6eeb3f90ed
commit 7690ecb52e

View File

@ -48,7 +48,7 @@ func (j joinCheckerRoutine) Update(botAPI *tgbotapi.BotAPI, update *tgbotapi.Upd
markup := tgbotapi.NewInlineKeyboardMarkup(tasks...) markup := tgbotapi.NewInlineKeyboardMarkup(tasks...)
msg := tgbotapi.NewMessage(update.Message.Chat.ID, message2.ReplaceMessage(group.UserJoinMessage, update.Message.From)) msg := tgbotapi.NewMessage(update.Message.Chat.ID, message2.ReplaceMessage(group.UserJoinMessage, &newUser))
msg.ParseMode = "Markdown" msg.ParseMode = "Markdown"
msg.ReplyMarkup = markup msg.ReplyMarkup = markup