mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge pull request #297 from aiogram/feature/bot_id
#296 Get bot's user_id without get_me
This commit is contained in:
commit
61cfb8e99a
3 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue