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 identifierremove_from_chat_list- Pass true to remove the chat from all chat listsrevoke- Pass true to delete chat history for all usersclient_id- The client id to send the request to