🐛 Change the From User address
This commit is contained in:
parent
1a8a0a2db8
commit
8a8ef75b12
@ -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.Message.From))
|
msg := tgbotapi.NewMessage(update.CallbackQuery.Message.Chat.ID, message2.ReplaceMessage(verifyMessage, update.CallbackQuery.Message.From))
|
||||||
msg.ParseMode = "Markdown"
|
msg.ParseMode = "Markdown"
|
||||||
_, err := botAPI.Send(msg)
|
_, err := botAPI.Send(msg)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user