Skip to content

editMessageText

Sahri Riza Umami edited this page Dec 8, 2016 · 3 revisions

Edits text of text or game message.

editMessageText(chat_id, message_id, reply_markup, text, disable_web_page_preview, parse_mode)

Non-bots can edit message in a limited period of time.
Returns edited message after edit is complete server side.

Option Description
chat_id Chat the message belongs to.
message_id Identifier of the message.
reply_markup Bots only. New message reply markup.
input_message_content New text content of the message. Should be of type InputMessageText.

Example

editMessageText(1234567890, 0, nil, 'text', 1, 'html')

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally