mirror of
https://github.com/Balshgit/mosgortrans.git
synced 2026-02-03 11:20:56 +03:00
asyncio to thread
This commit is contained in:
@@ -50,6 +50,7 @@ async def home_office(
|
|||||||
message = 'Остановка Б. Академическая ул, д. 15'
|
message = 'Остановка Б. Академическая ул, д. 15'
|
||||||
|
|
||||||
await asyncio.sleep(15)
|
await asyncio.sleep(15)
|
||||||
|
await bot.send_message(417070387, 'World Hello')
|
||||||
|
|
||||||
# text = parse_site(
|
# text = parse_site(
|
||||||
# driver=driver,
|
# driver=driver,
|
||||||
@@ -73,6 +74,7 @@ async def office_home(
|
|||||||
message = 'Остановка Улица Алабяна'
|
message = 'Остановка Улица Алабяна'
|
||||||
|
|
||||||
await asyncio.sleep(15)
|
await asyncio.sleep(15)
|
||||||
|
await bot.send_message(417070387, 'Hello World')
|
||||||
|
|
||||||
# text = parse_site(
|
# text = parse_site(
|
||||||
# driver=driver,
|
# driver=driver,
|
||||||
|
|||||||
Reference in New Issue
Block a user