pub async fn send_message(
chat_id: i64,
message_thread_id: i64,
reply_to: Option<InputMessageReplyTo>,
options: Option<MessageSendOptions>,
reply_markup: Option<ReplyMarkup>,
input_message_content: InputMessageContent,
client_id: i32,
) -> Result<Message, Error>Expand description
Sends a message. Returns the sent message
ยงArguments
chat_id- Target chatmessage_thread_id- If not 0, the message thread identifier in which the message will be sentreply_to- Information about the message or story to be replied; pass null if noneoptions- Options to be used to send the message; pass null to use default optionsreply_markup- Markup for replying to the message; pass null if none; for bots onlyinput_message_content- The content of the message to be sentclient_id- The client id to send the request to