Pin/unpin_chat_message don't raise a ValueError anymore
This commit is contained in:
parent
c3f4fab58b
commit
1eee4b77e1
@ -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(
|
||||||
|
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user