Open DaveAlviz opened 5 years ago
+1
I never used async, but I think it's similar to the sync version: when you create a class to handle chats, you specify a timeout with DelegatorBot(TOKEN, [pave_event_space()(per_chat_id(), create_open, ChatClass, *timeout=10*)])
When the timeout expires the class instance dies and a method of the class called on_close() is called and if not redefined it uses the standard one in telepot
Anybody knows why this message is shown with every message sent to the bot (using async version)?
ERROR:root:on_close() called due to IdleTerminate: 10
This is really annoying!