Pytdbot 0.10.0.dev8__py3-none-any.whl → 0.10.0.dev9__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.dev8"
16
+ __version__ = "0.10.0.dev9"
17
17
  __copyright__ = "Copyright (c) 2022-2026 Pytdbot, AYMENJD"
18
18
  __license__ = "MIT License"
19
19
 
@@ -410,7 +410,7 @@ class Methods(TDLibFunctions):
410
410
  return parse
411
411
  caption = parse
412
412
  else:
413
- caption = FormattedText(caption)
413
+ caption = FormattedText(text=caption)
414
414
 
415
415
  if isinstance(animation, str):
416
416
  animation = InputFileRemote(id=animation)
@@ -531,7 +531,7 @@ class Methods(TDLibFunctions):
531
531
  return parse
532
532
  caption = parse
533
533
  else:
534
- caption = FormattedText(caption)
534
+ caption = FormattedText(text=caption)
535
535
 
536
536
  if isinstance(audio, str):
537
537
  audio = InputFileRemote(id=audio)
@@ -641,7 +641,7 @@ class Methods(TDLibFunctions):
641
641
  return parse
642
642
  caption = parse
643
643
  else:
644
- caption = FormattedText(caption)
644
+ caption = FormattedText(text=caption)
645
645
 
646
646
  if isinstance(document, str):
647
647
  document = InputFileRemote(id=document)
@@ -864,7 +864,7 @@ class Methods(TDLibFunctions):
864
864
  return parse
865
865
  caption = parse
866
866
  else:
867
- caption = FormattedText(caption)
867
+ caption = FormattedText(text=caption)
868
868
 
869
869
  if isinstance(photo, str):
870
870
  photo = InputFileRemote(id=photo)
@@ -26,8 +26,7 @@ def obj_to_dict(obj: Any) -> Any:
26
26
 
27
27
  def dict_to_obj(dict_obj: Any, client: Any = None) -> Any:
28
28
  if isinstance(dict_obj, dict):
29
- if "@type" in dict_obj:
30
- td_type = dict_obj["@type"]
29
+ if td_type := dict_obj.get("@type"):
31
30
  obj_type = _type_cache.get(td_type)
32
31
  if obj_type is None:
33
32
  obj_type = getattr(types, utils.to_camel_case(td_type))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Pytdbot
3
- Version: 0.10.0.dev8
3
+ Version: 0.10.0.dev9
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,4 +1,4 @@
1
- pytdbot/__init__.py,sha256=ixA3w-Jz_WTRNo2sVxhAhTg4xjghfUY1nKFHMz0ceWk,424
1
+ pytdbot/__init__.py,sha256=oW5DThW6DXfL7j6qgGUYbdKY_8yfTYjHxRW57v8VqXo,424
2
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
@@ -8,7 +8,7 @@ pytdbot/handlers/decorators.py,sha256=qZFeYbPMh07aLUtLfNnlenvz8x4Z33L48ASWC8mqEK
8
8
  pytdbot/handlers/handler.py,sha256=XILBjMhpwvPcVUssv2XP_tsoMlo9qjgqTvNHrftnOZI,1295
9
9
  pytdbot/handlers/td_updates.py,sha256=tlu9BKefvrOk09954iZsnxxEKh1Oio_N7xyC8oKkchw,385216
10
10
  pytdbot/methods/__init__.py,sha256=naVHl8-m9DU43Z_QUFYQOPes6NDz86JLWjb2l0q59ws,53
11
- pytdbot/methods/methods.py,sha256=lDXNkx3XFxmCtM8lqWU5bIZkcmU15OT8Oz3XbQCANCo,65398
11
+ pytdbot/methods/methods.py,sha256=ZcRH68P5w2Qzpk1r_JyhrUjwDLCuL0PF8d6dLuHQPmA,65418
12
12
  pytdbot/methods/td_functions.py,sha256=AyO4YqN-2g3D-CrZQWktcwhpQEfo5nV_CSv8Tw2LtIo,929512
13
13
  pytdbot/tdjson/__init__.py,sha256=8dDx6wH4IlUMQqvUrecAUafrY7-E2fvF6ZIYvuJmQ_A,50
14
14
  pytdbot/tdjson/tdjson.py,sha256=e-qEwqAl_DxnpowTp_Be2WwhEbvbx8eNAM6n7RKSKEw,5303
@@ -28,12 +28,12 @@ pytdbot/utils/__init__.py,sha256=ttnEmS35a_DiHCGFtExscZZB-KB4xWWv5o413PGtiDM,140
28
28
  pytdbot/utils/albums.py,sha256=xl8wzTju2Rim1uH0LjlsW1NxkKrstsZCD3oCWu-O_gE,513
29
29
  pytdbot/utils/escape.py,sha256=D5ZL3xBAMZDvAb_GLYk-nbk_H7RbnRcBsKt2NOOoC0o,1217
30
30
  pytdbot/utils/json_utils.py,sha256=YLZt5Jc5w-ZFaW5QHTwH-qdvtFUXOcWwp1-cMghCcNM,2217
31
- pytdbot/utils/obj_encoder.py,sha256=NeZxXQlj4cUMvfa1kFT1516xz4sgKOHexYbGVJSQAbM,1460
31
+ pytdbot/utils/obj_encoder.py,sha256=TuAfx0xt3XOItSMwR6u4ufYqVzwM4exXqFzqVw6jcJo,1433
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.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,,
35
+ pytdbot-0.10.0.dev9.dist-info/licenses/LICENSE,sha256=Y77J1RSAYfRz6kBjIWq81eWgLFQ_Su_b1l5rWthsHCM,1078
36
+ pytdbot-0.10.0.dev9.dist-info/METADATA,sha256=oDmblIQxZ1Hqis_0OdddX5_eaMwF1rHsn5A6IsZxbXA,11026
37
+ pytdbot-0.10.0.dev9.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
38
+ pytdbot-0.10.0.dev9.dist-info/top_level.txt,sha256=EkLKG-BZysNAC-td3TJQQAomlT6YsvKWwei1Pzk6Oqg,8
39
+ pytdbot-0.10.0.dev9.dist-info/RECORD,,