rizaumami / tdcli.lua

A simple Lua library for the telegram-cli
GNU General Public License v3.0
52 stars 30 forks source link

reply_markup & bot keyboard problem #11

Open attarchi opened 7 years ago

attarchi commented 7 years ago

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

rizaumami commented 7 years ago

Some problem here. Sorry, cannot help. Never try the bot mode that much.