mirror of
https://github.com/civsocit/olgram.git
synced 2023-07-22 01:29:12 +03:00
loop
This commit is contained in:
parent
9f0c03fb68
commit
173014fda0
2
main.py
2
main.py
@ -52,7 +52,7 @@ def main():
|
|||||||
"разработки)", action="store_true")
|
"разработки)", action="store_true")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
loop = asyncio.new_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
loop.run_until_complete(initialization())
|
loop.run_until_complete(initialization())
|
||||||
|
|
||||||
loop.create_task(dp.start_polling())
|
loop.create_task(dp.start_polling())
|
||||||
|
Loading…
Reference in New Issue
Block a user