1.1.12: Add modules' attr `self._tg_id` which represents the client id

pull/1/head
hikariatama 2022-05-01 06:52:18 +00:00
parent 5ef3647643
commit d2d7674575
2 changed files with 6 additions and 1 deletions

View File

@ -630,6 +630,11 @@ class Modules:
mod._client = client
if not hasattr(client, "_tg_id"):
client._tg_id = (await client.get_me()).id
mod._tg_id = client._tg_id
mod.fast_upload = functools.partial(upload_file, _client=client)
mod.fast_download = functools.partial(download_file, _client=client)

View File

@ -1,2 +1,2 @@
"""Represents current userbot version"""
__version__ = (1, 1, 11)
__version__ = (1, 1, 12)