editMessageText()
public method
Use this method to edit text messages sent by the bot or via the bot (for
inline bots). On success, if edited message is sent by the bot, the edited
Message is returned, otherwise
True is returned.
Values inside $content:
Parameters |
Type |
Required |
Description |
chat_id |
Integer or String |
No |
Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername ) |
message_id |
Integer |
No |
Required if inline_message_id is not specified. Unique identifier of the sent message |
inline_message_id |
String |
No |
Required if chat_id and message_id are not specified. Identifier of the inline message |
text |
String |
Yes |
New text of the message |
parse_mode |
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. |
disable_web_page_preview |
Boolean |
Optional |
Disables link previews for links in this message |
reply_markup |
InlineKeyboardMarkup |
Optional |
A JSON-serialized object for an inline keyboard. |
\param $content the request parameters as array
\return the JSON Telegram's reply