tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

[ASK] How revoke all message for everyone in chat group? #2798

Closed azkadev closed 8 months ago

azkadev commented 8 months ago

How to enable this in tdlib, what api method to use Screenshot from 2024-02-21 23-28-58

levlam commented 8 months ago

See deleteChatHistory and its documentation.

azkadev commented 8 months ago

See deleteChatHistory and its documentation.

I have used the deleteChat history method

and added revoke to true, but it's still not checked

azkadev commented 8 months ago

BTW, why are there public channels that can't use method deleteChatHistory?

error Chat history can't be deleted

levlam commented 8 months ago

deleteChatHistory:

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