nickoala / telepot

Python framework for Telegram Bot API
MIT License
2.43k stars 474 forks source link

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

Open DaveAlviz opened 5 years ago

DaveAlviz commented 5 years ago

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!

a-x- commented 5 years ago

+1

96Octavian commented 5 years ago

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