Pytdbot 0.8.7__tar.gz → 0.8.8__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 (57) hide show
  1. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/PKG-INFO +2 -2
  2. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/Pytdbot.egg-info/PKG-INFO +2 -2
  3. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/README.md +1 -1
  4. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/__init__.py +1 -1
  5. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/client.py +3 -13
  6. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/handlers/updates.py +945 -97
  7. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/methods/methods.py +60 -14
  8. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/methods/tdlibfunctions.py +6145 -4084
  9. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/td_api.json +4845 -705
  10. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/td_api.tl +1897 -548
  11. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/update/update.py +44 -3
  12. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/LICENSE +0 -0
  13. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/MANIFEST.in +0 -0
  14. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/Pytdbot.egg-info/SOURCES.txt +0 -0
  15. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/Pytdbot.egg-info/dependency_links.txt +0 -0
  16. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/Pytdbot.egg-info/requires.txt +0 -0
  17. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/Pytdbot.egg-info/top_level.txt +0 -0
  18. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/exception/__init__.py +0 -0
  19. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/filters.py +0 -0
  20. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/generate_files.py +0 -0
  21. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/generate_json.py +0 -0
  22. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/handlers/__init__.py +0 -0
  23. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/handlers/decorators.py +0 -0
  24. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/handlers/handler.py +0 -0
  25. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/methods/__init__.py +0 -0
  26. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/tdjson/__init__.py +0 -0
  27. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/tdjson/tdjson.py +0 -0
  28. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/__init__.py +0 -0
  29. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/buttons/__init__.py +0 -0
  30. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/buttons/base.py +0 -0
  31. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/buttons/force_reply.py +0 -0
  32. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/buttons/inline_keyboard.py +0 -0
  33. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/buttons/remove_keyboard.py +0 -0
  34. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/buttons/show_keyboard.py +0 -0
  35. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/inputfile/__init__.py +0 -0
  36. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/inputfile/base.py +0 -0
  37. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/inputfile/input_file_generated.py +0 -0
  38. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/inputfile/input_file_id.py +0 -0
  39. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/inputfile/input_file_local.py +0 -0
  40. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/inputfile/input_file_remote.py +0 -0
  41. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/inputfile/input_thumbnail.py +0 -0
  42. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/logstream/__init__.py +0 -0
  43. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/logstream/base.py +0 -0
  44. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/logstream/log_stream_default.py +0 -0
  45. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/logstream/log_stream_empty.py +0 -0
  46. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/logstream/log_stream_file.py +0 -0
  47. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/plugins/__init__.py +0 -0
  48. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/result/__init__.py +0 -0
  49. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/result/result.py +0 -0
  50. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/update/__init__.py +0 -0
  51. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/types/update/chatActions.py +0 -0
  52. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/utils/__init__.py +0 -0
  53. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/utils/escape.py +0 -0
  54. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/pytdbot/utils/text_format.py +0 -0
  55. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/requirements.txt +0 -0
  56. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/setup.cfg +0 -0
  57. {Pytdbot-0.8.7 → Pytdbot-0.8.8}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Pytdbot
3
- Version: 0.8.7
3
+ Version: 0.8.8
4
4
  Summary: Easy-to-use asynchronous TDLib wrapper for Python.
5
5
  Home-page: https://github.com/pytdbot/client
6
6
  Author: AYMEN Mohammed
@@ -14,7 +14,7 @@ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
16
 
17
- # Pytdbot [![Version](https://img.shields.io/pypi/v/Pytdbot?style=flat&logo=pypi)](https://pypi.org/project/Pytdbot) [![TDLib version](https://img.shields.io/badge/TDLib-v1.8.21-blue?logo=telegram)](https://github.com/tdlib/td) [![Downloads](https://static.pepy.tech/personalized-badge/pytdbot?period=month&units=none&left_color=grey&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/pytdbot)
17
+ # Pytdbot [![Version](https://img.shields.io/pypi/v/Pytdbot?style=flat&logo=pypi)](https://pypi.org/project/Pytdbot) [![TDLib version](https://img.shields.io/badge/TDLib-v1.8.29-blue?logo=telegram)](https://github.com/tdlib/td) [![Downloads](https://static.pepy.tech/personalized-badge/pytdbot?period=month&units=none&left_color=grey&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/pytdbot)
18
18
 
