all repos — telegram-bot-api @ c88341ccc38fd13b3ef9e5d866c13bf6237ed230

Golang bindings for the Telegram Bot API

Merge pull request #17 from dmekhov/fix-readme

fix ReplyToMessageID assignment in readme
OvyFlash 46941696+OvyFlash@users.noreply.github.com
Mon, 04 Mar 2024 16:53:18 +0200
commit

c88341ccc38fd13b3ef9e5d866c13bf6237ed230

parent

27c0c11edc69e10221f912693756cbb557b570ce

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) }