libtd-ktx / kotlinx.telegram.extensions / MessageKtx / editText
editText
open suspend fun Message.editText(chatId: 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.
replyMarkup - The new message reply markup; for bots only.
inputMessageContent - New text content of the message. Should be of type InputMessageText.
Return TdApi.Message Describes a message.