tdcli.lua
tdcli.lua copied to clipboard
reply_markup & bot keyboard problem
hello i want to show keyboard or inline keyboard for BOT, i use this value for reply_markup , program crashed on sending message.
{
ID = "ReplyMarkupShowKeyboard"
,resize_keyboard_ = true
,one_time_ = true
,personal_ = true
, rows_ = { [0]={
[0] = { ID = "KeyboardButton", text_ = "k1" type_ = {ID = "KeyboardButtonTypeText" }}
, { ID = "KeyboardButton", text_ = "k2", type_ = { ID = "KeyboardButtonTypeText" }}
, { ID = "KeyboardButton", text_ = "k3", type_ = { ID = "KeyboardButtonTypeText"}}
},
{
[0] = { ID = "KeyboardButton", text_ = "k4", type_ = { ID = "KeyboardButtonTypeText" }}
, { ID = "KeyboardButton", text_ = "k5", type_ = { ID = "KeyboardButtonTypeText" }}
, { ID = "KeyboardButton", text_ = "k6", type_ = { ID = "KeyboardButtonTypeText"}}
}
}
}
best regards attarchi
Some problem here. Sorry, cannot help. Never try the bot mode that much.