maxapi-python 1.1.1__tar.gz → 1.1.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 (41) hide show
  1. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/PKG-INFO +1 -1
  2. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/pyproject.toml +1 -1
  3. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/core.py +1 -1
  4. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/types.py +2 -2
  5. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/.github/FUNDING.yml +0 -0
  6. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/.github/workflows/publish.yml +0 -0
  7. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/.gitignore +0 -0
  8. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/LICENSE +0 -0
  9. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/README.md +0 -0
  10. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/assets/icon.svg +0 -0
  11. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/assets/logo.svg +0 -0
  12. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/docs/api.md +0 -0
  13. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/docs/assets/icon.svg +0 -0
  14. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/docs/examples.md +0 -0
  15. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/docs/index.md +0 -0
  16. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/examples/example.py +0 -0
  17. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/mkdocs.yml +0 -0
  18. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/ruff.toml +0 -0
  19. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/scripts/build.py +0 -0
  20. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/__init__.py +0 -0
  21. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/crud.py +0 -0
  22. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/exceptions.py +0 -0
  23. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/files.py +0 -0
  24. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/filters.py +0 -0
  25. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/interfaces.py +0 -0
  26. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/mixins/__init__.py +0 -0
  27. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/mixins/auth.py +0 -0
  28. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/mixins/channel.py +0 -0
  29. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/mixins/group.py +0 -0
  30. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/mixins/handler.py +0 -0
  31. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/mixins/message.py +0 -0
  32. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/mixins/self.py +0 -0
  33. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/mixins/socket.py +0 -0
  34. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/mixins/telemetry.py +0 -0
  35. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/mixins/user.py +0 -0
  36. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/mixins/websocket.py +0 -0
  37. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/models.py +0 -0
  38. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/navigation.py +0 -0
  39. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/payloads.py +0 -0
  40. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/static.py +0 -0
  41. {maxapi_python-1.1.1 → maxapi_python-1.1.3}/src/pymax/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maxapi-python
3
- Version: 1.1.1
3
+ Version: 1.1.3
4
4
  Summary: Python wrapper для API мессенджера Max
5
5
  Project-URL: Homepage, https://github.com/noxzion/PyMax
6
6
  Project-URL: Repository, https://github.com/noxzion/PyMax
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "maxapi-python"
3
- version = "1.1.1"
3
+ version = "1.1.3"
4
4
  description = "Python wrapper для API мессенджера Max"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -10,7 +10,7 @@ from typing import TYPE_CHECKING, Any
10
10
  from typing_extensions import override
11
11
 
12
12
  from .crud import Database
13
- from .exceptions import InvalidPhoneError
13
+ from .exceptions import InvalidPhoneError, WebSocketNotConnectedError
14
14
  from .mixins import ApiMixin, SocketMixin, WebSocketMixin
15
15
  from .static import Constants
16
16
  from .types import Channel, Chat, Dialog, Me, Message, User
@@ -47,7 +47,7 @@ class PhotoAttach:
47
47
  width: int,
48
48
  photo_id: int,
49
49
  photo_token: str,
50
- preview_data: str,
50
+ preview_data: str | None,
51
51
  type: AttachType,
52
52
  ) -> None:
53
53
  self.base_url = base_url
@@ -66,7 +66,7 @@ class PhotoAttach:
66
66
  width=data["width"],
67
67
  photo_id=data["photoId"],
68
68
  photo_token=data["photoToken"],
69
- preview_data=data["previewData"],
69
+ preview_data=data.get("previewData"),
70
70
  type=AttachType(data["_type"]),
71
71
  )
72
72
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes