Yawolf / yocingo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Display keyboard on send message function

Yawolf opened this issue · comments

A function that creates de proper JSON for a InlineKeyboardMarkup, ReplyKeyboardMarkup, ReplyKeyboardHide or ForceReply.

Using this function will not be necessary to write the json, it will by generated.

e.g:
Yocingo,send_message id, "yes?", false, nil, gen_reply_keyboard_markup(...)

instead of:

Yocingo,send_message id, "yes?", false, nil, {"keyboard" => [...], "one_time_keyboard" => true}