ValueError Traceback (most recent call last)
in <cell line: 34>()
32
33 # شروع دریافت پیامها از کاربران
---> 34 bot.polling()
35
36
13 frames
/usr/local/lib/python3.10/dist-packages/telebot/init.py in polling(self, non_stop, skip_pending, interval, timeout, long_polling_timeout, logger_level, allowed_updates, none_stop, restart_on_change, path_to_watch)
1167
1168 if self.threaded:
-> 1169 self.__threaded_polling(non_stop=non_stop, interval=interval, timeout=timeout, long_polling_timeout=long_polling_timeout,
1170 logger_level=logger_level, allowed_updates=allowed_updates)
1171 else:
/usr/local/lib/python3.10/dist-packages/telebot/init.py in __threaded_polling(self, non_stop, interval, timeout, long_polling_timeout, logger_level, allowed_updates)
1242 polling_thread.clear_exceptions() #*
1243 self.worker_pool.clear_exceptions() #*
-> 1244 raise e
1245 else:
1246 polling_thread.clear_exceptions()
/usr/local/lib/python3.10/dist-packages/telebot/init.py in __threaded_polling(self, non_stop, interval, timeout, long_polling_timeout, logger_level, allowed_updates)
1204 or_event.wait() # wait for polling thread finish, polling thread error or thread pool error
1205 polling_thread.raise_exceptions()
-> 1206 self.worker_pool.raise_exceptions()
1207 error_interval = 0.25
1208 except apihelper.ApiException as e:
/usr/local/lib/python3.10/dist-packages/telebot/util.py in raise_exceptions(self)
148 def raise_exceptions(self):
149 if self.exception_event.is_set():
--> 150 raise self.exception_info
151
152 def clear_exceptions(self):
/usr/local/lib/python3.10/dist-packages/telebot/util.py in run(self)
91 self.received_task_event.set()
92
---> 93 task(*args, **kwargs)
94 logger.debug("Task complete")
95 self.done_event.set()
/usr/local/lib/python3.10/dist-packages/telebot/init.py in _run_middlewares_and_handler(self, message, handlers, middlewares, update_type)
8402 result = handler['function'](message, bot=self)
8403 else:
-> 8404 result = handler'function'
8405 if not isinstance(result, ContinueHandling):
8406 break
in handle_question(message)
26 del users_with_pending_question[chat_id] # حذف وضعیت کاربر بعد از پاسخگویی به سوال
27 # استفاده از client.predict برای دریافت پاسخ به سوال کاربر
---> 28 result = client.predict({"text": message.text, "files": []},
29 api_name="/chat"
30 )