Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed get_custom_emoji_stickers method #1002

Merged
merged 4 commits into from Sep 18, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion aiogram/bot/api.py
Expand Up @@ -166,7 +166,10 @@ def compose_data(params=None, files=None):

if params:
for key, value in params.items():
data.add_field(key, str(value))
if isinstance(value, (list, dict)):
data.add_field(key, json.dumps(value))
else:
data.add_field(key, str(value))

if files:
for key, f in files.items():
Expand Down
4 changes: 2 additions & 2 deletions aiogram/bot/bot.py
Expand Up @@ -3051,9 +3051,9 @@ async def get_custom_emoji_stickers(self, custom_emoji_ids: typing.List[base.Str
Use this method to get information about custom emoji stickers by their identifiers.


Source: https://core.telegram.org/bots/api#uploadstickerfile
Source: https://core.telegram.org/bots/api#getcustomemojistickers

:param custom_emoji_ids: User identifier of sticker file owner
:param custom_emoji_ids: List of custom emoji identifiers. At most 200 custom emoji identifiers can be specified.
:type custom_emoji_ids: :obj:`typing.List[base.String]`
:return: Returns an Array of Sticker objects.
:rtype: :obj:`typing.List[types.Sticker]`
Expand Down