mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-30 05:48:14 +00:00
Remove delete_messages limitations
This commit is contained in:
parent
b5c6db6db0
commit
b8341a9869
@ -31,14 +31,6 @@ class DeleteMessages(BaseClient):
|
|||||||
) -> bool:
|
) -> bool:
|
||||||
"""Use this method to delete messages, including service messages.
|
"""Use this method to delete messages, including service messages.
|
||||||
|
|
||||||
Deleting messages have the following limitations:
|
|
||||||
|
|
||||||
- A message can only be deleted if it was sent less than 48 hours ago.
|
|
||||||
- Users can delete outgoing messages in groups and supergroups.
|
|
||||||
- Users granted *can_post_messages* permissions can delete outgoing messages in channels.
|
|
||||||
- If the user is an administrator of a group, it can delete any message there.
|
|
||||||
- If the user has *can_delete_messages* permission in a supergroup or a channel, it can delete any message there.
|
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
chat_id (``int`` | ``str``):
|
chat_id (``int`` | ``str``):
|
||||||
Unique identifier (int) or username (str) of the target chat.
|
Unique identifier (int) or username (str) of the target chat.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user