This commit is contained in:
Alex Root Junior 2017-10-21 19:23:54 +03:00
parent f29f1216ac
commit b966a87ade
2 changed files with 2 additions and 1 deletions

View file

@ -181,6 +181,7 @@ class Dispatcher:
raise RuntimeError('Pooling already started')
log.info('Start pooling.')
context.set_value(MODE, LONG_POOLING)
context.set_value('bot', self.bot)
self._pooling = True
offset = None

View file

@ -9,7 +9,7 @@ from aiohttp import web
from .. import types
from ..bot import api
from ..bot.base import Boolean, Float, Integer, String
from ..types.base import Boolean, Float, Integer, String
from ..utils import context
from ..utils import json
from ..utils.deprecated import warn_deprecated as warn