Closed Kuchizu closed 7 months ago
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?
https://github.com/python-telegram-bot/python-telegram-bot/issues/4181#issuecomment-2029046687
Please answer these questions before submitting your issue. Thanks!
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:
Ubuntu 22.04
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'