fix ReplyToMessageID assignment in readme for compatibility with 7.0 api
dmekhov dmekhov@gmail.com
Sun, 03 Mar 2024 18:27:18 +0300
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
README.md
→
README.md
@@ -61,7 +61,7 @@ if update.Message != nil { // If we got a message
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) }