pub async fn delete_chat(chat_id: i64, client_id: i32) -> Result<(), Error>
Expand description
Deletes a chat along with all messages in the corresponding chat for all chat members. For group chats this will release the usernames and remove all members. Use the field chat.can_be_deleted_for_all_users to find whether the method can be applied to the chat
ยงArguments
chat_id
- Chat identifierclient_id
- The client id to send the request to