Global Methods
set_payload(payload=String, params=Hash)
set_payload(payload=String, params=Hash)
Creates a payload with parameters.
Usage
This payload with its parameters will be received by a postback
action block in the products context. Read about postback block.
The payload in Telegram is called callback_data
and it only supports 64 characters. In Kogno we managed to increase that limit to much more, so you should not worry about that limit anymore.
html_template(route=String, params=Hash)
html_template(route=String, params=Hash)
Render a template with .rhtml
extension from the bot/templates/context_name/
directory.
Usage
The template "main/demo1"
will be located in bot/templates/main/demo1.rhtml
.
Last updated