@mtkruto/node 0.137.0 → 0.139.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 (295) hide show
  1. package/esm/3_types.d.ts +2 -3
  2. package/esm/3_types.d.ts.map +1 -1
  3. package/esm/3_types.js +2 -3
  4. package/esm/client/0_markdown.d.ts.map +1 -1
  5. package/esm/client/0_markdown.js +1 -3
  6. package/esm/client/0_params.d.ts +6 -0
  7. package/esm/client/0_params.d.ts.map +1 -1
  8. package/esm/client/1_client_generic.d.ts +14 -9
  9. package/esm/client/1_client_generic.d.ts.map +1 -1
  10. package/esm/client/1_client_generic.js +1 -3
  11. package/esm/client/1_client_plain.d.ts +2 -6
  12. package/esm/client/1_client_plain.d.ts.map +1 -1
  13. package/esm/client/1_client_plain.js +1 -3
  14. package/esm/client/1_types.d.ts +1 -0
  15. package/esm/client/1_types.d.ts.map +1 -1
  16. package/esm/client/2_bot_info_manager.js +1 -1
  17. package/esm/client/2_business_connection_manager.js +1 -1
  18. package/esm/client/2_file_manager.d.ts.map +1 -1
  19. package/esm/client/2_file_manager.js +2 -0
  20. package/esm/client/2_payment_manager.js +1 -1
  21. package/esm/client/2_reaction_manager.js +4 -4
  22. package/esm/client/2_story_album_manager.d.ts.map +1 -1
  23. package/esm/client/2_story_album_manager.js +1 -2
  24. package/esm/client/2_translations_manager.js +2 -2
  25. package/esm/client/2_update_manager.js +1 -1
  26. package/esm/client/3_account_manager.d.ts +2 -1
  27. package/esm/client/3_account_manager.d.ts.map +1 -1
  28. package/esm/client/3_account_manager.js +11 -4
  29. package/esm/client/3_filters.d.ts +94 -18
  30. package/esm/client/3_filters.d.ts.map +1 -1
  31. package/esm/client/3_message_manager.d.ts.map +1 -1
  32. package/esm/client/3_message_manager.js +16 -19
  33. package/esm/client/3_video_chat_manager.js +1 -1
  34. package/esm/client/4_callback_query_manager.js +1 -1
  35. package/esm/client/4_chat_manager.d.ts.map +1 -1
  36. package/esm/client/4_chat_manager.js +4 -5
  37. package/esm/client/4_context.d.ts +154 -462
  38. package/esm/client/4_context.d.ts.map +1 -1
  39. package/esm/client/4_context.js +220 -505
  40. package/esm/client/4_inline_query_manager.js +3 -3
  41. package/esm/client/4_link_preview_manager.js +1 -1
  42. package/esm/client/4_poll_manager.js +2 -2
  43. package/esm/client/4_story_manager.js +5 -5
  44. package/esm/client/6_client.d.ts +13 -14
  45. package/esm/client/6_client.d.ts.map +1 -1
  46. package/esm/client/6_client.js +26 -14
  47. package/esm/client/6_client_dispatcher.d.ts +14 -9
  48. package/esm/client/6_client_dispatcher.d.ts.map +1 -1
  49. package/esm/client/6_client_dispatcher.js +15 -6
  50. package/esm/session/1_session.d.ts +2 -6
  51. package/esm/session/1_session.d.ts.map +1 -1
  52. package/esm/types/0_bot_token_check_result.d.ts +0 -1
  53. package/esm/types/0_bot_token_check_result.d.ts.map +1 -1
  54. package/esm/types/0_callback_query_question.d.ts +0 -3
  55. package/esm/types/0_callback_query_question.d.ts.map +1 -1
  56. package/esm/types/0_chat_action_type.d.ts +0 -13
  57. package/esm/types/0_chat_action_type.d.ts.map +1 -1
  58. package/esm/types/0_code_check_result.d.ts +0 -3
  59. package/esm/types/0_code_check_result.d.ts.map +1 -1
  60. package/esm/types/0_emoji_status.d.ts +0 -2
  61. package/esm/types/0_emoji_status.d.ts.map +1 -1
  62. package/esm/types/0_gift_component_rarity.d.ts +0 -5
  63. package/esm/types/0_gift_component_rarity.d.ts.map +1 -1
  64. package/esm/types/0_id.d.ts +1 -3
  65. package/esm/types/0_id.d.ts.map +1 -1
  66. package/{script/types/1_inline_query_result_button.d.ts → esm/types/0_inline_query_result_button.d.ts} +3 -4
  67. package/esm/types/0_inline_query_result_button.d.ts.map +1 -0
  68. package/esm/types/0_input_emoji_status.d.ts +0 -2
  69. package/esm/types/0_input_emoji_status.d.ts.map +1 -1
  70. package/esm/types/0_password_check_result.d.ts +0 -2
  71. package/esm/types/0_password_check_result.d.ts.map +1 -1
  72. package/esm/types/0_reaction.d.ts +0 -3
  73. package/esm/types/0_reaction.d.ts.map +1 -1
  74. package/esm/types/0_user_status.d.ts +0 -5
  75. package/esm/types/0_user_status.d.ts.map +1 -1
  76. package/esm/types/0_video_chat.d.ts +0 -3
  77. package/esm/types/0_video_chat.d.ts.map +1 -1
  78. package/esm/types/1_available_reactions.d.ts +0 -3
  79. package/esm/types/1_available_reactions.d.ts.map +1 -1
  80. package/esm/types/1_bot_command_scope.d.ts +0 -7
  81. package/esm/types/1_bot_command_scope.d.ts.map +1 -1
  82. package/esm/types/1_chat_p.d.ts +1 -7
  83. package/esm/types/1_chat_p.d.ts.map +1 -1
  84. package/esm/types/1_inline_keyboard_button.d.ts +25 -42
  85. package/esm/types/1_inline_keyboard_button.d.ts.map +1 -1
  86. package/esm/types/1_inline_keyboard_button.js +57 -64
  87. package/esm/types/1_input_gift.d.ts +0 -3
  88. package/esm/types/1_input_gift.d.ts.map +1 -1
  89. package/esm/types/1_input_story_content.d.ts +2 -2
  90. package/esm/types/1_input_story_content.d.ts.map +1 -1
  91. package/esm/types/1_keyboard_button.d.ts +33 -34
  92. package/esm/types/1_keyboard_button.d.ts.map +1 -1
  93. package/esm/types/1_keyboard_button.js +81 -88
  94. package/esm/types/2_chat.d.ts +1 -3
  95. package/esm/types/2_chat.d.ts.map +1 -1
  96. package/esm/types/2_chat_member.d.ts +6 -24
  97. package/esm/types/2_chat_member.d.ts.map +1 -1
  98. package/esm/types/2_message_entity.d.ts +0 -20
  99. package/esm/types/2_message_entity.d.ts.map +1 -1
  100. package/esm/types/{0_mini_app_button_info.js → 2_profile_photo_list.d.ts} +10 -2
  101. package/esm/types/2_profile_photo_list.d.ts.map +1 -0
  102. package/esm/types/{0_keyboard_button_poll_type.d.ts → 2_profile_photo_list.js} +6 -5
  103. package/esm/types/2_reply_markup.d.ts +4 -12
  104. package/esm/types/2_reply_markup.d.ts.map +1 -1
  105. package/esm/types/2_reply_markup.js +13 -17
  106. package/esm/types/2_star_transaction_peer.d.ts +0 -8
  107. package/esm/types/2_star_transaction_peer.d.ts.map +1 -1
  108. package/esm/types/2_story_album_icon.d.ts +0 -2
  109. package/esm/types/2_story_album_icon.d.ts.map +1 -1
  110. package/esm/types/2_story_content.d.ts +3 -4
  111. package/esm/types/2_story_content.d.ts.map +1 -1
  112. package/esm/types/2_story_content.js +3 -3
  113. package/esm/types/2_story_privacy.d.ts +6 -7
  114. package/esm/types/2_story_privacy.d.ts.map +1 -1
  115. package/esm/types/2_story_privacy.js +23 -20
  116. package/esm/types/3_checklist_item.d.ts +2 -8
  117. package/esm/types/3_checklist_item.d.ts.map +1 -1
  118. package/esm/types/3_forward_header.d.ts +0 -5
  119. package/esm/types/3_forward_header.d.ts.map +1 -1
  120. package/esm/types/3_gift_upgraded_component.d.ts +0 -4
  121. package/esm/types/3_gift_upgraded_component.d.ts.map +1 -1
  122. package/esm/types/3_input_media.d.ts +10 -20
  123. package/esm/types/3_input_media.d.ts.map +1 -1
  124. package/esm/types/4_gift.d.ts +0 -2
  125. package/esm/types/4_gift.d.ts.map +1 -1
  126. package/esm/types/4_reply_to.d.ts +6 -14
  127. package/esm/types/4_reply_to.d.ts.map +1 -1
  128. package/esm/types/5_link_preview.d.ts +2 -18
  129. package/esm/types/5_link_preview.d.ts.map +1 -1
  130. package/esm/types/6_message.d.ts +90 -179
  131. package/esm/types/6_message.d.ts.map +1 -1
  132. package/esm/types/6_message.js +104 -120
  133. package/esm/types/6_message_content.d.ts +0 -5
  134. package/esm/types/6_message_content.d.ts.map +1 -1
  135. package/esm/types/7_inline_query_result.d.ts +10 -47
  136. package/esm/types/7_inline_query_result.d.ts.map +1 -1
  137. package/esm/types/7_inline_query_result.js +219 -152
  138. package/esm/types/8_update.d.ts +58 -105
  139. package/esm/types/8_update.d.ts.map +1 -1
  140. package/esm/utilities/0_int.d.ts +1 -3
  141. package/esm/utilities/0_int.d.ts.map +1 -1
  142. package/package.json +1 -1
  143. package/script/3_types.d.ts +2 -3
  144. package/script/3_types.d.ts.map +1 -1
  145. package/script/3_types.js +2 -3
  146. package/script/client/0_markdown.d.ts.map +1 -1
  147. package/script/client/0_markdown.js +1 -3
  148. package/script/client/0_params.d.ts +6 -0
  149. package/script/client/0_params.d.ts.map +1 -1
  150. package/script/client/1_client_generic.d.ts +14 -9
  151. package/script/client/1_client_generic.d.ts.map +1 -1
  152. package/script/client/1_client_generic.js +1 -3
  153. package/script/client/1_client_plain.d.ts +2 -6
  154. package/script/client/1_client_plain.d.ts.map +1 -1
  155. package/script/client/1_client_plain.js +1 -3
  156. package/script/client/1_types.d.ts +1 -0
  157. package/script/client/1_types.d.ts.map +1 -1
  158. package/script/client/2_bot_info_manager.js +1 -1
  159. package/script/client/2_business_connection_manager.js +1 -1
  160. package/script/client/2_file_manager.d.ts.map +1 -1
  161. package/script/client/2_file_manager.js +2 -0
  162. package/script/client/2_payment_manager.js +1 -1
  163. package/script/client/2_reaction_manager.js +4 -4
  164. package/script/client/2_story_album_manager.d.ts.map +1 -1
  165. package/script/client/2_story_album_manager.js +1 -2
  166. package/script/client/2_translations_manager.js +2 -2
  167. package/script/client/2_update_manager.js +1 -1
  168. package/script/client/3_account_manager.d.ts +2 -1
  169. package/script/client/3_account_manager.d.ts.map +1 -1
  170. package/script/client/3_account_manager.js +9 -2
  171. package/script/client/3_filters.d.ts +94 -18
  172. package/script/client/3_filters.d.ts.map +1 -1
  173. package/script/client/3_message_manager.d.ts.map +1 -1
  174. package/script/client/3_message_manager.js +15 -18
  175. package/script/client/3_video_chat_manager.js +1 -1
  176. package/script/client/4_callback_query_manager.js +1 -1
  177. package/script/client/4_chat_manager.d.ts.map +1 -1
  178. package/script/client/4_chat_manager.js +4 -5
  179. package/script/client/4_context.d.ts +154 -462
  180. package/script/client/4_context.d.ts.map +1 -1
  181. package/script/client/4_context.js +220 -505
  182. package/script/client/4_inline_query_manager.js +3 -3
  183. package/script/client/4_link_preview_manager.js +1 -1
  184. package/script/client/4_poll_manager.js +2 -2
  185. package/script/client/4_story_manager.js +5 -5
  186. package/script/client/6_client.d.ts +13 -14
  187. package/script/client/6_client.d.ts.map +1 -1
  188. package/script/client/6_client.js +25 -13
  189. package/script/client/6_client_dispatcher.d.ts +14 -9
  190. package/script/client/6_client_dispatcher.d.ts.map +1 -1
  191. package/script/client/6_client_dispatcher.js +15 -6
  192. package/script/session/1_session.d.ts +2 -6
  193. package/script/session/1_session.d.ts.map +1 -1
  194. package/script/types/0_bot_token_check_result.d.ts +0 -1
  195. package/script/types/0_bot_token_check_result.d.ts.map +1 -1
  196. package/script/types/0_callback_query_question.d.ts +0 -3
  197. package/script/types/0_callback_query_question.d.ts.map +1 -1
  198. package/script/types/0_chat_action_type.d.ts +0 -13
  199. package/script/types/0_chat_action_type.d.ts.map +1 -1
  200. package/script/types/0_code_check_result.d.ts +0 -3
  201. package/script/types/0_code_check_result.d.ts.map +1 -1
  202. package/script/types/0_emoji_status.d.ts +0 -2
  203. package/script/types/0_emoji_status.d.ts.map +1 -1
  204. package/script/types/0_gift_component_rarity.d.ts +0 -5
  205. package/script/types/0_gift_component_rarity.d.ts.map +1 -1
  206. package/script/types/0_id.d.ts +1 -3
  207. package/script/types/0_id.d.ts.map +1 -1
  208. package/{esm/types/1_inline_query_result_button.d.ts → script/types/0_inline_query_result_button.d.ts} +3 -4
  209. package/script/types/0_inline_query_result_button.d.ts.map +1 -0
  210. package/script/types/0_input_emoji_status.d.ts +0 -2
  211. package/script/types/0_input_emoji_status.d.ts.map +1 -1
  212. package/script/types/0_password_check_result.d.ts +0 -2
  213. package/script/types/0_password_check_result.d.ts.map +1 -1
  214. package/script/types/0_reaction.d.ts +0 -3
  215. package/script/types/0_reaction.d.ts.map +1 -1
  216. package/script/types/0_user_status.d.ts +0 -5
  217. package/script/types/0_user_status.d.ts.map +1 -1
  218. package/script/types/0_video_chat.d.ts +0 -3
  219. package/script/types/0_video_chat.d.ts.map +1 -1
  220. package/script/types/1_available_reactions.d.ts +0 -3
  221. package/script/types/1_available_reactions.d.ts.map +1 -1
  222. package/script/types/1_bot_command_scope.d.ts +0 -7
  223. package/script/types/1_bot_command_scope.d.ts.map +1 -1
  224. package/script/types/1_chat_p.d.ts +1 -7
  225. package/script/types/1_chat_p.d.ts.map +1 -1
  226. package/script/types/1_inline_keyboard_button.d.ts +25 -42
  227. package/script/types/1_inline_keyboard_button.d.ts.map +1 -1
  228. package/script/types/1_inline_keyboard_button.js +57 -64
  229. package/script/types/1_input_gift.d.ts +0 -3
  230. package/script/types/1_input_gift.d.ts.map +1 -1
  231. package/script/types/1_input_story_content.d.ts +2 -2
  232. package/script/types/1_input_story_content.d.ts.map +1 -1
  233. package/script/types/1_keyboard_button.d.ts +33 -34
  234. package/script/types/1_keyboard_button.d.ts.map +1 -1
  235. package/script/types/1_keyboard_button.js +81 -88
  236. package/script/types/2_chat.d.ts +1 -3
  237. package/script/types/2_chat.d.ts.map +1 -1
  238. package/script/types/2_chat_member.d.ts +6 -24
  239. package/script/types/2_chat_member.d.ts.map +1 -1
  240. package/script/types/2_message_entity.d.ts +0 -20
  241. package/script/types/2_message_entity.d.ts.map +1 -1
  242. package/script/types/{0_keyboard_button_poll_type.d.ts → 2_profile_photo_list.d.ts} +10 -5
  243. package/script/types/2_profile_photo_list.d.ts.map +1 -0
  244. package/script/types/{0_mini_app_button_info.js → 2_profile_photo_list.js} +7 -3
  245. package/script/types/2_reply_markup.d.ts +4 -12
  246. package/script/types/2_reply_markup.d.ts.map +1 -1
  247. package/script/types/2_reply_markup.js +13 -17
  248. package/script/types/2_star_transaction_peer.d.ts +0 -8
  249. package/script/types/2_star_transaction_peer.d.ts.map +1 -1
  250. package/script/types/2_story_album_icon.d.ts +0 -2
  251. package/script/types/2_story_album_icon.d.ts.map +1 -1
  252. package/script/types/2_story_content.d.ts +3 -4
  253. package/script/types/2_story_content.d.ts.map +1 -1
  254. package/script/types/2_story_content.js +3 -3
  255. package/script/types/2_story_privacy.d.ts +6 -7
  256. package/script/types/2_story_privacy.d.ts.map +1 -1
  257. package/script/types/2_story_privacy.js +23 -20
  258. package/script/types/3_checklist_item.d.ts +2 -8
  259. package/script/types/3_checklist_item.d.ts.map +1 -1
  260. package/script/types/3_forward_header.d.ts +0 -5
  261. package/script/types/3_forward_header.d.ts.map +1 -1
  262. package/script/types/3_gift_upgraded_component.d.ts +0 -4
  263. package/script/types/3_gift_upgraded_component.d.ts.map +1 -1
  264. package/script/types/3_input_media.d.ts +10 -20
  265. package/script/types/3_input_media.d.ts.map +1 -1
  266. package/script/types/4_gift.d.ts +0 -2
  267. package/script/types/4_gift.d.ts.map +1 -1
  268. package/script/types/4_reply_to.d.ts +6 -14
  269. package/script/types/4_reply_to.d.ts.map +1 -1
  270. package/script/types/5_link_preview.d.ts +2 -18
  271. package/script/types/5_link_preview.d.ts.map +1 -1
  272. package/script/types/6_message.d.ts +90 -179
  273. package/script/types/6_message.d.ts.map +1 -1
  274. package/script/types/6_message.js +105 -121
  275. package/script/types/6_message_content.d.ts +0 -5
  276. package/script/types/6_message_content.d.ts.map +1 -1
  277. package/script/types/7_inline_query_result.d.ts +10 -47
  278. package/script/types/7_inline_query_result.d.ts.map +1 -1
  279. package/script/types/7_inline_query_result.js +219 -152
  280. package/script/types/8_update.d.ts +58 -105
  281. package/script/types/8_update.d.ts.map +1 -1
  282. package/script/utilities/0_int.d.ts +1 -3
  283. package/script/utilities/0_int.d.ts.map +1 -1
  284. package/esm/types/0_keyboard_button_poll_type.d.ts.map +0 -1
  285. package/esm/types/0_mini_app_button_info.d.ts +0 -26
  286. package/esm/types/0_mini_app_button_info.d.ts.map +0 -1
  287. package/esm/types/1_inline_query_result_button.d.ts.map +0 -1
  288. package/esm/types/1_inline_query_result_button.js +0 -20
  289. package/script/types/0_keyboard_button_poll_type.d.ts.map +0 -1
  290. package/script/types/0_mini_app_button_info.d.ts +0 -26
  291. package/script/types/0_mini_app_button_info.d.ts.map +0 -1
  292. package/script/types/1_inline_query_result_button.d.ts.map +0 -1
  293. package/script/types/1_inline_query_result_button.js +0 -21
  294. /package/esm/types/{0_keyboard_button_poll_type.js → 0_inline_query_result_button.js} +0 -0
  295. /package/script/types/{0_keyboard_button_poll_type.js → 0_inline_query_result_button.js} +0 -0
@@ -56,67 +56,59 @@ import { constructGiftNonUpgradedInformation } from "./5_gift_non_upgraded_infor
56
56
  import { constructGiftUpgradedInformation } from "./5_gift_upgraded_information.js";
57
57
  import { constructLinkPreview } from "./5_link_preview.js";
58
58
  const L = getLogger("Message");
59
- const keys = {
60
- text: ["text"],
61
- link: ["linkPreview"],
62
- photo: ["photo"],
63
- document: ["document"],
64
- video: ["video"],
65
- sticker: ["sticker"],
66
- animation: ["animation"],
67
- voice: ["voice"],
68
- audio: ["audio"],
69
- dice: ["dice"],
70
- videoNote: ["videoNote"],
71
- contact: ["contact"],
72
- game: ["game"],
73
- poll: ["poll"],
74
- checklist: ["checklist"],
75
- invoice: ["invoice"],
76
- venue: ["venue"],
77
- location: ["location"],
78
- newChatMembers: ["newChatMembers"],
79
- leftChatMember: ["leftChatMember"],
80
- newChatTitle: ["newChatTitle"],
81
- newChatPhoto: ["newChatPhoto"],
82
- deletedChatPhoto: ["deletedChatPhoto"],
83
- groupCreated: ["groupCreated", "newChatMembers"],
84
- supergroupCreated: ["supergroupCreated"],
85
- channelCreated: ["channelCreated"],
86
- newAutoDeleteTime: ["newAutoDeleteTime"],
87
- chatMigratedTo: ["chatMigratedTo"],
88
- chatMigratedFrom: ["chatMigratedFrom"],
89
- pinnedMessage: ["pinnedMessage"],
90
- userShared: ["userShared"],
91
- writeAccessAllowed: ["writeAccessAllowed"],
92
- forumTopicCreated: ["forumTopicCreated"],
93
- forumTopicEdited: ["forumTopicEdited"],
94
- forumTopicClosed: ["forumTopicClosed"],
95
- forumTopicReopened: ["forumTopicReopened"],
96
- videoChatScheduled: ["videoChatScheduled"],
97
- videoChatStarted: ["videoChatStarted"],
98
- videoChatEnded: ["videoChatEnded"],
99
- giveaway: ["giveaway"],
100
- unsupported: ["unsupported"],
101
- successfulPayment: ["successfulPayment"],
102
- refundedPayment: ["refundedPayment"],
103
- checklistChanged: ["checklistChanged"],
104
- checklistExtended: ["checklistExtended"],
105
- giftNonUpgraded: ["giftNonUpgraded"],
106
- giftUpgraded: ["giftUpgraded"],
107
- pollOptionAdded: ["pollOptionAdded"],
108
- pollOptionRemoved: ["pollOptionRemoved"],
109
- };
110
- export function isMessageType(message, type) {
111
- for (const key of keys[type]) {
112
- if (!(key in message) || message[key] === undefined) {
113
- return false;
114
- }
115
- }
116
- return true;
117
- }
59
+ export const messageTypes = [
60
+ "text",
61
+ "link",
62
+ "photo",
63
+ "document",
64
+ "video",
65
+ "sticker",
66
+ "animation",
67
+ "voice",
68
+ "audio",
69
+ "dice",
70
+ "videoNote",
71
+ "contact",
72
+ "game",
73
+ "poll",
74
+ "checklist",
75
+ "invoice",
76
+ "venue",
77
+ "location",
78
+ "newChatMembers",
79
+ "leftChatMember",
80
+ "newChatTitle",
81
+ "newChatPhoto",
82
+ "deletedChatPhoto",
83
+ "groupCreated",
84
+ "supergroupCreated",
85
+ "channelCreated",
86
+ "newAutoDeleteTime",
87
+ "chatMigratedTo",
88
+ "chatMigratedFrom",
89
+ "pinnedMessage",
90
+ "userShared",
91
+ "writeAccessAllowed",
92
+ "forumTopicCreated",
93
+ "forumTopicEdited",
94
+ "forumTopicClosed",
95
+ "forumTopicReopened",
96
+ "videoChatScheduled",
97
+ "videoChatStarted",
98
+ "videoChatEnded",
99
+ "giveaway",
100
+ "unsupported",
101
+ "successfulPayment",
102
+ "refundedPayment",
103
+ "checklistChanged",
104
+ "checklistExtended",
105
+ "giftNonUpgraded",
106
+ "giftUpgraded",
107
+ "pollOptionRemoved",
108
+ "pollOptionAdded",
109
+ ];
118
110
  export function assertMessageType(message, type) {
119
- if (!isMessageType(message, type)) {
111
+ if (message.type !== type) {
120
112
  unreachable();
121
113
  }
122
114
  return message;
@@ -181,30 +173,28 @@ async function constructServiceMessage(message_, chat, getPeer, getMessage, getR
181
173
  unreachable();
182
174
  }
183
175
  }
184
- return { ...message, newChatMembers };
176
+ return { type: "newChatMembers", ...message, newChatMembers };
185
177
  }
186
178
  else if (Api.is("messageActionChatDeleteUser", message_.action)) {
187
179
  const peer = getPeer({ _: "peerUser", user_id: message_.action.user_id });
188
180
  if (peer) {
189
181
  const user = constructUser2(peer[0]);
190
182
  const leftChatMember = user;
191
- return { ...message, leftChatMember };
183
+ return { type: "leftChatMember", ...message, leftChatMember };
192
184
  }
193
185
  }
194
186
  else if (Api.is("messageActionChatEditTitle", message_.action)) {
195
187
  const newChatTitle = message_.action.title;
196
- return { ...message, newChatTitle };
188
+ return { type: "newChatTitle", ...message, newChatTitle };
197
189
  }
198
190
  else if (Api.is("messageActionChatEditPhoto", message_.action)) {
199
191
  const newChatPhoto = constructPhoto(Api.as("photo", message_.action.photo));
200
- return { ...message, newChatPhoto };
192
+ return { type: "newChatPhoto", ...message, newChatPhoto };
201
193
  }
202
194
  else if (Api.is("messageActionChatDeletePhoto", message_.action)) {
203
- const deletedChatPhoto = true;
204
- return { ...message, deletedChatPhoto };
195
+ return { type: "deletedChatPhoto", ...message };
205
196
  }
206
197
  else if (Api.is("messageActionChatCreate", message_.action)) {
207
- const groupCreated = true;
208
198
  const newChatMembers = new Array();
209
199
  for (const user_ of message_.action.users) {
210
200
  const peer = getPeer({ _: "peerUser", user_id: user_ });
@@ -213,16 +203,14 @@ async function constructServiceMessage(message_, chat, getPeer, getMessage, getR
213
203
  newChatMembers.push(user);
214
204
  }
215
205
  }
216
- return { ...message, groupCreated, newChatMembers };
206
+ return { type: "groupCreated", ...message, newChatMembers };
217
207
  }
218
208
  else if (Api.is("messageActionChannelCreate", message_.action)) {
219
209
  if (message.chat.type === "channel") {
220
- const channelCreated = true;
221
- return { ...message, channelCreated };
210
+ return { type: "channelCreated", ...message };
222
211
  }
223
212
  else if (message.chat.type === "supergroup") {
224
- const supergroupCreated = true;
225
- return { ...message, supergroupCreated };
213
+ return { type: "supergroupCreated", ...message };
226
214
  }
227
215
  else {
228
216
  // unreachable();
@@ -230,28 +218,28 @@ async function constructServiceMessage(message_, chat, getPeer, getMessage, getR
230
218
  }
231
219
  else if (Api.is("messageActionChatMigrateTo", message_.action)) {
232
220
  const chatMigratedTo = ZERO_CHANNEL_ID + Number(-message_.action.channel_id);
233
- return { ...message, chatMigratedTo };
221
+ return { type: "chatMigratedTo", ...message, chatMigratedTo };
234
222
  }
235
223
  else if (Api.is("messageActionChannelMigrateFrom", message_.action)) {
236
224
  const chatMigratedFrom = Number(-message_.action.chat_id);
237
- return { ...message, chatMigratedFrom };
225
+ return { type: "chatMigratedFrom", ...message, chatMigratedFrom };
238
226
  }
239
227
  else if (Api.is("messageActionPinMessage", message_.action)) {
240
228
  const { replyToMessage } = await getReply(message_, chat, getMessage);
241
229
  if (replyToMessage) {
242
230
  const pinnedMessage = replyToMessage;
243
- return { ...message, pinnedMessage };
231
+ return { type: "pinnedMessage", ...message, pinnedMessage };
244
232
  }
245
233
  }
246
234
  else if (Api.is("messageActionRequestedPeer", message_.action)) {
247
235
  const user = Api.as("peerUser", message_.action.peers[0]);
248
236
  const userShared = { requestId: message_.action.button_id, userId: Number(user.user_id) };
249
- return { ...message, userShared };
237
+ return { type: "userShared", ...message, userShared };
250
238
  }
251
239
  else if (Api.is("messageActionBotAllowed", message_.action)) {
252
240
  const miniAppName = message_.action.app ? Api.as("botApp", message_.action.app).title : undefined;
253
241
  const writeAccessAllowed = { miniAppName };
254
- return { ...message, writeAccessAllowed };
242
+ return { type: "writeAccessAllowed", ...message, writeAccessAllowed };
255
243
  }
256
244
  else if (Api.is("messageActionTopicCreate", message_.action)) {
257
245
  const forumTopicCreated = {
@@ -259,76 +247,73 @@ async function constructServiceMessage(message_, chat, getPeer, getMessage, getR
259
247
  color: message_.action.icon_color,
260
248
  customEmojiId: message_.action.icon_emoji_id ? String(message_.action.icon_emoji_id) : undefined,
261
249
  };
262
- return { ...message, forumTopicCreated };
250
+ return { type: "forumTopicCreated", ...message, forumTopicCreated };
263
251
  }
264
252
  else if (Api.is("messageActionTopicEdit", message_.action)) {
265
253
  if (message_.action.closed) {
266
- const forumTopicClosed = true;
267
- return { ...message, forumTopicClosed };
254
+ return { type: "forumTopicClosed", ...message };
268
255
  }
269
256
  else if (message_.action.title || message_.action.icon_emoji_id) {
270
257
  const forumTopicEdited = {
271
258
  name: message_.action.title ?? "",
272
259
  customEmojiId: message_.action.icon_emoji_id ? String(message_.action.icon_emoji_id) : undefined,
273
260
  };
274
- return { ...message, forumTopicEdited };
261
+ return { type: "forumTopicEdited", ...message, forumTopicEdited };
275
262
  }
276
263
  else {
277
- const forumTopicReopened = true;
278
- return { ...message, forumTopicReopened };
264
+ return { type: "forumTopicReopened", ...message };
279
265
  }
280
266
  }
281
267
  else if (Api.is("messageActionGroupCallScheduled", message_.action)) {
282
268
  const videoChatScheduled = { startDate: message_.action.schedule_date };
283
- return { ...message, videoChatScheduled };
269
+ return { type: "videoChatScheduled", ...message, videoChatScheduled };
284
270
  }
285
271
  else if (Api.is("messageActionGroupCall", message_.action)) {
286
272
  if (message_.action.duration) {
287
273
  const videoChatEnded = { duration: message_.action.duration };
288
- return { ...message, videoChatEnded };
274
+ return { type: "videoChatEnded", ...message, videoChatEnded };
289
275
  }
290
276
  else {
291
- const videoChatStarted = true;
292
- return { ...message, videoChatStarted };
277
+ return { type: "videoChatStarted", ...message };
293
278
  }
294
279
  }
295
280
  else if (Api.is("messageActionSetMessagesTTL", message_.action)) {
296
281
  const newAutoDeleteTime = message_.action.period || 0;
297
- return { ...message, newAutoDeleteTime };
282
+ return { type: "newAutoDeleteTime", ...message, newAutoDeleteTime };
298
283
  }
299
284
  else if (Api.is("messageActionPaymentSentMe", message_.action)) {
300
285
  const successfulPayment = constructSuccessfulPayment(message_.action);
301
- return { ...message, successfulPayment };
286
+ return { type: "successfulPayment", ...message, successfulPayment };
302
287
  }
303
288
  else if (Api.is("messageActionPaymentRefunded", message_.action)) {
304
289
  const refundedPayment = constructRefundedPayment(message_.action);
305
- return { ...message, refundedPayment };
290
+ return { type: "refundedPayment", ...message, refundedPayment };
306
291
  }
307
292
  else if (Api.is("messageActionTodoCompletions", message_.action)) {
308
293
  const checklistChanged = constructChecklistChanged(message_.action);
309
- return { ...message, checklistChanged };
294
+ return { type: "checklistChanged", ...message, checklistChanged };
310
295
  }
311
296
  else if (Api.is("messageActionTodoAppendTasks", message_.action)) {
312
297
  const checklistExtended = message_.action.list.map((v) => constructChecklistItem(v, [], getPeer));
313
- return { ...message, checklistExtended };
298
+ return { type: "checklistExtended", ...message, checklistExtended };
314
299
  }
315
300
  else if (Api.is("messageActionStarGift", message_.action)) {
316
301
  const giftNonUpgraded = constructGiftNonUpgradedInformation(message_.action, getPeer);
317
- return { ...message, giftNonUpgraded };
302
+ return { type: "giftNonUpgraded", ...message, giftNonUpgraded };
318
303
  }
319
304
  else if (Api.is("messageActionStarGiftUnique", message_.action)) {
320
305
  const giftUpgraded = constructGiftUpgradedInformation(message_.action, getPeer);
321
- return { ...message, giftUpgraded };
306
+ return { type: "giftUpgraded", ...message, giftUpgraded };
322
307
  }
323
308
  else if (Api.is("messageActionPollAppendAnswer", message_.action)) {
324
309
  const pollOptionAdded = constructPollOption(message_.action.answer, []);
325
- return { ...message, pollOptionAdded };
310
+ return { type: "pollOptionAdded", ...message, pollOptionAdded };
326
311
  }
327
312
  else if (Api.is("messageActionPollDeleteAnswer", message_.action)) {
328
313
  const pollOptionRemoved = constructPollOption(message_.action.answer, []);
329
- return { ...message, pollOptionRemoved };
314
+ return { type: "pollOptionRemoved", ...message, pollOptionRemoved };
330
315
  }
331
- return { ...message, unsupported: true };
316
+ return { type: "unsupported", ...message };
332
317
  }
333
318
  export async function constructMessage(message_, getPeer, getMessage, getStickerSetName, getReply_ = true, business, poll, pollResults) {
334
319
  if (!(Api.is("message", message_)) && !(Api.is("messageService", message_))) {
@@ -429,7 +414,7 @@ export async function constructMessage(message_, getPeer, getMessage, getSticker
429
414
  entities: message_.entities?.map(constructMessageEntity).filter((v) => !!v) ?? [],
430
415
  };
431
416
  if (message_.message && message_.media === undefined) {
432
- return cleanObject(messageText);
417
+ return cleanObject({ type: "text", ...messageText });
433
418
  }
434
419
  const messageMedia = {
435
420
  ...message,
@@ -448,11 +433,11 @@ export async function constructMessage(message_, getPeer, getMessage, getSticker
448
433
  unreachable();
449
434
  }
450
435
  const photo = constructPhoto(Api.as("photo", message_.media.photo));
451
- m = { ...messageMedia, photo };
436
+ m = { type: "photo", ...messageMedia, photo };
452
437
  }
453
438
  else if (Api.is("messageMediaDice", message_.media)) {
454
439
  const dice = constructDice(message_.media);
455
- m = { ...message, dice };
440
+ m = { type: "dice", ...message, dice };
456
441
  }
457
442
  else if (Api.is("messageMediaDocument", message_.media)) {
458
443
  const { document } = message_.media;
@@ -471,51 +456,51 @@ export async function constructMessage(message_, getPeer, getMessage, getSticker
471
456
  if (sticker) {
472
457
  const fileId = getFileId(FileType.Sticker);
473
458
  const sticker = await constructSticker(document, serializeFileId(fileId), toUniqueFileId(fileId), getStickerSetName);
474
- m = { ...message, sticker };
459
+ m = { type: "sticker", ...message, sticker };
475
460
  }
476
461
  else if (animated) {
477
462
  const fileId = getFileId(FileType.Animation);
478
463
  const animation = constructAnimation(document, video, fileName, serializeFileId(fileId), toUniqueFileId(fileId));
479
- m = { ...messageMedia, animation };
464
+ m = { type: "animation", ...messageMedia, animation };
480
465
  }
481
466
  else if (video) {
482
467
  if (video.round_message) {
483
468
  const fileId = getFileId(FileType.VideoNote);
484
469
  const videoNote = constructVideoNote(document, video, serializeFileId(fileId), toUniqueFileId(fileId));
485
- m = { ...message, videoNote };
470
+ m = { type: "videoNote", ...message, videoNote };
486
471
  }
487
472
  else {
488
473
  const fileId = getFileId(FileType.Video);
489
474
  const video_ = constructVideo(document, video, fileName?.file_name, serializeFileId(fileId), toUniqueFileId(fileId));
490
- m = { ...messageMedia, video: video_ };
475
+ m = { type: "video", ...messageMedia, video: video_ };
491
476
  }
492
477
  }
493
478
  else if (audio) {
494
479
  if (audio.voice) {
495
480
  const fileId = getFileId(FileType.VoiceNote);
496
481
  const voice = constructVoice(document, audio, serializeFileId(fileId), toUniqueFileId(fileId));
497
- m = { ...messageMedia, voice };
482
+ m = { type: "voice", ...messageMedia, voice };
498
483
  }
499
484
  else {
500
485
  const fileId = getFileId(FileType.Audio);
501
486
  const audio_ = constructAudio(document, audio, serializeFileId(fileId), toUniqueFileId(fileId));
502
- m = { ...messageMedia, audio: audio_ };
487
+ m = { type: "audio", ...messageMedia, audio: audio_ };
503
488
  }
504
489
  }
505
490
  else {
506
491
  const fileId = getFileId(FileType.Document);
507
492
  const document_ = constructDocument(document, fileName ?? ({ _: "documentAttributeFilename", file_name: "Unknown" }), serializeFileId(fileId), toUniqueFileId(fileId));
508
- m = { ...messageMedia, document: document_ };
493
+ m = { type: "document", ...messageMedia, document: document_ };
509
494
  }
510
495
  }
511
496
  }
512
497
  else if (Api.is("messageMediaContact", message_.media)) {
513
498
  const contact = constructContact(message_.media);
514
- m = { ...messageMedia, contact };
499
+ m = { type: "contact", ...messageMedia, contact };
515
500
  }
516
501
  else if (Api.is("messageMediaGame", message_.media)) {
517
502
  const game = constructGame(message_.media);
518
- m = { ...message, game };
503
+ m = { type: "game", ...message, game };
519
504
  }
520
505
  else if (Api.is("messageMediaPoll", message_.media)) {
521
506
  if (poll) {
@@ -525,40 +510,39 @@ export async function constructMessage(message_, getPeer, getMessage, getSticker
525
510
  message_.media.results = pollResults;
526
511
  }
527
512
  const poll_ = constructPoll(message_.media);
528
- m = { ...message, poll: poll_ };
513
+ m = { type: "poll", ...message, poll: poll_ };
529
514
  }
530
515
  else if (Api.is("messageMediaToDo", message_.media)) {
531
- const todoList = constructChecklist(message_.media.todo, message_.media.completions ?? [], getPeer);
532
- m = { ...message, checklist: todoList };
516
+ const checklist = constructChecklist(message_.media.todo, message_.media.completions ?? [], getPeer);
517
+ m = { type: "checklist", ...message, checklist };
533
518
  }
534
519
  else if (Api.is("messageMediaVenue", message_.media)) {
535
520
  const venue = constructVenue(message_.media);
536
- m = { ...message, venue };
521
+ m = { type: "venue", ...message, venue };
537
522
  }
538
523
  else if (Api.is("messageMediaGeo", message_.media) || Api.is("messageMediaGeoLive", message_.media)) {
539
524
  const location = constructLocation(message_.media);
540
- m = { ...message, location };
525
+ m = { type: "location", ...message, location };
541
526
  }
542
527
  else if (Api.is("messageMediaWebPage", message_.media)) {
543
528
  const linkPreview = constructLinkPreview(message_.media, message_.invert_media, getPeer);
544
529
  if (message_.message) {
545
- m = { ...messageText, linkPreview };
530
+ m = { type: "link", ...messageText, linkPreview };
546
531
  }
547
532
  else {
548
- m = { ...message, linkPreview: { ...linkPreview, url: linkPreview.url ? linkPreview.url : unreachable() } };
533
+ m = { type: "link", ...message, linkPreview: { ...linkPreview, url: linkPreview.url ? linkPreview.url : unreachable() } };
549
534
  }
550
535
  }
551
536
  else if (Api.is("messageMediaGiveaway", message_.media)) {
552
537
  const giveaway = constructGiveaway(message_.media);
553
- m = { ...message, giveaway };
538
+ m = { type: "giveaway", ...message, giveaway };
554
539
  }
555
540
  else if (Api.is("messageMediaInvoice", message_.media)) {
556
541
  const invoice = constructInvoice(message_.media);
557
- m = { ...message, invoice };
542
+ m = { type: "invoice", ...message, invoice };
558
543
  }
559
544
  if (m === null) {
560
- const unsupported = true;
561
- m = { ...message, unsupported };
545
+ m = { type: "unsupported", ...message };
562
546
  }
563
547
  return cleanObject(m);
564
548
  }
@@ -26,7 +26,6 @@ import type { LinkPreview } from "./5_link_preview.js";
26
26
  * @unlisted
27
27
  */
28
28
  export interface MessageContentContact {
29
- /** @discriminator */
30
29
  type: "contact";
31
30
  /** The contact's phone number. */
32
31
  phoneNumber: string;
@@ -42,7 +41,6 @@ export interface MessageContentContact {
42
41
  * @unlisted
43
42
  */
44
43
  export interface MessageContentLocation {
45
- /** @discriminator */
46
44
  type: "text";
47
45
  /** The latitude of the location. */
48
46
  latitude: number;
@@ -62,7 +60,6 @@ export interface MessageContentLocation {
62
60
  * @unlisted
63
61
  */
64
62
  export interface MessageContentVenue {
65
- /** @discriminator */
66
63
  type: "venue";
67
64
  /** The latitude of the venue. */
68
65
  latitude: number;
@@ -83,7 +80,6 @@ export interface MessageContentVenue {
83
80
  }
84
81
  /** @unlisted */
85
82
  export interface MessageContentText {
86
- /** @discriminator */
87
83
  type: "text";
88
84
  /** The message's text. */
89
85
  text: string;
@@ -96,7 +92,6 @@ export interface MessageContentText {
96
92
  }
97
93
  /** @unlisted */
98
94
  export interface MessageContentInvoice {
99
- /** @discriminator */
100
95
  type: "invoice";
101
96
  title: string;
102
97
  description: string;
@@ -1 +1 @@
1
- {"version":3,"file":"6_message_content.d.ts","sourceRoot":"","sources":["../../src/types/6_message_content.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,qBAAqB;IACrB,IAAI,EAAE,SAAS,CAAC;IAChB,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wGAAwG;IACxG,UAAU,CAAC,EAAE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