From b8341a9869498afbee8a24af8508f673a87b3156 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 25 Mar 2019 11:34:47 +0100 Subject: [PATCH] Remove delete_messages limitations --- pyrogram/client/methods/messages/delete_messages.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pyrogram/client/methods/messages/delete_messages.py b/pyrogram/client/methods/messages/delete_messages.py index d1835ad7..bbd838ee 100644 --- a/pyrogram/client/methods/messages/delete_messages.py +++ b/pyrogram/client/methods/messages/delete_messages.py @@ -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.