Merge pull request #57 from X1A0CA1/main

docs(get_custom_emoji_stickers): Fix errors in documentation
This commit is contained in:
2024-03-26 16:27:12 +07:00 committed by GitHub
commit a6f4443aa9
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