From 8cd781048ab598254720ffd3806a930d2b2b0ab2 Mon Sep 17 00:00:00 2001 From: Oleg A Date: Tue, 7 Apr 2020 09:36:16 +0300 Subject: [PATCH] #296 Get bot's user_id without get_me --- aiogram/bot/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aiogram/bot/base.py b/aiogram/bot/base.py index 6750e8a8..b7015881 100644 --- a/aiogram/bot/base.py +++ b/aiogram/bot/base.py @@ -61,6 +61,7 @@ class BaseBot: api.check_token(token) self._token = None self.__token = token + self.id = int(token.split(sep=':')[0]) self.proxy = proxy self.proxy_auth = proxy_auth