Comment on page
html
This method creates a message in HTML format.
Platform | Supported |
---|---|
Messenger | |
WhatsApp | |
Telegram |
@reply.html("<b>bold</b>, <strong>bold</strong> <i>italic</i>, <em>italic</em><u>underline</u>, <ins>underline</ins>")
@reply.html(
"<b> Here the HTML with some quick_replies </b>",
{
quick_reply: [
{
payload: :option_1,
title: "Option 1!"
},
{
url: "https://twitter.com/kogno_framework",
title: "Follow US!"
}
]
}
)
code = html_template("main/demo1")
@reply.html(code)
The template "main/demo1" is located in
bot/action_templates/main/demo1.rhtml
file.<% 7.times do %>
<b>Hello</b> <i>World</i>
<% end
Name | Description |
---|---|
code
String | Required. |
reply_markup
Hash | Optional.
Hash with one element that can be: |
extra_params
Hash |
Last modified 1yr ago