Closed moixllik closed 2 years ago
import json import dariotarantini.vgram
bot.send_message( chat_id: chat_id text: 'Message' reply_markup: json.encode(vgram.InlineKeyboardMarkup{ inline_keyboard: [ [ vgram.InlineKeyboardButton{text: 'A', callback_data: '/a'} vgram.InlineKeyboardButton{text: 'B', callback_data: '/b'} ] [ vgram.InlineKeyboardButton{text: 'C', callback_data: '/c'} vgram.InlineKeyboardButton{text: 'D', callback_data: '/d'} ] ] })
Requires change in /home/moixllik/.vmodules/dariotarantini/vgram/types.v
/home/moixllik/.vmodules/dariotarantini/vgram/types.v
pub struct InlineKeyboardMarkup { pub: inline_keyboard [][]InlineKeyboardButton }
Telegram Bot API
everything should be upgraded to latest version of bot api (5.6). but due to vlang compiler issues, this cant be done. i will fix in master this issue
if you want to try newer version, check here:
https://github.com/dariotarantini/vgram/tree/dev
done
Requires change in
/home/moixllik/.vmodules/dariotarantini/vgram/types.v
Telegram Bot API