rougeth/bottery

TelegramEngine reaches recursion limit after a while

ElSaico opened this issue · 2 comments

With #79 solved, it seems a couple issues were unearthed.

After a while, since Python lacks tail-recursion due to a design decision by Guido himself, those consecutive calls to self.polling end up hitting the runtime's recursion depth limit, throwing a RecursionError in the process.

Of course, the bot becomes inoperant after this.

Thanks @ElSaico! Any suggestion on how to solve this?