Function delete_chat_history

Source
pub async fn delete_chat_history(
    chat_id: i64,
    remove_from_chat_list: bool,
    revoke: bool,
    client_id: i32,
) -> Result<(), Error>
Expand description

Deletes all messages in the chat. Use chat.can_be_deleted_only_for_self and chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat

ยงArguments

  • chat_id - Chat identifier
  • remove_from_chat_list - Pass true to remove the chat from all chat lists
  • revoke - Pass true to delete chat history for all users
  • client_id - The client id to send the request to