TypeError: StickerSet.__init__() missing 2 required positional arguments: 'is_animated' and 'is_video'
Kuchizu opened this issue · comments
Please answer these questions before submitting your issue. Thanks!
- What version of pyTelegramBotAPI are you using?
Name: pyTelegramBotAPI
Version: 4.16.1
Summary: Python Telegram bot api.
Home-page:
Author:
Author-email: eternnoir eternnoir@gmail.com
License: GPL2
Location: /root/FaceSwappers/ManSwapper/venv/lib/python3.10/site-packages
Requires: requests
Required-by:
- What OS are you using?
Ubuntu 22.04
- What version of python are you using?
Python 3.10.12
Problem:
bot.get_sticker_set(sticker_set_name)
Traceback (most recent call last):
File "/root/FaceSwappers/BrotherSwapper/swapper.py", line 67, in process_queue
self.create_sticker_pack(message, face)
File "/root/FaceSwappers/BrotherSwapper/logger.py", line 52, in wrapper
result = method(*args, **kwargs)
File "/root/FaceSwappers/BrotherSwapper/swapper.py", line 132, in create_sticker_pack
self.send_sticker_set(message.from_user.id, sticker_set_name)
File "/root/FaceSwappers/BrotherSwapper/swapper.py", line 191, in send_sticker_set
pack = self.bot.get_sticker_set(sticker_set_name)
File "/root/FaceSwappers/ManSwapper/venv/lib/python3.10/site-packages/telebot/init.py", line 5457, in get_sticker_set
return types.StickerSet.de_json(
File "/root/FaceSwappers/ManSwapper/venv/lib/python3.10/site-packages/telebot/types.py", line 6309, in de_json
return cls(**obj)
TypeError: StickerSet.init() missing 2 required positional arguments: 'is_animated' and 'is_video'
We have to do something 😢
Yes, we are aware of the issue. It was caused by bot API update
There's a temporary solution of this from another library, does Telebot have some similar method to do raw API requests?