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
[BUG] StickerSet require parameters that API no longer sends #4181
Comments
From @botnews:
|
Hi, thanks for the issue. This is known by the dev team, and we are working on the next update which will fix this. For now a workaround is to use |
im sorry, but what if i am using the python-telegram-bot 12.5 ? no chance to use it? |
No, that version is more than 5 years old. |
You can do something like this: resp = bot._request.post(
f"{bot.base_url}/getStickerSet",
{
"name": packname,
},
) Then, manually call |
well, i already saved every sticker id one by one =_= but thank you anyway :D |
Steps to Reproduce
bot.get_sticker_set(name)
Expected behaviour
.get_sticker_set()
should return aStickerSet
objectActual behaviour
.get_sticker_set()
throws:TypeError: StickerSet.__init__() missing 2 required positional arguments: 'is_animated' and 'is_video'
Operating System
Windows
Version of Python, python-telegram-bot & dependencies
Relevant log output
Additional Context
Telegram seems to be gearing up to allow mixed-media sticker packs. From yesterday's update:
Not sure if they've made any other announcements yet, but the
StickerSet
class may need to be reworked.The text was updated successfully, but these errors were encountered: