Infinity polling exception: ChatBoost.__init__() missing 3 required positional arguments #2174
Unanswered
BrandonTay2001
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Receiving this exception on a bot I was running on a server and I'm not quite sure what to make of it. I run multiple bots but only one of them was affected by this bug. A simple restart seemed to have eliminated the issue, but I'm wondering if this is an issue with the
.infinity_polling()
method in the library. The issue doesn't seem to be originating from my bot file main.py.Attaching the full exception below:
2024-02-17 12:11:42,006 (__init__.py:1021 MainThread) ERROR - TeleBot: "Infinity polling exception: ChatBoost.__init__() missing 3 required positional arguments: 'boost_id', 'add_date', and 'expiration_date'" 2024-02-17 12:11:42,006 (__init__.py:1023 MainThread) ERROR - TeleBot: "Exception traceback: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/telebot/__init__.py", line 1016, in infinity_polling self.polling(non_stop=True, timeout=timeout, long_polling_timeout=long_polling_timeout, File "/usr/local/lib/python3.10/dist-packages/telebot/__init__.py", line 1104, in polling self.__threaded_polling(non_stop=non_stop, interval=interval, timeout=timeout, long_polling_timeout=long_polling_timeout, File "/usr/local/lib/python3.10/dist-packages/telebot/__init__.py", line 1179, in __threaded_polling raise e File "/usr/local/lib/python3.10/dist-packages/telebot/__init__.py", line 1140, in __threaded_polling polling_thread.raise_exceptions() File "/usr/local/lib/python3.10/dist-packages/telebot/util.py", line 110, in raise_exceptions raise self.exception_info File "/usr/local/lib/python3.10/dist-packages/telebot/util.py", line 92, in run task(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/telebot/__init__.py", line 661, in __retrieve_updates updates = self.get_updates(offset=(self.last_update_id + 1), File "/usr/local/lib/python3.10/dist-packages/telebot/__init__.py", line 636, in get_updates return [types.Update.de_json(ju) for ju in json_updates] File "/usr/local/lib/python3.10/dist-packages/telebot/__init__.py", line 636, in <listcomp> return [types.Update.de_json(ju) for ju in json_updates] File "/usr/local/lib/python3.10/dist-packages/telebot/types.py", line 207, in de_json chat_boost = ChatBoost.de_json(obj.get('chat_boost')) File "/usr/local/lib/python3.10/dist-packages/telebot/types.py", line 9160, in de_json return cls(**obj) TypeError: ChatBoost.__init__() missing 3 required positional arguments: 'boost_id', 'add_date', and 'expiration_date'
Thanks :)
Beta Was this translation helpful? Give feedback.
All reactions