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 identifiermin_date- The minimum date of the messages to deletemax_date- The maximum date of the messages to deleterevoke- Pass true to delete chat messages for all users; private chats onlyclient_id- The client id to send the request to