mirror of https://github.com/coddrago/Heroku
1.1.12: Add modules' attr `self._tg_id` which represents the client id
parent
5ef3647643
commit
d2d7674575
|
@ -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)
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
"""Represents current userbot version"""
|
||||
__version__ = (1, 1, 11)
|
||||
__version__ = (1, 1, 12)
|
||||
|
|
Loading…
Reference in New Issue