docs(get_custom_emoji_stickers): Fix errors in documentation

This commit is contained in:
XiaoCai 2024-03-24 14:15:05 +08:00 committed by GitHub
parent ea66135a66
commit 0e1f7ad712
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,13 +34,13 @@ class GetCustomEmojiStickers:
.. include:: /_includes/usable-by/users-bots.rst .. include:: /_includes/usable-by/users-bots.rst
Parameters: Parameters:
custom_emoji_ids (List[:obj:`int` | :obj:`List[int]`]): custom_emoji_ids (:obj:`int` | :obj:`List[int]`):
Custom emoji ID. Custom emoji ID.
At most 200 custom emoji identifiers can be specified. At most 200 custom emoji identifiers can be specified.
Returns: Returns:
:obj: `~pyrogram.types.Sticker` | List of :obj:`~pyrogram.types.Sticker`: In case *custom_emoji_ids* was not :obj: `~pyrogram.types.Sticker` | List of :obj:`~pyrogram.types.Sticker`: In case *custom_emoji_ids* was not
a lost, a single sticker is returned, otherwise a list of stickers is returned. a list, a single sticker is returned, otherwise a list of stickers is returned.
""" """
is_list = isinstance(custom_emoji_ids, list) is_list = isinstance(custom_emoji_ids, list)
custom_emoji_ids = [custom_emoji_ids] if not is_list else custom_emoji_ids custom_emoji_ids = [custom_emoji_ids] if not is_list else custom_emoji_ids