From 782a6f2d5978c1e440db467ae5776bfbedcd5579 Mon Sep 17 00:00:00 2001 From: Huy Doan Date: Sun, 17 Apr 2022 15:43:21 +0700 Subject: [PATCH] fix InlineKeyboardButton marshalling, closes #74 --- src/telebot/private/keyboard.nim | 1 - src/telebot/private/types.nim | 2 +- telebot.nimble | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/telebot/private/keyboard.nim b/src/telebot/private/keyboard.nim index 0ca8f3b..7517621 100644 --- a/src/telebot/private/keyboard.nim +++ b/src/telebot/private/keyboard.nim @@ -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 diff --git a/src/telebot/private/types.nim b/src/telebot/private/types.nim index 855659f..751ab62 100644 --- a/src/telebot/private/types.nim +++ b/src/telebot/private/types.nim @@ -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] diff --git a/telebot.nimble b/telebot.nimble index 5459989..6a2018c 100644 --- a/telebot.nimble +++ b/telebot.nimble @@ -1,4 +1,4 @@ -version = "2022.04.16" +version = "2022.04.17" author = "Huy Doan" description = "Async Telegram Bot API Client" license = "MIT"