TDLib v0.0.2 TDLib.Method.SendMessage View Source

Sends a message. Returns the sent message. Returns object_ptr.

NameTypeDescription
chat_idstringTarget chat.
reply_to_message_idstringIdentifier of the message to reply to or 0.
disable_notificationboolPass true to disable notification for the message. Not supported in secret chats.
from_backgroundboolPass true if the message is sent from the background.
reply_markupReplyMarkupMarkup for replying to the message; for bots only.
input_message_contentInputMessageContentThe content of the message to be sent.

More details on telegram’s documentation.