Skip to content

Commit

Permalink
update example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ba0f3 committed Dec 29, 2023
1 parent ef6d385 commit 76bea3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ proc updateHandler(b: Telebot, u: Update): Future[bool] {.async.} =
var response = u.message.get
if response.text.isSome:
let text = response.text.get
discard await b.sendMessage(response.chat.id, text, parseMode = "markdown", disableNotification = true, replyToMessageId = response.messageId)
discard await b.sendMessage(response.chat.id, text, parseMode = "markdown", disableNotification = true, replyParameters = ReplyParameters(messageId: response.messageId))
let bot = newTeleBot(API_KEY)
bot.onUpdate(updateHandler)
Expand Down

0 comments on commit 76bea3b

Please sign in to comment.