mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-30 17:43:32 +00:00
Fix story bound methods description
This commit is contained in:
parent
bd557839d5
commit
ac6e5d6600
@ -25,6 +25,7 @@ from typing import BinaryIO, Callable, List, Optional, Union
|
|||||||
from ..object import Object
|
from ..object import Object
|
||||||
from ..update import Update
|
from ..update import Update
|
||||||
|
|
||||||
|
|
||||||
class Story(Object, Update):
|
class Story(Object, Update):
|
||||||
"""A story.
|
"""A story.
|
||||||
|
|
||||||
@ -1534,10 +1535,10 @@ class Story(Object, Update):
|
|||||||
Example:
|
Example:
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
await story.export_link()
|
link = await story.export_link()
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
:obj:`~pyrogram.types.ExportedStoryLink`: a single story link is returned.
|
``str``: On success, a link to the story as string is returned.
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
RPCError: In case of a Telegram RPC error.
|
RPCError: In case of a Telegram RPC error.
|
||||||
@ -1565,7 +1566,7 @@ class Story(Object, Update):
|
|||||||
await story.react(emoji="🔥")
|
await story.react(emoji="🔥")
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
emoji (``str``, *optional*):
|
emoji (``int`` | ``str``, *optional*):
|
||||||
Reaction emoji.
|
Reaction emoji.
|
||||||
Pass "" as emoji (default) to retract the reaction.
|
Pass "" as emoji (default) to retract the reaction.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user