pyrogram-client 0.0.11.dev0__tar.gz → 0.0.13__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 (22) hide show
  1. {pyrogram_client-0.0.11.dev0/pyrogram_client.egg-info → pyrogram_client-0.0.13}/PKG-INFO +2 -2
  2. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/pyproject.toml +1 -1
  3. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/pyro_client/client/base.py +2 -2
  4. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/pyro_client/client/file.py +2 -2
  5. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/pyro_client/client/filler.py +2 -2
  6. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/pyro_client/storage.py +1 -2
  7. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13/pyrogram_client.egg-info}/PKG-INFO +2 -2
  8. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/pyrogram_client.egg-info/SOURCES.txt +2 -0
  9. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/pyrogram_client.egg-info/requires.txt +1 -1
  10. pyrogram_client-0.0.13/pyrogram_client.egg-info/scm_file_list.json +17 -0
  11. pyrogram_client-0.0.13/pyrogram_client.egg-info/scm_version.json +8 -0
  12. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/.env.sample +0 -0
  13. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/.gitignore +0 -0
  14. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/.pre-commit-config.yaml +0 -0
  15. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/makefile +0 -0
  16. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/pyro_client/client/bot.py +0 -0
  17. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/pyro_client/client/dc.json +0 -0
  18. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/pyro_client/client/user.py +0 -0
  19. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/pyro_client/loader.py +0 -0
  20. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/pyrogram_client.egg-info/dependency_links.txt +0 -0
  21. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/pyrogram_client.egg-info/top_level.txt +0 -0
  22. {pyrogram_client-0.0.11.dev0 → pyrogram_client-0.0.13}/setup.cfg +0 -0
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyrogram-client
3
- Version: 0.0.11.dev0
3
+ Version: 0.0.13
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
7
7
  Requires-Python: >=3.11
8
- Requires-Dist: kurigram
8
+ Requires-Dist: xn-pyrogram>=2.2.24
9
9
  Requires-Dist: tgcrypto
10
10
  Requires-Dist: xn-auth
11
11
  Provides-Extra: dev
@@ -7,7 +7,7 @@ authors = [
7
7
  dynamic = ["version"]
8
8
 
9
9
  dependencies = [
10
- "kurigram",
10
+ "xn-pyrogram>=2.2.24",
11
11
  "tgcrypto",
12
12
  "xn-auth",
13
13
  ]
@@ -44,14 +44,14 @@ class BaseClient(Client):
44
44
  app = await App[20373304]
45
45
  username, _ = await Username.get_or_create(id=self.uid)
46
46
  bt = self.bot_token and self.bot_token.split(":")[1]
47
- session = await Session.create(id=self.uid, api=app, user=username, is_bot=bt)
47
+ session = await Session.create(id=self.uid, api=app, user=username, is_bot=bt, dc_id=2)
48
48
  self.api_id = app.id
49
49
  self.api_hash = app.hsh
50
50
  # await session.fetch_related("api")
51
51
  else:
52
- self.storage.session = session
53
52
  self.api_id = session.api.id
54
53
  self.api_hash = session.api.hsh
54
+ self.storage.session = session
55
55
 
56
56
  async def start(self, use_qr: bool = False, except_ids: list[int] = None):
57
57
  if not self.is_connected:
@@ -17,8 +17,8 @@ from pyrogram.raw.types import (
17
17
  )
18
18
  from pyrogram.raw.types.upload import File
19
19
  from pyrogram.types import Message
20
- from xync_schema import models
21
- from xync_schema.enums import FileType
20
+ from xync_db import models
21
+ from xync_db.enums import FileType
22
22
 
23
23
  from pyro_client.client.bot import BotClient
24
24
 
@@ -14,8 +14,8 @@ from pyrogram.types import (
14
14
  InlineKeyboardButton,
15
15
  InlineKeyboardMarkup,
16
16
  )
17
- from xync_schema import models
18
- from xync_schema.enums import SynonymType, Party, Slip, AbuserType, NameType
17
+ from xync_db import models
18
+ from xync_db.enums import SynonymType, Party, Slip, AbuserType, NameType
19
19
 
20
20
  from pyro_client.client.file import FileClient
21
21
 
@@ -27,8 +27,7 @@ class PgStorage(Storage):
27
27
 
28
28
  async def open(self):
29
29
  self.sid = int(self.name)
30
- if not self.session:
31
- self.session = await Session[self.sid]
30
+ assert self.session.id == self.sid
32
31
 
33
32
  async def save(self):
34
33
  await self.date(int(time.time()))
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyrogram-client
3
- Version: 0.0.11.dev0
3
+ Version: 0.0.13
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
7
7
  Requires-Python: >=3.11
8
- Requires-Dist: kurigram
8
+ Requires-Dist: xn-pyrogram>=2.2.24
9
9
  Requires-Dist: tgcrypto
10
10
  Requires-Dist: xn-auth
11
11
  Provides-Extra: dev
@@ -15,4 +15,6 @@ pyrogram_client.egg-info/PKG-INFO
15
15
  pyrogram_client.egg-info/SOURCES.txt
16
16
  pyrogram_client.egg-info/dependency_links.txt
17
17
  pyrogram_client.egg-info/requires.txt
18
+ pyrogram_client.egg-info/scm_file_list.json
19
+ pyrogram_client.egg-info/scm_version.json
18
20
  pyrogram_client.egg-info/top_level.txt
@@ -1,4 +1,4 @@
1
- kurigram
1
+ xn-pyrogram>=2.2.24
2
2
  tgcrypto
3
3
  xn-auth
4
4
 
@@ -0,0 +1,17 @@
1
+ {
2
+ "files": [
3
+ ".env.sample",
4
+ ".pre-commit-config.yaml",
5
+ "makefile",
6
+ "pyproject.toml",
7
+ ".gitignore",
8
+ "pyro_client/loader.py",
9
+ "pyro_client/storage.py",
10
+ "pyro_client/client/dc.json",
11
+ "pyro_client/client/user.py",
12
+ "pyro_client/client/file.py",
13
+ "pyro_client/client/bot.py",
14
+ "pyro_client/client/filler.py",
15
+ "pyro_client/client/base.py"
16
+ ]
17
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "0.0.13",
3
+ "distance": 0,
4
+ "node": "g63537a1d01b1ac382662c06e29e344fa63712f6b",
5
+ "dirty": false,
6
+ "branch": "main",
7
+ "node_date": "2026-06-23"
8
+ }