Function send_message

Source
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 chat
  • message_thread_id - If not 0, the message thread identifier in which the message will be sent
  • reply_to - Information about the message or story to be replied; pass null if none
  • options - Options to be used to send the message; pass null to use default options
  • reply_markup - Markup for replying to the message; pass null if none; for bots only
  • input_message_content - The content of the message to be sent
  • client_id - The client id to send the request to