ferogram 0.2.1__tar.gz → 0.2.2__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 (94) hide show
  1. {ferogram-0.2.1 → ferogram-0.2.2}/Cargo.lock +1 -1
  2. {ferogram-0.2.1 → ferogram-0.2.2}/Cargo.toml +1 -1
  3. {ferogram-0.2.1 → ferogram-0.2.2}/PKG-INFO +1 -1
  4. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/__init__.py +2 -1
  5. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/codegen.py +28 -3
  6. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/__init__.py +2 -1
  7. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/_tl_schema.py +61 -17
  8. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/__init__.py +5 -2
  9. ferogram-0.2.2/ferogram/raw/generated/functions/aicompose.py +173 -0
  10. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/bots.py +44 -2
  11. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/contacts.py +5 -2
  12. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/messages.py +101 -5
  13. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/stats.py +26 -2
  14. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/__init__.py +5 -2
  15. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/_base.py +245 -4
  16. ferogram-0.2.2/ferogram/raw/generated/types/aicompose.py +58 -0
  17. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/auth.py +5 -2
  18. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/bots.py +23 -2
  19. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/stats.py +20 -2
  20. {ferogram-0.2.1 → ferogram-0.2.2}/pyproject.toml +1 -1
  21. {ferogram-0.2.1 → ferogram-0.2.2}/.github/workflows/publish.yml +0 -0
  22. {ferogram-0.2.1 → ferogram-0.2.2}/.gitignore +0 -0
  23. {ferogram-0.2.1 → ferogram-0.2.2}/FEATURES.md +0 -0
  24. {ferogram-0.2.1 → ferogram-0.2.2}/LICENSE-APACHE +0 -0
  25. {ferogram-0.2.1 → ferogram-0.2.2}/LICENSE-MIT +0 -0
  26. {ferogram-0.2.1 → ferogram-0.2.2}/README.md +0 -0
  27. {ferogram-0.2.1 → ferogram-0.2.2}/examples/admin_tools.py +0 -0
  28. {ferogram-0.2.1 → ferogram-0.2.2}/examples/command_bot.py +0 -0
  29. {ferogram-0.2.1 → ferogram-0.2.2}/examples/echo_bot.py +0 -0
  30. {ferogram-0.2.1 → ferogram-0.2.2}/examples/group_management.py +0 -0
  31. {ferogram-0.2.1 → ferogram-0.2.2}/examples/media_bot.py +0 -0
  32. {ferogram-0.2.1 → ferogram-0.2.2}/examples/raw_invoke.py +0 -0
  33. {ferogram-0.2.1 → ferogram-0.2.2}/examples/search_bot.py +0 -0
  34. {ferogram-0.2.1 → ferogram-0.2.2}/examples/send_hi.py +0 -0
  35. {ferogram-0.2.1 → ferogram-0.2.2}/examples/send_media.py +0 -0
  36. {ferogram-0.2.1 → ferogram-0.2.2}/examples/send_message.py +0 -0
  37. {ferogram-0.2.1 → ferogram-0.2.2}/examples/update_handlers.py +0 -0
  38. {ferogram-0.2.1 → ferogram-0.2.2}/examples/user_management.py +0 -0
  39. {ferogram-0.2.1 → ferogram-0.2.2}/examples/userbot.py +0 -0
  40. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/__init__.py +0 -0
  41. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/client.py +0 -0
  42. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/filters.py +0 -0
  43. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/logging.py +0 -0
  44. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/py.typed +0 -0
  45. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/api/__init__.py +0 -0
  46. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/api/functions.py +0 -0
  47. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/api/types.py +0 -0
  48. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/account.py +2 -2
  49. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/auth.py +2 -2
  50. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/channels.py +2 -2
  51. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/chatlists.py +2 -2
  52. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/folders.py +2 -2
  53. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/fragment.py +2 -2
  54. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/help.py +2 -2
  55. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/langpack.py +2 -2
  56. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/payments.py +2 -2
  57. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/phone.py +2 -2
  58. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/photos.py +2 -2
  59. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/premium.py +2 -2
  60. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/smsjobs.py +2 -2
  61. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/stickers.py +2 -2
  62. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/stories.py +2 -2
  63. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/updates.py +2 -2
  64. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/upload.py +2 -2
  65. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/functions/users.py +2 -2
  66. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/account.py +2 -2
  67. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/channels.py +2 -2
  68. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/chatlists.py +2 -2
  69. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/contacts.py +2 -2
  70. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/fragment.py +2 -2
  71. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/help.py +2 -2
  72. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/messages.py +2 -2
  73. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/payments.py +2 -2
  74. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/phone.py +2 -2
  75. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/photos.py +2 -2
  76. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/premium.py +2 -2
  77. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/smsjobs.py +2 -2
  78. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/stickers.py +2 -2
  79. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/storage.py +2 -2
  80. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/stories.py +2 -2
  81. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/updates.py +2 -2
  82. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/upload.py +2 -2
  83. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/generated/types/users.py +2 -2
  84. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/proxy.py +0 -0
  85. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw/tl.py +0 -0
  86. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/raw_api.tl +0 -0
  87. {ferogram-0.2.1 → ferogram-0.2.2}/ferogram/types.py +0 -0
  88. {ferogram-0.2.1 → ferogram-0.2.2}/src/auth.rs +0 -0
  89. {ferogram-0.2.1 → ferogram-0.2.2}/src/client.rs +0 -0
  90. {ferogram-0.2.1 → ferogram-0.2.2}/src/lib.rs +0 -0
  91. {ferogram-0.2.1 → ferogram-0.2.2}/src/message.rs +0 -0
  92. {ferogram-0.2.1 → ferogram-0.2.2}/src/raw.rs +0 -0
  93. {ferogram-0.2.1 → ferogram-0.2.2}/src/types.rs +0 -0
  94. {ferogram-0.2.1 → ferogram-0.2.2}/src/updates.rs +0 -0
