You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.
i'm running a MessageLoop as thread. The Bot works fine, but i'm not able to catch an exception.
If an error occurs in the thread, i can't handle it in my program (e.g. the APIKEY is invalid).
Thanks
try:
bot = telepot.DelegatorBot(APIKEY, [
include_callback_query_chat_id(
pave_event_space())(
per_chat_id(types=['private']), create_open, ChatBot, timeout=10),
])
MessageLoop(bot).run_as_thread()
print('Listening ...')
while 1:
time.sleep(10)
except Exception as ex:
print('Exception')
... some exception handling ...
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there,
i'm running a MessageLoop as thread. The Bot works fine, but i'm not able to catch an exception.
If an error occurs in the thread, i can't handle it in my program (e.g. the APIKEY is invalid).
Thanks
The text was updated successfully, but these errors were encountered: