Integer or String Unique identifier for the target chat or username of the target channel (in the format @channelusername)
String Text of the message to be sent
String Optional Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.
Boolean Optional Disables link previews for links in this message
Boolean Optional Sends the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound.
Integer Optional If the message is a reply, ID of the original message
InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardHide or ForceReply Optional Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to hide reply keyboard or to force a reply from the user.
Integer or String Unique identifier for the target chat or username of the target channel (in the format @channelusername)
Boolean Optional Sends the message silently.
Boolean Optional Sends the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound.
Boolean Optional Disables link previews for links in this message
Extract request URL from class name.
Extract request URL from class name.
String Optional Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.
InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardHide or ForceReply Optional Additional interface options.
InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardHide or ForceReply Optional Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to hide reply keyboard or to force a reply from the user.
Integer Optional If the message is a reply, ID of the original message
String Text of the message to be sent
Use this method to send text messages. On success, the sent Message is returned.
Formatting options
The Bot API supports basic formatting for messages. You can use bold and italic text, as well as inline links and pre-formatted code in your bots' messages. Telegram clients will render them accordingly. You can use either markdown-style or HTML-style formatting. Note that Telegram clients will display an alert to the user before opening an inline link ('Open this link?' together with the full URL).
Markdown style
To use this mode, pass Markdown in the parse_mode field when using sendMessage. Use the following syntax in your message: *bold text* _italic text_ [text](URL)
inline fixed-width code
pre-formatted fixed-width code block
HTML style
To use this mode, pass HTML in the parse_mode field when using sendMessage. The following tags are currently supported: bold, bold italic, italic inline URL
inline fixed-width code
Please note:
Only the tags mentioned above are currently supported. Tags must not be nested. All <, > and & symbols that are not a part of a tag or an HTML entity must be replaced with the corresponding HTML entities (< with <, > with > and & with &). All numerical HTML entities are supported. The API currently supports only the following named HTML entities: <, >, & and ".
Integer or String Unique identifier for the target chat or username of the target channel (in the format @channelusername)
String Text of the message to be sent
String Optional Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in your bot's message.
Boolean Optional Disables link previews for links in this message
Boolean Optional Sends the message silently. iOS users will not receive a notification, Android users will receive a notification with no sound.
Integer Optional If the message is a reply, ID of the original message
InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardHide or ForceReply Optional Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to hide reply keyboard or to force a reply from the user.