delete_chat_messages_by_date

Function delete_chat_messages_by_date 

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

Deletes all messages between the specified dates in a chat. Supported only for private chats and basic groups. Messages sent in the last 30 seconds will not be deleted

ยงArguments

  • chat_id - Chat identifier
  • min_date - The minimum date of the messages to delete
  • max_date - The maximum date of the messages to delete
  • revoke - Pass true to delete chat messages for all users; private chats only
  • client_id - The client id to send the request to