@@ -407,7 +407,7 @@ dependencies = [
407
407
 
408
408
  [[package]]
409
409
  name = "ferogram-py"
410
- version = "0.2.1"
410
+ version = "0.2.2"
411
411
  dependencies = [
412
412
  "ferogram",
413
413
  "hex",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "ferogram-py"
3
- version = "0.2.1"
3
+ version = "0.2.2"
4
4
  edition = "2024"
5
5
  description = "Python bindings for ferogram (Rust MTProto)"
6
6
  license = "MIT OR Apache-2.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ferogram
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -35,5 +35,6 @@
35
35
  from . import tl
36
36
  _tl = tl
37
37
  from .generated import functions, types
38
+ from .generated._tl_schema import LAYER
38
39
 
39
- __all__ = ["functions", "types", "tl", "_tl"]
40
+ __all__ = ["functions", "types", "tl", "_tl", "LAYER"]
@@ -90,6 +90,14 @@ def parse_tl(path: Path) -> tuple[list[Constructor], list[Constructor]]:
90
90
  return types, funcs
91
91
 
92
92
 
93
+ def parse_layer(path: Path) -> int:
94
+ for line in path.read_text().splitlines():
95
+ m = re.match(r"^//\s*LAYER\s+(\d+)", line.strip())
96
+ if m:
97
+ return int(m.group(1))
98
+ return 0
99
+
100
+
93
101
  import keyword as _keyword
94
102
 
95
103
  def py_class(tl_name: str) -> str:
@@ -199,10 +207,22 @@ def build_schema_by_cid(constructors: list[Constructor]) -> str:
199
207
  LICENSE = """\
200
208
  # Copyright (c) Ankit Chaubey <ankitchaubey.dev@gmail.com>
201
209
  # SPDX-License-Identifier: MIT OR Apache-2.0
210
+ #
211
+ # ferogram is a high-performance Telegram MTProto framework written in Rust.
212
+ # ferogram-py provides Python bindings built on top of the Rust core for
213
+ # building Telegram clients, bots, and applications with a simple API.
214
+ #
215
+ # Rust core: https://github.com/ankit-chaubey/ferogram
216
+ # Python bindings: https://github.com/ankit-chaubey/ferogram-py
217
+ #
218
+ # If you use or modify this code, keep this notice at the top of the file
219
+ # and include the LICENSE-MIT or LICENSE-APACHE file from this repository.
202
220
  """
203
221
 
204
222
  NS_HEADER = """\
205
223
  # auto-generated by ferogram raw codegen - do not edit
224
+
225
+ """ + LICENSE + """
206
226
  from __future__ import annotations
207
227
  from typing import Any
208
228
  from ... import tl as _tl
@@ -230,8 +250,9 @@ def write_namespace_pkg(
230
250
 
231
251
  # flat imports - re-exports every class from every namespace module
232
252
  init_lines = [
253
+ "# auto-generated - do not edit\n",
254
+ "",
233
255
  LICENSE,
234
- "# auto-generated - do not edit",
235
256
  "# Flat imports so both styles work:",
236
257
  "# raw.functions.messages.GetHistory(...) ← namespace style",
237
258
  "# raw.functions.GetHistory(...) ← flat style (convenience)",
@@ -252,6 +273,7 @@ def write_namespace_pkg(
252
273
 
253
274
  def generate(tl_path: Path, out_dir: Path) -> None:
254
275
  types, funcs = parse_tl(tl_path)
276
+ layer = parse_layer(tl_path)
255
277
  out_dir.mkdir(parents=True, exist_ok=True)
256
278
 
257
279
  all_constructors = types + funcs
@@ -260,7 +282,9 @@ def generate(tl_path: Path, out_dir: Path) -> None:
260
282
 
261
283
  # _tl_schema.py - unchanged format, used by serializer
262
284
  (out_dir / "_tl_schema.py").write_text(
263
- "# auto-generated schema - do not edit\n"
285
+ "# auto-generated schema - do not edit\n\n"
286
+ + LICENSE + "\n"
287
+ + (f"LAYER = {layer}\n\n" if layer else "")
264
288
  + schema_str + "\n\n"
265
289
  + schema_by_cid + "\n"
266
290
  )
@@ -279,7 +303,8 @@ def generate(tl_path: Path, out_dir: Path) -> None:
279
303
 
280
304
  # generated/__init__.py
281
305
  (out_dir / "__init__.py").write_text(
282
- LICENSE + "\n"
306
+ "# auto-generated - do not edit\n\n"
307
+ + LICENSE + "\n"
283
308
  "from . import functions, types\n\n"
284
309
  "__all__ = ['functions', 'types']\n"
285
310
  )
@@ -1,3 +1,5 @@
1
+ # auto-generated - do not edit
2
+
1
3
  # Copyright (c) Ankit Chaubey <ankitchaubey.dev@gmail.com>
2
4
  # SPDX-License-Identifier: MIT OR Apache-2.0
3
5
  #
@@ -11,7 +13,6 @@
11
13
  # If you use or modify this code, keep this notice at the top of the file
12
14
  # and include the LICENSE-MIT or LICENSE-APACHE file from this repository.
13
15
 
14
-
15
16
  from . import functions, types
16
17
 
17
18
  __all__ = ['functions', 'types']
@@ -1,3 +1,5 @@
1
+ # auto-generated schema - do not edit
2
+
1
3
  # Copyright (c) Ankit Chaubey <ankitchaubey.dev@gmail.com>
2
4
  # SPDX-License-Identifier: MIT OR Apache-2.0
3
5
  #
@@ -11,8 +13,8 @@
11
13
  # If you use or modify this code, keep this notice at the top of the file
12
14
  # and include the LICENSE-MIT or LICENSE-APACHE file from this repository.
13
15
 
16
+ LAYER = 225
14
17
 
15
- # auto-generated schema - do not edit
16
18
  _SCHEMA = {
17
19
  "boolFalse": (0xbc799737, []),
18
20
  "boolTrue": (0x997275b5, []),
@@ -85,7 +87,7 @@ _SCHEMA = {
85
87
  "storage.fileMp4": (0xb3cea0e4, []),
86
88
  "storage.fileWebp": (0x1081464c, []),
87
89
  "userEmpty": (0xd3bc4b7a, [("id", "long", None)]),
88
- "user": (0x31774388, [("self", "true", 10), ("contact", "true", 11), ("mutual_contact", "true", 12), ("deleted", "true", 13), ("bot", "true", 14), ("bot_chat_history", "true", 15), ("bot_nochats", "true", 16), ("verified", "true", 17), ("restricted", "true", 18), ("min", "true", 20), ("bot_inline_geo", "true", 21), ("support", "true", 23), ("scam", "true", 24), ("apply_min_photo", "true", 25), ("fake", "true", 26), ("bot_attach_menu", "true", 27), ("premium", "true", 28), ("attach_menu_enabled", "true", 29), ("bot_can_edit", "flags2.1?true", None), ("close_friend", "flags2.2?true", None), ("stories_hidden", "flags2.3?true", None), ("stories_unavailable", "flags2.4?true", None), ("contact_require_premium", "flags2.10?true", None), ("bot_business", "flags2.11?true", None), ("bot_has_main_app", "flags2.13?true", None), ("bot_forum_view", "flags2.16?true", None), ("bot_forum_can_manage_topics", "flags2.17?true", None), ("bot_can_manage_bots", "flags2.18?true", None), ("id", "long", None), ("access_hash", "long", 0), ("first_name", "string", 1), ("last_name", "string", 2), ("username", "string", 3), ("phone", "string", 4), ("photo", "UserProfilePhoto", 5), ("status", "UserStatus", 6), ("bot_info_version", "int", 14), ("restriction_reason", "Vector<RestrictionReason>", 18), ("bot_inline_placeholder", "string", 19), ("lang_code", "string", 22), ("emoji_status", "EmojiStatus", 30), ("usernames", "flags2.0?Vector<Username>", None), ("stories_max_id", "flags2.5?RecentStory", None), ("color", "flags2.8?PeerColor", None), ("profile_color", "flags2.9?PeerColor", None), ("bot_active_users", "flags2.12?int", None), ("bot_verification_icon", "flags2.14?long", None), ("send_paid_messages_stars", "flags2.15?long", None)]),
90
+ "user": (0x31774388, [("self", "true", 10), ("contact", "true", 11), ("mutual_contact", "true", 12), ("deleted", "true", 13), ("bot", "true", 14), ("bot_chat_history", "true", 15), ("bot_nochats", "true", 16), ("verified", "true", 17), ("restricted", "true", 18), ("min", "true", 20), ("bot_inline_geo", "true", 21), ("support", "true", 23), ("scam", "true", 24), ("apply_min_photo", "true", 25), ("fake", "true", 26), ("bot_attach_menu", "true", 27), ("premium", "true", 28), ("attach_menu_enabled", "true", 29), ("bot_can_edit", "flags2.1?true", None), ("close_friend", "flags2.2?true", None), ("stories_hidden", "flags2.3?true", None), ("stories_unavailable", "flags2.4?true", None), ("contact_require_premium", "flags2.10?true", None), ("bot_business", "flags2.11?true", None), ("bot_has_main_app", "flags2.13?true", None), ("bot_forum_view", "flags2.16?true", None), ("bot_forum_can_manage_topics", "flags2.17?true", None), ("bot_can_manage_bots", "flags2.18?true", None), ("bot_guestchat", "flags2.19?true", None), ("id", "long", None), ("access_hash", "long", 0), ("first_name", "string", 1), ("last_name", "string", 2), ("username", "string", 3), ("phone", "string", 4), ("photo", "UserProfilePhoto", 5), ("status", "UserStatus", 6), ("bot_info_version", "int", 14), ("restriction_reason", "Vector<RestrictionReason>", 18), ("bot_inline_placeholder", "string", 19), ("lang_code", "string", 22), ("emoji_status", "EmojiStatus", 30), ("usernames", "flags2.0?Vector<Username>", None), ("stories_max_id", "flags2.5?RecentStory", None), ("color", "flags2.8?PeerColor", None), ("profile_color", "flags2.9?PeerColor", None), ("bot_active_users", "flags2.12?int", None), ("bot_verification_icon", "flags2.14?long", None), ("send_paid_messages_stars", "flags2.15?long", None)]),
89
91
  "userProfilePhotoEmpty": (0x4f11bae1, []),
90
92
  "userProfilePhoto": (0x82d1f706, [("has_video", "true", 0), ("personal", "true", 2), ("photo_id", "long", None), ("stripped_thumb", "bytes", 1), ("dc_id", "int", None)]),
91
93
  "userStatusEmpty": (0x09d05049, []),
@@ -109,7 +111,7 @@ _SCHEMA = {
109
111
  "chatPhotoEmpty": (0x37c1011c, []),
110
112
  "chatPhoto": (0x1c6e1c11, [("has_video", "true", 0), ("photo_id", "long", None), ("stripped_thumb", "bytes", 1), ("dc_id", "int", None)]),
111
113
  "messageEmpty": (0x90a6ca84, [("id", "int", None), ("peer_id", "Peer", 0)]),
112
- "message": (0x3ae56482, [("out", "true", 1), ("mentioned", "true", 4), ("media_unread", "true", 5), ("silent", "true", 13), ("post", "true", 14), ("from_scheduled", "true", 18), ("legacy", "true", 19), ("edit_hide", "true", 21), ("pinned", "true", 24), ("noforwards", "true", 26), ("invert_media", "true", 27), ("offline", "flags2.1?true", None), ("video_processing_pending", "flags2.4?true", None), ("paid_suggested_post_stars", "flags2.8?true", None), ("paid_suggested_post_ton", "flags2.9?true", None), ("id", "int", None), ("from_id", "Peer", 8), ("from_boosts_applied", "int", 29), ("from_rank", "flags2.12?string", None), ("peer_id", "Peer", None), ("saved_peer_id", "Peer", 28), ("fwd_from", "MessageFwdHeader", 2), ("via_bot_id", "long", 11), ("via_business_bot_id", "flags2.0?long", None), ("reply_to", "MessageReplyHeader", 3), ("date", "int", None), ("message", "string", None), ("media", "MessageMedia", 9), ("reply_markup", "ReplyMarkup", 6), ("entities", "Vector<MessageEntity>", 7), ("views", "int", 10), ("forwards", "int", 10), ("replies", "MessageReplies", 23), ("edit_date", "int", 15), ("post_author", "string", 16), ("grouped_id", "long", 17), ("reactions", "MessageReactions", 20), ("restriction_reason", "Vector<RestrictionReason>", 22), ("ttl_period", "int", 25), ("quick_reply_shortcut_id", "int", 30), ("effect", "flags2.2?long", None), ("factcheck", "flags2.3?FactCheck", None), ("report_delivery_until_date", "flags2.5?int", None), ("paid_message_stars", "flags2.6?long", None), ("suggested_post", "flags2.7?SuggestedPost", None), ("schedule_repeat_period", "flags2.10?int", None), ("summary_from_language", "flags2.11?string", None)]),
114
+ "message": (0x95ef6f2b, [("out", "true", 1), ("mentioned", "true", 4), ("media_unread", "true", 5), ("silent", "true", 13), ("post", "true", 14), ("from_scheduled", "true", 18), ("legacy", "true", 19), ("edit_hide", "true", 21), ("pinned", "true", 24), ("noforwards", "true", 26), ("invert_media", "true", 27), ("offline", "flags2.1?true", None), ("video_processing_pending", "flags2.4?true", None), ("paid_suggested_post_stars", "flags2.8?true", None), ("paid_suggested_post_ton", "flags2.9?true", None), ("id", "int", None), ("from_id", "Peer", 8), ("from_boosts_applied", "int", 29), ("from_rank", "flags2.12?string", None), ("peer_id", "Peer", None), ("saved_peer_id", "Peer", 28), ("fwd_from", "MessageFwdHeader", 2), ("via_bot_id", "long", 11), ("via_business_bot_id", "flags2.0?long", None), ("guestchat_via_from", "flags2.19?Peer", None), ("reply_to", "MessageReplyHeader", 3), ("date", "int", None), ("message", "string", None), ("media", "MessageMedia", 9), ("reply_markup", "ReplyMarkup", 6), ("entities", "Vector<MessageEntity>", 7), ("views", "int", 10), ("forwards", "int", 10), ("replies", "MessageReplies", 23), ("edit_date", "int", 15), ("post_author", "string", 16), ("grouped_id", "long", 17), ("reactions", "MessageReactions", 20), ("restriction_reason", "Vector<RestrictionReason>", 22), ("ttl_period", "int", 25), ("quick_reply_shortcut_id", "int", 30), ("effect", "flags2.2?long", None), ("factcheck", "flags2.3?FactCheck", None), ("report_delivery_until_date", "flags2.5?int", None), ("paid_message_stars", "flags2.6?long", None), ("suggested_post", "flags2.7?SuggestedPost", None), ("schedule_repeat_period", "flags2.10?int", None), ("summary_from_language", "flags2.11?string", None)]),
113
115
  "messageService": (0x7a800e0a, [("out", "true", 1), ("mentioned", "true", 4), ("media_unread", "true", 5), ("reactions_are_possible", "true", 9), ("silent", "true", 13), ("post", "true", 14), ("legacy", "true", 19), ("id", "int", None), ("from_id", "Peer", 8), ("peer_id", "Peer", None), ("saved_peer_id", "Peer", 28), ("reply_to", "MessageReplyHeader", 3), ("date", "int", None), ("action", "MessageAction", None), ("reactions", "MessageReactions", 20), ("ttl_period", "int", 25)]),
114
116
  "messageMediaEmpty": (0x3ded6320, []),
115
117
  "messageMediaPhoto": (0xe216eb63, [("spoiler", "true", 3), ("live_photo", "true", 4), ("photo", "Photo", 0), ("ttl_seconds", "int", 2), ("video", "Document", 4)]),
@@ -211,7 +213,7 @@ _SCHEMA = {
211
213
  "geoPoint": (0xb2a2f663, [("long", "double", None), ("lat", "double", None), ("access_hash", "long", None), ("accuracy_radius", "int", 0)]),
212
214
  "auth.sentCode": (0x5e002502, [("type", "auth.SentCodeType", None), ("phone_code_hash", "string", None), ("next_type", "auth.CodeType", 1), ("timeout", "int", 2)]),
213
215
  "auth.sentCodeSuccess": (0x2390fe44, [("authorization", "auth.Authorization", None)]),
214
- "auth.sentCodePaymentRequired": (0xe0955a3c, [("store_product", "string", None), ("phone_code_hash", "string", None), ("support_email_address", "string", None), ("support_email_subject", "string", None), ("currency", "string", None), ("amount", "long", None)]),
216
+ "auth.sentCodePaymentRequired": (0xf8827ebf, [("store_product", "string", None), ("phone_code_hash", "string", None), ("support_email_address", "string", None), ("support_email_subject", "string", None), ("premium_days", "int", None), ("currency", "string", None), ("amount", "long", None)]),
215
217
  "auth.authorization": (0x2ea2c0d4, [("setup_password_required", "true", 1), ("otherwise_relogin_days", "int", 1), ("tmp_sessions", "int", 0), ("future_auth_token", "bytes", 2), ("user", "User", None)]),
216
218
  "auth.authorizationSignUpRequired": (0x44747e9a, [("terms_of_service", "help.TermsOfService", 0)]),
217
219
  "auth.exportedAuthorization": (0xb434e2b8, [("id", "long", None), ("bytes", "bytes", None)]),
@@ -427,6 +429,8 @@ _SCHEMA = {
427
429
  "updateStarGiftCraftFail": (0xac072444, []),
428
430
  "updateChatParticipantRank": (0xbd8367b9, [("chat_id", "long", None), ("user_id", "long", None), ("rank", "string", None), ("version", "int", None)]),
429
431
  "updateManagedBot": (0x4880ed9a, [("user_id", "long", None), ("bot_id", "long", None), ("qts", "int", None)]),
432
+ "updateBotGuestChatQuery": (0xcdd4093d, [("query_id", "long", None), ("message", "Message", None), ("reference_messages", "Vector<Message>", 0), ("qts", "int", None)]),
433
+ "updateAiComposeTones": (0x8c0f91fb, []),
430
434
  "updates.state": (0xa56c2a3e, [("pts", "int", None), ("qts", "int", None), ("date", "int", None), ("seq", "int", None), ("unread_count", "int", None)]),
431
435
  "updates.differenceEmpty": (0x5d75a138, [("date", "int", None), ("seq", "int", None)]),
432
436
  "updates.difference": (0x00f49ca0, [("new_messages", "Vector<Message>", None), ("new_encrypted_messages", "Vector<EncryptedMessage>", None), ("other_updates", "Vector<Update>", None), ("chats", "Vector<Chat>", None), ("users", "Vector<User>", None), ("state", "updates.State", None)]),
@@ -733,6 +737,7 @@ _SCHEMA = {
733
737
  "topPeerCategoryForwardUsers": (0xa8406ca9, []),
734
738
  "topPeerCategoryForwardChats": (0xfbeec0f0, []),
735
739
  "topPeerCategoryBotsApp": (0xfd9e7bec, []),
740
+ "topPeerCategoryBotsGuestChat": (0x6c24f3dd, []),
736
741
  "topPeerCategoryPeers": (0xfb834291, [("category", "TopPeerCategory", None), ("count", "int", None), ("peers", "Vector<TopPeer>", None)]),
737
742
  "contacts.topPeersNotModified": (0xde266ef5, []),
738
743
  "contacts.topPeers": (0x70b772a8, [("categories", "Vector<TopPeerCategoryPeers>", None), ("chats", "Vector<Chat>", None), ("users", "Vector<User>", None)]),
@@ -1012,13 +1017,13 @@ _SCHEMA = {
1012
1017
  "help.userInfo": (0x01eb3758, [("message", "string", None), ("entities", "Vector<MessageEntity>", None), ("author", "string", None), ("date", "int", None)]),
1013
1018
  "pollAnswer": (0x4b7d786a, [("text", "TextWithEntities", None), ("option", "bytes", None), ("media", "MessageMedia", 0), ("added_by", "Peer", 1), ("date", "int", 1)]),
1014
1019
  "inputPollAnswer": (0x199fed96, [("text", "TextWithEntities", None), ("media", "InputMedia", 0)]),
1015
- "poll": (0xb8425be9, [("id", "long", None), ("closed", "true", 0), ("public_voters", "true", 1), ("multiple_choice", "true", 2), ("quiz", "true", 3), ("open_answers", "true", 6), ("revoting_disabled", "true", 7), ("shuffle_answers", "true", 8), ("hide_results_until_close", "true", 9), ("creator", "true", 10), ("question", "TextWithEntities", None), ("answers", "Vector<PollAnswer>", None), ("close_period", "int", 4), ("close_date", "int", 5), ("hash", "long", None)]),
1020
+ "poll": (0x966e2dbf, [("id", "long", None), ("closed", "true", 0), ("public_voters", "true", 1), ("multiple_choice", "true", 2), ("quiz", "true", 3), ("open_answers", "true", 6), ("revoting_disabled", "true", 7), ("shuffle_answers", "true", 8), ("hide_results_until_close", "true", 9), ("creator", "true", 10), ("subscribers_only", "true", 11), ("question", "TextWithEntities", None), ("answers", "Vector<PollAnswer>", None), ("close_period", "int", 4), ("close_date", "int", 5), ("countries_iso2", "Vector<string>", 12), ("hash", "long", None)]),
1016
1021
  "pollAnswerVoters": (0x3645230a, [("chosen", "true", 0), ("correct", "true", 1), ("option", "bytes", None), ("voters", "int", 2), ("recent_voters", "Vector<Peer>", 2)]),
1017
- "pollResults": (0xba7bb15e, [("min", "true", 0), ("has_unread_votes", "true", 6), ("results", "Vector<PollAnswerVoters>", 1), ("total_voters", "int", 2), ("recent_voters", "Vector<Peer>", 3), ("solution", "string", 4), ("solution_entities", "Vector<MessageEntity>", 4), ("solution_media", "MessageMedia", 5)]),
1022
+ "pollResults": (0xba7bb15e, [("min", "true", 0), ("has_unread_votes", "true", 6), ("can_view_stats", "true", 7), ("results", "Vector<PollAnswerVoters>", 1), ("total_voters", "int", 2), ("recent_voters", "Vector<Peer>", 3), ("solution", "string", 4), ("solution_entities", "Vector<MessageEntity>", 4), ("solution_media", "MessageMedia", 5)]),
1018
1023
  "chatOnlines": (0xf041e250, [("onlines", "int", None)]),
1019
1024
  "statsURL": (0x47a971e0, [("url", "string", None)]),
1020
1025
  "chatAdminRights": (0x5fb224d5, [("change_info", "true", 0), ("post_messages", "true", 1), ("edit_messages", "true", 2), ("delete_messages", "true", 3), ("ban_users", "true", 4), ("invite_users", "true", 5), ("pin_messages", "true", 7), ("add_admins", "true", 9), ("anonymous", "true", 10), ("manage_call", "true", 11), ("other", "true", 12), ("manage_topics", "true", 13), ("post_stories", "true", 14), ("edit_stories", "true", 15), ("delete_stories", "true", 16), ("manage_direct_messages", "true", 17), ("manage_ranks", "true", 18)]),
1021
- "chatBannedRights": (0x9f120418, [("view_messages", "true", 0), ("send_messages", "true", 1), ("send_media", "true", 2), ("send_stickers", "true", 3), ("send_gifs", "true", 4), ("send_games", "true", 5), ("send_inline", "true", 6), ("embed_links", "true", 7), ("send_polls", "true", 8), ("change_info", "true", 10), ("invite_users", "true", 15), ("pin_messages", "true", 17), ("manage_topics", "true", 18), ("send_photos", "true", 19), ("send_videos", "true", 20), ("send_roundvideos", "true", 21), ("send_audios", "true", 22), ("send_voices", "true", 23), ("send_docs", "true", 24), ("send_plain", "true", 25), ("edit_rank", "true", 26), ("until_date", "int", None)]),
1026
+ "chatBannedRights": (0x9f120418, [("view_messages", "true", 0), ("send_messages", "true", 1), ("send_media", "true", 2), ("send_stickers", "true", 3), ("send_gifs", "true", 4), ("send_games", "true", 5), ("send_inline", "true", 6), ("embed_links", "true", 7), ("send_polls", "true", 8), ("change_info", "true", 10), ("invite_users", "true", 15), ("pin_messages", "true", 17), ("manage_topics", "true", 18), ("send_photos", "true", 19), ("send_videos", "true", 20), ("send_roundvideos", "true", 21), ("send_audios", "true", 22), ("send_voices", "true", 23), ("send_docs", "true", 24), ("send_plain", "true", 25), ("edit_rank", "true", 26), ("send_reactions", "true", 27), ("until_date", "int", None)]),
1022
1027
  "inputWallPaper": (0xe630b979, [("id", "long", None), ("access_hash", "long", None)]),
1023
1028
  "inputWallPaperSlug": (0x72091c80, [("slug", "string", None)]),
1024
1029
  "inputWallPaperNoFile": (0x967a462e, [("id", "long", None)]),
@@ -1068,6 +1073,7 @@ _SCHEMA = {
1068
1073
  "webPageAttributeUniqueStarGift": (0xcf6f6db8, [("gift", "StarGift", None)]),
1069
1074
  "webPageAttributeStarGiftCollection": (0x31cad303, [("icons", "Vector<Document>", None)]),
1070
1075
  "webPageAttributeStarGiftAuction": (0x01c641c2, [("gift", "StarGift", None), ("end_date", "int", None)]),
1076
+ "webPageAttributeAiComposeTone": (0x7781fe18, [("emoji_id", "long", None)]),
1071
1077
  "messages.votesList": (0x4899484e, [("count", "int", None), ("votes", "Vector<MessagePeerVote>", None), ("chats", "Vector<Chat>", None), ("users", "Vector<User>", None), ("next_offset", "string", 0)]),
1072
1078
  "bankCardOpenUrl": (0xf568028a, [("url", "string", None), ("name", "string", None)]),
1073
1079
  "payments.bankCardData": (0x3e24e573, [("title", "string", None), ("open_urls", "Vector<BankCardOpenUrl>", None)]),
@@ -1218,7 +1224,7 @@ _SCHEMA = {
1218
1224
  "inputStorePaymentStarsTopup": (0xf9a2a6cb, [("stars", "long", None), ("currency", "string", None), ("amount", "long", None), ("spend_purpose_peer", "InputPeer", 0)]),
1219
1225
  "inputStorePaymentStarsGift": (0x1d741ef7, [("user_id", "InputUser", None), ("stars", "long", None), ("currency", "string", None), ("amount", "long", None)]),
1220
1226
  "inputStorePaymentStarsGiveaway": (0x751f08fa, [("only_new_subscribers", "true", 0), ("winners_are_visible", "true", 3), ("stars", "long", None), ("boost_peer", "InputPeer", None), ("additional_peers", "Vector<InputPeer>", 1), ("countries_iso2", "Vector<string>", 2), ("prize_description", "string", 4), ("random_id", "long", None), ("until_date", "int", None), ("currency", "string", None), ("amount", "long", None), ("users", "int", None)]),
1221
- "inputStorePaymentAuthCode": (0x9bb2636d, [("restore", "true", 0), ("phone_number", "string", None), ("phone_code_hash", "string", None), ("currency", "string", None), ("amount", "long", None)]),
1227
+ "inputStorePaymentAuthCode": (0x3fc18057, [("restore", "true", 0), ("phone_number", "string", None), ("phone_code_hash", "string", None), ("premium_days", "int", None), ("currency", "string", None), ("amount", "long", None)]),
1222
1228
  "paymentFormMethod": (0x88f8f21b, [("url", "string", None), ("title", "string", None)]),
1223
1229
  "emojiStatusEmpty": (0x2de11aae, []),
1224
1230
  "emojiStatus": (0xe7ff068a, [("document_id", "long", None), ("until", "int", 0)]),
@@ -1573,6 +1579,16 @@ _SCHEMA = {
1573
1579
  "bots.exportedBotToken": (0x3c60b621, [("token", "string", None)]),
1574
1580
  "bots.requestedButton": (0xf13bbcd7, [("webapp_req_id", "string", None)]),
1575
1581
  "messages.composedMessageWithAI": (0x90d7adfa, [("result_text", "TextWithEntities", None), ("diff_text", "TextWithEntities", 0)]),
1582
+ "stats.pollStats": (0x2999beed, [("votes_graph", "StatsGraph", None)]),
1583
+ "inputAiComposeToneDefault": (0x1fe9a9bf, [("tone", "string", None)]),
1584
+ "inputAiComposeToneID": (0x0773c080, [("id", "long", None), ("access_hash", "long", None)]),
1585
+ "inputAiComposeToneSlug": (0x1fa01357, [("slug", "string", None)]),
1586
+ "aiComposeTone": (0xcff63ea9, [("creator", "true", 0), ("id", "long", None), ("access_hash", "long", None), ("slug", "string", None), ("title", "string", None), ("emoji_id", "long", 1), ("prompt", "string", 4), ("installs_count", "int", 2), ("author_id", "long", 3), ("example_english", "AiComposeToneExample", 5)]),
1587
+ "aiComposeToneDefault": (0x9bad6414, [("tone", "string", None), ("emoji_id", "long", None), ("title", "string", None)]),
1588
+ "aicompose.tonesNotModified": (0xc1f46103, []),
1589
+ "aicompose.tones": (0x6c9d0efe, [("hash", "long", None), ("tones", "Vector<AiComposeTone>", None), ("users", "Vector<User>", None)]),
1590
+ "aiComposeToneExample": (0xf1d628ec, [("from", "TextWithEntities", None), ("to", "TextWithEntities", None)]),
1591
+ "bots.accessSettings": (0xdd1fbf93, [("restricted", "true", 0), ("add_users", "Vector<User>", 1)]),
1576
1592
  "auth.sendCode": (0xa677244f, [("phone_number", "string", None), ("api_id", "int", None), ("api_hash", "string", None), ("settings", "CodeSettings", None)]),
1577
1593
  "auth.signUp": (0xaac7b717, [("no_joined_notifications", "true", 0), ("phone_number", "string", None), ("phone_code_hash", "string", None), ("first_name", "string", None), ("last_name", "string", None)]),
1578
1594
  "auth.signIn": (0x8d52a951, [("phone_number", "string", None), ("phone_code_hash", "string", None), ("phone_code", "string", 0), ("email_verification", "EmailVerification", 1)]),
@@ -1740,7 +1756,7 @@ _SCHEMA = {
1740
1756
  "contacts.getBlocked": (0x9a868f80, [("my_stories_from", "true", 0), ("offset", "int", None), ("limit", "int", None)]),
1741
1757
  "contacts.search": (0x11f812d8, [("q", "string", None), ("limit", "int", None)]),
1742
1758
  "contacts.resolveUsername": (0x725afbbc, [("username", "string", None), ("referer", "string", 0)]),
1743
- "contacts.getTopPeers": (0x973478b6, [("correspondents", "true", 0), ("bots_pm", "true", 1), ("bots_inline", "true", 2), ("phone_calls", "true", 3), ("forward_users", "true", 4), ("forward_chats", "true", 5), ("groups", "true", 10), ("channels", "true", 15), ("bots_app", "true", 16), ("offset", "int", None), ("limit", "int", None), ("hash", "long", None)]),
1759
+ "contacts.getTopPeers": (0x973478b6, [("correspondents", "true", 0), ("bots_pm", "true", 1), ("bots_inline", "true", 2), ("phone_calls", "true", 3), ("forward_users", "true", 4), ("forward_chats", "true", 5), ("groups", "true", 10), ("channels", "true", 15), ("bots_app", "true", 16), ("bots_guestchat", "true", 17), ("offset", "int", None), ("limit", "int", None), ("hash", "long", None)]),
1744
1760
  "contacts.resetTopPeerRating": (0x1ae373ac, [("category", "TopPeerCategory", None), ("peer", "InputPeer", None)]),
1745
1761
  "contacts.resetSaved": (0x879537f1, []),
1746
1762
  "contacts.getSaved": (0x82f1e39f, []),
@@ -2001,13 +2017,17 @@ _SCHEMA = {
2001
2017
  "messages.editChatParticipantRank": (0xa00f32b0, [("peer", "InputPeer", None), ("participant", "InputPeer", None), ("rank", "string", None)]),
2002
2018
  "messages.declineUrlAuth": (0x35436bbc, [("url", "string", None)]),
2003
2019
  "messages.checkUrlAuthMatchCode": (0xc9a47b0b, [("url", "string", None), ("match_code", "string", None)]),
2004
- "messages.composeMessageWithAI": (0xfd426afe, [("proofread", "true", 0), ("emojify", "true", 3), ("text", "TextWithEntities", None), ("translate_to_lang", "string", 1), ("change_tone", "string", 2)]),
2020
+ "messages.composeMessageWithAI": (0xdaecc589, [("proofread", "true", 0), ("emojify", "true", 3), ("text", "TextWithEntities", None), ("translate_to_lang", "string", 1), ("tone", "InputAiComposeTone", 2)]),
2005
2021
  "messages.reportReadMetrics": (0x4067c5e6, [("peer", "InputPeer", None), ("metrics", "Vector<InputMessageReadMetric>", None)]),
2006
2022
  "messages.reportMusicListen": (0xddbcd819, [("id", "InputDocument", None), ("listened_duration", "int", None)]),
2007
2023
  "messages.addPollAnswer": (0x19bc4b6d, [("peer", "InputPeer", None), ("msg_id", "int", None), ("answer", "PollAnswer", None)]),
2008
2024
  "messages.deletePollAnswer": (0xac8505a5, [("peer", "InputPeer", None), ("msg_id", "int", None), ("option", "bytes", None)]),
2009
2025
  "messages.getUnreadPollVotes": (0x43286cf2, [("peer", "InputPeer", None), ("top_msg_id", "int", 0), ("offset_id", "int", None), ("add_offset", "int", None), ("limit", "int", None), ("max_id", "int", None), ("min_id", "int", None)]),
2010
2026
  "messages.readPollVotes": (0x1720b4d8, [("peer", "InputPeer", None), ("top_msg_id", "int", 0)]),
2027
+ "messages.setBotGuestChatResult": (0x052b08db, [("query_id", "long", None), ("result", "InputBotInlineResult", None)]),
2028
+ "messages.deleteParticipantReactions": (0xa0b80cf8, [("peer", "InputPeer", None), ("participant", "InputPeer", None)]),
2029
+ "messages.deleteParticipantReaction": (0xe3b7f82c, [("peer", "InputPeer", None), ("msg_id", "int", None), ("participant", "InputPeer", None)]),
2030
+ "messages.getPersonalChannelHistory": (0x55fb0996, [("user_id", "InputUser", None), ("limit", "int", None), ("max_id", "int", None), ("min_id", "int", None), ("hash", "long", None)]),
2011
2031
  "updates.getState": (0xedd4882a, []),
2012
2032
  "updates.getDifference": (0x19c2f763, [("pts", "int", None), ("pts_limit", "int", 1), ("pts_total_limit", "int", 0), ("date", "int", None), ("qts", "int", None), ("qts_limit", "int", 2)]),
2013
2033
  "updates.getChannelDifference": (0x03173d78, [("force", "true", 0), ("channel", "InputChannel", None), ("filter", "ChannelMessagesFilter", None), ("pts", "int", None), ("limit", "int", None)]),
@@ -2142,6 +2162,8 @@ _SCHEMA = {
2142
2162
  "bots.exportBotToken": (0xbd0d99eb, [("bot", "InputUser", None), ("revoke", "Bool", None)]),
2143
2163
  "bots.requestWebViewButton": (0x31a2a35e, [("user_id", "InputUser", None), ("button", "KeyboardButton", None)]),
2144
2164
  "bots.getRequestedWebViewButton": (0xbf25b7f3, [("bot", "InputUser", None), ("webapp_req_id", "string", None)]),
2165
+ "bots.getAccessSettings": (0x213853a3, [("bot", "InputUser", None)]),
2166
+ "bots.editAccessSettings": (0x31813cd8, [("restricted", "true", 0), ("bot", "InputUser", None), ("add_users", "Vector<InputUser>", 1)]),
2145
2167
  "payments.getPaymentForm": (0x37148dbb, [("invoice", "InputInvoice", None), ("theme_params", "DataJSON", 0)]),
2146
2168
  "payments.getPaymentReceipt": (0x2478d1cc, [("peer", "InputPeer", None), ("msg_id", "int", None)]),
2147
2169
  "payments.validateRequestedInfo": (0xb6c8f12b, [("save", "true", 0), ("invoice", "InputInvoice", None), ("info", "PaymentRequestedInfo", None)]),
@@ -2274,6 +2296,7 @@ _SCHEMA = {
2274
2296
  "stats.getMessageStats": (0xb6e0a3f5, [("dark", "true", 0), ("channel", "InputChannel", None), ("msg_id", "int", None)]),
2275
2297
  "stats.getStoryStats": (0x374fef40, [("dark", "true", 0), ("peer", "InputPeer", None), ("id", "int", None)]),
2276
2298
  "stats.getStoryPublicForwards": (0xa6437ef6, [("peer", "InputPeer", None), ("id", "int", None), ("offset", "string", None), ("limit", "int", None)]),
2299
+ "stats.getPollStats": (0xc27dfa68, [("dark", "true", 0), ("peer", "InputPeer", None), ("msg_id", "int", None)]),
2277
2300
  "chatlists.exportChatlistInvite": (0x8472478e, [("chatlist", "InputChatlist", None), ("title", "string", None), ("peers", "Vector<InputPeer>", None)]),
2278
2301
  "chatlists.deleteExportedInvite": (0x719c5c5e, [("chatlist", "InputChatlist", None), ("slug", "string", None)]),
2279
2302
  "chatlists.editExportedInvite": (0x653db63d, [("chatlist", "InputChatlist", None), ("slug", "string", None), ("title", "string", 1), ("peers", "Vector<InputPeer>", 2)]),
@@ -2331,6 +2354,13 @@ _SCHEMA = {
2331
2354
  "smsjobs.getSmsJob": (0x778d902f, [("job_id", "string", None)]),
2332
2355
  "smsjobs.finishJob": (0x4f1ebf24, [("job_id", "string", None), ("error", "string", 0)]),
2333
2356
  "fragment.getCollectibleInfo": (0xbe1e85ba, [("collectible", "InputCollectible", None)]),
2357
+ "aicompose.createTone": (0x4aa83913, [("display_author", "true", 0), ("emoji_id", "long", None), ("title", "string", None), ("prompt", "string", None)]),
2358
+ "aicompose.updateTone": (0x903bcf59, [("tone", "InputAiComposeTone", None), ("display_author", "Bool", 0), ("emoji_id", "long", 1), ("title", "string", 2), ("prompt", "string", 3)]),
2359
+ "aicompose.saveTone": (0x1782cbb1, [("tone", "InputAiComposeTone", None), ("unsave", "Bool", None)]),
2360
+ "aicompose.deleteTone": (0xdd39316a, [("tone", "InputAiComposeTone", None)]),
2361
+ "aicompose.getTone": (0xb2e8ba03, [("tone", "InputAiComposeTone", None)]),
2362
+ "aicompose.getTones": (0xabd59201, [("hash", "long", None)]),
2363
+ "aicompose.getToneExample": (0xd1b4ab14, [("tone", "InputAiComposeTone", None), ("num", "int", None)]),
2334
2364
  }
2335
2365
 
2336
2366
  _SCHEMA_BY_CID = {
@@ -2405,7 +2435,7 @@ _SCHEMA_BY_CID = {
2405
2435
  0xb3cea0e4: ("storage.fileMp4", []),
2406
2436
  0x1081464c: ("storage.fileWebp", []),
2407
2437
  0xd3bc4b7a: ("userEmpty", [("id", "long", None)]),
2408
- 0x31774388: ("user", [("self", "true", 10), ("contact", "true", 11), ("mutual_contact", "true", 12), ("deleted", "true", 13), ("bot", "true", 14), ("bot_chat_history", "true", 15), ("bot_nochats", "true", 16), ("verified", "true", 17), ("restricted", "true", 18), ("min", "true", 20), ("bot_inline_geo", "true", 21), ("support", "true", 23), ("scam", "true", 24), ("apply_min_photo", "true", 25), ("fake", "true", 26), ("bot_attach_menu", "true", 27), ("premium", "true", 28), ("attach_menu_enabled", "true", 29), ("bot_can_edit", "flags2.1?true", None), ("close_friend", "flags2.2?true", None), ("stories_hidden", "flags2.3?true", None), ("stories_unavailable", "flags2.4?true", None), ("contact_require_premium", "flags2.10?true", None), ("bot_business", "flags2.11?true", None), ("bot_has_main_app", "flags2.13?true", None), ("bot_forum_view", "flags2.16?true", None), ("bot_forum_can_manage_topics", "flags2.17?true", None), ("bot_can_manage_bots", "flags2.18?true", None), ("id", "long", None), ("access_hash", "long", 0), ("first_name", "string", 1), ("last_name", "string", 2), ("username", "string", 3), ("phone", "string", 4), ("photo", "UserProfilePhoto", 5), ("status", "UserStatus", 6), ("bot_info_version", "int", 14), ("restriction_reason", "Vector<RestrictionReason>", 18), ("bot_inline_placeholder", "string", 19), ("lang_code", "string", 22), ("emoji_status", "EmojiStatus", 30), ("usernames", "flags2.0?Vector<Username>", None), ("stories_max_id", "flags2.5?RecentStory", None), ("color", "flags2.8?PeerColor", None), ("profile_color", "flags2.9?PeerColor", None), ("bot_active_users", "flags2.12?int", None), ("bot_verification_icon", "flags2.14?long", None), ("send_paid_messages_stars", "flags2.15?long", None)]),
2438
+ 0x31774388: ("user", [("self", "true", 10), ("contact", "true", 11), ("mutual_contact", "true", 12), ("deleted", "true", 13), ("bot", "true", 14), ("bot_chat_history", "true", 15), ("bot_nochats", "true", 16), ("verified", "true", 17), ("restricted", "true", 18), ("min", "true", 20), ("bot_inline_geo", "true", 21), ("support", "true", 23), ("scam", "true", 24), ("apply_min_photo", "true", 25), ("fake", "true", 26), ("bot_attach_menu", "true", 27), ("premium", "true", 28), ("attach_menu_enabled", "true", 29), ("bot_can_edit", "flags2.1?true", None), ("close_friend", "flags2.2?true", None), ("stories_hidden", "flags2.3?true", None), ("stories_unavailable", "flags2.4?true", None), ("contact_require_premium", "flags2.10?true", None), ("bot_business", "flags2.11?true", None), ("bot_has_main_app", "flags2.13?true", None), ("bot_forum_view", "flags2.16?true", None), ("bot_forum_can_manage_topics", "flags2.17?true", None), ("bot_can_manage_bots", "flags2.18?true", None), ("bot_guestchat", "flags2.19?true", None), ("id", "long", None), ("access_hash", "long", 0), ("first_name", "string", 1), ("last_name", "string", 2), ("username", "string", 3), ("phone", "string", 4), ("photo", "UserProfilePhoto", 5), ("status", "UserStatus", 6), ("bot_info_version", "int", 14), ("restriction_reason", "Vector<RestrictionReason>", 18), ("bot_inline_placeholder", "string", 19), ("lang_code", "string", 22), ("emoji_status", "EmojiStatus", 30), ("usernames", "flags2.0?Vector<Username>", None), ("stories_max_id", "flags2.5?RecentStory", None), ("color", "flags2.8?PeerColor", None), ("profile_color", "flags2.9?PeerColor", None), ("bot_active_users", "flags2.12?int", None), ("bot_verification_icon", "flags2.14?long", None), ("send_paid_messages_stars", "flags2.15?long", None)]),
2409
2439
  0x4f11bae1: ("userProfilePhotoEmpty", []),
2410
2440
  0x82d1f706: ("userProfilePhoto", [("has_video", "true", 0), ("personal", "true", 2), ("photo_id", "long", None), ("stripped_thumb", "bytes", 1), ("dc_id", "int", None)]),
2411
2441
  0x09d05049: ("userStatusEmpty", []),
@@ -2429,7 +2459,7 @@ _SCHEMA_BY_CID = {
2429
2459
  0x37c1011c: ("chatPhotoEmpty", []),
2430
2460
  0x1c6e1c11: ("chatPhoto", [("has_video", "true", 0), ("photo_id", "long", None), ("stripped_thumb", "bytes", 1), ("dc_id", "int", None)]),
2431
2461
  0x90a6ca84: ("messageEmpty", [("id", "int", None), ("peer_id", "Peer", 0)]),
2432
- 0x3ae56482: ("message", [("out", "true", 1), ("mentioned", "true", 4), ("media_unread", "true", 5), ("silent", "true", 13), ("post", "true", 14), ("from_scheduled", "true", 18), ("legacy", "true", 19), ("edit_hide", "true", 21), ("pinned", "true", 24), ("noforwards", "true", 26), ("invert_media", "true", 27), ("offline", "flags2.1?true", None), ("video_processing_pending", "flags2.4?true", None), ("paid_suggested_post_stars", "flags2.8?true", None), ("paid_suggested_post_ton", "flags2.9?true", None), ("id", "int", None), ("from_id", "Peer", 8), ("from_boosts_applied", "int", 29), ("from_rank", "flags2.12?string", None), ("peer_id", "Peer", None), ("saved_peer_id", "Peer", 28), ("fwd_from", "MessageFwdHeader", 2), ("via_bot_id", "long", 11), ("via_business_bot_id", "flags2.0?long", None), ("reply_to", "MessageReplyHeader", 3), ("date", "int", None), ("message", "string", None), ("media", "MessageMedia", 9), ("reply_markup", "ReplyMarkup", 6), ("entities", "Vector<MessageEntity>", 7), ("views", "int", 10), ("forwards", "int", 10), ("replies", "MessageReplies", 23), ("edit_date", "int", 15), ("post_author", "string", 16), ("grouped_id", "long", 17), ("reactions", "MessageReactions", 20), ("restriction_reason", "Vector<RestrictionReason>", 22), ("ttl_period", "int", 25), ("quick_reply_shortcut_id", "int", 30), ("effect", "flags2.2?long", None), ("factcheck", "flags2.3?FactCheck", None), ("report_delivery_until_date", "flags2.5?int", None), ("paid_message_stars", "flags2.6?long", None), ("suggested_post", "flags2.7?SuggestedPost", None), ("schedule_repeat_period", "flags2.10?int", None), ("summary_from_language", "flags2.11?string", None)]),
2462
+ 0x95ef6f2b: ("message", [("out", "true", 1), ("mentioned", "true", 4), ("media_unread", "true", 5), ("silent", "true", 13), ("post", "true", 14), ("from_scheduled", "true", 18), ("legacy", "true", 19), ("edit_hide", "true", 21), ("pinned", "true", 24), ("noforwards", "true", 26), ("invert_media", "true", 27), ("offline", "flags2.1?true", None), ("video_processing_pending", "flags2.4?true", None), ("paid_suggested_post_stars", "flags2.8?true", None), ("paid_suggested_post_ton", "flags2.9?true", None), ("id", "int", None), ("from_id", "Peer", 8), ("from_boosts_applied", "int", 29), ("from_rank", "flags2.12?string", None), ("peer_id", "Peer", None), ("saved_peer_id", "Peer", 28), ("fwd_from", "MessageFwdHeader", 2), ("via_bot_id", "long", 11), ("via_business_bot_id", "flags2.0?long", None), ("guestchat_via_from", "flags2.19?Peer", None), ("reply_to", "MessageReplyHeader", 3), ("date", "int", None), ("message", "string", None), ("media", "MessageMedia", 9), ("reply_markup", "ReplyMarkup", 6), ("entities", "Vector<MessageEntity>", 7), ("views", "int", 10), ("forwards", "int", 10), ("replies", "MessageReplies", 23), ("edit_date", "int", 15), ("post_author", "string", 16), ("grouped_id", "long", 17), ("reactions", "MessageReactions", 20), ("restriction_reason", "Vector<RestrictionReason>", 22), ("ttl_period", "int", 25), ("quick_reply_shortcut_id", "int", 30), ("effect", "flags2.2?long", None), ("factcheck", "flags2.3?FactCheck", None), ("report_delivery_until_date", "flags2.5?int", None), ("paid_message_stars", "flags2.6?long", None), ("suggested_post", "flags2.7?SuggestedPost", None), ("schedule_repeat_period", "flags2.10?int", None), ("summary_from_language", "flags2.11?string", None)]),
2433
2463
  0x7a800e0a: ("messageService", [("out", "true", 1), ("mentioned", "true", 4), ("media_unread", "true", 5), ("reactions_are_possible", "true", 9), ("silent", "true", 13), ("post", "true", 14), ("legacy", "true", 19), ("id", "int", None), ("from_id", "Peer", 8), ("peer_id", "Peer", None), ("saved_peer_id", "Peer", 28), ("reply_to", "MessageReplyHeader", 3), ("date", "int", None), ("action", "MessageAction", None), ("reactions", "MessageReactions", 20), ("ttl_period", "int", 25)]),
2434
2464
  0x3ded6320: ("messageMediaEmpty", []),
2435
2465
  0xe216eb63: ("messageMediaPhoto", [("spoiler", "true", 3), ("live_photo", "true", 4), ("photo", "Photo", 0), ("ttl_seconds", "int", 2), ("video", "Document", 4)]),
@@ -2531,7 +2561,7 @@ _SCHEMA_BY_CID = {
2531
2561
  0xb2a2f663: ("geoPoint", [("long", "double", None), ("lat", "double", None), ("access_hash", "long", None), ("accuracy_radius", "int", 0)]),
2532
2562
  0x5e002502: ("auth.sentCode", [("type", "auth.SentCodeType", None), ("phone_code_hash", "string", None), ("next_type", "auth.CodeType", 1), ("timeout", "int", 2)]),
2533
2563
  0x2390fe44: ("auth.sentCodeSuccess", [("authorization", "auth.Authorization", None)]),
2534
- 0xe0955a3c: ("auth.sentCodePaymentRequired", [("store_product", "string", None), ("phone_code_hash", "string", None), ("support_email_address", "string", None), ("support_email_subject", "string", None), ("currency", "string", None), ("amount", "long", None)]),
2564
+ 0xf8827ebf: ("auth.sentCodePaymentRequired", [("store_product", "string", None), ("phone_code_hash", "string", None), ("support_email_address", "string", None), ("support_email_subject", "string", None), ("premium_days", "int", None), ("currency", "string", None), ("amount", "long", None)]),
2535
2565
  0x2ea2c0d4: ("auth.authorization", [("setup_password_required", "true", 1), ("otherwise_relogin_days", "int", 1), ("tmp_sessions", "int", 0), ("future_auth_token", "bytes", 2), ("user", "User", None)]),
2536
2566
  0x44747e9a: ("auth.authorizationSignUpRequired", [("terms_of_service", "help.TermsOfService", 0)]),
2537
2567
  0xb434e2b8: ("auth.exportedAuthorization", [("id", "long", None), ("bytes", "bytes", None)]),
@@ -2747,6 +2777,8 @@ _SCHEMA_BY_CID = {
2747
2777
  0xac072444: ("updateStarGiftCraftFail", []),
2748
2778
  0xbd8367b9: ("updateChatParticipantRank", [("chat_id", "long", None), ("user_id", "long", None), ("rank", "string", None), ("version", "int", None)]),
2749
2779
  0x4880ed9a: ("updateManagedBot", [("user_id", "long", None), ("bot_id", "long", None), ("qts", "int", None)]),
2780
+ 0xcdd4093d: ("updateBotGuestChatQuery", [("query_id", "long", None), ("message", "Message", None), ("reference_messages", "Vector<Message>", 0), ("qts", "int", None)]),
2781
+ 0x8c0f91fb: ("updateAiComposeTones", []),
2750
2782
  0xa56c2a3e: ("updates.state", [("pts", "int", None), ("qts", "int", None), ("date", "int", None), ("seq", "int", None), ("unread_count", "int", None)]),
2751
2783
  0x5d75a138: ("updates.differenceEmpty", [("date", "int", None), ("seq", "int", None)]),
2752
2784
  0x00f49ca0: ("updates.difference", [("new_messages", "Vector<Message>", None), ("new_encrypted_messages", "Vector<EncryptedMessage>", None), ("other_updates", "Vector<Update>", None), ("chats", "Vector<Chat>", None), ("users", "Vector<User>", None), ("state", "updates.State", None)]),
@@ -3053,6 +3085,7 @@ _SCHEMA_BY_CID = {
3053
3085
  0xa8406ca9: ("topPeerCategoryForwardUsers", []),
3054
3086
  0xfbeec0f0: ("topPeerCategoryForwardChats", []),
3055
3087
  0xfd9e7bec: ("topPeerCategoryBotsApp", []),
3088
+ 0x6c24f3dd: ("topPeerCategoryBotsGuestChat", []),
3056
3089
  0xfb834291: ("topPeerCategoryPeers", [("category", "TopPeerCategory", None), ("count", "int", None), ("peers", "Vector<TopPeer>", None)]),
3057
3090
  0xde266ef5: ("contacts.topPeersNotModified", []),
3058
3091
  0x70b772a8: ("contacts.topPeers", [("categories", "Vector<TopPeerCategoryPeers>", None), ("chats", "Vector<Chat>", None), ("users", "Vector<User>", None)]),
@@ -3332,13 +3365,13 @@ _SCHEMA_BY_CID = {
3332
3365
  0x01eb3758: ("help.userInfo", [("message", "string", None), ("entities", "Vector<MessageEntity>", None), ("author", "string", None), ("date", "int", None)]),
3333
3366
  0x4b7d786a: ("pollAnswer", [("text", "TextWithEntities", None), ("option", "bytes", None), ("media", "MessageMedia", 0), ("added_by", "Peer", 1), ("date", "int", 1)]),
3334
3367
  0x199fed96: ("inputPollAnswer", [("text", "TextWithEntities", None), ("media", "InputMedia", 0)]),
3335
- 0xb8425be9: ("poll", [("id", "long", None), ("closed", "true", 0), ("public_voters", "true", 1), ("multiple_choice", "true", 2), ("quiz", "true", 3), ("open_answers", "true", 6), ("revoting_disabled", "true", 7), ("shuffle_answers", "true", 8), ("hide_results_until_close", "true", 9), ("creator", "true", 10), ("question", "TextWithEntities", None), ("answers", "Vector<PollAnswer>", None), ("close_period", "int", 4), ("close_date", "int", 5), ("hash", "long", None)]),
3368
+ 0x966e2dbf: ("poll", [("id", "long", None), ("closed", "true", 0), ("public_voters", "true", 1), ("multiple_choice", "true", 2), ("quiz", "true", 3), ("open_answers", "true", 6), ("revoting_disabled", "true", 7), ("shuffle_answers", "true", 8), ("hide_results_until_close", "true", 9), ("creator", "true", 10), ("subscribers_only", "true", 11), ("question", "TextWithEntities", None), ("answers", "Vector<PollAnswer>", None), ("close_period", "int", 4), ("close_date", "int", 5), ("countries_iso2", "Vector<string>", 12), ("hash", "long", None)]),
3336
3369
  0x3645230a: ("pollAnswerVoters", [("chosen", "true", 0), ("correct", "true", 1), ("option", "bytes", None), ("voters", "int", 2), ("recent_voters", "Vector<Peer>", 2)]),
3337
- 0xba7bb15e: ("pollResults", [("min", "true", 0), ("has_unread_votes", "true", 6), ("results", "Vector<PollAnswerVoters>", 1), ("total_voters", "int", 2), ("recent_voters", "Vector<Peer>", 3), ("solution", "string", 4), ("solution_entities", "Vector<MessageEntity>", 4), ("solution_media", "MessageMedia", 5)]),
3370
+ 0xba7bb15e: ("pollResults", [("min", "true", 0), ("has_unread_votes", "true", 6), ("can_view_stats", "true", 7), ("results", "Vector<PollAnswerVoters>", 1), ("total_voters", "int", 2), ("recent_voters", "Vector<Peer>", 3), ("solution", "string", 4), ("solution_entities", "Vector<MessageEntity>", 4), ("solution_media", "MessageMedia", 5)]),
3338
3371
  0xf041e250: ("chatOnlines", [("onlines", "int", None)]),
3339
3372
  0x47a971e0: ("statsURL", [("url", "string", None)]),
3340
3373
  0x5fb224d5: ("chatAdminRights", [("change_info", "true", 0), ("post_messages", "true", 1), ("edit_messages", "true", 2), ("delete_messages", "true", 3), ("ban_users", "true", 4), ("invite_users", "true", 5), ("pin_messages", "true", 7), ("add_admins", "true", 9), ("anonymous", "true", 10), ("manage_call", "true", 11), ("other", "true", 12), ("manage_topics", "true", 13), ("post_stories", "true", 14), ("edit_stories", "true", 15), ("delete_stories", "true", 16), ("manage_direct_messages", "true", 17), ("manage_ranks", "true", 18)]),
3341
- 0x9f120418: ("chatBannedRights", [("view_messages", "true", 0), ("send_messages", "true", 1), ("send_media", "true", 2), ("send_stickers", "true", 3), ("send_gifs", "true", 4), ("send_games", "true", 5), ("send_inline", "true", 6), ("embed_links", "true", 7), ("send_polls", "true", 8), ("change_info", "true", 10), ("invite_users", "true", 15), ("pin_messages", "true", 17), ("manage_topics", "true", 18), ("send_photos", "true", 19), ("send_videos", "true", 20), ("send_roundvideos", "true", 21), ("send_audios", "true", 22), ("send_voices", "true", 23), ("send_docs", "true", 24), ("send_plain", "true", 25), ("edit_rank", "true", 26), ("until_date", "int", None)]),
3374
+ 0x9f120418: ("chatBannedRights", [("view_messages", "true", 0), ("send_messages", "true", 1), ("send_media", "true", 2), ("send_stickers", "true", 3), ("send_gifs", "true", 4), ("send_games", "true", 5), ("send_inline", "true", 6), ("embed_links", "true", 7), ("send_polls", "true", 8), ("change_info", "true", 10), ("invite_users", "true", 15), ("pin_messages", "true", 17), ("manage_topics", "true", 18), ("send_photos", "true", 19), ("send_videos", "true", 20), ("send_roundvideos", "true", 21), ("send_audios", "true", 22), ("send_voices", "true", 23), ("send_docs", "true", 24), ("send_plain", "true", 25), ("edit_rank", "true", 26), ("send_reactions", "true", 27), ("until_date", "int", None)]),
3342
3375
  0xe630b979: ("inputWallPaper", [("id", "long", None), ("access_hash", "long", None)]),
3343
3376
  0x72091c80: ("inputWallPaperSlug", [("slug", "string", None)]),
3344
3377
  0x967a462e: ("inputWallPaperNoFile", [("id", "long", None)]),
@@ -3388,6 +3421,7 @@ _SCHEMA_BY_CID = {
3388
3421
  0xcf6f6db8: ("webPageAttributeUniqueStarGift", [("gift", "StarGift", None)]),
3389
3422
  0x31cad303: ("webPageAttributeStarGiftCollection", [("icons", "Vector<Document>", None)]),
3390
3423
  0x01c641c2: ("webPageAttributeStarGiftAuction", [("gift", "StarGift", None), ("end_date", "int", None)]),
3424
+ 0x7781fe18: ("webPageAttributeAiComposeTone", [("emoji_id", "long", None)]),
3391
3425
  0x4899484e: ("messages.votesList", [("count", "int", None), ("votes", "Vector<MessagePeerVote>", None), ("chats", "Vector<Chat>", None), ("users", "Vector<User>", None), ("next_offset", "string", 0)]),
3392
3426
  0xf568028a: ("bankCardOpenUrl", [("url", "string", None), ("name", "string", None)]),
3393
3427
  0x3e24e573: ("payments.bankCardData", [("title", "string", None), ("open_urls", "Vector<BankCardOpenUrl>", None)]),
@@ -3538,7 +3572,7 @@ _SCHEMA_BY_CID = {
3538
3572
  0xf9a2a6cb: ("inputStorePaymentStarsTopup", [("stars", "long", None), ("currency", "string", None), ("amount", "long", None), ("spend_purpose_peer", "InputPeer", 0)]),
3539
3573
  0x1d741ef7: ("inputStorePaymentStarsGift", [("user_id", "InputUser", None), ("stars", "long", None), ("currency", "string", None), ("amount", "long", None)]),
3540
3574
  0x751f08fa: ("inputStorePaymentStarsGiveaway", [("only_new_subscribers", "true", 0), ("winners_are_visible", "true", 3), ("stars", "long", None), ("boost_peer", "InputPeer", None), ("additional_peers", "Vector<InputPeer>", 1), ("countries_iso2", "Vector<string>", 2), ("prize_description", "string", 4), ("random_id", "long", None), ("until_date", "int", None), ("currency", "string", None), ("amount", "long", None), ("users", "int", None)]),
3541
- 0x9bb2636d: ("inputStorePaymentAuthCode", [("restore", "true", 0), ("phone_number", "string", None), ("phone_code_hash", "string", None), ("currency", "string", None), ("amount", "long", None)]),
3575
+ 0x3fc18057: ("inputStorePaymentAuthCode", [("restore", "true", 0), ("phone_number", "string", None), ("phone_code_hash", "string", None), ("premium_days", "int", None), ("currency", "string", None), ("amount", "long", None)]),
3542
3576
  0x88f8f21b: ("paymentFormMethod", [("url", "string", None), ("title", "string", None)]),
3543
3577
  0x2de11aae: ("emojiStatusEmpty", []),
3544
3578
  0xe7ff068a: ("emojiStatus", [("document_id", "long", None), ("until", "int", 0)]),
@@ -3893,4 +3927,14 @@ _SCHEMA_BY_CID = {
3893
3927
  0x3c60b621: ("bots.exportedBotToken", [("token", "string", None)]),
3894
3928
  0xf13bbcd7: ("bots.requestedButton", [("webapp_req_id", "string", None)]),
3895
3929
  0x90d7adfa: ("messages.composedMessageWithAI", [("result_text", "TextWithEntities", None), ("diff_text", "TextWithEntities", 0)]),
3930
+ 0x2999beed: ("stats.pollStats", [("votes_graph", "StatsGraph", None)]),
3931
+ 0x1fe9a9bf: ("inputAiComposeToneDefault", [("tone", "string", None)]),
3932
+ 0x0773c080: ("inputAiComposeToneID", [("id", "long", None), ("access_hash", "long", None)]),
3933
+ 0x1fa01357: ("inputAiComposeToneSlug", [("slug", "string", None)]),
3934
+ 0xcff63ea9: ("aiComposeTone", [("creator", "true", 0), ("id", "long", None), ("access_hash", "long", None), ("slug", "string", None), ("title", "string", None), ("emoji_id", "long", 1), ("prompt", "string", 4), ("installs_count", "int", 2), ("author_id", "long", 3), ("example_english", "AiComposeToneExample", 5)]),
3935
+ 0x9bad6414: ("aiComposeToneDefault", [("tone", "string", None), ("emoji_id", "long", None), ("title", "string", None)]),
3936
+ 0xc1f46103: ("aicompose.tonesNotModified", []),
3937
+ 0x6c9d0efe: ("aicompose.tones", [("hash", "long", None), ("tones", "Vector<AiComposeTone>", None), ("users", "Vector<User>", None)]),
3938
+ 0xf1d628ec: ("aiComposeToneExample", [("from", "TextWithEntities", None), ("to", "TextWithEntities", None)]),
3939
+ 0xdd1fbf93: ("bots.accessSettings", [("restricted", "true", 0), ("add_users", "Vector<User>", 1)]),
3896
3940
  }
@@ -1,3 +1,6 @@
1
+ # auto-generated - do not edit
2
+
3
+
1
4
  # Copyright (c) Ankit Chaubey <ankitchaubey.dev@gmail.com>
2
5
  # SPDX-License-Identifier: MIT OR Apache-2.0
3
6
  #
@@ -11,13 +14,12 @@
11
14
  # If you use or modify this code, keep this notice at the top of the file
12
15
  # and include the LICENSE-MIT or LICENSE-APACHE file from this repository.
13
16
 
14
-
15
- # auto-generated - do not edit
16
17
  # Flat imports so both styles work:
17
18
  # raw.functions.messages.GetHistory(...) ← namespace style
18
19
  # raw.functions.GetHistory(...) ← flat style (convenience)
19
20
 
20
21
  from .account import * # noqa: F401,F403
22
+ from .aicompose import * # noqa: F401,F403
21
23
  from .auth import * # noqa: F401,F403
22
24
  from .bots import * # noqa: F401,F403
23
25
  from .channels import * # noqa: F401,F403
@@ -42,6 +44,7 @@ from .users import * # noqa: F401,F403
42
44
 
43
45
  # namespace sub-modules
44
46
  from . import account # noqa: F401
47
+ from . import aicompose # noqa: F401
45
48
  from . import auth # noqa: F401
46
49
  from . import bots # noqa: F401
47
50
  from . import channels # noqa: F401