StarAI-2023 / TelegramBot

MIT License
0 stars 0 forks source link

Effective ChatID missing #7

Open zihongchen opened 1 year ago

zihongchen commented 1 year ago

chatgpt_telegram_bot | Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running chatgpt_telegram_bot | Exception while handling an update: chatgpt_telegram_bot | Traceback (most recent call last): chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_updater.py", line 607, in _network_loop_retry chatgpt_telegram_bot | if not await action_cb(): chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_updater.py", line 335, in polling_action_cb chatgpt_telegram_bot | raise exc chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_updater.py", line 320, in polling_action_cb chatgpt_telegram_bot | updates = await self.bot.get_updates( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_extbot.py", line 524, in get_updates chatgpt_telegram_bot | updates = await super().get_updates( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 331, in decorator chatgpt_telegram_bot | result = await func(*args, **kwargs) # skipcq: PYL-E1102 chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 3510, in get_updates chatgpt_telegram_bot | await self._post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 419, in _post chatgpt_telegram_bot | return await self._do_post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_extbot.py", line 306, in _do_post chatgpt_telegram_bot | return await super()._do_post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 450, in _do_post chatgpt_telegram_bot | return await request.post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/request/_baserequest.py", line 165, in post chatgpt_telegram_bot | result = await self._request_wrapper( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/request/_baserequest.py", line 330, in _request_wrapper chatgpt_telegram_bot | raise Conflict(message) chatgpt_telegram_bot | telegram.error.Conflict: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running chatgpt_telegram_bot | An error was raised and an uncaught error was raised while handling the error with an error_handler. chatgpt_telegram_bot | Traceback (most recent call last): chatgpt_telegram_bot | File "bot/bot.py", line 827, in error_handle chatgpt_telegram_bot | update.effective_chat.id, message_chunk, parse_mode=ParseMode.HTML chatgpt_telegram_bot | AttributeError: 'NoneType' object has no attribute 'effective_chat' chatgpt_telegram_bot | chatgpt_telegram_bot | During handling of the above exception, another exception occurred: chatgpt_telegram_bot | chatgpt_telegram_bot | Traceback (most recent call last): chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_application.py", line 1617, in process_error chatgpt_telegram_bot | await callback(update, context) chatgpt_telegram_bot | File "bot/bot.py", line 834, in error_handle chatgpt_telegram_bot | update.effective_chat.id, "Some error in error handler"

zihongchen commented 1 year ago

Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running chatgpt_telegram_bot | Exception while handling an update: chatgpt_telegram_bot | Traceback (most recent call last): chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_updater.py", line 607, in _network_loop_retry chatgpt_telegram_bot | if not await action_cb(): chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_updater.py", line 335, in polling_action_cb chatgpt_telegram_bot | raise exc chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_updater.py", line 320, in polling_action_cb chatgpt_telegram_bot | updates = await self.bot.get_updates( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_extbot.py", line 524, in get_updates chatgpt_telegram_bot | updates = await super().get_updates( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 331, in decorator chatgpt_telegram_bot | result = await func(*args, kwargs) # skipcq: PYL-E1102 chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 3510, in get_updates chatgpt_telegram_bot | await self._post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 419, in _post chatgpt_telegram_bot | return await self._do_post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_extbot.py", line 306, in _do_post chatgpt_telegram_bot | return await super()._do_post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 450, in _do_post chatgpt_telegram_bot | return await request.post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/request/_baserequest.py", line 165, in post chatgpt_telegram_bot | result = await self._request_wrapper( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/request/_baserequest.py", line 330, in _request_wrapper chatgpt_telegram_bot | raise Conflict(message) chatgpt_telegram_bot | telegram.error.Conflict: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running chatgpt_telegram_bot | An error was raised and an uncaught error was raised while handling the error with an error_handler. chatgpt_telegram_bot | Traceback (most recent call last): chatgpt_telegram_bot | File "bot/bot.py", line 819, in error_handle chatgpt_telegram_bot | update.effective_chat.id, message_chunk, parse_mode=ParseMode.HTML chatgpt_telegram_bot | AttributeError: 'NoneType' object has no attribute 'effective_chat' chatgpt_telegram_bot | chatgpt_telegram_bot | During handling of the above exception, another exception occurred: chatgpt_telegram_bot | chatgpt_telegram_bot | Traceback (most recent call last): chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_application.py", line 1617, in process_error chatgpt_telegram_bot | await callback(update, context) chatgpt_telegram_bot | File "bot/bot.py", line 826, in error_handle chatgpt_telegram_bot | update.effective_chat.id, "Some error in error handler" chatgpt_telegram_bot | AttributeError: 'NoneType' object has no attribute 'effective_chat' chatgpt_telegram_bot | Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running chatgpt_telegram_bot | Exception while handling an update: chatgpt_telegram_bot | Traceback (most recent call last): chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_updater.py", line 607, in _network_loop_retry chatgpt_telegram_bot | if not await action_cb(): chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_updater.py", line 335, in polling_action_cb chatgpt_telegram_bot | raise exc chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_updater.py", line 320, in polling_action_cb chatgpt_telegram_bot | updates = await self.bot.get_updates( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_extbot.py", line 524, in get_updates chatgpt_telegram_bot | updates = await super().get_updates( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 331, in decorator chatgpt_telegram_bot | result = await func(*args, *kwargs) # skipcq: PYL-E1102 chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 3510, in get_updates chatgpt_telegram_bot | await self._post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 419, in _post chatgpt_telegram_bot | return await self._do_post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_extbot.py", line 306, in _do_post chatgpt_telegram_bot | return await super()._do_post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 450, in _do_post chatgpt_telegram_bot | return await request.post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/request/_baserequest.py", line 165, in post chatgpt_telegram_bot | result = await self._request_wrapper( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/request/_baserequest.py", line 330, in _request_wrapper chatgpt_telegram_bot | raise Conflict(message) chatgpt_telegram_bot | telegram.error.Conflict: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running chatgpt_telegram_bot | An error was raised and an uncaught error was raised while handling the error with an error_handler. chatgpt_telegram_bot | Traceback (most recent call last): chatgpt_telegram_bot | File "bot/bot.py", line 819, in error_handle chatgpt_telegram_bot | update.effective_chat.id, message_chunk, parse_mode=ParseMode.HTML chatgpt_telegram_bot | AttributeError: 'NoneType' object has no attribute 'effective_chat' chatgpt_telegram_bot | chatgpt_telegram_bot | During handling of the above exception, another exception occurred: chatgpt_telegram_bot | chatgpt_telegram_bot | Traceback (most recent call last): chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_application.py", line 1617, in process_error chatgpt_telegram_bot | await callback(update, context) chatgpt_telegram_bot | File "bot/bot.py", line 826, in error_handle chatgpt_telegram_bot | update.effective_chat.id, "Some error in error handler" chatgpt_telegram_bot | AttributeError: 'NoneType' object has no attribute 'effective_chat' chatgpt_telegram_bot | Error while getting Updates: Conflict: terminated by other getUpdates request; make sure that only one bot instance is running chatgpt_telegram_bot | Exception while handling an update: chatgpt_telegram_bot | Traceback (most recent call last): chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_updater.py", line 607, in _network_loop_retry chatgpt_telegram_bot | if not await action_cb(): chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_updater.py", line 335, in polling_action_cb chatgpt_telegram_bot | raise exc chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_updater.py", line 320, in polling_action_cb chatgpt_telegram_bot | updates = await self.bot.get_updates( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_extbot.py", line 524, in get_updates chatgpt_telegram_bot | updates = await super().get_updates( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 331, in decorator chatgpt_telegram_bot | result = await func(args, kwargs) # skipcq: PYL-E1102 chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 3510, in get_updates chatgpt_telegram_bot | await self._post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 419, in _post chatgpt_telegram_bot | return await self._do_post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/ext/_extbot.py", line 306, in _do_post chatgpt_telegram_bot | return await super()._do_post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/_bot.py", line 450, in _do_post chatgpt_telegram_bot | return await request.post( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/request/_baserequest.py", line 165, in post chatgpt_telegram_bot | result = await self._request_wrapper( chatgpt_telegram_bot | File "/usr/local/lib/python3.8/site-packages/telegram/request/_baserequest.py", line 330, in _request_wrapper chatgpt_telegram_bot | raise Conflict(message)