Skip to content

Commit

Permalink
fix InlineKeyboardButton marshalling, closes #74
Browse files Browse the repository at this point in the history
  • Loading branch information
ba0f3 committed Apr 17, 2022
1 parent 5dd9256 commit 782a6f2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/telebot/private/keyboard.nim
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ proc newInlineKeyboardMarkup*(keyboards: varargs[seq[InlineKeyBoardButton]]): In
for keyboard in keyboards:
result.inlineKeyboard.add(keyboard)


proc newReplyKeyboardRemove*(selective: bool): ReplyKeyboardRemove =
new(result)
result.kind = kReplyKeyboardRemove
Expand Down
2 changes: 1 addition & 1 deletion src/telebot/private/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ type
requestPoll*: Option[KeyboardButtonPollType]
webApp*: Option[WebAppInfo]

InlineKeyboardButton* = object
InlineKeyboardButton* = object of TelegramObject
text*: string
url*: Option[string]
loginUrl*: Option[LoginUrl]
Expand Down
2 changes: 1 addition & 1 deletion telebot.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "2022.04.16"
version = "2022.04.17"
author = "Huy Doan"
description = "Async Telegram Bot API Client"
license = "MIT"
Expand Down

0 comments on commit 782a6f2

Please sign in to comment.