From ee8af748e871cad860d2821a2d727847af847501 Mon Sep 17 00:00:00 2001 From: Alphyron Date: Sun, 28 Jun 2020 20:35:36 +0200 Subject: [PATCH] :bug: Change the From User address --- telegram/routines/verifier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/routines/verifier.go b/telegram/routines/verifier.go index 6bdcc0e..7ecde5f 100644 --- a/telegram/routines/verifier.go +++ b/telegram/routines/verifier.go @@ -53,7 +53,7 @@ func (v verifierRoutine) Update(botAPI *tgbotapi.BotAPI, update *tgbotapi.Update botAPI.AnswerCallbackQuery(tgbotapi.NewCallback(update.CallbackQuery.ID, "You are now verified. Welcome to the chat!")) verifyMessage := group.UserVerifiedMessage - msg := tgbotapi.NewMessage(update.CallbackQuery.Message.Chat.ID, message2.ReplaceMessage(verifyMessage, update.CallbackQuery.Message.From)) + msg := tgbotapi.NewMessage(update.CallbackQuery.Message.Chat.ID, message2.ReplaceMessage(verifyMessage, update.CallbackQuery.From)) msg.ParseMode = "Markdown" _, err := botAPI.Send(msg)