tdcli.lua icon indicating copy to clipboard operation
tdcli.lua copied to clipboard

reply_markup & bot keyboard problem

Open attarchi opened this issue 7 years ago • 1 comments

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

attarchi avatar Aug 16 '17 20:08 attarchi

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

rizaumami avatar Aug 18 '17 15:08 rizaumami