markdown

This method creates a message in Makrdown format.

markdown(syntax=String, reply_markup=Hash, extra_params=Hash)

Platforms

Platform
Supported

Messenger

WhatsApp

Telegram

View the full Markdown styles supported by Telegram here.

Usage

Markdown only

@reply.markdown("*bold text* _italic text_ __underline__ ~strikethrough~")

Markdown with buttons

@reply.markdown(
  "*bold text* _italic text_ __underline__ ~strikethrough~",
  {
    button: [
      {
        payload: :option_1,
        title: "Option 1!"
      }
    ]
  }
)

Params

Name
Description

syntax String

Required.

reply_markup Hash

Optional. Hash with one element that can be:

extra_params Hash

Last updated