Home>

I'm just starting to learn aiogram. We need to make a bot that, on the start command, opens the site through selenium and sits there for a while (20 seconds), while I still have the help command. When I call start, the program is loaded by performing the opening of the same tab in the browser and the bot will not respond until the browser closes. How to be here? Use multithreading?

Why not multithreading? Try it

ПИТОНИСТ версия 3-82021-11-26 01:06:09

Possible duplicate question: How to run two functions at the same time in Aiogram

ПИТОНИСТ версия 3-82021-11-26 01:06:09