19
19
  Pytdbot (Python TDLib) is an asynchronous [**TDLib**](https://github.com/tdlib/td) wrapper for **Telegram** users/bots written in **Python**.
20
20
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Pytdbot
3
- Version: 0.8.7
3
+ Version: 0.8.8
4
4
  Summary: Easy-to-use asynchronous TDLib wrapper for Python.
5
5
  Home-page: https://github.com/pytdbot/client
6
6
  Author: AYMEN Mohammed
@@ -14,7 +14,7 @@ Requires-Python: >=3.9
14
14
  Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
16
 
17
- # Pytdbot [![Version](https://img.shields.io/pypi/v/Pytdbot?style=flat&logo=pypi)](https://pypi.org/project/Pytdbot) [![TDLib version](https://img.shields.io/badge/TDLib-v1.8.21-blue?logo=telegram)](https://github.com/tdlib/td) [![Downloads](https://static.pepy.tech/personalized-badge/pytdbot?period=month&units=none&left_color=grey&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/pytdbot)
17
+ # Pytdbot [![Version](https://img.shields.io/pypi/v/Pytdbot?style=flat&logo=pypi)](https://pypi.org/project/Pytdbot) [![TDLib version](https://img.shields.io/badge/TDLib-v1.8.29-blue?logo=telegram)](https://github.com/tdlib/td) [![Downloads](https://static.pepy.tech/personalized-badge/pytdbot?period=month&units=none&left_color=grey&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/pytdbot)
18
18
 
19
19
  Pytdbot (Python TDLib) is an asynchronous [**TDLib**](https://github.com/tdlib/td) wrapper for **Telegram** users/bots written in **Python**.
20
20
 
@@ -1,4 +1,4 @@
1
- # Pytdbot [![Version](https://img.shields.io/pypi/v/Pytdbot?style=flat&logo=pypi)](https://pypi.org/project/Pytdbot) [![TDLib version](https://img.shields.io/badge/TDLib-v1.8.21-blue?logo=telegram)](https://github.com/tdlib/td) [![Downloads](https://static.pepy.tech/personalized-badge/pytdbot?period=month&units=none&left_color=grey&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/pytdbot)
1
+ # Pytdbot [![Version](https://img.shields.io/pypi/v/Pytdbot?style=flat&logo=pypi)](https://pypi.org/project/Pytdbot) [![TDLib version](https://img.shields.io/badge/TDLib-v1.8.29-blue?logo=telegram)](https://github.com/tdlib/td) [![Downloads](https://static.pepy.tech/personalized-badge/pytdbot?period=month&units=none&left_color=grey&right_color=brightgreen&left_text=Downloads)](https://pepy.tech/project/pytdbot)
2
2
 
3
3
  Pytdbot (Python TDLib) is an asynchronous [**TDLib**](https://github.com/tdlib/td) wrapper for **Telegram** users/bots written in **Python**.
4
4
 
@@ -2,7 +2,7 @@ from . import types, utils, filters, exception
2
2
  from .tdjson import TdJson
3
3
  from .client import Client
4
4
 
5
- __version__ = "0.8.7"
5
+ __version__ = "0.8.8"
6
6
  __copyright__ = "Copyright (c) 2022-2023 AYMEN Mohammed ~ https://github.com/AYMENJD"
7
7
  __license__ = "MIT License"
8
8
 
@@ -77,12 +77,6 @@ class Client(Decorators, Methods):
77
77
  use_message_database (``bool``, *optional*):
78
78
  If set to true, the library will maintain a cache of chats and messages. Implies use_chat_info_database. Default is ``True``
79
79
 
80
- enable_storage_optimizer (``bool``, *optional*):
81
- If set to true, old files will automatically be deleted. Default is ``True``
82
-
83
- ignore_file_names (``bool``, *optional*):
84
- If set to true, original file names will be ignored. Otherwise, downloaded files will be saved under names as close as possible to the original name. Default is ``False``
85
-
86
80
  loop (:py:class:`asyncio.AbstractEventLoop`, *optional*):
87
81
  Event loop. Default is ``None`` (auto-detect)
88
82
 
@@ -120,8 +114,6 @@ class Client(Decorators, Methods):
120
114
  use_file_database: bool = True,
121
115
  use_chat_info_database: bool = True,
122
116
  use_message_database: bool = True,
123
- enable_storage_optimizer: bool = True,
124
- ignore_file_names: bool = False,
125
117
  loop: asyncio.AbstractEventLoop = None,
126
118
  options: dict = None,
127
119
  sleep_threshold: int = None,
@@ -149,8 +141,6 @@ class Client(Decorators, Methods):
149
141
  self.use_file_database = use_file_database
150
142
  self.use_chat_info_database = use_chat_info_database
151
143
  self.use_message_database = use_message_database
152
- self.enable_storage_optimizer = enable_storage_optimizer
153
- self.ignore_file_names = ignore_file_names
154
144
  self.td_options = options
155
145
  self.sleep_threshold = (
156
146
  sleep_threshold if isinstance(sleep_threshold, int) else 0
@@ -632,7 +622,9 @@ class Client(Decorators, Methods):
632
622
 
633
623
  while self.is_running:
634
624
  update = await self.loop.run_in_executor(
635
- thread, self._tdjson.receive, 100000.0 # Seconds
625
+ thread,
626
+ self._tdjson.receive,
627
+ 100000.0, # Seconds
636
628
  )
637
629
  if update is None:
638
630
  continue
@@ -775,8 +767,6 @@ class Client(Decorators, Methods):
775
767
  use_message_database=self.use_message_database,
776
768
  use_secret_chats=False,
777
769
  system_version=None,
778
- enable_storage_optimizer=self.enable_storage_optimizer,
779
- ignore_file_names=self.ignore_file_names,
780
770
  files_directory=self.files_directory,
781
771
  database_encryption_key=b64encode(self.__database_encryption_key).decode(
782
772
  "utf-8"