fix ReplyToMessageID assignment in readme

for compatibility with 7.0 api
pull/17/head
dmekhov 2024-03-03 18:27:18 +03:00
parent 8d23500228
commit a7a786d5aa
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)
}