Merge pull request #17 from dmekhov/fix-readme
fix ReplyToMessageID assignment in readmepull/18/head
commit
c88341ccc3
|
@ -61,7 +61,7 @@ func main() {
|
||||||
log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)
|
log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)
|
||||||
|
|
||||||
msg := tgbotapi.NewMessage(update.Message.Chat.ID, 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)
|
bot.Send(msg)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue