Remove delete_messages limitations
This commit is contained in:
parent
b5c6db6db0
commit
b8341a9869
@ -31,14 +31,6 @@ class DeleteMessages(BaseClient):
|
||||
) -> bool:
|
||||
"""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:
|
||||
chat_id (``int`` | ``str``):
|
||||
Unique identifier (int) or username (str) of the target chat.
|
||||
|
Loading…
Reference in New Issue
Block a user