add_local_message

Function add_local_message 

Source
pub async fn add_local_message(
    chat_id: i64,
    sender_id: MessageSender,
    reply_to: Option<InputMessageReplyTo>,
    disable_notification: bool,
    input_message_content: InputMessageContent,
    client_id: i32,
) -> Result<Message, Error>
Expand description

Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message

ยงArguments

  • chat_id - Target chat
  • sender_id - Identifier of the sender of the message
  • reply_to - Information about the message or story to be replied; pass null if none
  • disable_notification - Pass true to disable notification for the message
  • input_message_content - The content of the message to be added
  • client_id - The client id to send the request to