telepot icon indicating copy to clipboard operation
telepot copied to clipboard

ERROR:root:on_close() called due to IdleTerminate: 10

Open DaveAlviz opened this issue 6 years ago • 2 comments

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!

DaveAlviz avatar Nov 30 '18 16:11 DaveAlviz

+1

a-x- avatar Dec 08 '18 11:12 a-x-

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

96Octavian avatar Dec 19 '18 23:12 96Octavian