Upd examples.

This commit is contained in:
Alex Root Junior 2017-11-19 01:05:50 +02:00
parent 7d75813f21
commit 801ca1558e
4 changed files with 14 additions and 25 deletions

View file

@ -8,6 +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.markdown import *
API_TOKEN = 'BOT TOKEN HERE'
@ -39,7 +40,4 @@ async def main():
if __name__ == '__main__':
try:
loop.run_until_complete(main())
except KeyboardInterrupt:
loop.stop()
start_pooling(dp, loop=loop, skip_updates=True)