mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-10 17:53:17 +00:00
remove unnecessary loop definitions
This commit is contained in:
parent
66849ec770
commit
1ea76cd902
12 changed files with 22 additions and 34 deletions
|
|
@ -25,8 +25,7 @@ GET_IP_URL = 'http://bot.whatismyipaddress.com/'
|
|||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
bot = Bot(token=API_TOKEN, loop=loop, proxy=PROXY_URL)
|
||||
bot = Bot(token=API_TOKEN, proxy=PROXY_URL)
|
||||
dp = Dispatcher(bot)
|
||||
|
||||
|
||||
|
|
@ -62,4 +61,4 @@ async def cmd_start(message: types.Message):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
start_polling(dp, loop=loop, skip_updates=True)
|
||||
start_polling(dp, skip_updates=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue