View Source ExTDLib.Method.DeleteChatMessagesByDate (ExTDLib v0.0.4)

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. Returns object_ptr<Ok>.

NameTypeDescription
chat_idstringChat identifier.
min_datenumberThe minimum date of the messages to delete.
max_datenumberThe maximum date of the messages to delete.
revokeboolPass true to delete chat messages for all users; private chats only.

More details on telegram's documentation.