Skip to content

sendMessage

Function · TDLib 1.8.67 · d1085f9c

Sends a message. Returns the sent message

sendMessage(
  chat_id: int53,
  topic_id: MessageTopic,
  reply_to: InputMessageReplyTo,
  options: MessageSendOptions,
  reply_markup: ReplyMarkup,
  input_message_content: InputMessageContent
) → Message

chat_id

int53

Target chat

topic_id

MessageTopic

Topic in which the message will be sent; pass null if none

reply_to

InputMessageReplyTo

Information about the message or story to be replied; pass null if none

options

MessageSendOptions

Options to be used to send the message; pass null to use default options

reply_markup

ReplyMarkup

Markup for replying to the message; pass null if none; for bots only

input_message_content

InputMessageContent

The content of the message to be sent