Use this method to edit text and game messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. This method support both normal and static use
| Name | Type | Description | Required |
|---|---|---|---|
| text | string | array | New text of the message, 1-4096 characters after entities parsing | yes |
| chat_id | int | string | null | Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername) | no |
| message_id | int | null | Required if inline_message_id is not specified. Identifier of the message to edit | no |
| inline_message_id | string | null | Required if chat_id and message_id are not specified. Identifier of the inline message | no |
| parse_mode | string | null | Mode for parsing entities in the message text. See formatting options for more details. | no |
| entities | messageEntity[] | null | stdClass[] | A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode | no |
| disable_web_page_preview | bool | null | Disables link previews for links in this message | no |
| reply_markup | inlineKeyboardMarkup | null | stdClass | A JSON-serialized object for an inline keyboard. | no |
| token | string | null | You can use this method on another bot with specify this parameter | no |
| forgot | bool | null | You can set to not receive request result, dont set it or pass null for turn it off | no |
| answer | bool | null | You can set to answer to webhook, dont set it or pass null for turn it off | no |
Output : BPT\types\message | bool | BPT\types\responseError
Static or normal : Static
BPT::editMessageText(text: string, chat_id: int | string | null, message_id: int | null, inline_message_id: string | null, parse_mode: string | null, entities: Array | null, disable_web_page_preview: bool | null, reply_markup: InlineKeyboardMarkup | null, token: String | null, forgot: Boolean | null, answer: Boolean | null); BPT::editMessageText(['text' => string, 'chat_id' => int | string | null, 'message_id' => int | null, 'inline_message_id' => string | null, 'parse_mode' => string | null, 'entities' => Array | null, 'disable_web_page_preview' => bool | null, 'reply_markup' => InlineKeyboardMarkup | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]); BPT::editMessageText(text: string);BPT::editMessageText(['text' => string]);$this->editMessageText(text: string, chat_id: int | string | null, message_id: int | null, inline_message_id: string | null, parse_mode: string | null, entities: Array | null, disable_web_page_preview: bool | null, reply_markup: InlineKeyboardMarkup | null, token: String | null, forgot: Boolean | null, answer: Boolean | null); $this->editMessageText(['text' => string, 'chat_id' => int | string | null, 'message_id' => int | null, 'inline_message_id' => string | null, 'parse_mode' => string | null, 'entities' => Array | null, 'disable_web_page_preview' => bool | null, 'reply_markup' => InlineKeyboardMarkup | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]); $this->editMessageText(text: string);$this->editMessageText(['text' => string]);