all repos — telegram-bot-api @ a7a786d5aa211cb9758eb1dcf8b9b832d6dec896

Golang bindings for the Telegram Bot API

fix ReplyToMessageID assignment in readme

for compatibility with 7.0 api
dmekhov dmekhov@gmail.com
Sun, 03 Mar 2024 18:27:18 +0300
commit

a7a786d5aa211cb9758eb1dcf8b9b832d6dec896

parent

8d235002285e104f167a231948b72bf286f5776e

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M README.mdREADME.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) }