mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 01:54:53 +00:00
remove unnecessary loop definitions
This commit is contained in:
parent
66849ec770
commit
1ea76cd902
12 changed files with 22 additions and 34 deletions
|
|
@ -13,8 +13,8 @@ logging.basicConfig(level=logging.INFO)
|
|||
|
||||
API_TOKEN = 'BOT TOKEN HERE'
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
bot = Bot(token=API_TOKEN, loop=loop, parse_mode=types.ParseMode.HTML)
|
||||
|
||||
bot = Bot(token=API_TOKEN, parse_mode=types.ParseMode.HTML)
|
||||
storage = MemoryStorage()
|
||||
dp = Dispatcher(bot, storage=storage)
|
||||
dp.middleware.setup(LoggingMiddleware())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue