Even running loop.stop() and then loop.close() we're getting those messages:
Task was destroyed but it is pending!
task: <Task pending coro=<TelegramEngine.polling() running at ../bottery/platform/telegram.py:102> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x10658e6a8>()]>>
Task was destroyed but it is pending!
task: <Task pending coro=<TelegramEngine.polling() running at ../bottery/platform/telegram.py:102> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x10658e4c8>()]>>
Even running
loop.stop()
and thenloop.close()
we're getting those messages: