@mtkruto/node 0.69.0 → 0.70.0

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 (541) hide show
  1. package/esm/0_deps.d.ts +3 -1
  2. package/esm/0_deps.d.ts.map +1 -1
  3. package/esm/0_deps.js +3 -1
  4. package/esm/3_types.d.ts +35 -35
  5. package/esm/3_types.d.ts.map +1 -1
  6. package/esm/3_types.js +35 -35
  7. package/esm/_dnt.polyfills.d.ts +7 -0
  8. package/esm/_dnt.polyfills.d.ts.map +1 -1
  9. package/esm/_dnt.polyfills.js +109 -0
  10. package/esm/client/0_abortable_loop.d.ts +27 -0
  11. package/esm/client/0_abortable_loop.d.ts.map +1 -0
  12. package/esm/client/0_abortable_loop.js +49 -0
  13. package/esm/client/0_filters.d.ts +9 -3
  14. package/esm/client/0_filters.d.ts.map +1 -1
  15. package/esm/client/0_filters.js +4 -1
  16. package/esm/client/0_params.d.ts +1 -1
  17. package/esm/client/0_password.d.ts +2 -2
  18. package/esm/client/0_password.d.ts.map +1 -1
  19. package/esm/client/0_storage_operations.d.ts +53 -71
  20. package/esm/client/0_storage_operations.d.ts.map +1 -1
  21. package/esm/client/0_storage_operations.js +241 -238
  22. package/esm/client/0_update_processor.d.ts +2 -2
  23. package/esm/client/0_update_processor.d.ts.map +1 -1
  24. package/esm/client/0_utilities.d.ts +2 -2
  25. package/esm/client/0_utilities.d.ts.map +1 -1
  26. package/esm/client/1_types.d.ts +2 -2
  27. package/esm/client/1_types.d.ts.map +1 -1
  28. package/esm/client/2_account_manager.js +5 -5
  29. package/esm/client/2_business_connection_manager.d.ts +1 -1
  30. package/esm/client/2_business_connection_manager.d.ts.map +1 -1
  31. package/esm/client/2_business_connection_manager.js +3 -3
  32. package/esm/client/2_client_encrypted.d.ts +1 -1
  33. package/esm/client/2_client_encrypted.d.ts.map +1 -1
  34. package/esm/client/2_file_manager.js +2 -2
  35. package/esm/client/2_payment_manager.d.ts +1 -1
  36. package/esm/client/2_payment_manager.d.ts.map +1 -1
  37. package/esm/client/2_payment_manager.js +2 -2
  38. package/esm/client/2_reaction_manager.d.ts +1 -1
  39. package/esm/client/2_reaction_manager.d.ts.map +1 -1
  40. package/esm/client/2_reaction_manager.js +2 -2
  41. package/esm/client/2_translations_manager.d.ts +1 -1
  42. package/esm/client/2_translations_manager.d.ts.map +1 -1
  43. package/esm/client/2_translations_manager.js +15 -11
  44. package/esm/client/2_update_manager.d.ts +4 -2
  45. package/esm/client/2_update_manager.d.ts.map +1 -1
  46. package/esm/client/2_update_manager.js +61 -79
  47. package/esm/client/3_message_manager.d.ts +2 -2
  48. package/esm/client/3_message_manager.d.ts.map +1 -1
  49. package/esm/client/3_message_manager.js +5 -5
  50. package/esm/client/3_video_chat_manager.d.ts +1 -1
  51. package/esm/client/3_video_chat_manager.d.ts.map +1 -1
  52. package/esm/client/4_callback_query_manager.d.ts +1 -1
  53. package/esm/client/4_callback_query_manager.d.ts.map +1 -1
  54. package/esm/client/4_callback_query_manager.js +1 -1
  55. package/esm/client/4_chat_list_manager.d.ts +2 -3
  56. package/esm/client/4_chat_list_manager.d.ts.map +1 -1
  57. package/esm/client/4_chat_list_manager.js +10 -265
  58. package/esm/client/4_chat_manager.d.ts +2 -2
  59. package/esm/client/4_chat_manager.d.ts.map +1 -1
  60. package/esm/client/4_chat_manager.js +7 -7
  61. package/esm/client/4_gift_manager.js +3 -3
  62. package/esm/client/4_inline_query_manager.d.ts +1 -1
  63. package/esm/client/4_inline_query_manager.d.ts.map +1 -1
  64. package/esm/client/4_inline_query_manager.js +3 -3
  65. package/esm/client/4_link_preview_manager.d.ts +1 -1
  66. package/esm/client/4_link_preview_manager.d.ts.map +1 -1
  67. package/esm/client/4_link_preview_manager.js +3 -3
  68. package/esm/client/4_poll_manager.d.ts +1 -1
  69. package/esm/client/4_poll_manager.d.ts.map +1 -1
  70. package/esm/client/4_poll_manager.js +1 -1
  71. package/esm/client/4_story_manager.d.ts +1 -1
  72. package/esm/client/4_story_manager.d.ts.map +1 -1
  73. package/esm/client/4_story_manager.js +7 -7
  74. package/esm/client/5_client.d.ts +15 -9
  75. package/esm/client/5_client.d.ts.map +1 -1
  76. package/esm/client/5_client.js +420 -382
  77. package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts +12 -0
  78. package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts.map +1 -0
  79. package/esm/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.js +69 -0
  80. package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts +112 -0
  81. package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts.map +1 -0
  82. package/esm/deps/jsr.io/@std/cache/0.2.0/lru_cache.js +140 -0
  83. package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts +111 -0
  84. package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts.map +1 -0
  85. package/esm/deps/jsr.io/@std/cache/0.2.0/memoize.js +82 -0
  86. package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts +39 -0
  87. package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
  88. package/esm/deps/jsr.io/@std/encoding/1.0.7/hex.js +109 -0
  89. package/esm/session/2_session_encrypted.d.ts +1 -1
  90. package/esm/session/2_session_encrypted.d.ts.map +1 -1
  91. package/esm/session/2_session_encrypted.js +71 -72
  92. package/esm/storage/0_storage.d.ts +1 -0
  93. package/esm/storage/0_storage.d.ts.map +1 -1
  94. package/esm/storage/2_storage_indexed_db.d.ts +1 -0
  95. package/esm/storage/2_storage_indexed_db.d.ts.map +1 -1
  96. package/esm/storage/2_storage_indexed_db.js +3 -0
  97. package/esm/storage/2_storage_local_storage.node.d.ts +1 -0
  98. package/esm/storage/2_storage_local_storage.node.d.ts.map +1 -1
  99. package/esm/storage/2_storage_local_storage.node.js +3 -0
  100. package/esm/storage/2_storage_memory.d.ts +1 -0
  101. package/esm/storage/2_storage_memory.d.ts.map +1 -1
  102. package/esm/storage/2_storage_memory.js +3 -0
  103. package/esm/storage/2_storage_session_storage.d.ts +1 -0
  104. package/esm/storage/2_storage_session_storage.d.ts.map +1 -1
  105. package/esm/storage/2_storage_session_storage.js +3 -0
  106. package/esm/tl/0_utilities.d.ts +1 -0
  107. package/esm/tl/0_utilities.d.ts.map +1 -1
  108. package/esm/tl/0_utilities.js +20 -1
  109. package/esm/tl/1_telegram_api.d.ts +810 -254
  110. package/esm/tl/1_telegram_api.d.ts.map +1 -1
  111. package/esm/tl/1_telegram_api.js +912 -213
  112. package/esm/tl/1_tl_reader.d.ts +2 -2
  113. package/esm/tl/1_tl_reader.d.ts.map +1 -1
  114. package/esm/tl/1_tl_writer.d.ts +2 -2
  115. package/esm/tl/1_tl_writer.d.ts.map +1 -1
  116. package/esm/tl/2_mtproto.d.ts +1 -1
  117. package/esm/tl/2_mtproto.d.ts.map +1 -1
  118. package/esm/types/0_file_source.d.ts +1 -1
  119. package/esm/types/0_file_source.d.ts.map +1 -1
  120. package/esm/types/1_chat_p.d.ts +10 -0
  121. package/esm/types/1_chat_p.d.ts.map +1 -1
  122. package/esm/types/1_chat_p.js +4 -0
  123. package/esm/types/2_chat.d.ts +2 -5
  124. package/esm/types/2_chat.d.ts.map +1 -1
  125. package/esm/types/2_chat.js +10 -15
  126. package/esm/types/{0_message_entity.d.ts → 2_message_entity.d.ts} +3 -3
  127. package/esm/types/{0_message_entity.d.ts.map → 2_message_entity.d.ts.map} +1 -1
  128. package/esm/types/{0_message_entity.js → 2_message_entity.js} +7 -7
  129. package/esm/types/2_message_reaction_count.d.ts +2 -3
  130. package/esm/types/2_message_reaction_count.d.ts.map +1 -1
  131. package/esm/types/2_message_reaction_count.js +4 -6
  132. package/esm/types/2_poll_answer.d.ts +2 -3
  133. package/esm/types/2_poll_answer.d.ts.map +1 -1
  134. package/esm/types/2_poll_answer.js +4 -5
  135. package/esm/types/2_story_interactive_area.d.ts +2 -2
  136. package/esm/types/2_story_interactive_area.d.ts.map +1 -1
  137. package/esm/types/2_story_interactive_area.js +2 -2
  138. package/esm/types/{1_story_privacy.d.ts → 2_story_privacy.d.ts} +3 -3
  139. package/esm/types/{1_story_privacy.d.ts.map → 2_story_privacy.d.ts.map} +1 -1
  140. package/esm/types/{1_story_privacy.js → 2_story_privacy.js} +10 -10
  141. package/{script/types/1_user.d.ts → esm/types/2_user.d.ts} +5 -1
  142. package/esm/types/2_user.d.ts.map +1 -0
  143. package/esm/types/{1_user.js → 2_user.js} +24 -0
  144. package/esm/types/{2_business_connection.d.ts → 3_business_connection.d.ts} +4 -4
  145. package/esm/types/3_business_connection.d.ts.map +1 -0
  146. package/esm/types/{2_business_connection.js → 3_business_connection.js} +10 -3
  147. package/{script/types/2_chat_member.d.ts → esm/types/3_chat_member.d.ts} +6 -4
  148. package/esm/types/{2_chat_member.d.ts.map → 3_chat_member.d.ts.map} +1 -1
  149. package/esm/types/{2_chat_member.js → 3_chat_member.js} +5 -5
  150. package/esm/types/{2_chat_settings.d.ts → 3_chat_settings.d.ts} +2 -2
  151. package/{script/types/2_chat_settings.d.ts.map → esm/types/3_chat_settings.d.ts.map} +1 -1
  152. package/esm/types/{2_chat_settings.js → 3_chat_settings.js} +1 -1
  153. package/esm/types/{2_chosen_inline_result.d.ts → 3_chosen_inline_result.d.ts} +4 -4
  154. package/esm/types/3_chosen_inline_result.d.ts.map +1 -0
  155. package/esm/types/{2_chosen_inline_result.js → 3_chosen_inline_result.js} +3 -3
  156. package/esm/types/{2_forward_header.d.ts → 3_forward_header.d.ts} +4 -5
  157. package/esm/types/3_forward_header.d.ts.map +1 -0
  158. package/esm/types/{2_forward_header.js → 3_forward_header.js} +11 -12
  159. package/{script/types/2_game.d.ts → esm/types/3_game.d.ts} +2 -2
  160. package/esm/types/3_game.d.ts.map +1 -0
  161. package/esm/types/{2_gift_upgraded_component.d.ts → 3_gift_upgraded_component.d.ts} +2 -2
  162. package/esm/types/{2_gift_upgraded_component.d.ts.map → 3_gift_upgraded_component.d.ts.map} +1 -1
  163. package/esm/types/{2_gift_upgraded_component.js → 3_gift_upgraded_component.js} +1 -1
  164. package/esm/types/{2_inline_query.d.ts → 3_inline_query.d.ts} +4 -4
  165. package/esm/types/3_inline_query.d.ts.map +1 -0
  166. package/esm/types/{2_inline_query.js → 3_inline_query.js} +5 -5
  167. package/{script/types/1_input_media.d.ts → esm/types/3_input_media.d.ts} +2 -2
  168. package/esm/types/{1_input_media.d.ts.map → 3_input_media.d.ts.map} +1 -1
  169. package/{script/types/2_invite_link.d.ts → esm/types/3_invite_link.d.ts} +4 -4
  170. package/{script/types/2_invite_link.d.ts.map → esm/types/3_invite_link.d.ts.map} +1 -1
  171. package/esm/types/{2_invite_link.js → 3_invite_link.js} +5 -5
  172. package/{script/types/2_message_reactions.d.ts → esm/types/3_message_reactions.d.ts} +5 -6
  173. package/esm/types/3_message_reactions.d.ts.map +1 -0
  174. package/esm/types/{2_message_reactions.js → 3_message_reactions.js} +10 -12
  175. package/esm/types/{1_poll_option.d.ts → 3_poll_option.d.ts} +2 -2
  176. package/esm/types/{1_poll_option.d.ts.map → 3_poll_option.d.ts.map} +1 -1
  177. package/esm/types/{1_poll_option.js → 3_poll_option.js} +1 -1
  178. package/esm/types/{2_pre_checkout_query.d.ts → 3_pre_checkout_query.d.ts} +4 -4
  179. package/esm/types/3_pre_checkout_query.d.ts.map +1 -0
  180. package/esm/types/{2_pre_checkout_query.js → 3_pre_checkout_query.js} +5 -5
  181. package/{script/types/1_reply_quote.d.ts → esm/types/3_reply_quote.d.ts} +2 -2
  182. package/esm/types/{1_reply_quote.d.ts.map → 3_reply_quote.d.ts.map} +1 -1
  183. package/esm/types/{1_reply_quote.js → 3_reply_quote.js} +1 -1
  184. package/esm/types/3_story.d.ts +4 -5
  185. package/esm/types/3_story.d.ts.map +1 -1
  186. package/esm/types/3_story.js +6 -7
  187. package/esm/types/{3_chat_member_updated.d.ts → 4_chat_member_updated.d.ts} +6 -7
  188. package/esm/types/4_chat_member_updated.d.ts.map +1 -0
  189. package/esm/types/{3_chat_member_updated.js → 4_chat_member_updated.js} +13 -14
  190. package/esm/types/{3_gift.d.ts → 4_gift.d.ts} +6 -6
  191. package/esm/types/{3_gift.d.ts.map → 4_gift.d.ts.map} +1 -1
  192. package/esm/types/{3_gift.js → 4_gift.js} +7 -7
  193. package/esm/types/{3_join_request.d.ts → 4_join_request.d.ts} +6 -7
  194. package/esm/types/4_join_request.d.ts.map +1 -0
  195. package/esm/types/{3_join_request.js → 4_join_request.js} +17 -18
  196. package/esm/types/{2_poll.d.ts → 4_poll.d.ts} +3 -3
  197. package/esm/types/{2_poll.d.ts.map → 4_poll.d.ts.map} +1 -1
  198. package/esm/types/{2_poll.js → 4_poll.js} +2 -2
  199. package/{script/types/2_reply_to.d.ts → esm/types/4_reply_to.d.ts} +2 -2
  200. package/esm/types/{2_reply_to.d.ts.map → 4_reply_to.d.ts.map} +1 -1
  201. package/esm/types/{4_claimed_gift.d.ts → 5_claimed_gift.d.ts} +5 -6
  202. package/esm/types/5_claimed_gift.d.ts.map +1 -0
  203. package/esm/types/{4_claimed_gift.js → 5_claimed_gift.js} +4 -4
  204. package/esm/types/{4_link_preview.d.ts → 5_link_preview.d.ts} +4 -4
  205. package/{script/types/4_link_preview.d.ts.map → esm/types/5_link_preview.d.ts.map} +1 -1
  206. package/esm/types/{4_link_preview.js → 5_link_preview.js} +3 -3
  207. package/esm/types/{5_claimed_gifts.d.ts → 6_claimed_gifts.d.ts} +4 -4
  208. package/esm/types/6_claimed_gifts.d.ts.map +1 -0
  209. package/esm/types/{5_claimed_gifts.js → 6_claimed_gifts.js} +4 -4
  210. package/esm/types/{5_message.d.ts → 6_message.d.ts} +10 -11
  211. package/esm/types/6_message.d.ts.map +1 -0
  212. package/esm/types/{5_message.js → 6_message.js} +41 -66
  213. package/{script/types/5_message_content.d.ts → esm/types/6_message_content.d.ts} +3 -3
  214. package/esm/types/{5_message_content.d.ts.map → 6_message_content.d.ts.map} +1 -1
  215. package/{script/types/6_callback_query.d.ts → esm/types/7_callback_query.d.ts} +5 -5
  216. package/esm/types/{6_callback_query.d.ts.map → 7_callback_query.d.ts.map} +1 -1
  217. package/esm/types/{6_callback_query.js → 7_callback_query.js} +5 -5
  218. package/{script/types/6_chat_list_item.d.ts → esm/types/7_chat_list_item.d.ts} +6 -7
  219. package/esm/types/7_chat_list_item.d.ts.map +1 -0
  220. package/esm/types/{6_chat_list_item.js → 7_chat_list_item.js} +11 -11
  221. package/{script/types/6_inline_query_result.d.ts → esm/types/7_inline_query_result.d.ts} +3 -3
  222. package/esm/types/{6_inline_query_result.d.ts.map → 7_inline_query_result.d.ts.map} +1 -1
  223. package/esm/types/{6_inline_query_result.js → 7_inline_query_result.js} +1 -1
  224. package/esm/types/{6_saved_chat.d.ts → 7_saved_chat.d.ts} +4 -5
  225. package/esm/types/7_saved_chat.d.ts.map +1 -0
  226. package/esm/types/{6_saved_chat.js → 7_saved_chat.js} +4 -4
  227. package/esm/types/{6_topic.d.ts → 7_topic.d.ts} +2 -2
  228. package/esm/types/{6_topic.d.ts.map → 7_topic.d.ts.map} +1 -1
  229. package/esm/types/{7_inline_query_answer.d.ts → 8_inline_query_answer.d.ts} +2 -2
  230. package/esm/types/{7_inline_query_answer.d.ts.map → 8_inline_query_answer.d.ts.map} +1 -1
  231. package/esm/types/{7_inline_query_answer.js → 8_inline_query_answer.js} +1 -1
  232. package/{script/types/7_saved_chats.d.ts → esm/types/8_saved_chats.d.ts} +5 -5
  233. package/esm/types/8_saved_chats.d.ts.map +1 -0
  234. package/esm/types/{7_saved_chats.js → 8_saved_chats.js} +3 -3
  235. package/esm/types/{7_update.d.ts → 8_update.d.ts} +35 -16
  236. package/esm/types/8_update.d.ts.map +1 -0
  237. package/esm/types/_file_id.d.ts +1 -1
  238. package/esm/types/_file_id.d.ts.map +1 -1
  239. package/esm/types/_getters.d.ts +0 -7
  240. package/esm/types/_getters.d.ts.map +1 -1
  241. package/esm/utilities/0_hash.d.ts +2 -2
  242. package/esm/utilities/0_hash.d.ts.map +1 -1
  243. package/esm/utilities/0_misc.d.ts +1 -0
  244. package/esm/utilities/0_misc.d.ts.map +1 -1
  245. package/esm/utilities/0_misc.js +14 -1
  246. package/esm/utilities/0_part_stream.d.ts +1 -1
  247. package/esm/utilities/0_part_stream.d.ts.map +1 -1
  248. package/package.json +1 -1
  249. package/script/0_deps.d.ts +3 -1
  250. package/script/0_deps.d.ts.map +1 -1
  251. package/script/0_deps.js +6 -1
  252. package/script/3_types.d.ts +35 -35
  253. package/script/3_types.d.ts.map +1 -1
  254. package/script/3_types.js +35 -35
  255. package/script/_dnt.polyfills.d.ts +7 -0
  256. package/script/_dnt.polyfills.d.ts.map +1 -1
  257. package/script/_dnt.polyfills.js +109 -0
  258. package/script/client/0_abortable_loop.d.ts +27 -0
  259. package/script/client/0_abortable_loop.d.ts.map +1 -0
  260. package/script/client/0_abortable_loop.js +53 -0
  261. package/script/client/0_filters.d.ts +9 -3
  262. package/script/client/0_filters.d.ts.map +1 -1
  263. package/script/client/0_filters.js +4 -1
  264. package/script/client/0_params.d.ts +1 -1
  265. package/script/client/0_password.d.ts +2 -2
  266. package/script/client/0_password.d.ts.map +1 -1
  267. package/script/client/0_storage_operations.d.ts +53 -71
  268. package/script/client/0_storage_operations.d.ts.map +1 -1
  269. package/script/client/0_storage_operations.js +239 -236
  270. package/script/client/0_update_processor.d.ts +2 -2
  271. package/script/client/0_update_processor.d.ts.map +1 -1
  272. package/script/client/0_utilities.d.ts +2 -2
  273. package/script/client/0_utilities.d.ts.map +1 -1
  274. package/script/client/1_types.d.ts +2 -2
  275. package/script/client/1_types.d.ts.map +1 -1
  276. package/script/client/2_account_manager.js +5 -5
  277. package/script/client/2_business_connection_manager.d.ts +1 -1
  278. package/script/client/2_business_connection_manager.d.ts.map +1 -1
  279. package/script/client/2_business_connection_manager.js +3 -3
  280. package/script/client/2_client_encrypted.d.ts +1 -1
  281. package/script/client/2_client_encrypted.d.ts.map +1 -1
  282. package/script/client/2_file_manager.js +2 -2
  283. package/script/client/2_payment_manager.d.ts +1 -1
  284. package/script/client/2_payment_manager.d.ts.map +1 -1
  285. package/script/client/2_payment_manager.js +2 -2
  286. package/script/client/2_reaction_manager.d.ts +1 -1
  287. package/script/client/2_reaction_manager.d.ts.map +1 -1
  288. package/script/client/2_reaction_manager.js +2 -2
  289. package/script/client/2_translations_manager.d.ts +1 -1
  290. package/script/client/2_translations_manager.d.ts.map +1 -1
  291. package/script/client/2_translations_manager.js +15 -11
  292. package/script/client/2_update_manager.d.ts +4 -2
  293. package/script/client/2_update_manager.d.ts.map +1 -1
  294. package/script/client/2_update_manager.js +61 -79
  295. package/script/client/3_message_manager.d.ts +2 -2
  296. package/script/client/3_message_manager.d.ts.map +1 -1
  297. package/script/client/3_message_manager.js +5 -5
  298. package/script/client/3_video_chat_manager.d.ts +1 -1
  299. package/script/client/3_video_chat_manager.d.ts.map +1 -1
  300. package/script/client/4_callback_query_manager.d.ts +1 -1
  301. package/script/client/4_callback_query_manager.d.ts.map +1 -1
  302. package/script/client/4_callback_query_manager.js +1 -1
  303. package/script/client/4_chat_list_manager.d.ts +2 -3
  304. package/script/client/4_chat_list_manager.d.ts.map +1 -1
  305. package/script/client/4_chat_list_manager.js +9 -264
  306. package/script/client/4_chat_manager.d.ts +2 -2
  307. package/script/client/4_chat_manager.d.ts.map +1 -1
  308. package/script/client/4_chat_manager.js +7 -7
  309. package/script/client/4_gift_manager.js +3 -3
  310. package/script/client/4_inline_query_manager.d.ts +1 -1
  311. package/script/client/4_inline_query_manager.d.ts.map +1 -1
  312. package/script/client/4_inline_query_manager.js +3 -3
  313. package/script/client/4_link_preview_manager.d.ts +1 -1
  314. package/script/client/4_link_preview_manager.d.ts.map +1 -1
  315. package/script/client/4_link_preview_manager.js +3 -3
  316. package/script/client/4_poll_manager.d.ts +1 -1
  317. package/script/client/4_poll_manager.d.ts.map +1 -1
  318. package/script/client/4_poll_manager.js +1 -1
  319. package/script/client/4_story_manager.d.ts +1 -1
  320. package/script/client/4_story_manager.d.ts.map +1 -1
  321. package/script/client/4_story_manager.js +7 -7
  322. package/script/client/5_client.d.ts +15 -9
  323. package/script/client/5_client.d.ts.map +1 -1
  324. package/script/client/5_client.js +418 -380
  325. package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts +12 -0
  326. package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.d.ts.map +1 -0
  327. package/script/deps/jsr.io/@std/cache/0.2.0/_serialize_arg_list.js +72 -0
  328. package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts +112 -0
  329. package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.d.ts.map +1 -0
  330. package/script/deps/jsr.io/@std/cache/0.2.0/lru_cache.js +144 -0
  331. package/script/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts +111 -0
  332. package/script/deps/jsr.io/@std/cache/0.2.0/memoize.d.ts.map +1 -0
  333. package/script/deps/jsr.io/@std/cache/0.2.0/memoize.js +85 -0
  334. package/script/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts +39 -0
  335. package/script/deps/jsr.io/@std/encoding/1.0.7/hex.d.ts.map +1 -0
  336. package/script/deps/jsr.io/@std/encoding/1.0.7/hex.js +113 -0
  337. package/script/session/2_session_encrypted.d.ts +1 -1
  338. package/script/session/2_session_encrypted.d.ts.map +1 -1
  339. package/script/session/2_session_encrypted.js +70 -71
  340. package/script/storage/0_storage.d.ts +1 -0
  341. package/script/storage/0_storage.d.ts.map +1 -1
  342. package/script/storage/2_storage_indexed_db.d.ts +1 -0
  343. package/script/storage/2_storage_indexed_db.d.ts.map +1 -1
  344. package/script/storage/2_storage_indexed_db.js +3 -0
  345. package/script/storage/2_storage_local_storage.node.d.ts +1 -0
  346. package/script/storage/2_storage_local_storage.node.d.ts.map +1 -1
  347. package/script/storage/2_storage_local_storage.node.js +3 -0
  348. package/script/storage/2_storage_memory.d.ts +1 -0
  349. package/script/storage/2_storage_memory.d.ts.map +1 -1
  350. package/script/storage/2_storage_memory.js +3 -0
  351. package/script/storage/2_storage_session_storage.d.ts +1 -0
  352. package/script/storage/2_storage_session_storage.d.ts.map +1 -1
  353. package/script/storage/2_storage_session_storage.js +3 -0
  354. package/script/tl/0_utilities.d.ts +1 -0
  355. package/script/tl/0_utilities.d.ts.map +1 -1
  356. package/script/tl/0_utilities.js +20 -0
  357. package/script/tl/1_telegram_api.d.ts +810 -254
  358. package/script/tl/1_telegram_api.d.ts.map +1 -1
  359. package/script/tl/1_telegram_api.js +912 -213
  360. package/script/tl/1_tl_reader.d.ts +2 -2
  361. package/script/tl/1_tl_reader.d.ts.map +1 -1
  362. package/script/tl/1_tl_writer.d.ts +2 -2
  363. package/script/tl/1_tl_writer.d.ts.map +1 -1
  364. package/script/tl/2_mtproto.d.ts +1 -1
  365. package/script/tl/2_mtproto.d.ts.map +1 -1
  366. package/script/types/0_file_source.d.ts +1 -1
  367. package/script/types/0_file_source.d.ts.map +1 -1
  368. package/script/types/1_chat_p.d.ts +10 -0
  369. package/script/types/1_chat_p.d.ts.map +1 -1
  370. package/script/types/1_chat_p.js +5 -0
  371. package/script/types/2_chat.d.ts +2 -5
  372. package/script/types/2_chat.d.ts.map +1 -1
  373. package/script/types/2_chat.js +10 -15
  374. package/script/types/{0_message_entity.d.ts → 2_message_entity.d.ts} +3 -3
  375. package/script/types/{0_message_entity.d.ts.map → 2_message_entity.d.ts.map} +1 -1
  376. package/script/types/{0_message_entity.js → 2_message_entity.js} +7 -7
  377. package/script/types/2_message_reaction_count.d.ts +2 -3
  378. package/script/types/2_message_reaction_count.d.ts.map +1 -1
  379. package/script/types/2_message_reaction_count.js +4 -6
  380. package/script/types/2_poll_answer.d.ts +2 -3
  381. package/script/types/2_poll_answer.d.ts.map +1 -1
  382. package/script/types/2_poll_answer.js +4 -5
  383. package/script/types/2_story_interactive_area.d.ts +2 -2
  384. package/script/types/2_story_interactive_area.d.ts.map +1 -1
  385. package/script/types/2_story_interactive_area.js +2 -2
  386. package/script/types/{1_story_privacy.d.ts → 2_story_privacy.d.ts} +3 -3
  387. package/script/types/{1_story_privacy.d.ts.map → 2_story_privacy.d.ts.map} +1 -1
  388. package/script/types/{1_story_privacy.js → 2_story_privacy.js} +10 -10
  389. package/{esm/types/1_user.d.ts → script/types/2_user.d.ts} +5 -1
  390. package/script/types/2_user.d.ts.map +1 -0
  391. package/script/types/{1_user.js → 2_user.js} +25 -0
  392. package/script/types/{2_business_connection.d.ts → 3_business_connection.d.ts} +4 -4
  393. package/script/types/3_business_connection.d.ts.map +1 -0
  394. package/script/types/{2_business_connection.js → 3_business_connection.js} +10 -3
  395. package/{esm/types/2_chat_member.d.ts → script/types/3_chat_member.d.ts} +6 -4
  396. package/script/types/{2_chat_member.d.ts.map → 3_chat_member.d.ts.map} +1 -1
  397. package/script/types/{2_chat_member.js → 3_chat_member.js} +5 -5
  398. package/script/types/{2_chat_settings.d.ts → 3_chat_settings.d.ts} +2 -2
  399. package/{esm/types/2_chat_settings.d.ts.map → script/types/3_chat_settings.d.ts.map} +1 -1
  400. package/script/types/{2_chat_settings.js → 3_chat_settings.js} +2 -2
  401. package/script/types/{2_chosen_inline_result.d.ts → 3_chosen_inline_result.d.ts} +4 -4
  402. package/script/types/3_chosen_inline_result.d.ts.map +1 -0
  403. package/script/types/{2_chosen_inline_result.js → 3_chosen_inline_result.js} +4 -4
  404. package/script/types/{2_forward_header.d.ts → 3_forward_header.d.ts} +4 -5
  405. package/script/types/3_forward_header.d.ts.map +1 -0
  406. package/script/types/{2_forward_header.js → 3_forward_header.js} +11 -12
  407. package/{esm/types/2_game.d.ts → script/types/3_game.d.ts} +2 -2
  408. package/script/types/3_game.d.ts.map +1 -0
  409. package/script/types/{2_gift_upgraded_component.d.ts → 3_gift_upgraded_component.d.ts} +2 -2
  410. package/script/types/{2_gift_upgraded_component.d.ts.map → 3_gift_upgraded_component.d.ts.map} +1 -1
  411. package/script/types/{2_gift_upgraded_component.js → 3_gift_upgraded_component.js} +2 -2
  412. package/script/types/{2_inline_query.d.ts → 3_inline_query.d.ts} +4 -4
  413. package/script/types/3_inline_query.d.ts.map +1 -0
  414. package/script/types/{2_inline_query.js → 3_inline_query.js} +5 -5
  415. package/{esm/types/1_input_media.d.ts → script/types/3_input_media.d.ts} +2 -2
  416. package/script/types/{1_input_media.d.ts.map → 3_input_media.d.ts.map} +1 -1
  417. package/{esm/types/2_invite_link.d.ts → script/types/3_invite_link.d.ts} +4 -4
  418. package/{esm/types/2_invite_link.d.ts.map → script/types/3_invite_link.d.ts.map} +1 -1
  419. package/script/types/{2_invite_link.js → 3_invite_link.js} +5 -5
  420. package/{esm/types/2_message_reactions.d.ts → script/types/3_message_reactions.d.ts} +5 -6
  421. package/script/types/3_message_reactions.d.ts.map +1 -0
  422. package/script/types/{2_message_reactions.js → 3_message_reactions.js} +10 -12
  423. package/script/types/{1_poll_option.d.ts → 3_poll_option.d.ts} +2 -2
  424. package/script/types/{1_poll_option.d.ts.map → 3_poll_option.d.ts.map} +1 -1
  425. package/script/types/{1_poll_option.js → 3_poll_option.js} +2 -2
  426. package/script/types/{2_pre_checkout_query.d.ts → 3_pre_checkout_query.d.ts} +4 -4
  427. package/script/types/3_pre_checkout_query.d.ts.map +1 -0
  428. package/script/types/{2_pre_checkout_query.js → 3_pre_checkout_query.js} +5 -5
  429. package/{esm/types/1_reply_quote.d.ts → script/types/3_reply_quote.d.ts} +2 -2
  430. package/script/types/{1_reply_quote.d.ts.map → 3_reply_quote.d.ts.map} +1 -1
  431. package/script/types/{1_reply_quote.js → 3_reply_quote.js} +2 -2
  432. package/script/types/3_story.d.ts +4 -5
  433. package/script/types/3_story.d.ts.map +1 -1
  434. package/script/types/3_story.js +8 -9
  435. package/script/types/{3_chat_member_updated.d.ts → 4_chat_member_updated.d.ts} +6 -7
  436. package/script/types/4_chat_member_updated.d.ts.map +1 -0
  437. package/script/types/{3_chat_member_updated.js → 4_chat_member_updated.js} +13 -14
  438. package/script/types/{3_gift.d.ts → 4_gift.d.ts} +6 -6
  439. package/script/types/{3_gift.d.ts.map → 4_gift.d.ts.map} +1 -1
  440. package/script/types/{3_gift.js → 4_gift.js} +9 -9
  441. package/script/types/{3_join_request.d.ts → 4_join_request.d.ts} +6 -7
  442. package/script/types/4_join_request.d.ts.map +1 -0
  443. package/script/types/{3_join_request.js → 4_join_request.js} +17 -18
  444. package/script/types/{2_poll.d.ts → 4_poll.d.ts} +3 -3
  445. package/script/types/{2_poll.d.ts.map → 4_poll.d.ts.map} +1 -1
  446. package/script/types/{2_poll.js → 4_poll.js} +5 -5
  447. package/{esm/types/2_reply_to.d.ts → script/types/4_reply_to.d.ts} +2 -2
  448. package/script/types/{2_reply_to.d.ts.map → 4_reply_to.d.ts.map} +1 -1
  449. package/script/types/{4_claimed_gift.d.ts → 5_claimed_gift.d.ts} +5 -6
  450. package/script/types/5_claimed_gift.d.ts.map +1 -0
  451. package/script/types/{4_claimed_gift.js → 5_claimed_gift.js} +5 -5
  452. package/script/types/{4_link_preview.d.ts → 5_link_preview.d.ts} +4 -4
  453. package/{esm/types/4_link_preview.d.ts.map → script/types/5_link_preview.d.ts.map} +1 -1
  454. package/script/types/{4_link_preview.js → 5_link_preview.js} +3 -3
  455. package/script/types/{5_claimed_gifts.d.ts → 6_claimed_gifts.d.ts} +4 -4
  456. package/script/types/6_claimed_gifts.d.ts.map +1 -0
  457. package/script/types/{5_claimed_gifts.js → 6_claimed_gifts.js} +4 -4
  458. package/script/types/{5_message.d.ts → 6_message.d.ts} +10 -11
  459. package/script/types/6_message.d.ts.map +1 -0
  460. package/script/types/{5_message.js → 6_message.js} +45 -70
  461. package/{esm/types/5_message_content.d.ts → script/types/6_message_content.d.ts} +3 -3
  462. package/script/types/{5_message_content.d.ts.map → 6_message_content.d.ts.map} +1 -1
  463. package/{esm/types/6_callback_query.d.ts → script/types/7_callback_query.d.ts} +5 -5
  464. package/script/types/{6_callback_query.d.ts.map → 7_callback_query.d.ts.map} +1 -1
  465. package/script/types/{6_callback_query.js → 7_callback_query.js} +5 -5
  466. package/{esm/types/6_chat_list_item.d.ts → script/types/7_chat_list_item.d.ts} +6 -7
  467. package/script/types/7_chat_list_item.d.ts.map +1 -0
  468. package/script/types/{6_chat_list_item.js → 7_chat_list_item.js} +11 -11
  469. package/{esm/types/6_inline_query_result.d.ts → script/types/7_inline_query_result.d.ts} +3 -3
  470. package/script/types/{6_inline_query_result.d.ts.map → 7_inline_query_result.d.ts.map} +1 -1
  471. package/script/types/{6_inline_query_result.js → 7_inline_query_result.js} +3 -3
  472. package/script/types/{6_saved_chat.d.ts → 7_saved_chat.d.ts} +4 -5
  473. package/script/types/7_saved_chat.d.ts.map +1 -0
  474. package/script/types/{6_saved_chat.js → 7_saved_chat.js} +4 -4
  475. package/script/types/{6_topic.d.ts → 7_topic.d.ts} +2 -2
  476. package/script/types/{6_topic.d.ts.map → 7_topic.d.ts.map} +1 -1
  477. package/script/types/{7_inline_query_answer.d.ts → 8_inline_query_answer.d.ts} +2 -2
  478. package/script/types/{7_inline_query_answer.d.ts.map → 8_inline_query_answer.d.ts.map} +1 -1
  479. package/script/types/{7_inline_query_answer.js → 8_inline_query_answer.js} +2 -2
  480. package/{esm/types/7_saved_chats.d.ts → script/types/8_saved_chats.d.ts} +5 -5
  481. package/script/types/8_saved_chats.d.ts.map +1 -0
  482. package/script/types/{7_saved_chats.js → 8_saved_chats.js} +3 -3
  483. package/script/types/{7_update.d.ts → 8_update.d.ts} +35 -16
  484. package/script/types/8_update.d.ts.map +1 -0
  485. package/script/types/_file_id.d.ts +1 -1
  486. package/script/types/_file_id.d.ts.map +1 -1
  487. package/script/types/_getters.d.ts +0 -7
  488. package/script/types/_getters.d.ts.map +1 -1
  489. package/script/utilities/0_hash.d.ts +2 -2
  490. package/script/utilities/0_hash.d.ts.map +1 -1
  491. package/script/utilities/0_misc.d.ts +1 -0
  492. package/script/utilities/0_misc.d.ts.map +1 -1
  493. package/script/utilities/0_misc.js +14 -0
  494. package/script/utilities/0_part_stream.d.ts +1 -1
  495. package/script/utilities/0_part_stream.d.ts.map +1 -1
  496. package/esm/types/1_user.d.ts.map +0 -1
  497. package/esm/types/2_business_connection.d.ts.map +0 -1
  498. package/esm/types/2_chosen_inline_result.d.ts.map +0 -1
  499. package/esm/types/2_forward_header.d.ts.map +0 -1
  500. package/esm/types/2_game.d.ts.map +0 -1
  501. package/esm/types/2_inline_query.d.ts.map +0 -1
  502. package/esm/types/2_message_reactions.d.ts.map +0 -1
  503. package/esm/types/2_pre_checkout_query.d.ts.map +0 -1
  504. package/esm/types/3_chat_member_updated.d.ts.map +0 -1
  505. package/esm/types/3_join_request.d.ts.map +0 -1
  506. package/esm/types/4_claimed_gift.d.ts.map +0 -1
  507. package/esm/types/5_claimed_gifts.d.ts.map +0 -1
  508. package/esm/types/5_message.d.ts.map +0 -1
  509. package/esm/types/6_chat_list_item.d.ts.map +0 -1
  510. package/esm/types/6_saved_chat.d.ts.map +0 -1
  511. package/esm/types/7_saved_chats.d.ts.map +0 -1
  512. package/esm/types/7_update.d.ts.map +0 -1
  513. package/script/types/1_user.d.ts.map +0 -1
  514. package/script/types/2_business_connection.d.ts.map +0 -1
  515. package/script/types/2_chosen_inline_result.d.ts.map +0 -1
  516. package/script/types/2_forward_header.d.ts.map +0 -1
  517. package/script/types/2_game.d.ts.map +0 -1
  518. package/script/types/2_inline_query.d.ts.map +0 -1
  519. package/script/types/2_message_reactions.d.ts.map +0 -1
  520. package/script/types/2_pre_checkout_query.d.ts.map +0 -1
  521. package/script/types/3_chat_member_updated.d.ts.map +0 -1
  522. package/script/types/3_join_request.d.ts.map +0 -1
  523. package/script/types/4_claimed_gift.d.ts.map +0 -1
  524. package/script/types/5_claimed_gifts.d.ts.map +0 -1
  525. package/script/types/5_message.d.ts.map +0 -1
  526. package/script/types/6_chat_list_item.d.ts.map +0 -1
  527. package/script/types/6_saved_chat.d.ts.map +0 -1
  528. package/script/types/7_saved_chats.d.ts.map +0 -1
  529. package/script/types/7_update.d.ts.map +0 -1
  530. /package/esm/types/{2_game.js → 3_game.js} +0 -0
  531. /package/esm/types/{1_input_media.js → 3_input_media.js} +0 -0
  532. /package/esm/types/{2_reply_to.js → 4_reply_to.js} +0 -0
  533. /package/esm/types/{5_message_content.js → 6_message_content.js} +0 -0
  534. /package/esm/types/{6_topic.js → 7_topic.js} +0 -0
  535. /package/esm/types/{7_update.js → 8_update.js} +0 -0
  536. /package/script/types/{2_game.js → 3_game.js} +0 -0
  537. /package/script/types/{1_input_media.js → 3_input_media.js} +0 -0
  538. /package/script/types/{2_reply_to.js → 4_reply_to.js} +0 -0
  539. /package/script/types/{5_message_content.js → 6_message_content.js} +0 -0
  540. /package/script/types/{6_topic.js → 7_topic.js} +0 -0
  541. /package/script/types/{7_update.js → 8_update.js} +0 -0
@@ -21,14 +21,14 @@ import { Api } from "../2_tl.js";
21
21
  export declare const resolve: () => Promise<void>;
22
22
  export declare function isHttpUrl(string: string): boolean;
23
23
  export declare function getUsername(string: string): string;
24
- export declare function getChatListId(chatList: string): 1 | 0;
24
+ export declare function getChatListId(chatList: string): 0 | 1;
25
25
  export declare function checkMessageId(messageId: number): number;
26
26
  export declare function checkStoryId(storyId: number): number;
27
27
  export declare function checkPollOption(option: string): void;
28
28
  export declare function checkArray<T>(array: T[], check: (value: T) => void): void;
29
29
  export declare function checkCallbackQueryId(id: string): void;
30
30
  export declare function checkInlineQueryId(id: string): void;
31
- export declare function isCdnFunction(value: unknown): value is Api.auth_sendCode | Api.auth_signUp | Api.auth_signIn | Api.auth_logOut | Api.auth_resetAuthorizations | Api.auth_exportAuthorization | Api.auth_importAuthorization | Api.auth_bindTempAuthKey | Api.auth_importBotAuthorization | Api.auth_checkPassword | Api.auth_requestPasswordRecovery | Api.auth_recoverPassword | Api.auth_resendCode | Api.auth_cancelCode | Api.auth_dropTempAuthKeys | Api.auth_exportLoginToken | Api.auth_importLoginToken | Api.auth_acceptLoginToken | Api.auth_checkRecoveryPassword | Api.auth_importWebTokenAuthorization | Api.auth_requestFirebaseSms | Api.auth_resetLoginEmail | Api.auth_reportMissingCode | Api.account_registerDevice | Api.account_unregisterDevice | Api.account_updateNotifySettings | Api.account_getNotifySettings | Api.account_resetNotifySettings | Api.account_updateProfile | Api.account_updateStatus | Api.account_getWallPapers | Api.account_reportPeer | Api.account_checkUsername | Api.account_updateUsername | Api.account_getPrivacy | Api.account_setPrivacy | Api.account_deleteAccount | Api.account_getAccountTTL | Api.account_setAccountTTL | Api.account_sendChangePhoneCode | Api.account_changePhone | Api.account_updateDeviceLocked | Api.account_getAuthorizations | Api.account_resetAuthorization | Api.account_getPassword | Api.account_getPasswordSettings | Api.account_updatePasswordSettings | Api.account_sendConfirmPhoneCode | Api.account_confirmPhone | Api.account_getTmpPassword | Api.account_getWebAuthorizations | Api.account_resetWebAuthorization | Api.account_resetWebAuthorizations | Api.account_getAllSecureValues | Api.account_getSecureValue | Api.account_saveSecureValue | Api.account_deleteSecureValue | Api.account_getAuthorizationForm | Api.account_acceptAuthorization | Api.account_sendVerifyPhoneCode | Api.account_verifyPhone | Api.account_sendVerifyEmailCode | Api.account_verifyEmail | Api.account_initTakeoutSession | Api.account_finishTakeoutSession | Api.account_confirmPasswordEmail | Api.account_resendPasswordEmail | Api.account_cancelPasswordEmail | Api.account_getContactSignUpNotification | Api.account_setContactSignUpNotification | Api.account_getNotifyExceptions | Api.account_getWallPaper | Api.account_uploadWallPaper | Api.account_saveWallPaper | Api.account_installWallPaper | Api.account_resetWallPapers | Api.account_getAutoDownloadSettings | Api.account_saveAutoDownloadSettings | Api.account_uploadTheme | Api.account_createTheme | Api.account_updateTheme | Api.account_saveTheme | Api.account_installTheme | Api.account_getTheme | Api.account_getThemes | Api.account_setContentSettings | Api.account_getContentSettings | Api.account_getMultiWallPapers | Api.account_getGlobalPrivacySettings | Api.account_setGlobalPrivacySettings | Api.account_reportProfilePhoto | Api.account_resetPassword | Api.account_declinePasswordReset | Api.account_getChatThemes | Api.account_setAuthorizationTTL | Api.account_changeAuthorizationSettings | Api.account_getSavedRingtones | Api.account_saveRingtone | Api.account_uploadRingtone | Api.account_updateEmojiStatus | Api.account_getDefaultEmojiStatuses | Api.account_getRecentEmojiStatuses | Api.account_clearRecentEmojiStatuses | Api.account_reorderUsernames | Api.account_toggleUsername | Api.account_getDefaultProfilePhotoEmojis | Api.account_getDefaultGroupPhotoEmojis | Api.account_getAutoSaveSettings | Api.account_saveAutoSaveSettings | Api.account_deleteAutoSaveExceptions | Api.account_invalidateSignInCodes | Api.account_updateColor | Api.account_getDefaultBackgroundEmojis | Api.account_getChannelDefaultEmojiStatuses | Api.account_getChannelRestrictedStatusEmojis | Api.account_updateBusinessWorkHours | Api.account_updateBusinessLocation | Api.account_updateBusinessGreetingMessage | Api.account_updateBusinessAwayMessage | Api.account_updateConnectedBot | Api.account_getConnectedBots | Api.account_getBotBusinessConnection | Api.account_updateBusinessIntro | Api.account_toggleConnectedBotPaused | Api.account_disablePeerConnectedBot | Api.account_updateBirthday | Api.account_createBusinessChatLink | Api.account_editBusinessChatLink | Api.account_deleteBusinessChatLink | Api.account_getBusinessChatLinks | Api.account_resolveBusinessChatLink | Api.account_updatePersonalChannel | Api.account_toggleSponsoredMessages | Api.account_getReactionsNotifySettings | Api.account_setReactionsNotifySettings | Api.account_getCollectibleEmojiStatuses | Api.account_addNoPaidMessagesException | Api.account_getPaidMessagesRevenue | Api.users_getUsers | Api.users_getFullUser | Api.users_setSecureValueErrors | Api.users_getRequirementsToContact | Api.contacts_getContactIDs | Api.contacts_getStatuses | Api.contacts_getContacts | Api.contacts_importContacts | Api.contacts_deleteContacts | Api.contacts_deleteByPhones | Api.contacts_block | Api.contacts_unblock | Api.contacts_getBlocked | Api.contacts_search | Api.contacts_resolveUsername | Api.contacts_getTopPeers | Api.contacts_resetTopPeerRating | Api.contacts_resetSaved | Api.contacts_getSaved | Api.contacts_toggleTopPeers | Api.contacts_addContact | Api.contacts_acceptContact | Api.contacts_getLocated | Api.contacts_blockFromReplies | Api.contacts_resolvePhone | Api.contacts_exportContactToken | Api.contacts_importContactToken | Api.contacts_editCloseFriends | Api.contacts_setBlocked | Api.contacts_getBirthdays | Api.contacts_getSponsoredPeers | Api.messages_getMessages | Api.messages_getDialogs | Api.messages_getHistory | Api.messages_search | Api.messages_readHistory | Api.messages_deleteHistory | Api.messages_deleteMessages | Api.messages_receivedMessages | Api.messages_setTyping | Api.messages_sendMessage | Api.messages_sendMedia | Api.messages_forwardMessages | Api.messages_reportSpam | Api.messages_getPeerSettings | Api.messages_report | Api.messages_getChats | Api.messages_getFullChat | Api.messages_editChatTitle | Api.messages_editChatPhoto | Api.messages_addChatUser | Api.messages_deleteChatUser | Api.messages_createChat | Api.messages_getDhConfig | Api.messages_requestEncryption | Api.messages_acceptEncryption | Api.messages_discardEncryption | Api.messages_setEncryptedTyping | Api.messages_readEncryptedHistory | Api.messages_sendEncrypted | Api.messages_sendEncryptedFile | Api.messages_sendEncryptedService | Api.messages_receivedQueue | Api.messages_reportEncryptedSpam | Api.messages_readMessageContents | Api.messages_getStickers | Api.messages_getAllStickers | Api.messages_getWebPagePreview | Api.messages_exportChatInvite | Api.messages_checkChatInvite | Api.messages_importChatInvite | Api.messages_getStickerSet | Api.messages_installStickerSet | Api.messages_uninstallStickerSet | Api.messages_startBot | Api.messages_getMessagesViews | Api.messages_editChatAdmin | Api.messages_migrateChat | Api.messages_searchGlobal | Api.messages_reorderStickerSets | Api.messages_getDocumentByHash | Api.messages_getSavedGifs | Api.messages_saveGif | Api.messages_getInlineBotResults | Api.messages_setInlineBotResults | Api.messages_sendInlineBotResult | Api.messages_getMessageEditData | Api.messages_editMessage | Api.messages_editInlineBotMessage | Api.messages_getBotCallbackAnswer | Api.messages_setBotCallbackAnswer | Api.messages_getPeerDialogs | Api.messages_saveDraft | Api.messages_getAllDrafts | Api.messages_getFeaturedStickers | Api.messages_readFeaturedStickers | Api.messages_getRecentStickers | Api.messages_saveRecentSticker | Api.messages_clearRecentStickers | Api.messages_getArchivedStickers | Api.messages_getMaskStickers | Api.messages_getAttachedStickers | Api.messages_setGameScore | Api.messages_setInlineGameScore | Api.messages_getGameHighScores | Api.messages_getInlineGameHighScores | Api.messages_getCommonChats | Api.messages_getWebPage | Api.messages_toggleDialogPin | Api.messages_reorderPinnedDialogs | Api.messages_getPinnedDialogs | Api.messages_setBotShippingResults | Api.messages_setBotPrecheckoutResults | Api.messages_uploadMedia | Api.messages_sendScreenshotNotification | Api.messages_getFavedStickers | Api.messages_faveSticker | Api.messages_getUnreadMentions | Api.messages_readMentions | Api.messages_getRecentLocations | Api.messages_sendMultiMedia | Api.messages_uploadEncryptedFile | Api.messages_searchStickerSets | Api.messages_getSplitRanges | Api.messages_markDialogUnread | Api.messages_getDialogUnreadMarks | Api.messages_clearAllDrafts | Api.messages_updatePinnedMessage | Api.messages_sendVote | Api.messages_getPollResults | Api.messages_getOnlines | Api.messages_editChatAbout | Api.messages_editChatDefaultBannedRights | Api.messages_getEmojiKeywords | Api.messages_getEmojiKeywordsDifference | Api.messages_getEmojiKeywordsLanguages | Api.messages_getEmojiURL | Api.messages_getSearchCounters | Api.messages_requestUrlAuth | Api.messages_acceptUrlAuth | Api.messages_hidePeerSettingsBar | Api.messages_getScheduledHistory | Api.messages_getScheduledMessages | Api.messages_sendScheduledMessages | Api.messages_deleteScheduledMessages | Api.messages_getPollVotes | Api.messages_toggleStickerSets | Api.messages_getDialogFilters | Api.messages_getSuggestedDialogFilters | Api.messages_updateDialogFilter | Api.messages_updateDialogFiltersOrder | Api.messages_getOldFeaturedStickers | Api.messages_getReplies | Api.messages_getDiscussionMessage | Api.messages_readDiscussion | Api.messages_unpinAllMessages | Api.messages_deleteChat | Api.messages_deletePhoneCallHistory | Api.messages_checkHistoryImport | Api.messages_initHistoryImport | Api.messages_uploadImportedMedia | Api.messages_startHistoryImport | Api.messages_getExportedChatInvites | Api.messages_getExportedChatInvite | Api.messages_editExportedChatInvite | Api.messages_deleteRevokedExportedChatInvites | Api.messages_deleteExportedChatInvite | Api.messages_getAdminsWithInvites | Api.messages_getChatInviteImporters | Api.messages_setHistoryTTL | Api.messages_checkHistoryImportPeer | Api.messages_setChatTheme | Api.messages_getMessageReadParticipants | Api.messages_getSearchResultsCalendar | Api.messages_getSearchResultsPositions | Api.messages_hideChatJoinRequest | Api.messages_hideAllChatJoinRequests | Api.messages_toggleNoForwards | Api.messages_saveDefaultSendAs | Api.messages_sendReaction | Api.messages_getMessagesReactions | Api.messages_getMessageReactionsList | Api.messages_setChatAvailableReactions | Api.messages_getAvailableReactions | Api.messages_setDefaultReaction | Api.messages_translateText | Api.messages_getUnreadReactions | Api.messages_readReactions | Api.messages_searchSentMedia | Api.messages_getAttachMenuBots | Api.messages_getAttachMenuBot | Api.messages_toggleBotInAttachMenu | Api.messages_requestWebView | Api.messages_prolongWebView | Api.messages_requestSimpleWebView | Api.messages_sendWebViewResultMessage | Api.messages_sendWebViewData | Api.messages_transcribeAudio | Api.messages_rateTranscribedAudio | Api.messages_getCustomEmojiDocuments | Api.messages_getEmojiStickers | Api.messages_getFeaturedEmojiStickers | Api.messages_reportReaction | Api.messages_getTopReactions | Api.messages_getRecentReactions | Api.messages_clearRecentReactions | Api.messages_getExtendedMedia | Api.messages_setDefaultHistoryTTL | Api.messages_getDefaultHistoryTTL | Api.messages_sendBotRequestedPeer | Api.messages_getEmojiGroups | Api.messages_getEmojiStatusGroups | Api.messages_getEmojiProfilePhotoGroups | Api.messages_searchCustomEmoji | Api.messages_togglePeerTranslations | Api.messages_getBotApp | Api.messages_requestAppWebView | Api.messages_setChatWallPaper | Api.messages_searchEmojiStickerSets | Api.messages_getSavedDialogs | Api.messages_getSavedHistory | Api.messages_deleteSavedHistory | Api.messages_getPinnedSavedDialogs | Api.messages_toggleSavedDialogPin | Api.messages_reorderPinnedSavedDialogs | Api.messages_getSavedReactionTags | Api.messages_updateSavedReactionTag | Api.messages_getDefaultTagReactions | Api.messages_getOutboxReadDate | Api.messages_getQuickReplies | Api.messages_reorderQuickReplies | Api.messages_checkQuickReplyShortcut | Api.messages_editQuickReplyShortcut | Api.messages_deleteQuickReplyShortcut | Api.messages_getQuickReplyMessages | Api.messages_sendQuickReplyMessages | Api.messages_deleteQuickReplyMessages | Api.messages_toggleDialogFilterTags | Api.messages_getMyStickers | Api.messages_getEmojiStickerGroups | Api.messages_getAvailableEffects | Api.messages_editFactCheck | Api.messages_deleteFactCheck | Api.messages_getFactCheck | Api.messages_requestMainWebView | Api.messages_sendPaidReaction | Api.messages_togglePaidReactionPrivacy | Api.messages_getPaidReactionPrivacy | Api.messages_viewSponsoredMessage | Api.messages_clickSponsoredMessage | Api.messages_reportSponsoredMessage | Api.messages_getSponsoredMessages | Api.messages_savePreparedInlineMessage | Api.messages_getPreparedInlineMessage | Api.messages_searchStickers | Api.messages_reportMessagesDelivery | Api.updates_getState | Api.updates_getDifference | Api.updates_getChannelDifference | Api.photos_updateProfilePhoto | Api.photos_uploadProfilePhoto | Api.photos_deletePhotos | Api.photos_getUserPhotos | Api.photos_uploadContactProfilePhoto | Api.upload_saveFilePart | Api.upload_getFile | Api.upload_saveBigFilePart | Api.upload_getWebFile | Api.upload_getCdnFile | Api.upload_reuploadCdnFile | Api.upload_getCdnFileHashes | Api.upload_getFileHashes | Api.help_getConfig | Api.help_getNearestDc | Api.help_getAppUpdate | Api.help_getInviteText | Api.help_getSupport | Api.help_setBotUpdatesStatus | Api.help_getCdnConfig | Api.help_getRecentMeUrls | Api.help_getTermsOfServiceUpdate | Api.help_acceptTermsOfService | Api.help_getDeepLinkInfo | Api.help_getAppConfig | Api.help_saveAppLog | Api.help_getPassportConfig | Api.help_getSupportName | Api.help_getUserInfo | Api.help_editUserInfo | Api.help_getPromoData | Api.help_hidePromoData | Api.help_dismissSuggestion | Api.help_getCountriesList | Api.help_getPremiumPromo | Api.help_getPeerColors | Api.help_getPeerProfileColors | Api.help_getTimezonesList | Api.channels_readHistory | Api.channels_deleteMessages | Api.channels_reportSpam | Api.channels_getMessages | Api.channels_getParticipants | Api.channels_getParticipant | Api.channels_getChannels | Api.channels_getFullChannel | Api.channels_createChannel | Api.channels_editAdmin | Api.channels_editTitle | Api.channels_editPhoto | Api.channels_checkUsername | Api.channels_updateUsername | Api.channels_joinChannel | Api.channels_leaveChannel | Api.channels_inviteToChannel | Api.channels_deleteChannel | Api.channels_exportMessageLink | Api.channels_toggleSignatures | Api.channels_getAdminedPublicChannels | Api.channels_editBanned | Api.channels_getAdminLog | Api.channels_setStickers | Api.channels_readMessageContents | Api.channels_deleteHistory | Api.channels_togglePreHistoryHidden | Api.channels_getLeftChannels | Api.channels_getGroupsForDiscussion | Api.channels_setDiscussionGroup | Api.channels_editCreator | Api.channels_editLocation | Api.channels_toggleSlowMode | Api.channels_getInactiveChannels | Api.channels_convertToGigagroup | Api.channels_getSendAs | Api.channels_deleteParticipantHistory | Api.channels_toggleJoinToSend | Api.channels_toggleJoinRequest | Api.channels_reorderUsernames | Api.channels_toggleUsername | Api.channels_deactivateAllUsernames | Api.channels_toggleForum | Api.channels_createForumTopic | Api.channels_getForumTopics | Api.channels_getForumTopicsByID | Api.channels_editForumTopic | Api.channels_updatePinnedForumTopic | Api.channels_deleteTopicHistory | Api.channels_reorderPinnedForumTopics | Api.channels_toggleAntiSpam | Api.channels_reportAntiSpamFalsePositive | Api.channels_toggleParticipantsHidden | Api.channels_updateColor | Api.channels_toggleViewForumAsMessages | Api.channels_getChannelRecommendations | Api.channels_updateEmojiStatus | Api.channels_setBoostsToUnblockRestrictions | Api.channels_setEmojiStickers | Api.channels_restrictSponsoredMessages | Api.channels_searchPosts | Api.channels_updatePaidMessagesPrice | Api.channels_toggleAutotranslation | Api.bots_sendCustomRequest | Api.bots_answerWebhookJSONQuery | Api.bots_setBotCommands | Api.bots_resetBotCommands | Api.bots_getBotCommands | Api.bots_setBotMenuButton | Api.bots_getBotMenuButton | Api.bots_setBotBroadcastDefaultAdminRights | Api.bots_setBotGroupDefaultAdminRights | Api.bots_setBotInfo | Api.bots_getBotInfo | Api.bots_reorderUsernames | Api.bots_toggleUsername | Api.bots_canSendMessage | Api.bots_allowSendMessage | Api.bots_invokeWebViewCustomMethod | Api.bots_getPopularAppBots | Api.bots_addPreviewMedia | Api.bots_editPreviewMedia | Api.bots_deletePreviewMedia | Api.bots_reorderPreviewMedias | Api.bots_getPreviewInfo | Api.bots_getPreviewMedias | Api.bots_updateUserEmojiStatus | Api.bots_toggleUserEmojiStatusPermission | Api.bots_checkDownloadFileParams | Api.bots_getAdminedBots | Api.bots_updateStarRefProgram | Api.bots_setCustomVerification | Api.bots_getBotRecommendations | Api.payments_getPaymentForm | Api.payments_getPaymentReceipt | Api.payments_validateRequestedInfo | Api.payments_sendPaymentForm | Api.payments_getSavedInfo | Api.payments_clearSavedInfo | Api.payments_getBankCardData | Api.payments_exportInvoice | Api.payments_assignAppStoreTransaction | Api.payments_assignPlayMarketTransaction | Api.payments_getPremiumGiftCodeOptions | Api.payments_checkGiftCode | Api.payments_applyGiftCode | Api.payments_getGiveawayInfo | Api.payments_launchPrepaidGiveaway | Api.payments_getStarsTopupOptions | Api.payments_getStarsStatus | Api.payments_getStarsTransactions | Api.payments_sendStarsForm | Api.payments_refundStarsCharge | Api.payments_getStarsRevenueStats | Api.payments_getStarsRevenueWithdrawalUrl | Api.payments_getStarsRevenueAdsAccountUrl | Api.payments_getStarsTransactionsByID | Api.payments_getStarsGiftOptions | Api.payments_getStarsSubscriptions | Api.payments_changeStarsSubscription | Api.payments_fulfillStarsSubscription | Api.payments_getStarsGiveawayOptions | Api.payments_getStarGifts | Api.payments_saveStarGift | Api.payments_convertStarGift | Api.payments_botCancelStarsSubscription | Api.payments_getConnectedStarRefBots | Api.payments_getConnectedStarRefBot | Api.payments_getSuggestedStarRefBots | Api.payments_connectStarRefBot | Api.payments_editConnectedStarRefBot | Api.payments_getStarGiftUpgradePreview | Api.payments_upgradeStarGift | Api.payments_transferStarGift | Api.payments_getUniqueStarGift | Api.payments_getSavedStarGifts | Api.payments_getSavedStarGift | Api.payments_getStarGiftWithdrawalUrl | Api.payments_toggleChatStarGiftNotifications | Api.payments_toggleStarGiftsPinnedToTop | Api.payments_canPurchaseStore | Api.payments_getResaleStarGifts | Api.payments_updateStarGiftPrice | Api.stickers_createStickerSet | Api.stickers_removeStickerFromSet | Api.stickers_changeStickerPosition | Api.stickers_addStickerToSet | Api.stickers_setStickerSetThumb | Api.stickers_checkShortName | Api.stickers_suggestShortName | Api.stickers_changeSticker | Api.stickers_renameStickerSet | Api.stickers_deleteStickerSet | Api.stickers_replaceSticker | Api.phone_getCallConfig | Api.phone_requestCall | Api.phone_acceptCall | Api.phone_confirmCall | Api.phone_receivedCall | Api.phone_discardCall | Api.phone_setCallRating | Api.phone_saveCallDebug | Api.phone_sendSignalingData | Api.phone_createGroupCall | Api.phone_joinGroupCall | Api.phone_leaveGroupCall | Api.phone_inviteToGroupCall | Api.phone_discardGroupCall | Api.phone_toggleGroupCallSettings | Api.phone_getGroupCall | Api.phone_getGroupParticipants | Api.phone_checkGroupCall | Api.phone_toggleGroupCallRecord | Api.phone_editGroupCallParticipant | Api.phone_editGroupCallTitle | Api.phone_getGroupCallJoinAs | Api.phone_exportGroupCallInvite | Api.phone_toggleGroupCallStartSubscription | Api.phone_startScheduledGroupCall | Api.phone_saveDefaultGroupCallJoinAs | Api.phone_joinGroupCallPresentation | Api.phone_leaveGroupCallPresentation | Api.phone_getGroupCallStreamChannels | Api.phone_getGroupCallStreamRtmpUrl | Api.phone_saveCallLog | Api.phone_createConferenceCall | Api.phone_deleteConferenceCallParticipants | Api.phone_sendConferenceCallBroadcast | Api.phone_inviteConferenceCallParticipant | Api.phone_declineConferenceCallInvite | Api.phone_getGroupCallChainBlocks | Api.langpack_getLangPack | Api.langpack_getStrings | Api.langpack_getDifference | Api.langpack_getLanguages | Api.langpack_getLanguage | Api.folders_editPeerFolders | Api.stats_getBroadcastStats | Api.stats_loadAsyncGraph | Api.stats_getMegagroupStats | Api.stats_getMessagePublicForwards | Api.stats_getMessageStats | Api.stats_getStoryStats | Api.stats_getStoryPublicForwards | Api.stats_getBroadcastRevenueStats | Api.stats_getBroadcastRevenueWithdrawalUrl | Api.stats_getBroadcastRevenueTransactions | Api.chatlists_exportChatlistInvite | Api.chatlists_deleteExportedInvite | Api.chatlists_editExportedInvite | Api.chatlists_getExportedInvites | Api.chatlists_checkChatlistInvite | Api.chatlists_joinChatlistInvite | Api.chatlists_getChatlistUpdates | Api.chatlists_joinChatlistUpdates | Api.chatlists_hideChatlistUpdates | Api.chatlists_getLeaveChatlistSuggestions | Api.chatlists_leaveChatlist | Api.stories_canSendStory | Api.stories_sendStory | Api.stories_editStory | Api.stories_deleteStories | Api.stories_togglePinned | Api.stories_getAllStories | Api.stories_getPinnedStories | Api.stories_getStoriesArchive | Api.stories_getStoriesByID | Api.stories_toggleAllStoriesHidden | Api.stories_readStories | Api.stories_incrementStoryViews | Api.stories_getStoryViewsList | Api.stories_getStoriesViews | Api.stories_exportStoryLink | Api.stories_report | Api.stories_activateStealthMode | Api.stories_sendReaction | Api.stories_getPeerStories | Api.stories_getAllReadPeerStories | Api.stories_getPeerMaxIDs | Api.stories_getChatsToSend | Api.stories_togglePeerStoriesHidden | Api.stories_getStoryReactionsList | Api.stories_togglePinnedToTop | Api.stories_searchPosts | Api.premium_getBoostsList | Api.premium_getMyBoosts | Api.premium_applyBoost | Api.premium_getBoostsStatus | Api.premium_getUserBoosts | Api.smsjobs_isEligibleToJoin | Api.smsjobs_join | Api.smsjobs_leave | Api.smsjobs_updateSettings | Api.smsjobs_getStatus | Api.smsjobs_getSmsJob | Api.smsjobs_finishJob | Api.fragment_getCollectibleInfo | Api.invokeAfterMsg<Api.Function> | Api.invokeAfterMsgs<Api.Function> | Api.initConnection<Api.Function> | Api.invokeWithLayer<Api.Function> | Api.invokeWithoutUpdates<Api.Function> | Api.invokeWithMessagesRange<Api.Function> | Api.invokeWithTakeout<Api.Function> | Api.invokeWithBusinessConnection<Api.Function> | Api.invokeWithGooglePlayIntegrity<Api.Function> | Api.invokeWithApnsSecret<Api.Function> | Api.invokeWithReCaptcha<Api.Function>;
31
+ export declare function isCdnFunction(value: unknown): value is Api.auth_sendCode | Api.auth_signUp | Api.auth_signIn | Api.auth_logOut | Api.auth_resetAuthorizations | Api.auth_exportAuthorization | Api.auth_importAuthorization | Api.auth_bindTempAuthKey | Api.auth_importBotAuthorization | Api.auth_checkPassword | Api.auth_requestPasswordRecovery | Api.auth_recoverPassword | Api.auth_resendCode | Api.auth_cancelCode | Api.auth_dropTempAuthKeys | Api.auth_exportLoginToken | Api.auth_importLoginToken | Api.auth_acceptLoginToken | Api.auth_checkRecoveryPassword | Api.auth_importWebTokenAuthorization | Api.auth_requestFirebaseSms | Api.auth_resetLoginEmail | Api.auth_reportMissingCode | Api.account_registerDevice | Api.account_unregisterDevice | Api.account_updateNotifySettings | Api.account_getNotifySettings | Api.account_resetNotifySettings | Api.account_updateProfile | Api.account_updateStatus | Api.account_getWallPapers | Api.account_reportPeer | Api.account_checkUsername | Api.account_updateUsername | Api.account_getPrivacy | Api.account_setPrivacy | Api.account_deleteAccount | Api.account_getAccountTTL | Api.account_setAccountTTL | Api.account_sendChangePhoneCode | Api.account_changePhone | Api.account_updateDeviceLocked | Api.account_getAuthorizations | Api.account_resetAuthorization | Api.account_getPassword | Api.account_getPasswordSettings | Api.account_updatePasswordSettings | Api.account_sendConfirmPhoneCode | Api.account_confirmPhone | Api.account_getTmpPassword | Api.account_getWebAuthorizations | Api.account_resetWebAuthorization | Api.account_resetWebAuthorizations | Api.account_getAllSecureValues | Api.account_getSecureValue | Api.account_saveSecureValue | Api.account_deleteSecureValue | Api.account_getAuthorizationForm | Api.account_acceptAuthorization | Api.account_sendVerifyPhoneCode | Api.account_verifyPhone | Api.account_sendVerifyEmailCode | Api.account_verifyEmail | Api.account_initTakeoutSession | Api.account_finishTakeoutSession | Api.account_confirmPasswordEmail | Api.account_resendPasswordEmail | Api.account_cancelPasswordEmail | Api.account_getContactSignUpNotification | Api.account_setContactSignUpNotification | Api.account_getNotifyExceptions | Api.account_getWallPaper | Api.account_uploadWallPaper | Api.account_saveWallPaper | Api.account_installWallPaper | Api.account_resetWallPapers | Api.account_getAutoDownloadSettings | Api.account_saveAutoDownloadSettings | Api.account_uploadTheme | Api.account_createTheme | Api.account_updateTheme | Api.account_saveTheme | Api.account_installTheme | Api.account_getTheme | Api.account_getThemes | Api.account_setContentSettings | Api.account_getContentSettings | Api.account_getMultiWallPapers | Api.account_getGlobalPrivacySettings | Api.account_setGlobalPrivacySettings | Api.account_reportProfilePhoto | Api.account_resetPassword | Api.account_declinePasswordReset | Api.account_getChatThemes | Api.account_setAuthorizationTTL | Api.account_changeAuthorizationSettings | Api.account_getSavedRingtones | Api.account_saveRingtone | Api.account_uploadRingtone | Api.account_updateEmojiStatus | Api.account_getDefaultEmojiStatuses | Api.account_getRecentEmojiStatuses | Api.account_clearRecentEmojiStatuses | Api.account_reorderUsernames | Api.account_toggleUsername | Api.account_getDefaultProfilePhotoEmojis | Api.account_getDefaultGroupPhotoEmojis | Api.account_getAutoSaveSettings | Api.account_saveAutoSaveSettings | Api.account_deleteAutoSaveExceptions | Api.account_invalidateSignInCodes | Api.account_updateColor | Api.account_getDefaultBackgroundEmojis | Api.account_getChannelDefaultEmojiStatuses | Api.account_getChannelRestrictedStatusEmojis | Api.account_updateBusinessWorkHours | Api.account_updateBusinessLocation | Api.account_updateBusinessGreetingMessage | Api.account_updateBusinessAwayMessage | Api.account_updateConnectedBot | Api.account_getConnectedBots | Api.account_getBotBusinessConnection | Api.account_updateBusinessIntro | Api.account_toggleConnectedBotPaused | Api.account_disablePeerConnectedBot | Api.account_updateBirthday | Api.account_createBusinessChatLink | Api.account_editBusinessChatLink | Api.account_deleteBusinessChatLink | Api.account_getBusinessChatLinks | Api.account_resolveBusinessChatLink | Api.account_updatePersonalChannel | Api.account_toggleSponsoredMessages | Api.account_getReactionsNotifySettings | Api.account_setReactionsNotifySettings | Api.account_getCollectibleEmojiStatuses | Api.account_getPaidMessagesRevenue | Api.account_toggleNoPaidMessagesException | Api.account_setMainProfileTab | Api.account_saveMusic | Api.account_getSavedMusicIds | Api.account_getUniqueGiftChatThemes | Api.users_getUsers | Api.users_getFullUser | Api.users_setSecureValueErrors | Api.users_getRequirementsToContact | Api.users_getSavedMusic | Api.users_getSavedMusicByID | Api.contacts_getContactIDs | Api.contacts_getStatuses | Api.contacts_getContacts | Api.contacts_importContacts | Api.contacts_deleteContacts | Api.contacts_deleteByPhones | Api.contacts_block | Api.contacts_unblock | Api.contacts_getBlocked | Api.contacts_search | Api.contacts_resolveUsername | Api.contacts_getTopPeers | Api.contacts_resetTopPeerRating | Api.contacts_resetSaved | Api.contacts_getSaved | Api.contacts_toggleTopPeers | Api.contacts_addContact | Api.contacts_acceptContact | Api.contacts_getLocated | Api.contacts_blockFromReplies | Api.contacts_resolvePhone | Api.contacts_exportContactToken | Api.contacts_importContactToken | Api.contacts_editCloseFriends | Api.contacts_setBlocked | Api.contacts_getBirthdays | Api.contacts_getSponsoredPeers | Api.messages_getMessages | Api.messages_getDialogs | Api.messages_getHistory | Api.messages_search | Api.messages_readHistory | Api.messages_deleteHistory | Api.messages_deleteMessages | Api.messages_receivedMessages | Api.messages_setTyping | Api.messages_sendMessage | Api.messages_sendMedia | Api.messages_forwardMessages | Api.messages_reportSpam | Api.messages_getPeerSettings | Api.messages_report | Api.messages_getChats | Api.messages_getFullChat | Api.messages_editChatTitle | Api.messages_editChatPhoto | Api.messages_addChatUser | Api.messages_deleteChatUser | Api.messages_createChat | Api.messages_getDhConfig | Api.messages_requestEncryption | Api.messages_acceptEncryption | Api.messages_discardEncryption | Api.messages_setEncryptedTyping | Api.messages_readEncryptedHistory | Api.messages_sendEncrypted | Api.messages_sendEncryptedFile | Api.messages_sendEncryptedService | Api.messages_receivedQueue | Api.messages_reportEncryptedSpam | Api.messages_readMessageContents | Api.messages_getStickers | Api.messages_getAllStickers | Api.messages_getWebPagePreview | Api.messages_exportChatInvite | Api.messages_checkChatInvite | Api.messages_importChatInvite | Api.messages_getStickerSet | Api.messages_installStickerSet | Api.messages_uninstallStickerSet | Api.messages_startBot | Api.messages_getMessagesViews | Api.messages_editChatAdmin | Api.messages_migrateChat | Api.messages_searchGlobal | Api.messages_reorderStickerSets | Api.messages_getDocumentByHash | Api.messages_getSavedGifs | Api.messages_saveGif | Api.messages_getInlineBotResults | Api.messages_setInlineBotResults | Api.messages_sendInlineBotResult | Api.messages_getMessageEditData | Api.messages_editMessage | Api.messages_editInlineBotMessage | Api.messages_getBotCallbackAnswer | Api.messages_setBotCallbackAnswer | Api.messages_getPeerDialogs | Api.messages_saveDraft | Api.messages_getAllDrafts | Api.messages_getFeaturedStickers | Api.messages_readFeaturedStickers | Api.messages_getRecentStickers | Api.messages_saveRecentSticker | Api.messages_clearRecentStickers | Api.messages_getArchivedStickers | Api.messages_getMaskStickers | Api.messages_getAttachedStickers | Api.messages_setGameScore | Api.messages_setInlineGameScore | Api.messages_getGameHighScores | Api.messages_getInlineGameHighScores | Api.messages_getCommonChats | Api.messages_getWebPage | Api.messages_toggleDialogPin | Api.messages_reorderPinnedDialogs | Api.messages_getPinnedDialogs | Api.messages_setBotShippingResults | Api.messages_setBotPrecheckoutResults | Api.messages_uploadMedia | Api.messages_sendScreenshotNotification | Api.messages_getFavedStickers | Api.messages_faveSticker | Api.messages_getUnreadMentions | Api.messages_readMentions | Api.messages_getRecentLocations | Api.messages_sendMultiMedia | Api.messages_uploadEncryptedFile | Api.messages_searchStickerSets | Api.messages_getSplitRanges | Api.messages_markDialogUnread | Api.messages_getDialogUnreadMarks | Api.messages_clearAllDrafts | Api.messages_updatePinnedMessage | Api.messages_sendVote | Api.messages_getPollResults | Api.messages_getOnlines | Api.messages_editChatAbout | Api.messages_editChatDefaultBannedRights | Api.messages_getEmojiKeywords | Api.messages_getEmojiKeywordsDifference | Api.messages_getEmojiKeywordsLanguages | Api.messages_getEmojiURL | Api.messages_getSearchCounters | Api.messages_requestUrlAuth | Api.messages_acceptUrlAuth | Api.messages_hidePeerSettingsBar | Api.messages_getScheduledHistory | Api.messages_getScheduledMessages | Api.messages_sendScheduledMessages | Api.messages_deleteScheduledMessages | Api.messages_getPollVotes | Api.messages_toggleStickerSets | Api.messages_getDialogFilters | Api.messages_getSuggestedDialogFilters | Api.messages_updateDialogFilter | Api.messages_updateDialogFiltersOrder | Api.messages_getOldFeaturedStickers | Api.messages_getReplies | Api.messages_getDiscussionMessage | Api.messages_readDiscussion | Api.messages_unpinAllMessages | Api.messages_deleteChat | Api.messages_deletePhoneCallHistory | Api.messages_checkHistoryImport | Api.messages_initHistoryImport | Api.messages_uploadImportedMedia | Api.messages_startHistoryImport | Api.messages_getExportedChatInvites | Api.messages_getExportedChatInvite | Api.messages_editExportedChatInvite | Api.messages_deleteRevokedExportedChatInvites | Api.messages_deleteExportedChatInvite | Api.messages_getAdminsWithInvites | Api.messages_getChatInviteImporters | Api.messages_setHistoryTTL | Api.messages_checkHistoryImportPeer | Api.messages_setChatTheme | Api.messages_getMessageReadParticipants | Api.messages_getSearchResultsCalendar | Api.messages_getSearchResultsPositions | Api.messages_hideChatJoinRequest | Api.messages_hideAllChatJoinRequests | Api.messages_toggleNoForwards | Api.messages_saveDefaultSendAs | Api.messages_sendReaction | Api.messages_getMessagesReactions | Api.messages_getMessageReactionsList | Api.messages_setChatAvailableReactions | Api.messages_getAvailableReactions | Api.messages_setDefaultReaction | Api.messages_translateText | Api.messages_getUnreadReactions | Api.messages_readReactions | Api.messages_searchSentMedia | Api.messages_getAttachMenuBots | Api.messages_getAttachMenuBot | Api.messages_toggleBotInAttachMenu | Api.messages_requestWebView | Api.messages_prolongWebView | Api.messages_requestSimpleWebView | Api.messages_sendWebViewResultMessage | Api.messages_sendWebViewData | Api.messages_transcribeAudio | Api.messages_rateTranscribedAudio | Api.messages_getCustomEmojiDocuments | Api.messages_getEmojiStickers | Api.messages_getFeaturedEmojiStickers | Api.messages_reportReaction | Api.messages_getTopReactions | Api.messages_getRecentReactions | Api.messages_clearRecentReactions | Api.messages_getExtendedMedia | Api.messages_setDefaultHistoryTTL | Api.messages_getDefaultHistoryTTL | Api.messages_sendBotRequestedPeer | Api.messages_getEmojiGroups | Api.messages_getEmojiStatusGroups | Api.messages_getEmojiProfilePhotoGroups | Api.messages_searchCustomEmoji | Api.messages_togglePeerTranslations | Api.messages_getBotApp | Api.messages_requestAppWebView | Api.messages_setChatWallPaper | Api.messages_searchEmojiStickerSets | Api.messages_getSavedDialogs | Api.messages_getSavedHistory | Api.messages_deleteSavedHistory | Api.messages_getPinnedSavedDialogs | Api.messages_toggleSavedDialogPin | Api.messages_reorderPinnedSavedDialogs | Api.messages_getSavedReactionTags | Api.messages_updateSavedReactionTag | Api.messages_getDefaultTagReactions | Api.messages_getOutboxReadDate | Api.messages_getQuickReplies | Api.messages_reorderQuickReplies | Api.messages_checkQuickReplyShortcut | Api.messages_editQuickReplyShortcut | Api.messages_deleteQuickReplyShortcut | Api.messages_getQuickReplyMessages | Api.messages_sendQuickReplyMessages | Api.messages_deleteQuickReplyMessages | Api.messages_toggleDialogFilterTags | Api.messages_getMyStickers | Api.messages_getEmojiStickerGroups | Api.messages_getAvailableEffects | Api.messages_editFactCheck | Api.messages_deleteFactCheck | Api.messages_getFactCheck | Api.messages_requestMainWebView | Api.messages_sendPaidReaction | Api.messages_togglePaidReactionPrivacy | Api.messages_getPaidReactionPrivacy | Api.messages_viewSponsoredMessage | Api.messages_clickSponsoredMessage | Api.messages_reportSponsoredMessage | Api.messages_getSponsoredMessages | Api.messages_savePreparedInlineMessage | Api.messages_getPreparedInlineMessage | Api.messages_searchStickers | Api.messages_reportMessagesDelivery | Api.messages_getSavedDialogsByID | Api.messages_readSavedHistory | Api.messages_toggleTodoCompleted | Api.messages_appendTodoList | Api.messages_toggleSuggestedPostApproval | Api.updates_getState | Api.updates_getDifference | Api.updates_getChannelDifference | Api.photos_updateProfilePhoto | Api.photos_uploadProfilePhoto | Api.photos_deletePhotos | Api.photos_getUserPhotos | Api.photos_uploadContactProfilePhoto | Api.upload_saveFilePart | Api.upload_getFile | Api.upload_saveBigFilePart | Api.upload_getWebFile | Api.upload_getCdnFile | Api.upload_reuploadCdnFile | Api.upload_getCdnFileHashes | Api.upload_getFileHashes | Api.help_getConfig | Api.help_getNearestDc | Api.help_getAppUpdate | Api.help_getInviteText | Api.help_getSupport | Api.help_setBotUpdatesStatus | Api.help_getCdnConfig | Api.help_getRecentMeUrls | Api.help_getTermsOfServiceUpdate | Api.help_acceptTermsOfService | Api.help_getDeepLinkInfo | Api.help_getAppConfig | Api.help_saveAppLog | Api.help_getPassportConfig | Api.help_getSupportName | Api.help_getUserInfo | Api.help_editUserInfo | Api.help_getPromoData | Api.help_hidePromoData | Api.help_dismissSuggestion | Api.help_getCountriesList | Api.help_getPremiumPromo | Api.help_getPeerColors | Api.help_getPeerProfileColors | Api.help_getTimezonesList | Api.channels_readHistory | Api.channels_deleteMessages | Api.channels_reportSpam | Api.channels_getMessages | Api.channels_getParticipants | Api.channels_getParticipant | Api.channels_getChannels | Api.channels_getFullChannel | Api.channels_createChannel | Api.channels_editAdmin | Api.channels_editTitle | Api.channels_editPhoto | Api.channels_checkUsername | Api.channels_updateUsername | Api.channels_joinChannel | Api.channels_leaveChannel | Api.channels_inviteToChannel | Api.channels_deleteChannel | Api.channels_exportMessageLink | Api.channels_toggleSignatures | Api.channels_getAdminedPublicChannels | Api.channels_editBanned | Api.channels_getAdminLog | Api.channels_setStickers | Api.channels_readMessageContents | Api.channels_deleteHistory | Api.channels_togglePreHistoryHidden | Api.channels_getLeftChannels | Api.channels_getGroupsForDiscussion | Api.channels_setDiscussionGroup | Api.channels_editCreator | Api.channels_editLocation | Api.channels_toggleSlowMode | Api.channels_getInactiveChannels | Api.channels_convertToGigagroup | Api.channels_getSendAs | Api.channels_deleteParticipantHistory | Api.channels_toggleJoinToSend | Api.channels_toggleJoinRequest | Api.channels_reorderUsernames | Api.channels_toggleUsername | Api.channels_deactivateAllUsernames | Api.channels_toggleForum | Api.channels_createForumTopic | Api.channels_getForumTopics | Api.channels_getForumTopicsByID | Api.channels_editForumTopic | Api.channels_updatePinnedForumTopic | Api.channels_deleteTopicHistory | Api.channels_reorderPinnedForumTopics | Api.channels_toggleAntiSpam | Api.channels_reportAntiSpamFalsePositive | Api.channels_toggleParticipantsHidden | Api.channels_updateColor | Api.channels_toggleViewForumAsMessages | Api.channels_getChannelRecommendations | Api.channels_updateEmojiStatus | Api.channels_setBoostsToUnblockRestrictions | Api.channels_setEmojiStickers | Api.channels_restrictSponsoredMessages | Api.channels_searchPosts | Api.channels_updatePaidMessagesPrice | Api.channels_toggleAutotranslation | Api.channels_getMessageAuthor | Api.channels_checkSearchPostsFlood | Api.channels_setMainProfileTab | Api.bots_sendCustomRequest | Api.bots_answerWebhookJSONQuery | Api.bots_setBotCommands | Api.bots_resetBotCommands | Api.bots_getBotCommands | Api.bots_setBotMenuButton | Api.bots_getBotMenuButton | Api.bots_setBotBroadcastDefaultAdminRights | Api.bots_setBotGroupDefaultAdminRights | Api.bots_setBotInfo | Api.bots_getBotInfo | Api.bots_reorderUsernames | Api.bots_toggleUsername | Api.bots_canSendMessage | Api.bots_allowSendMessage | Api.bots_invokeWebViewCustomMethod | Api.bots_getPopularAppBots | Api.bots_addPreviewMedia | Api.bots_editPreviewMedia | Api.bots_deletePreviewMedia | Api.bots_reorderPreviewMedias | Api.bots_getPreviewInfo | Api.bots_getPreviewMedias | Api.bots_updateUserEmojiStatus | Api.bots_toggleUserEmojiStatusPermission | Api.bots_checkDownloadFileParams | Api.bots_getAdminedBots | Api.bots_updateStarRefProgram | Api.bots_setCustomVerification | Api.bots_getBotRecommendations | Api.payments_getPaymentForm | Api.payments_getPaymentReceipt | Api.payments_validateRequestedInfo | Api.payments_sendPaymentForm | Api.payments_getSavedInfo | Api.payments_clearSavedInfo | Api.payments_getBankCardData | Api.payments_exportInvoice | Api.payments_assignAppStoreTransaction | Api.payments_assignPlayMarketTransaction | Api.payments_getPremiumGiftCodeOptions | Api.payments_checkGiftCode | Api.payments_applyGiftCode | Api.payments_getGiveawayInfo | Api.payments_launchPrepaidGiveaway | Api.payments_getStarsTopupOptions | Api.payments_getStarsStatus | Api.payments_getStarsTransactions | Api.payments_sendStarsForm | Api.payments_refundStarsCharge | Api.payments_getStarsRevenueStats | Api.payments_getStarsRevenueWithdrawalUrl | Api.payments_getStarsRevenueAdsAccountUrl | Api.payments_getStarsTransactionsByID | Api.payments_getStarsGiftOptions | Api.payments_getStarsSubscriptions | Api.payments_changeStarsSubscription | Api.payments_fulfillStarsSubscription | Api.payments_getStarsGiveawayOptions | Api.payments_getStarGifts | Api.payments_saveStarGift | Api.payments_convertStarGift | Api.payments_botCancelStarsSubscription | Api.payments_getConnectedStarRefBots | Api.payments_getConnectedStarRefBot | Api.payments_getSuggestedStarRefBots | Api.payments_connectStarRefBot | Api.payments_editConnectedStarRefBot | Api.payments_getStarGiftUpgradePreview | Api.payments_upgradeStarGift | Api.payments_transferStarGift | Api.payments_getUniqueStarGift | Api.payments_getSavedStarGifts | Api.payments_getSavedStarGift | Api.payments_getStarGiftWithdrawalUrl | Api.payments_toggleChatStarGiftNotifications | Api.payments_toggleStarGiftsPinnedToTop | Api.payments_canPurchaseStore | Api.payments_getResaleStarGifts | Api.payments_updateStarGiftPrice | Api.payments_createStarGiftCollection | Api.payments_updateStarGiftCollection | Api.payments_reorderStarGiftCollections | Api.payments_deleteStarGiftCollection | Api.payments_getStarGiftCollections | Api.payments_getUniqueStarGiftValueInfo | Api.payments_checkCanSendGift | Api.stickers_createStickerSet | Api.stickers_removeStickerFromSet | Api.stickers_changeStickerPosition | Api.stickers_addStickerToSet | Api.stickers_setStickerSetThumb | Api.stickers_checkShortName | Api.stickers_suggestShortName | Api.stickers_changeSticker | Api.stickers_renameStickerSet | Api.stickers_deleteStickerSet | Api.stickers_replaceSticker | Api.phone_getCallConfig | Api.phone_requestCall | Api.phone_acceptCall | Api.phone_confirmCall | Api.phone_receivedCall | Api.phone_discardCall | Api.phone_setCallRating | Api.phone_saveCallDebug | Api.phone_sendSignalingData | Api.phone_createGroupCall | Api.phone_joinGroupCall | Api.phone_leaveGroupCall | Api.phone_inviteToGroupCall | Api.phone_discardGroupCall | Api.phone_toggleGroupCallSettings | Api.phone_getGroupCall | Api.phone_getGroupParticipants | Api.phone_checkGroupCall | Api.phone_toggleGroupCallRecord | Api.phone_editGroupCallParticipant | Api.phone_editGroupCallTitle | Api.phone_getGroupCallJoinAs | Api.phone_exportGroupCallInvite | Api.phone_toggleGroupCallStartSubscription | Api.phone_startScheduledGroupCall | Api.phone_saveDefaultGroupCallJoinAs | Api.phone_joinGroupCallPresentation | Api.phone_leaveGroupCallPresentation | Api.phone_getGroupCallStreamChannels | Api.phone_getGroupCallStreamRtmpUrl | Api.phone_saveCallLog | Api.phone_createConferenceCall | Api.phone_deleteConferenceCallParticipants | Api.phone_sendConferenceCallBroadcast | Api.phone_inviteConferenceCallParticipant | Api.phone_declineConferenceCallInvite | Api.phone_getGroupCallChainBlocks | Api.langpack_getLangPack | Api.langpack_getStrings | Api.langpack_getDifference | Api.langpack_getLanguages | Api.langpack_getLanguage | Api.folders_editPeerFolders | Api.stats_getBroadcastStats | Api.stats_loadAsyncGraph | Api.stats_getMegagroupStats | Api.stats_getMessagePublicForwards | Api.stats_getMessageStats | Api.stats_getStoryStats | Api.stats_getStoryPublicForwards | Api.chatlists_exportChatlistInvite | Api.chatlists_deleteExportedInvite | Api.chatlists_editExportedInvite | Api.chatlists_getExportedInvites | Api.chatlists_checkChatlistInvite | Api.chatlists_joinChatlistInvite | Api.chatlists_getChatlistUpdates | Api.chatlists_joinChatlistUpdates | Api.chatlists_hideChatlistUpdates | Api.chatlists_getLeaveChatlistSuggestions | Api.chatlists_leaveChatlist | Api.stories_canSendStory | Api.stories_sendStory | Api.stories_editStory | Api.stories_deleteStories | Api.stories_togglePinned | Api.stories_getAllStories | Api.stories_getPinnedStories | Api.stories_getStoriesArchive | Api.stories_getStoriesByID | Api.stories_toggleAllStoriesHidden | Api.stories_readStories | Api.stories_incrementStoryViews | Api.stories_getStoryViewsList | Api.stories_getStoriesViews | Api.stories_exportStoryLink | Api.stories_report | Api.stories_activateStealthMode | Api.stories_sendReaction | Api.stories_getPeerStories | Api.stories_getAllReadPeerStories | Api.stories_getPeerMaxIDs | Api.stories_getChatsToSend | Api.stories_togglePeerStoriesHidden | Api.stories_getStoryReactionsList | Api.stories_togglePinnedToTop | Api.stories_searchPosts | Api.stories_createAlbum | Api.stories_updateAlbum | Api.stories_reorderAlbums | Api.stories_deleteAlbum | Api.stories_getAlbums | Api.stories_getAlbumStories | Api.premium_getBoostsList | Api.premium_getMyBoosts | Api.premium_applyBoost | Api.premium_getBoostsStatus | Api.premium_getUserBoosts | Api.smsjobs_isEligibleToJoin | Api.smsjobs_join | Api.smsjobs_leave | Api.smsjobs_updateSettings | Api.smsjobs_getStatus | Api.smsjobs_getSmsJob | Api.smsjobs_finishJob | Api.fragment_getCollectibleInfo | Api.invokeAfterMsg<Api.Function> | Api.invokeAfterMsgs<Api.Function> | Api.initConnection<Api.Function> | Api.invokeWithLayer<Api.Function> | Api.invokeWithoutUpdates<Api.Function> | Api.invokeWithMessagesRange<Api.Function> | Api.invokeWithTakeout<Api.Function> | Api.invokeWithBusinessConnection<Api.Function> | Api.invokeWithGooglePlayIntegrity<Api.Function> | Api.invokeWithApnsSecret<Api.Function> | Api.invokeWithReCaptcha<Api.Function>;
32
32
  export declare function canBeInputUser(inputPeer: Api.InputPeer): inputPeer is Api.inputPeerSelf | Api.inputPeerUser | Api.inputPeerUserFromMessage;
