mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-10 17:53:17 +00:00
Typo 'pooling' -> 'polling'.
This commit is contained in:
parent
233acab68e
commit
ef3b59c63c
10 changed files with 74 additions and 65 deletions
|
|
@ -1,14 +1,12 @@
|
|||
import asyncio
|
||||
import logging
|
||||
|
||||
import aiohttp
|
||||
|
||||
from aiogram import Bot, types
|
||||
from aiogram.dispatcher import Dispatcher
|
||||
from aiogram.types import ParseMode
|
||||
from aiogram.utils.emoji import emojize
|
||||
from aiogram.utils.executor import start_pooling
|
||||
from aiogram.utils.markdown import text, bold, italic, code
|
||||
from aiogram.utils.executor import start_polling
|
||||
from aiogram.utils.markdown import bold, code, italic, text
|
||||
|
||||
# Configure bot here
|
||||
API_TOKEN = 'BOT TOKEN HERE'
|
||||
|
|
@ -60,11 +58,5 @@ async def cmd_start(message: types.Message):
|
|||
# For example emojize('Moon face :new_moon_face:') is represents to 'Moon face 🌚'
|
||||
|
||||
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue