mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Fix AttributeError when calling add_sticker_to_set method.
This commit is contained in:
parent
b49c5f7512
commit
43fb830382
1 changed files with 5 additions and 7 deletions
|
|
@ -33,7 +33,7 @@ class AddStickerToSet:
|
|||
) -> "types.StickerSet":
|
||||
"""Add a sticker to stickerset.
|
||||
|
||||
.. include:: /_includes/usable-by/bots.rst
|
||||
.. include:: /_includes/usable-by/users-bots.rst
|
||||
|
||||
Parameters:
|
||||
set_short_name (``str``):
|
||||
|
|
@ -73,12 +73,10 @@ class AddStickerToSet:
|
|||
r = await self.invoke(
|
||||
raw.functions.stickers.AddStickerToSet(
|
||||
stickerset=raw.types.InputStickerSetShortName(short_name=set_short_name),
|
||||
sticker=[
|
||||
raw.types.InputStickerSetItem(
|
||||
document=media,
|
||||
emoji=emoji
|
||||
)
|
||||
]
|
||||
sticker=raw.types.InputStickerSetItem(
|
||||
document=media,
|
||||
emoji=emoji
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue