From 7690ecb52eb4160104b8036069cd2e986897fdc7 Mon Sep 17 00:00:00 2001 From: Alphyron Date: Sun, 5 Jul 2020 21:19:51 +0200 Subject: [PATCH] :bug: Replace now the correct User when somebody add a another user manually --- telegram/routines/joinchecker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/routines/joinchecker.go b/telegram/routines/joinchecker.go index 4dc101f..6374b4a 100644 --- a/telegram/routines/joinchecker.go +++ b/telegram/routines/joinchecker.go @@ -48,7 +48,7 @@ func (j joinCheckerRoutine) Update(botAPI *tgbotapi.BotAPI, update *tgbotapi.Upd 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.ReplyMarkup = markup