Merge pull request #17 from dmekhov/fix-readme

fix ReplyToMessageID assignment in readme
pull/18/head
OvyFlash 2024-03-04 16:53:18 +02:00 committed by GitHub
commit c88341ccc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func main() {
log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)
msg := tgbotapi.NewMessage(update.Message.Chat.ID, update.Message.Text)
msg.ReplyToMessageID = update.Message.MessageID
msg.ReplyParameters.MessageID = update.Message.MessageID
bot.Send(msg)
}