From 9ef3a630d15a8ee0cd2969406b1cc8365be2b01c Mon Sep 17 00:00:00 2001 From: Nikita <43146729+gabbhack@users.noreply.github.com> Date: Sun, 12 May 2019 11:35:45 +0500 Subject: [PATCH] Update base.py --- aiogram/bot/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/bot/base.py b/aiogram/bot/base.py index 644390fe..961f213d 100644 --- a/aiogram/bot/base.py +++ b/aiogram/bot/base.py @@ -147,7 +147,7 @@ class BaseBot: @contextlib.contextmanager def with_token(self, bot_token: base.String, validate_token: Optional[base.Boolean] = True): - if validate_token is True: + if validate_token: api.check_token(bot_token) token = self._ctx_token.set(bot_token) try: