Cordice Developers Open Cordice
Bot API

Messages and keyboards

Sending text, formatting it, and putting buttons under it or in place of the keyboard.

sendMessage

chat_id, text (up to 4096 characters), parse_mode, reply_parameters or reply_to_message_id, disable_notification, reply_markup.

Formatting

parse_mode is HTML, MarkdownV2 or Markdown, translated into Cordice’s own formatting: bold, italic, strikethrough, spoilers, code and links. Underline has no equivalent and is dropped.

Inline keyboards

InlineKeyboardMarkup puts buttons under a message: callback_data (up to 64 bytes), url, web_app and copy_text. Up to 100 buttons, eight to a row.

{ "inline_keyboard": [[
  { "text": "Yes", "callback_data": "vote:yes" },
  { "text": "Open", "web_app": { "url": "https://example.com/app" } }
]] }

When a message is forwarded, only url and copy_text buttons travel with it.

Reply keyboards

ReplyKeyboardMarkup replaces the person’s keyboard with text buttons and web_app buttons; resize_keyboard, one_time_keyboard, is_persistent and input_field_placeholder work. ReplyKeyboardRemove and ForceReply too.

Not supported yet

switch_inline_query*, login_url, pay, callback_game and the request_* buttons are removed from a keyboard rather than failing the message.

Editing and deleting

editMessageText (without reply_markup the buttons are removed, as in Telegram), editMessageReplyMarkup (not marked as edited), deleteMessage, sendChatAction.