Pin/unpin_chat_message don't raise a ValueError anymore

This commit is contained in:
Dan 2018-12-25 23:08:45 +01:00
parent c3f4fab58b
commit 1eee4b77e1
2 changed files with 0 additions and 2 deletions

View File

@ -47,7 +47,6 @@ class PinChatMessage(BaseClient):
Raises: Raises:
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error. :class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
``ValueError`` if a chat_id doesn't belong to a supergroup or a channel.
""" """
self.send( self.send(
functions.messages.UpdatePinnedMessage( functions.messages.UpdatePinnedMessage(

View File

@ -38,7 +38,6 @@ class UnpinChatMessage(BaseClient):
Raises: Raises:
:class:`Error <pyrogram.Error>` in case of a Telegram RPC error. :class:`Error <pyrogram.Error>` in case of a Telegram RPC error.
``ValueError`` if a chat_id doesn't belong to a supergroup or a channel.
""" """
self.send( self.send(
functions.messages.UpdatePinnedMessage( functions.messages.UpdatePinnedMessage(