Basically I'm using pyppeteer to connect to an existing browser connection which requires me to periodically time.sleep() the thread in order for the browser to behave normally (using asyncio.sleep() still causes dynamic HTML websites to behave funnily, I suspect it's to do with the underlying javascript detecting a puppeteer connection to the browser, something time.sleep() seems to block by (if I had to guess) temporarily pausing this connection)
What I need to be able to do is pause the part of the python telegram script thats connecting to the webpages similar to how time.sleep() does but without pausing all the other things the python telegram bot script is doing. I suspect I could do this by disconnecting from the browser connection and reconnecting but I suspect this would mess up the ordering of the current active pages (just from working with pyppeteer for a while it seems to be incapable of ordering webpages identically between browser connections, especially if the webpage titles are identical) and cause other errors when it comes to my code.
So to the actual question, can I pause parts of an asyncio event loop in a method which is functionally identical to a time.sleep() but isn't asyncio.sleep() as this doesn't seem to work, probably as it switches from doing the current task to maintaining the background threads which are dealing with the browser connection.
The reason python telegram bot is involved is that my code works by triggering the pyppeteer code from telegram using a command however whilst the thread is sleeping using time.sleep the bot is unable to respond to telegram commands due to the entire script being paused.