@mtkruto/browser 0.139.0 → 0.141.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 (161) hide show
  1. package/esm/3_types.d.ts +1 -0
  2. package/esm/3_types.d.ts.map +1 -1
  3. package/esm/3_types.js +1 -0
  4. package/esm/client/0_params.d.ts +33 -7
  5. package/esm/client/0_params.d.ts.map +1 -1
  6. package/esm/client/0_utilities.d.ts +1 -0
  7. package/esm/client/0_utilities.d.ts.map +1 -1
  8. package/esm/client/0_utilities.js +12 -1
  9. package/esm/client/1_client_generic.d.ts +105 -10
  10. package/esm/client/1_client_generic.d.ts.map +1 -1
  11. package/esm/client/3_message_manager.d.ts +0 -1
  12. package/esm/client/3_message_manager.d.ts.map +1 -1
  13. package/esm/client/3_message_manager.js +4 -47
  14. package/esm/client/3_sticker_set_manager.d.ts +46 -0
  15. package/esm/client/3_sticker_set_manager.d.ts.map +1 -0
  16. package/esm/client/3_sticker_set_manager.js +197 -0
  17. package/esm/client/6_client.d.ts +105 -10
  18. package/esm/client/6_client.d.ts.map +1 -1
  19. package/esm/client/6_client.js +136 -10
  20. package/esm/client/6_client_dispatcher.d.ts +105 -10
  21. package/esm/client/6_client_dispatcher.d.ts.map +1 -1
  22. package/esm/client/6_client_dispatcher.js +132 -10
  23. package/esm/types/0_giveaway_parameters.d.ts +1 -1
  24. package/esm/types/0_giveaway_parameters.d.ts.map +1 -1
  25. package/esm/types/0_location.d.ts +1 -1
  26. package/esm/types/0_location.d.ts.map +1 -1
  27. package/esm/types/0_user_status.d.ts +1 -1
  28. package/esm/types/0_user_status.d.ts.map +1 -1
  29. package/esm/types/0_video_chat.d.ts +1 -1
  30. package/esm/types/0_video_chat.d.ts.map +1 -1
  31. package/esm/types/0_working_hours_interval.d.ts +2 -2
  32. package/esm/types/0_working_hours_interval.d.ts.map +1 -1
  33. package/esm/types/1_bot_commands.d.ts +1 -1
  34. package/esm/types/1_bot_commands.d.ts.map +1 -1
  35. package/esm/types/1_chat_action.d.ts +2 -2
  36. package/esm/types/1_chat_action.d.ts.map +1 -1
  37. package/esm/types/1_input_sticker.d.ts +40 -0
  38. package/esm/types/1_input_sticker.d.ts.map +1 -0
  39. package/esm/types/1_input_sticker.js +20 -0
  40. package/esm/types/2_chat_member.d.ts +3 -3
  41. package/esm/types/2_chat_member.d.ts.map +1 -1
  42. package/esm/types/2_message_reaction_count.d.ts +1 -1
  43. package/esm/types/2_message_reaction_count.d.ts.map +1 -1
  44. package/esm/types/2_message_reaction_list_item.d.ts +1 -1
  45. package/esm/types/2_message_reaction_list_item.d.ts.map +1 -1
  46. package/esm/types/2_sticker_set.d.ts +1 -1
  47. package/esm/types/2_sticker_set.d.ts.map +1 -1
  48. package/esm/types/2_story_interactive_area.d.ts +22 -1
  49. package/esm/types/2_story_interactive_area.d.ts.map +1 -1
  50. package/esm/types/2_story_interactive_area.js +63 -32
  51. package/esm/types/3_blocked_user.d.ts +1 -1
  52. package/esm/types/3_blocked_user.d.ts.map +1 -1
  53. package/esm/types/3_business_connection.d.ts +1 -1
  54. package/esm/types/3_business_connection.d.ts.map +1 -1
  55. package/esm/types/3_checklist_item.d.ts +1 -1
  56. package/esm/types/3_checklist_item.d.ts.map +1 -1
  57. package/esm/types/3_invite_link.d.ts +1 -1
  58. package/esm/types/3_invite_link.d.ts.map +1 -1
  59. package/esm/types/3_message_draft.d.ts +1 -1
  60. package/esm/types/3_message_draft.d.ts.map +1 -1
  61. package/esm/types/3_message_reactions.d.ts +1 -1
  62. package/esm/types/3_message_reactions.d.ts.map +1 -1
  63. package/esm/types/3_pre_checkout_query.d.ts +1 -1
  64. package/esm/types/3_pre_checkout_query.d.ts.map +1 -1
  65. package/esm/types/4_chat_member_updated.d.ts +2 -2
  66. package/esm/types/4_chat_member_updated.d.ts.map +1 -1
  67. package/esm/types/4_join_request.d.ts +1 -1
  68. package/esm/types/4_join_request.d.ts.map +1 -1
  69. package/esm/types/4_poll.d.ts +1 -1
  70. package/esm/types/4_poll.d.ts.map +1 -1
  71. package/esm/types/5_link_preview.d.ts +2 -2
  72. package/esm/types/5_link_preview.d.ts.map +1 -1
  73. package/esm/types/6_message.d.ts +3 -3
  74. package/esm/types/6_message.d.ts.map +1 -1
  75. package/esm/types/6_message_content.d.ts +2 -2
  76. package/esm/types/6_message_content.d.ts.map +1 -1
  77. package/esm/types/7_callback_query.d.ts +1 -1
  78. package/esm/types/7_callback_query.d.ts.map +1 -1
  79. package/esm/types/7_topic.d.ts +1 -1
  80. package/esm/types/7_topic.d.ts.map +1 -1
  81. package/package.json +1 -1
  82. package/script/3_types.d.ts +1 -0
  83. package/script/3_types.d.ts.map +1 -1
  84. package/script/3_types.js +1 -0
  85. package/script/client/0_params.d.ts +33 -7
  86. package/script/client/0_params.d.ts.map +1 -1
  87. package/script/client/0_utilities.d.ts +1 -0
  88. package/script/client/0_utilities.d.ts.map +1 -1
  89. package/script/client/0_utilities.js +12 -0
  90. package/script/client/1_client_generic.d.ts +105 -10
  91. package/script/client/1_client_generic.d.ts.map +1 -1
  92. package/script/client/3_message_manager.d.ts +0 -1
  93. package/script/client/3_message_manager.d.ts.map +1 -1
  94. package/script/client/3_message_manager.js +1 -44
  95. package/script/client/3_sticker_set_manager.d.ts +46 -0
  96. package/script/client/3_sticker_set_manager.d.ts.map +1 -0
  97. package/script/client/3_sticker_set_manager.js +201 -0
  98. package/script/client/6_client.d.ts +105 -10
  99. package/script/client/6_client.d.ts.map +1 -1
  100. package/script/client/6_client.js +136 -10
  101. package/script/client/6_client_dispatcher.d.ts +105 -10
  102. package/script/client/6_client_dispatcher.d.ts.map +1 -1
  103. package/script/client/6_client_dispatcher.js +132 -10
  104. package/script/types/0_giveaway_parameters.d.ts +1 -1
  105. package/script/types/0_giveaway_parameters.d.ts.map +1 -1
  106. package/script/types/0_location.d.ts +1 -1
  107. package/script/types/0_location.d.ts.map +1 -1
  108. package/script/types/0_user_status.d.ts +1 -1
  109. package/script/types/0_user_status.d.ts.map +1 -1
  110. package/script/types/0_video_chat.d.ts +1 -1
  111. package/script/types/0_video_chat.d.ts.map +1 -1
  112. package/script/types/0_working_hours_interval.d.ts +2 -2
  113. package/script/types/0_working_hours_interval.d.ts.map +1 -1
  114. package/script/types/1_bot_commands.d.ts +1 -1
  115. package/script/types/1_bot_commands.d.ts.map +1 -1
  116. package/script/types/1_chat_action.d.ts +2 -2
  117. package/script/types/1_chat_action.d.ts.map +1 -1
  118. package/script/types/1_input_sticker.d.ts +40 -0
  119. package/script/types/1_input_sticker.d.ts.map +1 -0
  120. package/script/types/1_input_sticker.js +21 -0
  121. package/script/types/2_chat_member.d.ts +3 -3
  122. package/script/types/2_chat_member.d.ts.map +1 -1
  123. package/script/types/2_message_reaction_count.d.ts +1 -1
  124. package/script/types/2_message_reaction_count.d.ts.map +1 -1
  125. package/script/types/2_message_reaction_list_item.d.ts +1 -1
  126. package/script/types/2_message_reaction_list_item.d.ts.map +1 -1
  127. package/script/types/2_sticker_set.d.ts +1 -1
  128. package/script/types/2_sticker_set.d.ts.map +1 -1
  129. package/script/types/2_story_interactive_area.d.ts +22 -1
  130. package/script/types/2_story_interactive_area.d.ts.map +1 -1
  131. package/script/types/2_story_interactive_area.js +63 -32
  132. package/script/types/3_blocked_user.d.ts +1 -1
  133. package/script/types/3_blocked_user.d.ts.map +1 -1
  134. package/script/types/3_business_connection.d.ts +1 -1
  135. package/script/types/3_business_connection.d.ts.map +1 -1
  136. package/script/types/3_checklist_item.d.ts +1 -1
  137. package/script/types/3_checklist_item.d.ts.map +1 -1
  138. package/script/types/3_invite_link.d.ts +1 -1
  139. package/script/types/3_invite_link.d.ts.map +1 -1
  140. package/script/types/3_message_draft.d.ts +1 -1
  141. package/script/types/3_message_draft.d.ts.map +1 -1
  142. package/script/types/3_message_reactions.d.ts +1 -1
  143. package/script/types/3_message_reactions.d.ts.map +1 -1
  144. package/script/types/3_pre_checkout_query.d.ts +1 -1
  145. package/script/types/3_pre_checkout_query.d.ts.map +1 -1
  146. package/script/types/4_chat_member_updated.d.ts +2 -2
  147. package/script/types/4_chat_member_updated.d.ts.map +1 -1
  148. package/script/types/4_join_request.d.ts +1 -1
  149. package/script/types/4_join_request.d.ts.map +1 -1
  150. package/script/types/4_poll.d.ts +1 -1
  151. package/script/types/4_poll.d.ts.map +1 -1
  152. package/script/types/5_link_preview.d.ts +2 -2
  153. package/script/types/5_link_preview.d.ts.map +1 -1
  154. package/script/types/6_message.d.ts +3 -3
  155. package/script/types/6_message.d.ts.map +1 -1
  156. package/script/types/6_message_content.d.ts +2 -2
  157. package/script/types/6_message_content.d.ts.map +1 -1
  158. package/script/types/7_callback_query.d.ts +1 -1
  159. package/script/types/7_callback_query.d.ts.map +1 -1
  160. package/script/types/7_topic.d.ts +1 -1
  161. package/script/types/7_topic.d.ts.map +1 -1
