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 chatsender_id- Identifier of the sender of the messagereply_to- Information about the message or story to be replied; pass null if nonedisable_notification- Pass true to disable notification for the messageinput_message_content- The content of the message to be addedclient_id- The client id to send the request to