🐛 Change the From User address

This commit is contained in:
Alphyron 2020-06-28 20:35:36 +02:00
parent 8a8ef75b12
commit ee8af748e8

View File

@ -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!")) botAPI.AnswerCallbackQuery(tgbotapi.NewCallback(update.CallbackQuery.ID, "You are now verified. Welcome to the chat!"))
verifyMessage := group.UserVerifiedMessage 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" msg.ParseMode = "Markdown"
_, err := botAPI.Send(msg) _, err := botAPI.Send(msg)