mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Remove delete_messages limitations
This commit is contained in:
parent
b5c6db6db0
commit
b8341a9869
1 changed files with 0 additions and 8 deletions
|
|
@ -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…
Reference in a new issue