33
33
  export declare function toInputUser(inputPeer: Api.InputPeer): Api.inputUserSelf | Api.inputUser | Api.inputUserFromMessage;
34
34
  export declare function canBeInputChannel(inputPeer: Api.InputPeer): inputPeer is Api.inputPeerChannel | Api.inputPeerChannelFromMessage;
@@ -1 +1 @@
1
- {"version":3,"file":"0_utilities.d.ts","sourceRoot":"","sources":["../../src/client/0_utilities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAiB,MAAM,YAAY,CAA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7 +18,7 @@
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
20
  import type { Api, Mtproto } from "../2_tl.js";
21
- import type { ConnectionState, EntityGetter, ID, ParseMode, Update } from "../3_types.js";
21
+ import type { ConnectionState, ID, ParseMode, PeerGetter, Update } from "../3_types.js";
22
22
  import type { InvokeParams } from "./0_params.js";
23
23
  import type { StorageOperations } from "./0_storage_operations.js";
24
24
  export interface C {
@@ -34,7 +34,7 @@ export interface C {
34
34
  getInputChannel: (id: ID) => Promise<Api.inputChannel | Api.inputChannelFromMessage>;
35
35
  getInputUser: (id: ID) => Promise<Api.inputUserSelf | Api.inputUser | Api.inputUserFromMessage>;
36
36
  getInputPeerChatId: (inputPeer: Api.InputPeer | Api.InputUser | Api.InputChannel) => Promise<number>;
37
- getEntity: EntityGetter;
37
+ getPeer: PeerGetter;
38
38
  handleUpdate: (update: Update) => void;
39
39
  parseMode: ParseMode;
40
40
  outgoingMessages: "none" | "business" | "all" | null;
@@ -1 +1 @@
1
- {"version":3,"file":"1_types.d.ts","sourceRoot":"","sources":["../../src/client/1_types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC1F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE,MAAM,WAAW,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACzC,OAAO,EAAE,iBAAiB,CAAC;IAC3B,cAAc,EAAE,iBAAiB,CAAC;IAClC,uBAAuB,EAAE,OAAO,CAAC;IACj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AAE,MAAM,CAAC,EAAE,YAAY,GAAG;QAAE,oBAAoB,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;CACjX"}
@@ -132,12 +132,12 @@ class AccountManager {
132
132
  if (!_2_tl_js_1.Api.is("inputPeerUser", id)) {
133
133
  (0, _0_deps_js_1.unreachable)();
134
134
  }
135
- const user = await this.#c.getEntity(_2_tl_js_1.Api.inputPeerToPeer(id));
136
- if (!user || !("first_name" in user)) {
135
+ const peer = this.#c.getPeer(_2_tl_js_1.Api.inputPeerToPeer(id));
136
+ if (!peer || peer[0].type !== "private") {
137
137
  (0, _0_deps_js_1.unreachable)();
138
138
  }
139
- const first_name = params?.firstName ?? user.first_name ?? "";
140
- const last_name = params?.lastName ?? user.last_name ?? "";
139
+ const first_name = params?.firstName ?? peer[0].firstName ?? "";
140
+ const last_name = params?.lastName ?? peer[0].lastName ?? "";
141
141
  const phone = "";
142
142
  const add_phone_privacy_exception = params?.sharePhoneNumber ? true : undefined;
143
143
  await this.#c.invoke({ _: "contacts.addContact", add_phone_privacy_exception, id, first_name, last_name, phone });
@@ -164,7 +164,7 @@ class AccountManager {
164
164
  this.#c.storage.assertUser("updateProfile");
165
165
  const selfId = await this.#c.getSelfId();
166
166
  const userFull = await this.#getUserFull(selfId);
167
- const entity = await this.#c.getEntity(_2_tl_js_1.Api.chatIdToPeer(selfId));
167
+ const entity = await this.#c.getPeer(_2_tl_js_1.Api.chatIdToPeer(selfId));
168
168
  if (!_2_tl_js_1.Api.is("user", entity)) {
169
169
  (0, _0_deps_js_1.unreachable)();
170
170
  }
@@ -23,7 +23,7 @@ import type { UpdateProcessor } from "./0_update_processor.js";
23
23
  import type { C } from "./1_types.js";
24
24
  declare const businessConnectionManagerUpdates: readonly ["updateBotBusinessConnect"];
25
25
  type BusinessConnectionManagerUpdate = Api.Types[(typeof businessConnectionManagerUpdates)[number]];
26
- export declare class BusinessConnectionManager implements UpdateProcessor<BusinessConnectionManagerUpdate> {
26
+ export declare class BusinessConnectionManager implements UpdateProcessor<BusinessConnectionManagerUpdate, true> {
27
27
  #private;
28
28
  constructor(c: C);
29
29
  getBusinessConnection(id: string): Promise<import("../3_types.js").BusinessConnection>;
@@ -1 +1 @@
1
- {"version":3,"file":"2_business_connection_manager.d.ts","sourceRoot":"","sources":["../../src/client/2_business_connection_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAA+B,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEtC,QAAA,MAAM,gCAAgC,uCAE5B,CAAC;AAEX,KAAK,+BAA+B,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEpG,qBAAa,yBAA0B,YAAW,eAAe,CAAC,+BAA+B,CAAC;;gBAGpF,CAAC,EAAE,CAAC;IAIV,qBAAqB,CAAC,EAAE,EAAE,MAAM;IAatC,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,IAAI,+BAA+B;IAIxE,YAAY,CAAC,MAAM,EAAE,+BAA+B,GAAG,OAAO,CAAC,MAAM,CAAC;CAS7E"}
1
+ {"version":3,"file":"2_business_connection_manager.d.ts","sourceRoot":"","sources":["../../src/client/2_business_connection_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAA+B,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEtC,QAAA,MAAM,gCAAgC,uCAE5B,CAAC;AAEX,KAAK,+BAA+B,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEpG,qBAAa,yBAA0B,YAAW,eAAe,CAAC,+BAA+B,EAAE,IAAI,CAAC;;gBAG1F,CAAC,EAAE,CAAC;IAIV,qBAAqB,CAAC,EAAE,EAAE,MAAM;IAatC,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,IAAI,+BAA+B;IAIxE,YAAY,CAAC,MAAM,EAAE,+BAA+B,GAAG,OAAO,CAAC,MAAM,CAAC;CAS7E"}
@@ -37,10 +37,10 @@ class BusinessConnectionManager {
37
37
  .then((v) => _2_tl_js_1.Api.as("updates", v))
38
38
  .then((v) => _2_tl_js_1.Api.as("updateBotBusinessConnect", v.updates[0]).connection);
39
39
  await this.#c.messageStorage.setBusinessConnection(id, connection_);
40
- return await (0, _3_types_js_1.constructBusinessConnection)(connection_, this.#c.getEntity);
40
+ return (0, _3_types_js_1.constructBusinessConnection)(connection_, this.#c.getPeer);
41
41
  }
42
42
  else {
43
- return await (0, _3_types_js_1.constructBusinessConnection)(connection_, this.#c.getEntity);
43
+ return (0, _3_types_js_1.constructBusinessConnection)(connection_, this.#c.getPeer);
44
44
  }
45
45
  }
46
46
  canHandleUpdate(update) {
@@ -53,7 +53,7 @@ class BusinessConnectionManager {
53
53
  else {
54
54
  await this.#c.messageStorage.setBusinessConnection(update.connection.connection_id, update.connection);
55
55
  }
56
- const businessConnection = await (0, _3_types_js_1.constructBusinessConnection)(update.connection, this.#c.getEntity);
56
+ const businessConnection = (0, _3_types_js_1.constructBusinessConnection)(update.connection, this.#c.getPeer);
57
57
  return { businessConnection };
58
58
  }
59
59
  }
@@ -50,7 +50,7 @@ export declare class ClientEncrypted extends ClientAbstract {
50
50
  constructor(dc: DC, apiId: number, params?: ClientEncryptedParams);
51
51
  connect(): Promise<void>;
52
52
  disconnect(): void;
53
- get authKey(): Uint8Array;
53
+ get authKey(): Uint8Array<ArrayBuffer>;
54
54
  setAuthKey(authKey: Uint8Array<ArrayBuffer>): Promise<void>;
55
55
  lastRequest?: Date;
56
56
  invoke<T extends Api.AnyFunction | Mtproto.ping, R = T extends Mtproto.ping ? Mtproto.pong : T extends Api.AnyGenericFunction<infer X> ? Api.ReturnType<X> : T["_"] extends keyof Api.Functions ? Api.ReturnType<T> extends never ? Api.ReturnType<Api.Functions[T["_"]]> : never : never>(function_: T): Promise<R>;
@@ -1 +1 @@
1
- {"version":3,"file":"2_client_encrypted.d.ts","sourceRoot":"","sources":["../../src/client/2_client_encrypted.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,OAAO,EAAK,MAAM,YAAY,CAAC;AAE7C,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAE,gBAAgB,EAAgB,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAK1E,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,iKAAiK;IACjK,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8GAA8G;IAC9G,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4GAA4G;IAC5G,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mHAAmH;IACnH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8GAA8G;IAC9G,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iEAAiE;IACjE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACtC,e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AAC,WAAW,CAAC;IAKjD,WAAW,CAAC,EAAE,IAAI,CAAC;IA+Db,MAAM,CAAC,CAAC,SAAS,GAAG,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,SAAS,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,GAAG,CAAC,SAAS,GAAG,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,KAAK,EAAE,SAAS,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;CAmF3T"}
@@ -206,10 +206,10 @@ class FileManager {
206
206
  signal?.throwIfAborted();
207
207
  this.#Lupload.debug(`[${fileId}] uploading part ` + (index + 1));
208
208
  if (isBig) {
209
- await this.#c.invoke({ _: "upload.saveBigFilePart", file_id: fileId, file_part: index, bytes: bytes, file_total_parts: partCount }, { type: "upload" });
209
+ await this.#c.invoke({ _: "upload.saveBigFilePart", file_id: fileId, file_part: index, bytes, file_total_parts: partCount }, { type: "upload" });
210
210
  }
211
211
  else {
212
- await this.#c.invoke({ _: "upload.saveFilePart", file_id: fileId, bytes: bytes, file_part: index }, { type: "upload" });
212
+ await this.#c.invoke({ _: "upload.saveFilePart", file_id: fileId, bytes, file_part: index }, { type: "upload" });
213
213
  }
214
214
  this.#Lupload.debug(`[${fileId}] uploaded part ` + (index + 1));
215
215
  break;
@@ -28,7 +28,7 @@ export declare class PaymentManager implements UpdateProcessor<PaymentManagerUpd
28
28
  #private;
29
29
  constructor(c: C);
30
30
  canHandleUpdate(update: Api.Update): update is PaymentManagerUpdate;
31
- handleUpdate(update: PaymentManagerUpdate): Promise<Update | null>;
31
+ handleUpdate(update: PaymentManagerUpdate): Update | null;
32
32
  answerPreCheckoutQuery(preCheckoutQueryId: string, ok: boolean, params?: AnswerPreCheckoutQueryParams): Promise<void>;
33
33
  refundStarPayment(userId: ID, telegramPaymentChargeId: string): Promise<void>;
34
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"2_payment_manager.d.ts","sourceRoot":"","sources":["../../src/client/2_payment_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAA6B,KAAK,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEtC,QAAA,MAAM,qBAAqB,wCAEjB,CAAC;AAEX,KAAK,oBAAoB,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAE9E,qBAAa,cAAe,YAAW,eAAe,CAAC,oBAAoB,CAAC;;gBAG9D,CAAC,EAAE,CAAC;IAIhB,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,IAAI,oBAAoB;IAI7D,YAAY,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IASlE,sBAAsB,CAAC,kBAAkB,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,4BAA4B;IAYrG,iBAAiB,CAAC,MAAM,EAAE,EAAE,EAAE,uBAAuB,EAAE,MAAM;CAIpE"}
1
+ {"version":3,"file":"2_payment_manager.d.ts","sourceRoot":"","sources":["../../src/client/2_payment_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAA6B,KAAK,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEtC,QAAA,MAAM,qBAAqB,wCAEjB,CAAC;AAEX,KAAK,oBAAoB,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAE9E,qBAAa,cAAe,YAAW,eAAe,CAAC,oBAAoB,CAAC;;gBAG9D,CAAC,EAAE,CAAC;IAIhB,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,IAAI,oBAAoB;IAInE,YAAY,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,GAAG,IAAI;IASnD,sBAAsB,CAAC,kBAAkB,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,4BAA4B;IAYrG,iBAAiB,CAAC,MAAM,EAAE,EAAE,EAAE,uBAAuB,EAAE,MAAM;CAIpE"}
@@ -34,9 +34,9 @@ class PaymentManager {
34
34
  canHandleUpdate(update) {
35
35
  return _2_tl_js_1.Api.isOneOf(paymentManagerUpdates, update);
36
36
  }
37
- async handleUpdate(update) {
37
+ handleUpdate(update) {
38
38
  if (_2_tl_js_1.Api.is("updateBotPrecheckoutQuery", update)) {
39
- const preCheckoutQuery = await (0, _3_types_js_1.constructPreCheckoutQuery)(update, this.#c.getEntity);
39
+ const preCheckoutQuery = (0, _3_types_js_1.constructPreCheckoutQuery)(update, this.#c.getPeer);
40
40
  return { preCheckoutQuery };
41
41
  }
42
42
  return null;
@@ -23,7 +23,7 @@ import type { UpdateProcessor } from "./0_update_processor.js";
23
23
  import type { C } from "./1_types.js";
24
24
  declare const reactionManagerUpdates: readonly ["updateBotMessageReactions", "updateBotMessageReaction", "updateMessageReactions", "updateChannelMessageViews", "updateChannelMessageForwards"];
25
25
  type ReactionManagerUpdate = Api.Types[(typeof reactionManagerUpdates)[number]];
26
- export declare class ReactionManager implements UpdateProcessor<ReactionManagerUpdate> {
26
+ export declare class ReactionManager implements UpdateProcessor<ReactionManagerUpdate, true> {
27
27
  #private;
28
28
  constructor(c: C);
29
29
  canHandleUpdate(update: Api.Update): update is ReactionManagerUpdate;
@@ -1 +1 @@
1
- {"version":3,"file":"2_reaction_manager.d.ts","sourceRoot":"","sources":["../../src/client/2_reaction_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAsF,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAChI,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEtC,QAAA,MAAM,sBAAsB,2JAMlB,CAAC;AAEX,KAAK,qBAAqB,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEhF,qBAAa,eAAgB,YAAW,eAAe,CAAC,qBAAqB,CAAC;;gBAGhE,CAAC,EAAE,CAAC;IAIhB,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,IAAI,qBAAqB;IAI9D,YAAY,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAmD1E"}
1
+ {"version":3,"file":"2_reaction_manager.d.ts","sourceRoot":"","sources":["../../src/client/2_reaction_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAsF,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAChI,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEtC,QAAA,MAAM,sBAAsB,2JAMlB,CAAC;AAEX,KAAK,qBAAqB,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEhF,qBAAa,eAAgB,YAAW,eAAe,CAAC,qBAAqB,EAAE,IAAI,CAAC;;gBAGtE,CAAC,EAAE,CAAC;IAIhB,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,IAAI,qBAAqB;IAI9D,YAAY,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAmD1E"}
@@ -40,7 +40,7 @@ class ReactionManager {
40
40
  }
41
41
  async handleUpdate(update) {
42
42
  if (_2_tl_js_1.Api.is("updateBotMessageReactions", update)) {
43
- const messageReactionCount = await (0, _3_types_js_1.constructMessageReactionCount)(update, this.#c.getEntity);
43
+ const messageReactionCount = (0, _3_types_js_1.constructMessageReactionCount)(update, this.#c.getPeer);
44
44
  if (messageReactionCount) {
45
45
  return { messageReactionCount };
46
46
  }
@@ -49,7 +49,7 @@ class ReactionManager {
49
49
  }
50
50
  }
51
51
  else if (_2_tl_js_1.Api.is("updateBotMessageReaction", update)) {
52
- const messageReactions = await (0, _3_types_js_1.constructMessageReactions)(update, this.#c.getEntity);
52
+ const messageReactions = (0, _3_types_js_1.constructMessageReactions)(update, this.#c.getPeer);
53
53
  if (messageReactions) {
54
54
  return { messageReactions };
55
55
  }
@@ -24,7 +24,7 @@ import type { UpdateProcessor } from "./0_update_processor.js";
24
24
  import type { C } from "./1_types.js";
25
25
  declare const translationsManagerUpdates: readonly ["updateLangPackTooLong", "updateLangPack"];
26
26
  type TranslationsManagerUpdate = Api.Types[(typeof translationsManagerUpdates)[number]];
27
- export declare class TranslationsManager implements UpdateProcessor<TranslationsManagerUpdate> {
27
+ export declare class TranslationsManager implements UpdateProcessor<TranslationsManagerUpdate, true> {
28
28
  #private;
29
29
  constructor(c: C);
30
30
  canHandleUpdate(update: Api.Update): update is TranslationsManagerUpdate;
@@ -1 +1 @@
1
- {"version":3,"file":"2_translations_manager.d.ts","sourceRoot":"","sources":["../../src/client/2_translations_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAwB,KAAK,WAAW,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEtC,QAAA,MAAM,0BAA0B,sDAGtB,CAAC;AAEX,KAAK,yBAAyB,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAExF,qBAAa,mBAAoB,YAAW,eAAe,CAAC,yBAAyB,CAAC;;gBAGxE,CAAC,EAAE,CAAC;IAIhB,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,IAAI,yBAAyB;IAIlE,eAAe,CAAC,MAAM,CAAC,EAAE,qBAAqB;IA8F9C,YAAY,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAqB9E"}
1
+ {"version":3,"file":"2_translations_manager.d.ts","sourceRoot":"","sources":["../../src/client/2_translations_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAwB,KAAK,WAAW,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEtC,QAAA,MAAM,0BAA0B,sDAGtB,CAAC;AAEX,KAAK,yBAAyB,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAExF,qBAAa,mBAAoB,YAAW,eAAe,CAAC,yBAAyB,EAAE,IAAI,CAAC;;gBAG9E,CAAC,EAAE,CAAC;IAIhB,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,IAAI,yBAAyB;IAIlE,eAAe,CAAC,MAAM,CAAC,EAAE,qBAAqB;IAkG9C,YAAY,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAqB9E"}
@@ -50,9 +50,9 @@ class TranslationsManager {
50
50
  return await this.#getTranslationsInner(platform, language);
51
51
  }
52
52
  async #getTranslationsInner(platform, language, assert = false) {
53
- const maybeTranslations = await this.#c.messageStorage.getTranslations(platform, language);
53
+ const maybeTranslations = await this.#c.messageStorage.translations.get([platform, language]);
54
54
  if (maybeTranslations !== null) {
55
- return maybeTranslations[1];
55
+ return maybeTranslations.translations;
56
56
  }
57
57
  else if (assert) {
58
58
  (0, _0_deps_js_1.unreachable)();
@@ -67,17 +67,17 @@ class TranslationsManager {
67
67
  await new Promise((resolve, reject) => {
68
68
  this.#updateTranslationsQueue.add(async () => {
69
69
  try {
70
- const maybeTranslations = await this.#c.messageStorage.getTranslations(platform, language);
70
+ const maybeTranslations = await this.#c.messageStorage.translations.get([platform, language]);
71
71
  if (maybeTranslations !== null) {
72
- const difference = await this.#c.invoke({ _: "langpack.getDifference", lang_pack: platform, lang_code: language, from_version: maybeTranslations[0] });
73
- const newTranslations = this.#applyLangPackDifference(maybeTranslations[1], difference.strings);
74
- await this.#c.messageStorage.setTranslations(platform, language, difference.version, newTranslations);
72
+ const difference = await this.#c.invoke({ _: "langpack.getDifference", lang_pack: platform, lang_code: language, from_version: maybeTranslations.version });
73
+ const newTranslations = this.#applyLangPackDifference(maybeTranslations.translations, difference.strings);
74
+ this.#c.messageStorage.translations.set([platform, language], { date: new Date(), version: difference.version, translations: newTranslations });
75
75
  }
76
76
  else {
77
77
  const pack = await this.#c.invoke({ _: "langpack.getLangPack", lang_pack: platform, lang_code: language });
78
78
  const version = pack.version;
79
79
  const translations = pack.strings.map(_3_types_js_1.constructTranslation);
80
- await this.#c.messageStorage.setTranslations(platform, language, version, translations);
80
+ this.#c.messageStorage.translations.set([platform, language], { date: new Date(), version, translations });
81
81
  }
82
82
  resolve();
83
83
  }
@@ -91,15 +91,19 @@ class TranslationsManager {
91
91
  const result = await new Promise((resolve, reject) => {
92
92
  this.#updateTranslationsQueue.add(async () => {
93
93
  try {
94
- const maybeTranslations = await this.#c.messageStorage.getTranslations(platform, language);
94
+ const maybeTranslations = await this.#c.messageStorage.translations.get([platform, language]);
95
95
  let newTranslations = null;
96
96
  if (maybeTranslations) {
97
- if (fromVersion !== maybeTranslations[0]) {
97
+ if (fromVersion !== maybeTranslations.version) {
98
98
  resolve("mustUpdate");
99
99
  return;
100
100
  }
101
- newTranslations = this.#applyLangPackDifference(maybeTranslations[1], strings);
102
- await this.#c.messageStorage.setTranslations(platform, language, version, newTranslations);
101
+ newTranslations = this.#applyLangPackDifference(maybeTranslations.translations, strings);
102
+ this.#c.messageStorage.translations.set([platform, language], {
103
+ date: new Date(),
104
+ version,
105
+ translations: newTranslations,
106
+ });
103
107
  }
104
108
  resolve(newTranslations);
105
109
  }
@@ -34,9 +34,11 @@ export declare class UpdateManager {
34
34
  static isQtsUpdate(v: Api.Update): v is QtsUpdate;
35
35
  static isChannelPtsUpdate(v: Api.Update | Api.Updates): v is ChannelPtsUpdate;
36
36
  fetchState(source: string): Promise<void>;
37
- processChats(chats: Api.Chat[], context: Api.DeserializedType): Promise<void>;
37
+ processChats(chats: Api.Chat[], _context: Api.DeserializedType): void;
38
+ processChat(chat: Api.Chat): void;
38
39
  processResult(result: Api.DeserializedType): Promise<void>;
39
- processUsers(users: Api.User[], context: Api.DeserializedType): Promise<void>;
40
+ processUsers(users: Api.User[], _context: Api.DeserializedType): void;
41
+ processUser(user: Api.User): void;
40
42
  getHandleUpdateQueue(boxId: bigint): Queue;
41
43
  processUpdates(updates: Api.Update | Api.Updates, checkGap: boolean, call?: Api.AnyObject | null, callback?: () => void): void;
42
44
  recoverUpdateGap(source: string): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"2_update_manager.d.ts","sourceRoot":"","sources":["../../src/client/2_update_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAiC,KAAK,EAAmB,MAAM,mBAAmB,CAAC;AAC1F,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAGxC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEtC,KAAK,aAAa,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,KAAK,OAAO,CAAC,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAE/E,MAAM,MAAM,SAAS,GACjB,GAAG,CAAC,gBAAgB,GACpB,GAAG,CAAC,oBAAoB,GACxB,GAAG,CAAC,sBAAsB,GAC1B,GAAG,CAAC,uBAAu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