editMessageText - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / editMessageText

editMessageText

suspend fun TelegramFlow.editMessageText(chatId: Long, messageId: Long, replyMarkup: ReplyMarkup?, inputMessageContent: InputMessageContent?): Message

Suspend function, which 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

chatId - The chat the message belongs to.

messageId - Identifier of the message.

replyMarkup - The new message reply markup; for bots only.

inputMessageContent - New text content of the message. Should be of type InputMessageText.

Return Message Describes a message.