Pytdbot 0.10.0.dev6__py3-none-any.whl → 0.10.0.dev8__py3-none-any.whl

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.
pytdbot/__init__.py CHANGED
@@ -13,7 +13,7 @@ __all__ = [
13
13
  "Client",
14
14
  ]
15
15
 
16
- __version__ = "0.10.0.dev6"
16
+ __version__ = "0.10.0.dev8"
17
17
  __copyright__ = "Copyright (c) 2022-2026 Pytdbot, AYMENJD"
18
18
  __license__ = "MIT License"
19
19
 
pytdbot/client.py CHANGED
@@ -7,7 +7,6 @@ from collections.abc import Callable
7
7
  from importlib import import_module
8
8
  from importlib import reload as reload_module
9
9
  from inspect import iscoroutinefunction
10
- from json import dumps
11
10
  from logging import DEBUG, getLogger
12
11
  from os.path import join as join_path
13
12
  from pathlib import Path
@@ -37,6 +36,7 @@ from .utils import (
37
36
  json_dumps,
38
37
  json_loads,
39
38
  obj_to_dict,
39
+ obj_to_json,
40
40
  )
41
41
 
42
42
 
@@ -510,7 +510,7 @@ class Client(Decorators, Methods):
510
510
  if (
511
511
  self.logger.root.level >= DEBUG or self.logger.level >= DEBUG
512
512
  ): # dumping all requests may create performance issues
513
- self.logger.debug(f"Sending: {dumps(request, indent=4)}")
513
+ self.logger.debug(f"Sending: {obj_to_json(request, indent=4)}")
514
514
 
515
515
  is_chat_attempted_load = request_method == "getchat"
516
516
  is_message_attempted_load = request_method in self.get_message_methods
@@ -843,7 +843,7 @@ class Client(Decorators, Methods):
843
843
 
844
844
  if is_debug:
845
845
  self.logger.debug(
846
- f"Received result for {result_id}: {dumps(update, indent=4)}"
846
+ f"Received result for {result_id}: {obj_to_json(update, indent=4)}"
847
847
  )
848
848
 
849
849
  if result_id and (result := self._results.pop(result_id, None)):
@@ -855,7 +855,7 @@ class Client(Decorators, Methods):
855
855
  return
856
856
 
857
857
  if is_debug:
858
- self.logger.debug(f"Received: {dumps(update, indent=4)}")
858
+ self.logger.debug(f"Received: {obj_to_json(update, indent=4)}")
859
859
 
860
860
  update_obj = dict_to_obj(update, self)
861
861
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Pytdbot
3
- Version: 0.10.0.dev6
3
+ Version: 0.10.0.dev8
4
4
  Summary: Easy-to-use asynchronous TDLib wrapper for Python.
5
5
  Author-email: AYMEN A <let.me.code.safe@gmail.com>
6
6
  License-Expression: MIT
@@ -1,5 +1,5 @@
1
- pytdbot/__init__.py,sha256=fAOXY9Ym3mogUkdcHUqriTb9-7a0Dqak2bS7-YzDFbU,424
2
- pytdbot/client.py,sha256=c57DSHi2oH5Fx9HurQue5V2L3AANrFrliuV48FtDi6E,45940
1
+ pytdbot/__init__.py,sha256=ixA3w-Jz_WTRNo2sVxhAhTg4xjghfUY1nKFHMz0ceWk,424
2
+ pytdbot/client.py,sha256=jbgKfZBQwyoWnr8ltT0SQxdXH_D6kPbjoYKIaY8OnWc,45952
3
3
  pytdbot/client_manager.py,sha256=jWWosyRY57XAL8u2UmsE9ftpLHhJG8moJxeSIvVjgFs,6515
4
4
  pytdbot/filters.py,sha256=V6b09AGNVrw4ipgRMFYD9jJKAcNo9_WIJ-bSaGwSyf4,1549
5
5
  pytdbot/exception/__init__.py,sha256=KCO1OF5xjKz2k9nUMzSGUITva-Y1Mb4N54kE-MEtnsg,783
@@ -32,8 +32,8 @@ pytdbot/utils/obj_encoder.py,sha256=NeZxXQlj4cUMvfa1kFT1516xz4sgKOHexYbGVJSQAbM,
32
32
  pytdbot/utils/strings.py,sha256=NjTArf4zkOV3j2kerJfbA47lmuwZ20Xh_ppZ-pETQ0c,1203
33
33
  pytdbot/utils/text_format.py,sha256=g-PvtYr0dvltCa120IcEMff6LnBeI_F_6m7anYtEFaE,9762
34
34
  pytdbot/utils/webapps.py,sha256=qD8j3wpgAn2KgxEZMoh7k8FEom8JNiPN3rKweAS2lGw,2428
35
- pytdbot-0.10.0.dev6.dist-info/licenses/LICENSE,sha256=Y77J1RSAYfRz6kBjIWq81eWgLFQ_Su_b1l5rWthsHCM,1078
36
- pytdbot-0.10.0.dev6.dist-info/METADATA,sha256=r1Rg4h4SjTkxWVL9M_-7msCEuu-RmRJVDCBM3SLN6dA,11026
37
- pytdbot-0.10.0.dev6.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
38
- pytdbot-0.10.0.dev6.dist-info/top_level.txt,sha256=EkLKG-BZysNAC-td3TJQQAomlT6YsvKWwei1Pzk6Oqg,8
39
- pytdbot-0.10.0.dev6.dist-info/RECORD,,
35
+ pytdbot-0.10.0.dev8.dist-info/licenses/LICENSE,sha256=Y77J1RSAYfRz6kBjIWq81eWgLFQ_Su_b1l5rWthsHCM,1078
36
+ pytdbot-0.10.0.dev8.dist-info/METADATA,sha256=B24kUquAvGEQ_u2yF9XWhZ8x4EUYYR2m6Th3wAlP05E,11026
37
+ pytdbot-0.10.0.dev8.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
38
+ pytdbot-0.10.0.dev8.dist-info/top_level.txt,sha256=EkLKG-BZysNAC-td3TJQQAomlT6YsvKWwei1Pzk6Oqg,8
39
+ pytdbot-0.10.0.dev8.dist-info/RECORD,,