As far as I know using "global" is a bad practice in python, but I have no idea how to avoid it here. Thank you in advance.
import asyncio from tele