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")
]))
Change
types.InlineQueryResult.replyMarkup
type fromtypes.KeyboardMarkup
totypes.InlineKeyboardMarkup
types.InlineQueryResult.replyMarkup
doesn't compiles withsome newInlineKeyboardMarkup(...)
andsome cast[KeyboardMarkup](newInlineKeyboardMarkup(...))
compiles but the data is lost.doesn't compiles
loses the data