pyrogram-client 0.0.2__tar.gz → 0.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/.pre-commit-config.yaml +1 -1
  2. {pyrogram_client-0.0.2/pyrogram_client.egg-info → pyrogram_client-0.0.3}/PKG-INFO +1 -1
  3. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/pyro_client/client/single.py +3 -1
  4. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3/pyrogram_client.egg-info}/PKG-INFO +1 -1
  5. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/.env.sample +0 -0
  6. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/.gitignore +0 -0
  7. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/makefile +0 -0
  8. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/pyproject.toml +0 -0
  9. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/pyro_client/client/base.py +0 -0
  10. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/pyro_client/client/bot.py +0 -0
  11. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/pyro_client/client/dc.json +0 -0
  12. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/pyro_client/client/file.py +0 -0
  13. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/pyro_client/client/user.py +0 -0
  14. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/pyro_client/loader.py +0 -0
  15. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/pyro_client/storage.py +0 -0
  16. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/pyrogram_client.egg-info/SOURCES.txt +0 -0
  17. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/pyrogram_client.egg-info/dependency_links.txt +0 -0
  18. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/pyrogram_client.egg-info/requires.txt +0 -0
  19. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/pyrogram_client.egg-info/top_level.txt +0 -0
  20. {pyrogram_client-0.0.2 → pyrogram_client-0.0.3}/setup.cfg +0 -0
@@ -14,7 +14,7 @@ repos:
14
14
  - id: build
15
15
  name: build
16
16
  ### build & upload package only for "main" branch push
17
- entry: bash -c 'echo $PRE_COMMIT_LOCAL_BRANCH | grep /master && make twine || echo 0'
17
+ entry: bash -c 'echo $PRE_COMMIT_LOCAL_BRANCH | grep /main && make twine || echo 0'
18
18
  language: system
19
19
  pass_filenames: false
20
20
  verbose: true
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyrogram-client
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Author-email: Mike Artemiev <mixartemev@gmail.com>
5
5
  Project-URL: Homepage, https://gitlab.com/XyncNet/pyro-client
6
6
  Project-URL: Repository, https://gitlab.com/XyncNet/pyro-client
@@ -9,13 +9,15 @@ class SingleMeta(type):
9
9
 
10
10
  async def __call__(cls, uid: int | str, bot=None):
11
11
  if cls not in cls._instances:
12
+ prx = ...
12
13
  bt = None
13
14
  if isinstance(uid, str):
14
15
  if len(ub := uid.split(":")) == 2:
15
16
  uid, bt = ub
17
+ prx = None
16
18
  if uid.isnumeric():
17
19
  uid = int(uid)
18
- sess = await cls._sess(uid, bt, None if bot else ...)
20
+ sess = await cls._sess(uid, bt, prx)
19
21
  cls._instances[cls] = super().__call__(sess, bot)
20
22
  return cls._instances[cls]
21
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyrogram-client
3
- Version: 0.0.2
3
+ Version: 0.0.3
4
4
  Author-email: Mike Artemiev <mixartemev@gmail.com>
5
5
  Project-URL: Homepage, https://gitlab.com/XyncNet/pyro-client
6
6
  Project-URL: Repository, https://gitlab.com/XyncNet/pyro-client