Fix story bound methods description

This commit is contained in:
KurimuzonAkuma 2023-10-27 12:28:42 +03:00
parent bd557839d5
commit ac6e5d6600

View File

@ -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.