From b966a87adee1e54363ba3235ffa97f269c94c8c5 Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 21 Oct 2017 19:23:54 +0300 Subject: [PATCH] Nothing. --- aiogram/dispatcher/__init__.py | 1 + aiogram/dispatcher/webhook.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/aiogram/dispatcher/__init__.py b/aiogram/dispatcher/__init__.py index 39b307a4..61e116d4 100644 --- a/aiogram/dispatcher/__init__.py +++ b/aiogram/dispatcher/__init__.py @@ -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 diff --git a/aiogram/dispatcher/webhook.py b/aiogram/dispatcher/webhook.py index a4fa604b..50136aad 100644 --- a/aiogram/dispatcher/webhook.py +++ b/aiogram/dispatcher/webhook.py @@ -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