Typo 'pooling' -> 'polling'.

This commit is contained in:
Alex Root Junior 2017-11-21 00:53:53 +02:00
parent 233acab68e
commit ef3b59c63c
10 changed files with 74 additions and 65 deletions

View file

@ -8,7 +8,7 @@ import logging
from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.types import ParseMode
from aiogram.utils.executor import start_pooling
from aiogram.utils.executor import start_polling
from aiogram.utils.markdown import *
API_TOKEN = 'BOT TOKEN HERE'
@ -33,11 +33,5 @@ async def check_language(message: types.Message):
sep='\n'), parse_mode=ParseMode.MARKDOWN)
async def main():
count = await dp.skip_updates()
print(f"Skipped {count} updates.")
await dp.start_pooling()
if __name__ == '__main__':
start_pooling(dp, loop=loop, skip_updates=True)
start_polling(dp, loop=loop, skip_updates=True)