api.editMessageText()
Edits the text of a message (or a text of a game message). Returns the edited message after the edit is completed on the server side
Parameters
EditMessageTextParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | The chat the message belongs to |
messageId | number | Identifier of the message |
replyMarkup | The new message reply markup; pass null if none; for bots only | |
inputMessageContent | New text content of the message. Must be of type inputMessageText |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'editMessageText' | 'error'
airgram: Airgram
request: {
method: 'editMessageText'
params: EditMessageTextParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}