diff --git a/pyrogram/client/methods/chats/pin_chat_message.py b/pyrogram/client/methods/chats/pin_chat_message.py index 7b99e8ff..66d5497d 100644 --- a/pyrogram/client/methods/chats/pin_chat_message.py +++ b/pyrogram/client/methods/chats/pin_chat_message.py @@ -47,7 +47,6 @@ class PinChatMessage(BaseClient): Raises: :class:`Error ` in case of a Telegram RPC error. - ``ValueError`` if a chat_id doesn't belong to a supergroup or a channel. """ self.send( functions.messages.UpdatePinnedMessage( diff --git a/pyrogram/client/methods/chats/unpin_chat_message.py b/pyrogram/client/methods/chats/unpin_chat_message.py index 9eb35eea..9aa56a7c 100644 --- a/pyrogram/client/methods/chats/unpin_chat_message.py +++ b/pyrogram/client/methods/chats/unpin_chat_message.py @@ -38,7 +38,6 @@ class UnpinChatMessage(BaseClient): Raises: :class:`Error ` in case of a Telegram RPC error. - ``ValueError`` if a chat_id doesn't belong to a supergroup or a channel. """ self.send( functions.messages.UpdatePinnedMessage(