Update base.py

This commit is contained in:
Nikita 2019-05-12 11:35:45 +05:00
parent 3025d981be
commit 9ef3a630d1

View file

@ -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: