Refactoring. AIOGramBot -> Bot and allow to use 'from aiogram import Bot'

This commit is contained in:
Alex Root Junior 2017-06-02 05:09:09 +03:00
parent 16cda7af67
commit 92b3e027db
6 changed files with 23 additions and 15 deletions

View file

@ -1,7 +1,7 @@
import asyncio
import logging
from aiogram.bot import AIOGramBot
from aiogram import Bot
from aiogram.dispatcher import Dispatcher
API_TOKEN = 'BOT TOKEN HERE'
@ -9,7 +9,7 @@ API_TOKEN = 'BOT TOKEN HERE'
logging.basicConfig(level=logging.INFO)
loop = asyncio.get_event_loop()
bot = AIOGramBot(token=API_TOKEN, loop=loop)
bot = Bot(token=API_TOKEN, loop=loop)
dp = Dispatcher(bot)