libtd-ktx / kotlinx.telegram.extensions / ChatKtx / sendMessage
sendMessage
open suspend fun Chat.sendMessage(replyToMessageId: Long, options: SendMessageOptions?, replyMarkup: ReplyMarkup?, inputMessageContent: InputMessageContent?): Message
Suspend function, which sends a message. Returns the sent message.
Parameters
replyToMessageId - Identifier of the message to reply to or 0.
options - Options to be used to send the message.
replyMarkup - Markup for replying to the message; for bots only.
inputMessageContent - The content of the message to be sent.
Return TdApi.Message Describes a message.