Advertisement
Guest User

Untitled

a guest
Oct 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. async def main(loop):
  2.     await asyncio.sleep(0)
  3.     t1 = loop.create_task(check_wallet())
  4.     await executor.start_polling(dp, skip_updates=False)
  5.     await t1
  6.  
  7.  
  8. if __name__ == '__main__':
  9.     models.create_tables()
  10.     loop = asyncio.get_event_loop()
  11.     loop.run_until_complete(main(loop))
  12.     loop.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement