2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 04:48:06 +00:00

Fix Message.retract_vote style

This commit is contained in:
Dan 2019-07-22 14:21:42 +02:00 committed by GitHub
parent 449f318e6d
commit a320088fee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2871,8 +2871,8 @@ class Message(Object, Update):
def retract_vote(
self,
) -> "Poll":
self,
) -> "Poll":
"""Bound method *retract_vote* of :obj:`Message`.
Use as a shortcut for:
@ -2883,14 +2883,14 @@ class Message(Object, Update):
chat_id=message.chat.id,
message_id=message_id,
)
Example:
.. code-block:: python
message.retract_vote()
Returns:
:obj:`Poll`
On success, the poll with the retracted vote is returned.
:obj:`Poll`: On success, the poll with the retracted vote is returned.
Raises:
RPCError: In case of a Telegram RPC error.