@@ -24,7 +24,7 @@ export interface GiveawayParameters {
24
24
  boostedChatId: number;
25
25
  /** The identifiers of additional chats that the user must subscribe to in order to be eligible for the prizes. */
26
26
  additionalChatIds: number[];
27
- /** A point in time within the future in which the winners will be selected. */
27
+ /** A point in time in the future when the winners will be selected. */
28
28
  winnerSelectionDate: number;
29
29
  /** Whether only new members of the chats will be eligible for the prizes. */
30
30
  onlyNewMembers: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"0_giveaway_parameters.d.ts","sourceRoot":"","sources":["../../src/types/0_giveaway_parameters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,2BAA2B;AAC3B,MAAM,WAAW,kBAAkB;IACjC,gHAAgH;IAChH,aAAa,EAAE,MAAM,CAAC;IACtB,kHAAkH;IAClH,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,+EAA+E;IAC/E,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6EAA6E;IAC7E,cAAc,EAAE,OAAO,CAAC;IACxB,4DAA4D;IAC5D,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,GAAG,CAAC,oBAAoB,GAAG,kBAAkB,CAQ3F"}
1
+ {"version":3,"file":"0_giveaway_parameters.d.ts","sourceRoot":"","sources":["../../src/types/0_giveaway_parameters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,2BAA2B;AAC3B,MAAM,WAAW,kBAAkB;IACjC,gHAAgH;IAChH,aAAa,EAAE,MAAM,CAAC;IACtB,kHAAkH;IAClH,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,uEAAuE;IACvE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6EAA6E;IAC7E,cAAc,EAAE,OAAO,CAAC;IACxB,4DAA4D;IAC5D,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,GAAG,CAAC,oBAAoB,GAAG,kBAAkB,CAQ3F"}
@@ -26,7 +26,7 @@ export interface Location {
26
26
  longitude: number;
27
27
  /** The accuracy radius of the location in meters. Must be in the range of 0-1500. */
28
28
  horizontalAccuracy?: number;
29
- /** The duration in which the location can be updated in seconds. Must be in the range of 80-864,000. */
29
+ /** The duration for which the location can be updated, in seconds. Must be in the range of 80-864,000. */
30
30
  livePeriod?: number;
31
31
  /** The direction which the user is moving towards. Must be in the range of 1-350. */
32
32
  heading?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"0_location.d.ts","sourceRoot":"","sources":["../../src/types/0_location.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,yBAAyB;AACzB,MAAM,WAAW,QAAQ;IACvB,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,MAAM,CAAC;IACpB,qFAAqF;IACrF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8HAA8H;IAC9H,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,CAAC,eAAe,GAAG,GAAG,CAAC,mBAAmB,GAAG,GAAG,CAAC,QAAQ,GAAG,QAAQ,CA0B9G"}
1
+ {"version":3,"file":"0_location.d.ts","sourceRoot":"","sources":["../../src/types/0_location.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,yBAAyB;AACzB,MAAM,WAAW,QAAQ;IACvB,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0GAA0G;IAC1G,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qFAAqF;IACrF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8HAA8H;IAC9H,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,CAAC,eAAe,GAAG,GAAG,CAAC,mBAAmB,GAAG,GAAG,CAAC,QAAQ,GAAG,QAAQ,CA0B9G"}
@@ -31,7 +31,7 @@ export interface UserStatusOnline {
31
31
  */
32
32
  export interface UserStatusOffline {
33
33
  type: "offline";
34
- /** A point in time in which the user was last seen online. */
34
+ /** A point in time when the user was last seen online. */
35
35
  lastSeenAt: number;
36
36
  }
37
37
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"0_user_status.d.ts","sourceRoot":"","sources":["../../src/types/0_user_status.ts"],"names":[],"mappings":"AA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C;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,mCAAmC;AACnC,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,0BAA0B,GAAG,0BAA0B,GAAG,2BAA2B,CAAC;AAEtJ,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,GAAG,UAAU,CAe1E"}
@@ -47,7 +47,7 @@ export interface VideoChatActive extends _VideoChatCommon, _VideoChatNotEndedCom
47
47
  */
48
48
  export interface VideoChatScheduled extends _VideoChatCommon, _VideoChatNotEndedCommon {
49
49
  type: "scheduled";
50
- /** The point in time in which the video chat will be started. */
50
+ /** The point in time when the video chat will be started. */
51
51
  scheduledFor: number;
52
52
  }
53
53
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"0_video_chat.d.ts","sourceRoot":"","sources":["../../src/types/0_video_chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,gBAAgB;AAChB,MAAM,WAAW,gBAAgB;IAC/B,0CAA0C;IAC1C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,gBAAgB;AAChB,MAAM,WAAW,wBAAwB;IACvC,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,0CAA0C;IAC1C,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,gBAAgB,EAAE,wBAAwB;IACjF,IAAI,EAAE,QAAQ,CAAC;IACf,gDAAgD;IAChD,WAAW,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB,EAAE,wBAAwB;IACpF,IAAI,EAAE,WAAW,CAAC;IAClB,iEAAiE;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AAM,SAAS,GAAG,eAAe,GAAG,kBAAkB,GAAG,cAAc,CAAC;AAE9E,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,CAAC,SAAS,GAAG,SAAS,CAgCjE"}
@@ -19,9 +19,9 @@
19
19
  */
20
20
  /** A business working hour interval. */
21
21
  export interface WorkingHoursInterval {
22
- /** A point in time in which the working hour starts. */
22
+ /** A point in time when the working hour starts. */
23
23
  startsAt: number;
24
- /** A point in time in which the working hour ends. */
24
+ /** A point in time when the working hour ends. */
25
25
  endsAt: number;
26
26
  }
27
27
  //# sourceMappingURL=0_working_hours_interval.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"0_working_hours_interval.d.ts","sourceRoot":"","sources":["../../src/types/0_working_hours_interval.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,wCAAwC;AACxC,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,QAAQ,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"0_working_hours_interval.d.ts","sourceRoot":"","sources":["../../src/types/0_working_hours_interval.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,wCAAwC;AACxC,MAAM,WAAW,oBAAoB;IACnC,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -22,7 +22,7 @@ import type { BotCommand } from "./0_bot_command.js";
22
22
  export interface BotCommands {
23
23
  /** The identifier of the bot. */
24
24
  botId: number;
25
- /** The identifier of the chat in which the command list is valid. */
25
+ /** The identifier of the chat where the command list is valid. */
26
26
  chatId: number;
27
27
  /** The list of commands. */
28
28
  commands: BotCommand[];
@@ -1 +1 @@
1
- {"version":3,"file":"1_bot_commands.d.ts","sourceRoot":"","sources":["../../src/types/1_bot_commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,gCAAgC;AAChC,MAAM,WAAW,WAAW;IAC1B,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB"}
1
+ {"version":3,"file":"1_bot_commands.d.ts","sourceRoot":"","sources":["../../src/types/1_bot_commands.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,gCAAgC;AAChC,MAAM,WAAW,WAAW;IAC1B,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB"}
@@ -23,11 +23,11 @@ import { type ChatActionType } from "./0_chat_action_type.js";
23
23
  export interface ChatAction {
24
24
  /** The type of the action. */
25
25
  type: ChatActionType;
26
- /** The identifier of the chat in which the action was made. */
26
+ /** The identifier of the chat where the action was made. */
27
27
  chatId: number;
28
28
  /** The identifier of the sender of the action. */
29
29
  fromId: number;
30
- /** The identifier of a thread in which the action was made. */
30
+ /** The identifier of a thread where the action was made. */
31
31
  messageThreadId?: number;
32
32
  }
33
33
  export declare function constructChatAction(update: Api.updateUserTyping | Api.updateChatUserTyping | Api.updateChannelUserTyping): ChatAction | null;
@@ -1 +1 @@
1
- {"version":3,"file":"1_chat_action.d.ts","sourceRoot":"","sources":["../../src/types/1_chat_action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,KAAK,cAAc,EAA2B,MAAM,yBAAyB,CAAC;AAEvF,iEAAiE;AACjE,MAAM,WAAW,UAAU;IACzB,8BAA8B;IAC9B,IAAI,EAAE,cAAc,CAAC;IACrB,+DAA+D;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,GAAG,CAAC,gBAAgB,GAAG,GAAG,CAAC,oBAAoB,GAAG,GAAG,CAAC,uBAAuB,GAAG,UAAU,GAAG,IAAI,CAY5I"}
1
+ {"version":3,"file":"1_chat_action.d.ts","sourceRoot":"","sources":["../../src/types/1_chat_action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,KAAK,cAAc,EAA2B,MAAM,yBAAyB,CAAC;AAEvF,iEAAiE;AACjE,MAAM,WAAW,UAAU;IACzB,8BAA8B;IAC9B,IAAI,EAAE,cAAc,CAAC;IACrB,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,4DAA4D;IAC5D,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,GAAG,CAAC,gBAAgB,GAAG,GAAG,CAAC,oBAAoB,GAAG,GAAG,CAAC,uBAAuB,GAAG,UAAU,GAAG,IAAI,CAY5I"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
3
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
4
+ *
5
+ * This file is part of MTKruto.
6
+ *
7
+ * This program is free software: you can redistribute it and/or modify
8
+ * it under the terms of the GNU Lesser General Public License as published by
9
+ * the Free Software Foundation, either version 3 of the License, or
10
+ * (at your option) any later version.
11
+ *
12
+ * This program is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public License
18
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
+ */
20
+ import type { FileSource } from "./0_file_source.js";
21
+ /** An input sticker. */
22
+ export interface InputSticker {
23
+ /** The sticker to upload. */
24
+ sticker: FileSource;
25
+ /** The sticker's emoji representations. */
26
+ emoji: string;
27
+ /** The file name to assign if applicable. */
28
+ fileName?: string;
29
+ /** The file's size. */
30
+ fileSize?: number;
31
+ /** The mime type to assign if applicable. */
32
+ mimeType?: string;
33
+ /** Size of each upload chunk in bytes. */
34
+ chunkSize?: number;
35
+ /** Upload abort signal. */
36
+ signal?: AbortSignal;
37
+ /** A progress ID retrieved from the method getProgressId. If specified, updates on the upload progress will be sent. */
38
+ progressId?: string;
39
+ }
40
+ //# sourceMappingURL=1_input_sticker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1_input_sticker.d.ts","sourceRoot":"","sources":["../../src/types/1_input_sticker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,wBAAwB;AACxB,MAAM,WAAW,YAAY;IAC3B,6BAA6B;IAC7B,OAAO,EAAE,UAAU,CAAC;IACpB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uBAAuB;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,wHAAwH;IACxH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * MTKruto - Cross-runtime JavaScript library for building Telegram clients
4
+ * Copyright (C) 2023-2026 Roj <https://roj.im/>
5
+ *
6
+ * This file is part of MTKruto.
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Lesser General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Lesser General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Lesser General Public License
19
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -59,7 +59,7 @@ export interface ChatMemberAdministrator extends _ChatMemberBase {
59
59
  export interface ChatMemberMember extends _ChatMemberBase {
60
60
  /** The status of the chat member. */
61
61
  status: "member";
62
- /** A point in time in which the membership expires. */
62
+ /** A point in time when the membership expires. */
63
63
  until?: number;
64
64
  /** The tag of the member. */
65
65
  tag?: string;
@@ -75,7 +75,7 @@ export interface ChatMemberRestricted extends _ChatMemberBase {
75
75
  isMember: boolean;
76
76
  /** The rights of the restricted chat member. */
77
77
  rights: ChatMemberRights;
78
- /** A point in time in which the restriction expires. */
78
+ /** A point in time when the restriction expires. */
79
79
  until?: number;
80
80
  /** The tag of the member. */
81
81
  tag?: string;
@@ -95,7 +95,7 @@ export interface ChatMemberLeft extends _ChatMemberBase {
95
95
  export interface ChatMemberBanned extends _ChatMemberBase {
96
96
  /** The status of the chat member. */
97
97
  status: "banned";
98
- /** A point in time in which the restriction expires. */
98
+ /** A point in time when the restriction expires. */
99
99
  until?: number;
100
100
  }
101
101
  /** A chat member. */
@@ -1 +1 @@
1
- {"version":3,"file":"2_chat_member.d.ts","sourceRoot":"","sources":["../../src/types/2_chat_member.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,KAAK,uBAAuB,EAAoC,MAAM,kCAAkC,CAAC;AAClH,OAAO,EAAE,KAAK,gBAAgB,EAA6B,MAAM,2BAA2B,CAAC;AAC7F,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEvD,gBAAgB;AAChB,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,eAAe,GAAG,QAAQ,GAAG,YAAY,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEzG,gBAAgB;AAChB,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,gBAAgB,CAAC;IACzB,MAAM,EAAE,KAAK,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAkB,SAAQ,eAAe;IACxD,qCAAqC;IACrC,MAAM,EAAE,SAAS,CAAC;IAClB,qDAAqD;IACrD,WAAW,EAAE,OAAO,CAAC;IACrB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAwB,SAAQ,eAAe;IAC9D,qCAAqC;IACrC,MAAM,EAAE,eAAe,CAAC;IACxB,4CAA4C;IAC5C,MAAM,EAAE,uBAAuB,CAAC;IAChC,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,qCAAqC;IACrC,MAAM,EAAE,QAAQ,CAAC;IACjB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;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WAAW,cAAe,SAAQ,eAAe;IACrD,qCAAqC;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,qCAAqC;IACrC,MAAM,EAAE,QAAQ,CAAC;IACjB,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAqB;AACrB,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,uBAAuB,GAAG,gBAAgB,GAAG,oBAAoB,GAAG,cAAc,GAAG,gBAAgB,CAAC;AAEnJ,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,CAAC,kBAAkB,GAAG,GAAG,CAAC,eAAe,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,EAAE,MAAM,CAAC,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;CAAE,CAAC,EAAE,OAAO,EAAE,UAAU,GAAG,UAAU,CAuF7N"}
@@ -26,7 +26,7 @@ export interface MessageReactionCount {
26
26
  chat: ChatP;
27
27
  /** The message's identifier. */
28
28
  messageId: number;
29
- /** The point in time in which the change was made. */
29
+ /** The point in time when the change was made. */
30
30
  date: number;
31
31
  /** The reactions made to the post. */
32
32
  reactions: ReactionCount[];
@@ -1 +1 @@
1
- {"version":3,"file":"2_message_reaction_count.d.ts","sourceRoot":"","sources":["../../src/types/2_message_reaction_count.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEnF,2DAA2D;AAC3D,MAAM,WAAW,oBAAoB;IACnC,uCAAuC;IACvC,IAAI,EAAE,KAAK,CAAC;IACZ,gCAAgC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,SAAS,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,GAAG,CAAC,yBAAyB,EAAE,OAAO,EAAE,UAAU,GAAG,oBAAoB,GAAG,IAAI,CAWrI"}
1
+ {"version":3,"file":"2_message_reaction_count.d.ts","sourceRoot":"","sources":["../../src/types/2_message_reaction_count.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEnF,2DAA2D;AAC3D,MAAM,WAAW,oBAAoB;IACnC,uCAAuC;IACvC,IAAI,EAAE,KAAK,CAAC;IACZ,gCAAgC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,SAAS,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,GAAG,CAAC,yBAAyB,EAAE,OAAO,EAAE,UAAU,GAAG,oBAAoB,GAAG,IAAI,CAWrI"}
@@ -24,7 +24,7 @@ import { type ChatP } from "./1_chat_p.js";
24
24
  export interface MessageReactionListItem {
25
25
  /** The entity that made the reaction. */
26
26
  chat: ChatP;
27
- /** The point in time in which the reaction was made. */
27
+ /** The point in time when the reaction was made. */
28
28
  date: number;
29
29
  /** The reaction that was made. */
30
30
  reaction: Reaction;
@@ -1 +1 @@
1
- {"version":3,"file":"2_message_reaction_list_item.d.ts","sourceRoot":"","sources":["../../src/types/2_message_reaction_list_item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,KAAK,KAAK,EAAkB,MAAM,eAAe,CAAC;AAE3D,kCAAkC;AAClC,MAAM,WAAW,uBAAuB;IACtC,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC;IACZ,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,QAAQ,EAAE,QAAQ,CAAC;IACnB,sCAAsC;IACtC,KAAK,EAAE,OAAO,CAAC;IACf,sCAAsC;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,mDAAmD;IACnD,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,gCAAgC,CAAC,mBAAmB,EAAE,GAAG,CAAC,mBAAmB,EAAE,IAAI,EAAE,GAAG,CAAC,6BAA6B,GAAG,uBAAuB,CAwB/J"}
1
+ {"version":3,"file":"2_message_reaction_list_item.d.ts","sourceRoot":"","sources":["../../src/types/2_message_reaction_list_item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,KAAK,KAAK,EAAkB,MAAM,eAAe,CAAC;AAE3D,kCAAkC;AAClC,MAAM,WAAW,uBAAuB;IACtC,yCAAyC;IACzC,IAAI,EAAE,KAAK,CAAC;IACZ,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,QAAQ,EAAE,QAAQ,CAAC;IACnB,sCAAsC;IACtC,KAAK,EAAE,OAAO,CAAC;IACf,sCAAsC;IACtC,QAAQ,EAAE,OAAO,CAAC;IAClB,mDAAmD;IACnD,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,gCAAgC,CAAC,mBAAmB,EAAE,GAAG,CAAC,mBAAmB,EAAE,IAAI,EAAE,GAAG,CAAC,6BAA6B,GAAG,uBAAuB,CAwB/J"}
@@ -44,7 +44,7 @@ export interface StickerSet {
44
44
  isOfficial: boolean;
45
45
  /** Whether the set is archived. */
46
46
  isArchived: boolean;
47
- /** A point in time in which the set was added to the current account. */
47
+ /** A point in time when the set was added to the current account. */
48
48
  addedAt?: number;
49
49
  }
50
50
  export declare function constructStickerSet(stickerSet: Api.messages_StickerSet): StickerSet;
@@ -1 +1 @@
1
- {"version":3,"file":"2_sticker_set.d.ts","sourceRoot":"","sources":["../../src/types/2_sticker_set.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAqB,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEjE,gCAAgC;AAChC,MAAM,WAAW,UAAU;IACzB,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,aAAa,CAAC;IACzC,2CAA2C;IAC3C,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,+BAA+B;IAC/B,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,kDAAkD;IAClD,UAAU,EAAE,OAAO,CAAC;IACpB,kEAAkE;IAClE,qBAAqB,EAAE,OAAO,CAAC;IAC/B,6DAA6D;IAC7D,SAAS,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,mCAAmC;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,GAAG,CAAC,mBAAmB,GAAG,UAAU,CAuEnF"}
1
+ {"version":3,"file":"2_sticker_set.d.ts","sourceRoot":"","sources":["../../src/types/2_sticker_set.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAqB,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEjE,gCAAgC;AAChC,MAAM,WAAW,UAAU;IACzB,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,aAAa,CAAC;IACzC,2CAA2C;IAC3C,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,+BAA+B;IAC/B,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,kDAAkD;IAClD,UAAU,EAAE,OAAO,CAAC;IACpB,kEAAkE;IAClE,qBAAqB,EAAE,OAAO,CAAC;IAC/B,6DAA6D;IAC7D,SAAS,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,mCAAmC;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,GAAG,CAAC,mBAAmB,GAAG,UAAU,CAuEnF"}
@@ -37,14 +37,17 @@ export interface _StoryInteractiveAreaPositionCommon {
37
37
  }
38
38
  /** @unlisted */
39
39
  export interface StoryInteractiveAreaLocation extends _StoryInteractiveAreaPositionCommon {
40
+ type: "location";
40
41
  location: Location;
41
42
  }
42
43
  /** @unlisted */
43
44
  export interface StoryInteractiveAreaVenue extends _StoryInteractiveAreaPositionCommon {
45
+ type: "venue";
44
46
  venue: Venue;
45
47
  }
46
48
  /** @unlisted */
47
49
  export interface StoryInteractiveAreaReaction extends _StoryInteractiveAreaPositionCommon {
50
+ type: "reaction";
48
51
  reaction: Reaction;
49
52
  count?: number;
50
53
  isDark?: boolean;
@@ -52,10 +55,28 @@ export interface StoryInteractiveAreaReaction extends _StoryInteractiveAreaPosit
52
55
  }
53
56
  /** @unlisted */
54
57
  export interface StoryInteractiveAreaMessage extends _StoryInteractiveAreaPositionCommon {
58
+ type: "messageReference";
55
59
  messageReference: MessageReference;
56
60
  }
61
+ /** @unlisted */
62
+ export interface StoryInteractiveAreaLink extends _StoryInteractiveAreaPositionCommon {
63
+ type: "link";
64
+ link: string;
65
+ }
66
+ /** @unlisted */
67
+ export interface StoryInteractiveAreaWeather extends _StoryInteractiveAreaPositionCommon {
68
+ type: "weather";
69
+ emoji: string;
70
+ temperature: number;
71
+ color: number;
72
+ }
73
+ /** @unlisted */
74
+ export interface StoryInteractiveAreaGift extends _StoryInteractiveAreaPositionCommon {
75
+ type: "gift";
76
+ slug: string;
77
+ }
57
78
  /** A story's interactive area. */
58
- export type StoryInteractiveArea = StoryInteractiveAreaLocation | StoryInteractiveAreaVenue | StoryInteractiveAreaReaction | StoryInteractiveAreaMessage;
79
+ export type StoryInteractiveArea = StoryInteractiveAreaLocation | StoryInteractiveAreaVenue | StoryInteractiveAreaReaction | StoryInteractiveAreaMessage | StoryInteractiveAreaLink | StoryInteractiveAreaWeather | StoryInteractiveAreaGift;
59
80
  export declare function constructStoryInteractiveArea(area: Api.MediaArea): StoryInteractiveArea;
60
81
  export declare function storyInteractiveAreaToTlObject(area: StoryInteractiveArea, getPeer: PeerGetter): Api.MediaArea;
61
82
  //# sourceMappingURL=2_story_interactive_area.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"2_story_interactive_area.d.ts","sourceRoot":"","sources":["../../src/types/2_story_interactive_area.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAqB,KAAK,QAAQ,EAAsB,MAAM,iBAAiB,CAAC;AACvF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAkB,KAAK,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1D,gBAAgB;AAChB,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,gBAAgB;AAChB,MAAM,WAAW,mCAAmC;IAClD,QAAQ,EAAE,4BAA4B,CAAC;CACxC;AAED,gBAAgB;AAChB,MAAM,WAAW,4BAA6B,SAAQ,mCAAmC;IACvF,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,gBAAgB;AAChB,MAAM,WAAW,yBAA0B,SAAQ,mCAAmC;IACpF,KAAK,EAAE,KAAK,CAAC;CACd;AAED,gBAAgB;AAChB,MAAM,WAAW,4BAA6B,SAAQ,mCAAmC;IACvF,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,gBAAgB;AAChB,MAAM,WAAW,2BAA4B,SAAQ,mCAAmC;IACtF,gBAAgB,EAAE,gBAAgB,CAAC;CACpC;AAED,kCAA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// will this ever be empty?
44
44
  }
45
45
  const location = (0, _0_location_js_1.constructLocation)(area.geo);
46
- return { position, location };
46
+ return { type: "location", position, location };
47
47
  }
48
48
  else if (_2_tl_js_1.Api.is("mediaAreaVenue", area)) {
49
49
  const venue = (0, _1_venue_js_1.constructVenue)(area);
50
- return { position, venue };
50
+ return { type: "venue", position, venue };
51
51
  }
52
52
  else if (_2_tl_js_1.Api.is("mediaAreaSuggestedReaction", area)) {
53
53
  const reaction = (0, _0_reaction_js_1.constructReaction)(area.reaction);
54
54
  return {
55
+ type: "reaction",
55
56
  position,
56
57
  reaction,
57
58
  count: 0, // TODO: count
@@ -61,6 +62,7 @@ function constructStoryInteractiveArea(area) {
61
62
  }
62
63
  else if (_2_tl_js_1.Api.is("mediaAreaChannelPost", area)) {
63
64
  return {
65
+ type: "messageReference",
64
66
  position,
65
67
  messageReference: {
66
68
  chatId: _2_tl_js_1.Api.peerToChatId(area),
@@ -68,6 +70,29 @@ function constructStoryInteractiveArea(area) {
68
70
  },
69
71
  };
70
72
  }
73
+ else if (_2_tl_js_1.Api.is("mediaAreaUrl", area)) {
74
+ return {
75
+ type: "link",
76
+ position,
77
+ link: area.url,
78
+ };
79
+ }
80
+ else if (_2_tl_js_1.Api.is("mediaAreaWeather", area)) {
81
+ return {
82
+ type: "weather",
83
+ position,
84
+ emoji: area.emoji,
85
+ temperature: area.temperature_c,
86
+ color: area.color,
87
+ };
88
+ }
89
+ else if (_2_tl_js_1.Api.is("mediaAreaStarGift", area)) {
90
+ return {
91
+ type: "gift",
92
+ position,
93
+ slug: area.slug,
94
+ };
95
+ }
71
96
  else {
72
97
  (0, _0_deps_js_1.unreachable)();
73
98
  }
@@ -77,36 +102,42 @@ function storyInteractiveAreaPositionToTlObject(position) {
77
102
  }
78
103
  function storyInteractiveAreaToTlObject(area, getPeer) {
79
104
  const coordinates = storyInteractiveAreaPositionToTlObject(area.position);
80
- if ("location" in area) {
81
- const geo = { _: "geoPoint", lat: area.location.latitude, long: area.location.longitude, access_hash: 0n, accuracy_radius: area.location.horizontalAccuracy };
82
- return { _: "mediaAreaGeoPoint", coordinates, geo };
83
- }
84
- else if ("venue" in area) {
85
- const geo = { _: "geoPoint", lat: area.venue.location.latitude, long: area.venue.location.longitude, access_hash: 0n, accuracy_radius: area.venue.location.horizontalAccuracy };
86
- return {
87
- _: "mediaAreaVenue",
88
- coordinates,
89
- geo,
90
- address: area.venue.address,
91
- provider: "foursquare",
92
- title: area.venue.title,
93
- venue_id: area.venue.foursquareId || "",
94
- venue_type: area.venue.foursquareType || "",
95
- };
96
- }
97
- else if ("reaction" in area) {
98
- const reaction = (0, _0_reaction_js_1.reactionToTlObject)(area.reaction);
99
- return { _: "mediaAreaSuggestedReaction", coordinates, reaction, dark: area.isDark ? true : undefined, flipped: area.isFlipped ? true : undefined };
100
- }
101
- else if ("messageReference" in area) {
102
- const peer = getPeer(_2_tl_js_1.Api.chatIdToPeer(area.messageReference.chatId));
103
- if (!peer || peer[0].type !== "channel") {
104
- (0, _0_deps_js_1.unreachable)();
105
+ switch (area.type) {
106
+ case "location": {
107
+ const geo = { _: "geoPoint", lat: area.location.latitude, long: area.location.longitude, access_hash: 0n, accuracy_radius: area.location.horizontalAccuracy };
108
+ return { _: "mediaAreaGeoPoint", coordinates, geo };
105
109
  }
106
- const channel = { _: "inputChannel", channel_id: (0, _2_telegram_js_1.chatIdToPeerId)(peer[0].id), access_hash: peer[1] };
107
- return { _: "inputMediaAreaChannelPost", coordinates, channel, msg_id: area.messageReference.messageId };
108
- }
109
- else {
110
- (0, _0_deps_js_1.unreachable)();
110
+ case "venue": {
111
+ const geo = { _: "geoPoint", lat: area.venue.location.latitude, long: area.venue.location.longitude, access_hash: 0n, accuracy_radius: area.venue.location.horizontalAccuracy };
112
+ return {
113
+ _: "mediaAreaVenue",
114
+ coordinates,
115
+ geo,
116
+ address: area.venue.address,
117
+ provider: "foursquare",
118
+ title: area.venue.title,
119
+ venue_id: area.venue.foursquareId || "",
120
+ venue_type: area.venue.foursquareType || "",
121
+ };
122
+ }
123
+ case "reaction": {
124
+ const reaction = (0, _0_reaction_js_1.reactionToTlObject)(area.reaction);
125
+ return { _: "mediaAreaSuggestedReaction", coordinates, reaction, dark: area.isDark ? true : undefined, flipped: area.isFlipped ? true : undefined };
126
+ }
127
+ case "messageReference": {
128
+ const peer = getPeer(_2_tl_js_1.Api.chatIdToPeer(area.messageReference.chatId));
129
+ if (!peer || peer[0].type !== "channel") {
130
+ (0, _0_deps_js_1.unreachable)();
131
+ }
132
+ const channel = { _: "inputChannel", channel_id: (0, _2_telegram_js_1.chatIdToPeerId)(peer[0].id), access_hash: peer[1] };
133
+ return { _: "inputMediaAreaChannelPost", coordinates, channel, msg_id: area.messageReference.messageId };
134
+ }
135
+ case "link":
136
+ return { _: "mediaAreaUrl", coordinates, url: area.link };
137
+ case "weather":
138
+ return { _: "mediaAreaWeather", coordinates, emoji: area.emoji, temperature_c: area.temperature, color: area.color };
139
+ case "gift":
140
+ return { _: "mediaAreaStarGift", coordinates, slug: area.slug };
111
141
  }
142
+ (0, _0_deps_js_1.unreachable)();
112
143
  }
@@ -24,7 +24,7 @@ import { type User } from "./2_user.js";
24
24
  export interface BlockedUser {
25
25
  /** The blocked user. */
26
26
  user: User;
27
- /** The point in time in which the user was blocked. */
27
+ /** The point in time when the user was blocked. */
28
28
  blockedAt: number;
29
29
  }
30
30
  export declare function constructBlockedUser(peerBlocked: Api.PeerBlocked, getPeer: PeerGetter): BlockedUser;
@@ -1 +1 @@
1
- {"version":3,"file":"3_blocked_user.d.ts","sourceRoot":"","sources":["../../src/types/3_blocked_user.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD,sBAAsB;AACtB,MAAM,WAAW,WAAW;IAC1B,wBAAwB;IACxB,IAAI,EAAE,IAAI,CAAC;IACX,uDAAuD;IACvD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,GAAG,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,GAAG,WAAW,CAanG"}
1
+ {"version":3,"file":"3_blocked_user.d.ts","sourceRoot":"","sources":["../../src/types/3_blocked_user.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD,sBAAsB;AACtB,MAAM,WAAW,WAAW;IAC1B,wBAAwB;IACxB,IAAI,EAAE,IAAI,CAAC;IACX,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,GAAG,CAAC,WAAW,EAAE,OAAO,EAAE,UAAU,GAAG,WAAW,CAanG"}
@@ -26,7 +26,7 @@ export interface BusinessConnection {
26
26
  id: string;
27
27
  /** The business account that the connection is made with. */
28
28
  user: User;
29
- /** The point in time in which the connection was recently updated. */
29
+ /** The point in time when the connection was last updated. */
30
30
  date: number;
31
31
  /** Whether the bot can reply to older chats. */
32
32
  canReply: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"3_business_connection.d.ts","sourceRoot":"","sources":["../../src/types/3_business_connection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD,6BAA6B;AAC7B,MAAM,WAAW,kBAAkB;IACjC,mDAAmD;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,6DAA6D;IAC7D,IAAI,EAAE,IAAI,CAAC;IACX,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,wCAAwC;IACxC,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,GAAG,CAAC,qBAAqB,EAAE,OAAO,EAAE,UAAU,GAAG,kBAAkB,CAa1H"}
1
+ {"version":3,"file":"3_business_connection.d.ts","sourceRoot":"","sources":["../../src/types/3_business_connection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD,6BAA6B;AAC7B,MAAM,WAAW,kBAAkB;IACjC,mDAAmD;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,6DAA6D;IAC7D,IAAI,EAAE,IAAI,CAAC;IACX,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,wCAAwC;IACxC,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,2BAA2B,CAAC,UAAU,EAAE,GAAG,CAAC,qBAAqB,EAAE,OAAO,EAAE,UAAU,GAAG,kBAAkB,CAa1H"}
@@ -48,7 +48,7 @@ export interface ChecklistItemChecked {
48
48
  text: string;
49
49
  /** The entities of the text. */
50
50
  entities?: MessageEntity[];
51
- /** A point in time in which the checklist item was checked. */
51
+ /** A point in time when the checklist item was checked. */
52
52
  checkedAt: number;
53
53
  /** The user who checked the item. */
54
54
  checkedBy: User;
@@ -1 +1 @@
1
- {"version":3,"file":"3_checklist_item.d.ts","sourceRoot":"","sources":["../../src/types/3_checklist_item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,sCAAsC;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,sCAAsC;IACtC,IAAI,EAAE,SAAS,CAAC;IAChB,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,+DAA+D;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,kCAAkC;AAClC,MAAM,MAAM,aAAa,GAAG,sBAAsB,GAAG,oBAAoB,CAAC;AAE1E,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,UAAU,GAAG,aAAa,CA4BpI"}
1
+ {"version":3,"file":"3_checklist_item.d.ts","sourceRoot":"","sources":["../../src/types/3_checklist_item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,sCAAsC;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,sCAAsC;IACtC,IAAI,EAAE,SAAS,CAAC;IAChB,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;IAC3B,2DAA2D;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,kCAAkC;AAClC,MAAM,MAAM,aAAa,GAAG,sBAAsB,GAAG,oBAAoB,CAAC;AAE1E,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,CAAC,cAAc,EAAE,EAAE,OAAO,EAAE,UAAU,GAAG,aAAa,CA4BpI"}
@@ -32,7 +32,7 @@ export interface InviteLink {
32
32
  isRevoked: boolean;
33
33
  /** An optional title. */
34
34
  title?: string;
35
- /** A point in time within the future in which the invite link will be revoked. */
35
+ /** A point in time in the future when the invite link will be revoked. */
36
36
  expiresAt?: number;
37
37
  /** The times the invite link can be used. */
38
38
  limit?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"3_invite_link.d.ts","sourceRoot":"","sources":["../../src/types/3_invite_link.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD,0BAA0B;AAC1B,MAAM,WAAW,UAAU;IACzB,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,OAAO,EAAE,IAAI,CAAC;IACd,gGAAgG;IAChG,gBAAgB,EAAE,OAAO,CAAC;IAE1B,0CAA0C;IAC1C,SAAS,EAAE,OAAO,CAAC;IACnB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,8DAA8D;IAC9D,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,GAAG,CAAC,kBAAkB,EAAE,OAAO,EAAE,UAAU,GAAG,UAAU,CAwBxG"}
1
+ {"version":3,"file":"3_invite_link.d.ts","sourceRoot":"","sources":["../../src/types/3_invite_link.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD,0BAA0B;AAC1B,MAAM,WAAW,UAAU;IACzB,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,OAAO,EAAE,IAAI,CAAC;IACd,gGAAgG;IAChG,gBAAgB,EAAE,OAAO,CAAC;IAE1B,0CAA0C;IAC1C,SAAS,EAAE,OAAO,CAAC;IACnB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,8DAA8D;IAC9D,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,GAAG,CAAC,kBAAkB,EAAE,OAAO,EAAE,UAAU,GAAG,UAAU,CAwBxG"}
@@ -29,7 +29,7 @@ export interface MessageDraft {
29
29
  text: string;
30
30
  /** The draft text's entities. */
31
31
  entities: MessageEntity[];
32
- /** The identifier of a thread in which the draft was sent. */
32
+ /** The identifier of a thread where the draft was sent. */
33
33
  messageThreadId?: number;
34
34
  }
35
35
  export declare function constructMessageDraft(action: Api.updateUserTyping): MessageDraft | null;
@@ -1 +1 @@
1
- {"version":3,"file":"3_message_draft.d.ts","sourceRoot":"","sources":["../../src/types/3_message_draft.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEnF,uBAAuB;AACvB,MAAM,WAAW,YAAY;IAC3B,2BAA2B;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,8DAA8D;IAC9D,MAAM,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,GAAG,CAAC,gBAAgB,GAAG,YAAY,GAAG,IAAI,CAmBvF"}
1
+ {"version":3,"file":"3_message_draft.d.ts","sourceRoot":"","sources":["../../src/types/3_message_draft.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,OAAO,EAA0B,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEnF,uBAAuB;AACvB,MAAM,WAAW,YAAY;IAC3B,2BAA2B;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,8DAA8D;IAC9D,MAAM,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,2DAA2D;IAC3D,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,GAAG,CAAC,gBAAgB,GAAG,YAAY,GAAG,IAAI,CAmBvF"}
@@ -31,7 +31,7 @@ export interface MessageReactions {
31
31
  user?: User;
32
32
  /** The chat that changed its reactions to the message. Unset if done on behalf of a user. */
33
33
  actorChat?: ChatP;
34
- /** The point in time in which the change was made. */
34
+ /** The point in time when the change was made. */
35
35
  date: number;
36
36
  /** The previous reactions. */
37
37
  oldReactions: Reaction[];
@@ -1 +1 @@
1
- {"version":3,"file":"3_message_reactions.d.ts","sourceRoot":"","sources":["../../src/types/3_message_reactions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAqB,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO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AE,CAAC;IACzB,6BAA6B;IAC7B,YAAY,EAAE,QAAQ,EAAE,CAAC;CAC1B;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,GAAG,CAAC,wBAAwB,EAAE,OAAO,EAAE,UAAU,GAAG,gBAAgB,GAAG,IAAI,CAkC5H"}
@@ -27,7 +27,7 @@ export interface PreCheckoutQuery {
27
27
  id: string;
28
28
  /** The user that created the pre-checkout query. */
29
29
  from: User;
30
- /** The currency in which the pre-checkout query is in. */
30
+ /** The currency of the pre-checkout query. */
31
31
  currency: string;
32
32
  /** The payment's total amount. */
33
33
  totalAmount: number;
@@ -1 +1 @@
1
- {"version":3,"file":"3_pre_checkout_query.d.ts","sourceRoot":"","sources":["../../src/types/3_pre_checkout_query.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD,4BAA4B;AAC5B,MAAM,WAAW,gBAAgB;IAC/B,gDAAgD;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,IAAI,EAAE,IAAI,CAAC;IACX,0DAA0D;IAC1D,QAAQ,EAAE,MAAM,CAAC;IACjB,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,wCAAwC;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gCAAgC;IAChC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,CAAC,yBAAyB,EAAE,OAAO,EAAE,UAAU,GAAG,gBAAgB,CAerH"}
1
+ {"version":3,"file":"3_pre_checkout_query.d.ts","sourceRoot":"","sources":["../../src/types/3_pre_checkout_query.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAkB,KAAK,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD,4BAA4B;AAC5B,MAAM,WAAW,gBAAgB;IAC/B,gDAAgD;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,IAAI,EAAE,IAAI,CAAC;IACX,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,wCAAwC;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gCAAgC;IAChC,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,CAAC,yBAAyB,EAAE,OAAO,EAAE,UAAU,GAAG,gBAAgB,CAerH"}
@@ -24,11 +24,11 @@ import { type User } from "./2_user.js";
24
24
  import { type InviteLink } from "./3_invite_link.js";
25
25
  /** Changes made to a chat member. */
26
26
  export interface ChatMemberUpdated {
27
- /** The chat in which the change was made. */
27
+ /** The chat where the change was made. */
28
28
  chat: ChatP;
29
29
  /** The one who made the change. */
30
30
  from: User;
31
- /** The point in time in which the chat member's status was changed. */
31
+ /** The point in time when the chat member's status was changed. */
32
32
  date: number;
33
33
  /** The old status of the chat member. */
34
34
  oldChatMember: ChatMember;