Removed obsolete code

This commit is contained in:
Alex Root Junior 2018-04-15 04:26:31 +03:00
parent 41c764971b
commit 70ad68cf4a
2 changed files with 0 additions and 26 deletions

View file

@ -1,7 +1,6 @@
from aiohttp import web
from . import context
from .deprecated import deprecated
from ..bot.api import log
from ..dispatcher import Dispatcher
from ..dispatcher.webhook import BOT_DISPATCHER_KEY, get_new_configured_app
@ -48,11 +47,6 @@ async def _wh_shutdown(app):
await _shutdown(dispatcher, callback=callback)
@deprecated('The old function was renamed to `start_polling`')
def start_pooling(*args, **kwargs):
return start_polling(*args, **kwargs)
def start_polling(dispatcher, *, loop=None, skip_updates=False,
on_startup=None, on_shutdown=None):
log.warning('Start bot with long-polling.')