ba0f3 / telebot.nim

Async Telegram Bot API Client implement in @Nim-Lang
MIT License
165 stars 24 forks source link

Change `InlineQueryResult.replyMarkup` type to `InlineKeyboardMarkup` #90

Closed thisago closed 1 year ago

thisago commented 1 year ago

Change types.InlineQueryResult.replyMarkup type from types.KeyboardMarkup to types.InlineKeyboardMarkup

types.InlineQueryResult.replyMarkup doesn't compiles with some newInlineKeyboardMarkup(...) and some cast[KeyboardMarkup](newInlineKeyboardMarkup(...)) compiles but the data is lost.

doesn't compiles

res.replyMarkup = some newInlineKeyboardMarkup(@[
  initInlineKeyboardButton("Test", "url")
])

loses the data

res.replyMarkup = some cast[KeyboardMarkup](newInlineKeyboardMarkup(@[
  initInlineKeyboardButton("Test", "url")
]))
ba0f3 commented 1 year ago

Thank you!