🐛 Change the From User address
This commit is contained in:
parent
8a8ef75b12
commit
ee8af748e8
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user