@mtkruto/node 0.180.1 → 0.191.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 (157) hide show
  1. package/esm/3_types.d.ts +6 -0
  2. package/esm/3_types.d.ts.map +1 -1
  3. package/esm/3_types.js +6 -0
  4. package/esm/client/0_params.d.ts +42 -30
  5. package/esm/client/0_params.d.ts.map +1 -1
  6. package/esm/client/1_client_generic.d.ts +1158 -1056
  7. package/esm/client/1_client_generic.d.ts.map +1 -1
  8. package/esm/client/2_client_encrypted.d.ts.map +1 -1
  9. package/esm/client/2_client_encrypted.js +19 -12
  10. package/esm/client/2_file_manager.js +1 -1
  11. package/esm/client/3_account_manager.d.ts +6 -0
  12. package/esm/client/3_account_manager.d.ts.map +1 -1
  13. package/esm/client/3_account_manager.js +30 -1
  14. package/esm/client/3_message_manager.d.ts +3 -1
  15. package/esm/client/3_message_manager.d.ts.map +1 -1
  16. package/esm/client/3_message_manager.js +33 -19
  17. package/esm/client/3_secret_chat_manager.d.ts +3 -1
  18. package/esm/client/3_secret_chat_manager.d.ts.map +1 -1
  19. package/esm/client/3_secret_chat_manager.js +77 -3
  20. package/esm/client/4_chat_manager.d.ts +2 -1
  21. package/esm/client/4_chat_manager.d.ts.map +1 -1
  22. package/esm/client/4_chat_manager.js +7 -1
  23. package/esm/client/4_context.d.ts +132 -48
  24. package/esm/client/4_context.d.ts.map +1 -1
  25. package/esm/client/4_context.js +336 -125
  26. package/esm/client/4_poll_manager.d.ts +3 -1
  27. package/esm/client/4_poll_manager.d.ts.map +1 -1
  28. package/esm/client/4_poll_manager.js +16 -5
  29. package/esm/client/6_client.d.ts +1158 -1056
  30. package/esm/client/6_client.d.ts.map +1 -1
  31. package/esm/client/6_client.js +1514 -1386
  32. package/esm/client/6_client_dispatcher.d.ts +1158 -1056
  33. package/esm/client/6_client_dispatcher.d.ts.map +1 -1
  34. package/esm/client/6_client_dispatcher.js +1478 -1356
  35. package/esm/types/0_checklist_changed.d.ts +1 -1
  36. package/esm/types/0_checklist_changed.d.ts.map +1 -1
  37. package/esm/types/0_location.d.ts +2 -2
  38. package/esm/types/0_location.d.ts.map +1 -1
  39. package/esm/types/0_message_viewer.d.ts +29 -0
  40. package/esm/types/0_message_viewer.d.ts.map +1 -0
  41. package/esm/types/0_message_viewer.js +25 -0
  42. package/esm/types/0_secret_chat_action_type.d.ts +69 -0
  43. package/esm/types/0_secret_chat_action_type.d.ts.map +1 -0
  44. package/esm/types/0_secret_chat_action_type.js +46 -0
  45. package/esm/types/1_chat_p.d.ts +1 -5
  46. package/esm/types/1_chat_p.d.ts.map +1 -1
  47. package/esm/types/1_input_poll_media.d.ts +5 -5
  48. package/esm/types/1_input_poll_media.d.ts.map +1 -1
  49. package/esm/types/1_input_sticker.d.ts +1 -1
  50. package/esm/types/1_secret_chat_action.d.ts +30 -0
  51. package/esm/types/1_secret_chat_action.d.ts.map +1 -0
  52. package/esm/types/1_secret_chat_action.js +28 -0
  53. package/esm/types/1_sticker.d.ts +3 -3
  54. package/esm/types/1_sticker.d.ts.map +1 -1
  55. package/esm/types/1_video.d.ts +3 -3
  56. package/esm/types/1_video.d.ts.map +1 -1
  57. package/esm/types/1_video_note.d.ts +3 -3
  58. package/esm/types/1_video_note.d.ts.map +1 -1
  59. package/esm/types/2_poll_voter.d.ts +13 -0
  60. package/esm/types/2_poll_voter.d.ts.map +1 -0
  61. package/esm/types/2_poll_voter.js +18 -0
  62. package/esm/types/3_connected_website.d.ts +35 -0
  63. package/esm/types/3_connected_website.d.ts.map +1 -0
  64. package/esm/types/3_connected_website.js +39 -0
  65. package/esm/types/3_input_media.d.ts +5 -5
  66. package/esm/types/3_input_media.d.ts.map +1 -1
  67. package/esm/types/3_poll_voter_list.d.ts +31 -0
  68. package/esm/types/3_poll_voter_list.d.ts.map +1 -0
  69. package/esm/types/3_poll_voter_list.js +28 -0
  70. package/esm/types/4_reply_to.d.ts +2 -2
  71. package/esm/types/4_reply_to.d.ts.map +1 -1
  72. package/esm/types/6_message_content.d.ts +2 -2
  73. package/esm/types/6_message_content.d.ts.map +1 -1
  74. package/esm/types/9_message.d.ts +8 -1
  75. package/esm/types/9_message.d.ts.map +1 -1
  76. package/esm/types/9_message.js +3 -0
  77. package/esm/types/B_update.d.ts +25 -10
  78. package/esm/types/B_update.d.ts.map +1 -1
  79. package/package.json +1 -1
  80. package/script/3_types.d.ts +6 -0
  81. package/script/3_types.d.ts.map +1 -1
  82. package/script/3_types.js +6 -0
  83. package/script/client/0_params.d.ts +42 -30
  84. package/script/client/0_params.d.ts.map +1 -1
  85. package/script/client/1_client_generic.d.ts +1158 -1056
  86. package/script/client/1_client_generic.d.ts.map +1 -1
  87. package/script/client/2_client_encrypted.d.ts.map +1 -1
  88. package/script/client/2_client_encrypted.js +19 -12
  89. package/script/client/2_file_manager.js +1 -1
  90. package/script/client/3_account_manager.d.ts +6 -0
  91. package/script/client/3_account_manager.d.ts.map +1 -1
  92. package/script/client/3_account_manager.js +29 -0
  93. package/script/client/3_message_manager.d.ts +3 -1
  94. package/script/client/3_message_manager.d.ts.map +1 -1
  95. package/script/client/3_message_manager.js +32 -18
  96. package/script/client/3_secret_chat_manager.d.ts +3 -1
  97. package/script/client/3_secret_chat_manager.d.ts.map +1 -1
  98. package/script/client/3_secret_chat_manager.js +76 -2
  99. package/script/client/4_chat_manager.d.ts +2 -1
  100. package/script/client/4_chat_manager.d.ts.map +1 -1
  101. package/script/client/4_chat_manager.js +7 -1
  102. package/script/client/4_context.d.ts +132 -48
  103. package/script/client/4_context.d.ts.map +1 -1
  104. package/script/client/4_context.js +336 -125
  105. package/script/client/4_poll_manager.d.ts +3 -1
  106. package/script/client/4_poll_manager.d.ts.map +1 -1
  107. package/script/client/4_poll_manager.js +15 -4
  108. package/script/client/6_client.d.ts +1158 -1056
  109. package/script/client/6_client.d.ts.map +1 -1
  110. package/script/client/6_client.js +1514 -1386
  111. package/script/client/6_client_dispatcher.d.ts +1158 -1056
  112. package/script/client/6_client_dispatcher.d.ts.map +1 -1
  113. package/script/client/6_client_dispatcher.js +1478 -1356
  114. package/script/types/0_checklist_changed.d.ts +1 -1
  115. package/script/types/0_checklist_changed.d.ts.map +1 -1
  116. package/script/types/0_location.d.ts +2 -2
  117. package/script/types/0_location.d.ts.map +1 -1
  118. package/script/types/0_message_viewer.d.ts +29 -0
  119. package/script/types/0_message_viewer.d.ts.map +1 -0
  120. package/script/types/0_message_viewer.js +28 -0
  121. package/script/types/0_secret_chat_action_type.d.ts +69 -0
  122. package/script/types/0_secret_chat_action_type.d.ts.map +1 -0
  123. package/script/types/0_secret_chat_action_type.js +49 -0
  124. package/script/types/1_chat_p.d.ts +1 -5
  125. package/script/types/1_chat_p.d.ts.map +1 -1
  126. package/script/types/1_input_poll_media.d.ts +5 -5
  127. package/script/types/1_input_poll_media.d.ts.map +1 -1
  128. package/script/types/1_input_sticker.d.ts +1 -1
  129. package/script/types/1_secret_chat_action.d.ts +30 -0
  130. package/script/types/1_secret_chat_action.d.ts.map +1 -0
  131. package/script/types/1_secret_chat_action.js +31 -0
  132. package/script/types/1_sticker.d.ts +3 -3
  133. package/script/types/1_sticker.d.ts.map +1 -1
  134. package/script/types/1_video.d.ts +3 -3
  135. package/script/types/1_video.d.ts.map +1 -1
  136. package/script/types/1_video_note.d.ts +3 -3
  137. package/script/types/1_video_note.d.ts.map +1 -1
  138. package/script/types/2_poll_voter.d.ts +13 -0
  139. package/script/types/2_poll_voter.d.ts.map +1 -0
  140. package/script/types/2_poll_voter.js +21 -0
  141. package/script/types/3_connected_website.d.ts +35 -0
  142. package/script/types/3_connected_website.d.ts.map +1 -0
  143. package/script/types/3_connected_website.js +42 -0
  144. package/script/types/3_input_media.d.ts +5 -5
  145. package/script/types/3_input_media.d.ts.map +1 -1
  146. package/script/types/3_poll_voter_list.d.ts +31 -0
  147. package/script/types/3_poll_voter_list.d.ts.map +1 -0
  148. package/script/types/3_poll_voter_list.js +31 -0
  149. package/script/types/4_reply_to.d.ts +2 -2
  150. package/script/types/4_reply_to.d.ts.map +1 -1
  151. package/script/types/6_message_content.d.ts +2 -2
  152. package/script/types/6_message_content.d.ts.map +1 -1
  153. package/script/types/9_message.d.ts +8 -1
  154. package/script/types/9_message.d.ts.map +1 -1
  155. package/script/types/9_message.js +3 -0
  156. package/script/types/B_update.d.ts +25 -10
  157. package/script/types/B_update.d.ts.map +1 -1
@@ -509,6 +509,74 @@ class SecretChatManager {
509
509
  await this.#sendMessage(decryptedMessage, state.encryptedChat, state.authKey, state.authKeyId_, inputEncryptedFile);
510
510
  await this.#postSendMessage(state);
511
511
  }
512
+ async sendSecretChatAction(id, action) {
513
+ this.#c.storage.assertUser("sendSecretChatAction");
514
+ const state = this.#mustGetEncryptedChat(id);
515
+ const random_id = (0, _1_utilities_js_1.getRandomId)();
516
+ let action_;
517
+ switch (action.type) {
518
+ case "typing":
519
+ action_ = { _: "sendMessageTypingAction" };
520
+ break;
521
+ case "uploadingPhoto":
522
+ action_ = { _: "sendMessageUploadPhotoAction" };
523
+ break;
524
+ case "recordingVideo":
525
+ action_ = { _: "sendMessageRecordVideoAction" };
526
+ break;
527
+ case "uploadingVideo":
528
+ action_ = { _: "sendMessageUploadVideoAction" };
529
+ break;
530
+ case "recordingVoice":
531
+ action_ = { _: "sendMessageRecordAudioAction" };
532
+ break;
533
+ case "uploadingAudio":
534
+ action_ = { _: "sendMessageUploadAudioAction" };
535
+ break;
536
+ case "uploadingDocument":
537
+ action_ = { _: "sendMessageUploadDocumentAction" };
538
+ break;
539
+ case "choosingLocation":
540
+ action_ = { _: "sendMessageGeoLocationAction" };
541
+ break;
542
+ case "recordingVideoNote":
543
+ action_ = { _: "sendMessageRecordRoundAction" };
544
+ break;
545
+ case "uploadingVideoNote":
546
+ action_ = { _: "sendMessageUploadRoundAction" };
547
+ break;
548
+ case "cancel":
549
+ action_ = { _: "sendMessageCancelAction" };
550
+ break;
551
+ default:
552
+ (0, _0_deps_js_1.unreachable)();
553
+ }
554
+ const decryptedMessageService = {
555
+ _: "decryptedMessageService",
556
+ action: {
557
+ _: "decryptedMessageActionTyping",
558
+ action: action_,
559
+ },
560
+ random_id,
561
+ };
562
+ await this.#sendMessage(decryptedMessageService, state.encryptedChat, state.authKey, state.authKeyId_);
563
+ await this.#postSendMessage(state);
564
+ }
565
+ async sendSecretScreenshotNotification(id, messageIds) {
566
+ this.#c.storage.assertUser("sendSecretScreenshotNotification");
567
+ const state = this.#mustGetEncryptedChat(id);
568
+ const random_id = (0, _1_utilities_js_1.getRandomId)();
569
+ const decryptedMessageService = {
570
+ _: "decryptedMessageService",
571
+ action: {
572
+ _: "decryptedMessageActionScreenshotMessages",
573
+ random_ids: messageIds.map(BigInt),
574
+ },
575
+ random_id,
576
+ };
577
+ await this.#sendMessage(decryptedMessageService, state.encryptedChat, state.authKey, state.authKeyId_);
578
+ await this.#postSendMessage(state);
579
+ }
512
580
  async sendSecretPhoto(id, photo, params) {
513
581
  this.#c.storage.assertUser("sendSecretPhoto");
514
582
  const state = this.#mustGetEncryptedChat(id);
@@ -788,7 +856,7 @@ class SecretChatManager {
788
856
  const start = (action.start_seq_no - x) / 2;
789
857
  const end = (action.end_seq_no - x) / 2;
790
858
  if (start % 1 !== 0 || end % 1 !== 0 || start < 0 || end < start || end >= state.outSeqNo) {
791
- this.#L.debug("discarding secret chat", state.encryptedChat.id, "because an invalid resend rage was received");
859
+ this.#L.debug("discarding secret chat", state.encryptedChat.id, "because an invalid resend range was received");
792
860
  await this.#c.invoke({ _: "messages.discardEncryption", chat_id: state.encryptedChat.id });
793
861
  throw new TypeError("Received invalid secret chat resend range.");
794
862
  }
@@ -796,7 +864,7 @@ class SecretChatManager {
796
864
  for (let seqNo = start; seqNo <= end; ++seqNo) {
797
865
  const message = state.outgoingMessages.get(seqNo);
798
866
  if (!message) {
799
- this.#L.debug("discarding secret chat", state.encryptedChat.id, "because unable to resend message");
867
+ this.#L.debug("discarding secret chat", state.encryptedChat.id, "because the message could not be resent");
800
868
  await this.#c.invoke({ _: "messages.discardEncryption", chat_id: state.encryptedChat.id });
801
869
  throw new TypeError("Unable to resend secret chat message.");
802
870
  }
@@ -961,6 +1029,12 @@ class SecretChatManager {
961
1029
  }
962
1030
  break;
963
1031
  }
1032
+ case "decryptedMessageActionTyping": {
1033
+ const secretChatAction = (0, _3_types_js_1.constructSecretChatAction)(chatId, message.action);
1034
+ if (secretChatAction !== null) {
1035
+ this.#c.handleUpdate({ type: "secretChatAction", secretChatAction });
1036
+ }
1037
+ }
964
1038
  }
965
1039
  }
966
1040
  async #processUpdateNewMessageEncrypted(update) {
@@ -20,7 +20,7 @@
20
20
  import { Api } from "../2_tl.js";
21
21
  import { type AvailableReactions, type ChatP, type SlowModeDuration } from "../3_types.js";
22
22
  import { type FileSource, type ID, type ReportReason, type Update } from "../3_types.js";
23
- import type { AddChatMemberParams, ApproveJoinRequestsParams, BanChatMemberParams, CreateInviteLinkParams, DeclineJoinRequestsParams, EnableSignaturesParams, GetCreatedInviteLinksParams, GetJoinRequestsParams, PromoteChatMemberParams, ReportChatParams, SetChatMemberRightsParams, SetChatMemberTagParams, SetChatPhotoParams } from "./0_params.js";
23
+ import type { AddChatMemberParams, ApproveJoinRequestsParams, BanChatMemberParams, CreateInviteLinkParams, DeclineJoinRequestsParams, EnableSignaturesParams, GetCreatedInviteLinksParams, GetJoinRequestsParams, MarkAllMentionsAsReadParams, PromoteChatMemberParams, ReportChatParams, SetChatMemberRightsParams, SetChatMemberTagParams, SetChatPhotoParams } from "./0_params.js";
24
24
  import type { UpdateProcessor } from "./0_update_processor.js";
25
25
  import type { C as C_ } from "./1_types.js";
26
26
  import type { FileManager } from "./2_file_manager.js";
@@ -88,6 +88,7 @@ export declare class ChatManager implements UpdateProcessor<ChatManagerUpdate, t
88
88
  reportChat(chatId: ID, reason_: ReportReason, params?: ReportChatParams): Promise<void>;
89
89
  markChatAsUnread(chatId: ID): Promise<void>;
90
90
  markChatAsRead(chatId: ID): Promise<void>;
91
+ markAllMentionsAsRead(chatId: ID, params?: MarkAllMentionsAsReadParams): Promise<void>;
91
92
  }
92
93
  export {};
93
94
  //# sourceMappingURL=4_chat_manager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"4_chat_manager.d.ts","sourceRoot":"","sources":["../../src/client/4_chat_manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,KAAK,kBAAkB,EAAmE,KAAK,KAAK,EAAmK,KAAK,gBAAgB,EAA6B,MAAM,eAAe,CAAC;AACxV,OAAO,EAA8B,KAAK,UAAU,EAAE,KAAK,EAAE,EAAE,KAAK,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AACrH,OAAO,KAAK,EAA8E,mBAAmB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEta,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE/D,OAAO,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,UAAU,CAAE,SAAQ,EAAE;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,QAAA,MAAM,kBAAkB,gGAId,CAAC;AAEX,KAAK,iBAAiB,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAExE,qBAAa,WAAY,YAAW,eAAe,CAAC,iBAAiB,EA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AM,CAAC,EAAE,gBAAgB;IAavE,gBAAgB,CAAC,MAAM,EAAE,EAAE;IAK3B,cAAc,CAAC,MAAM,EAAE,EAAE;IAKzB,qBAAqB,CAAC,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,2BAA2B;CAM7E"}
@@ -379,7 +379,7 @@ class ChatManager {
379
379
  const user_id = await this.#c.getInputUser(userId);
380
380
  const isSelf = _2_tl_js_1.Api.is("inputUserSelf", user_id);
381
381
  if (isSelf || _2_tl_js_1.Api.peerToChatId(user_id) === await this.#c.getSelfId()) {
382
- throw new _0_errors_js_1.InputError("A user ID except that of the current one was expected.");
382
+ throw new _0_errors_js_1.InputError("A user ID other than that of the current user was expected.");
383
383
  }
384
384
  const peer = await this.#c.getInputPeer(chatId);
385
385
  const ap = await this.#c.invoke({ _: "account.getPassword" });
@@ -522,5 +522,11 @@ class ChatManager {
522
522
  this.#c.storage.assertUser("markChatAsRead");
523
523
  await this.#setIsChatUnread(chatId, false);
524
524
  }
525
+ async markAllMentionsAsRead(chatId, params) {
526
+ this.#c.storage.assertUser("markAllMentionsAsRead");
527
+ const peer = await this.#c.getInputPeer(chatId);
528
+ const top_msg_id = params?.topicId;
529
+ await this.#c.invoke({ _: "messages.readMentions", peer, top_msg_id });
530
+ }
525
531
  }
526
532
  exports.ChatManager = ChatManager;
@@ -18,8 +18,8 @@
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
20
  import { type Api } from "../2_tl.js";
21
- import type { AvailableReactions, BusinessConnection, CallbackQuery, Chat, ChatActionType, ChatMember, ChatP, ChatPChannel, ChatPGroup, ChatPPrivate, ChatPSupergroup, ChatSettings, ChosenInlineResult, ClaimedGifts, FailedInvitation, FileSource, GuestQuery, ID, InlineQuery, InlineQueryResult, InputChecklistItem, InputMedia, InputPollOption, InputRichText, InputStoryContent, InviteLink, JoinRequest, Message, MessageAnimation, MessageAudio, MessageChecklist, MessageContact, MessageDice, MessageDocument, MessageInvoice, MessageList, MessageLocation, MessagePhoto, MessagePoll, MessageReactionList, MessageRichText, MessageSticker, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, Poll, PriceTag, Reaction, RichText, SecretChat, SecretMessage, SlowModeDuration, Sticker, Story, Topic, Update, User, VideoChatActive, VideoChatScheduled, VoiceTranscription } from "../3_types.js";
22
- import type { AddChatMemberParams, AddContactParams, AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AnswerPreCheckoutQueryParams, ApproveJoinRequestsParams, BanChatMemberParams, CreateInviteLinkParams, CreateStoryParams, CreateTopicParams, DeclineJoinRequestsParams, DeleteMessagesParams, EditInlineMessageCaptionParams, EditInlineMessageMediaParams, EditInlineMessageRichTextParams, EditInlineMessageTextParams, EditMessageCaptionParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageReplyMarkupParams, EditMessageRichTextParams, EditMessageTextParams, EditTopicParams, EnableSignaturesParams, EndSecretChatParams, ForwardMessagesParams, GetChatMembersParams, GetClaimedGiftsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetJoinRequestsParams, GetSavedMessagesParams, PinMessageParams, PromoteChatMemberParams, ReplyParams, ScheduleVideoChatParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendChecklistParams, SendContactParams, SendDiceParams, SendDocumentParams, SendGiftParams, SendInvoiceParams, SendLocationParams, SendMediaGroupParams, SendMessageDraftParams, SendMessageParams, SendPhotoParams, SendPollParams, SendRichTextDraftParams, SendSecretAnimationParams, SendSecretContactParams, SendSecretDocumentParams, SendSecretLocationParams, SendSecretMessageParams, SendSecretPhotoParams, SendSecretStickerParams, SendSecretVenueParams, SendSecretVideoParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatMemberTagParams, SetChatPhotoParams, SetReactionsParams, StartVideoChatParams, StopPollParams, UpdateChecklistParams } from "./0_params.js";
21
+ import type { AlbumStoryList, AvailableReactions, BusinessConnection, CallbackQuery, Chat, ChatActionType, ChatMember, ChatP, ChatPChannel, ChatPGroup, ChatPPrivate, ChatPSupergroup, ChatSettings, ChosenInlineResult, ClaimedGifts, FailedInvitation, FileSource, GuestQuery, ID, InlineQuery, InlineQueryResult, InputChecklistItem, InputGift, InputMedia, InputPollOption, InputRichText, InputStoryContent, InviteLink, JoinRequest, Message, MessageAnimation, MessageAudio, MessageChecklist, MessageContact, MessageCounters, MessageDice, MessageDocument, MessageInvoice, MessageList, MessageLivePhoto, MessageLocation, MessagePhoto, MessagePoll, MessageReactionList, MessageRichText, MessageSticker, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, Poll, PollVoterList, PriceTag, Reaction, ReportReason, RichText, SecretChat, SecretChatActionType, SecretMessage, SlowModeDuration, StarAmount, StarTransactionList, Sticker, Story, StoryAlbum, StoryReportResult, Topic, TranslatedText, Update, User, VideoChatActive, VideoChatScheduled, VoiceTranscription } from "../3_types.js";
22
+ import type { AddChatMemberParams, AddContactParams, AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AnswerPreCheckoutQueryParams, ApproveJoinRequestsParams, BanChatMemberParams, CreateInviteLinkParams, CreateStoryParams, CreateTopicParams, DeclineJoinRequestsParams, DeleteMessagesParams, EditInlineMessageCaptionParams, EditInlineMessageMediaParams, EditInlineMessageRichTextParams, EditInlineMessageTextParams, EditMessageCaptionParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageReplyMarkupParams, EditMessageRichTextParams, EditMessageTextParams, EditTopicParams, EnableSignaturesParams, EndSecretChatParams, ForwardMessagesParams, GetChatMembersParams, GetClaimedGiftsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetJoinRequestsParams, GetPollVotersParams, GetSavedMessagesParams, GetStarTransactionsParams, PinMessageParams, PromoteChatMemberParams, ReplyParams, ReportChatParams, ReportStoryParams, ScheduleVideoChatParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendChecklistParams, SendContactParams, SendDiceParams, SendDocumentParams, SendGiftParams, SendInvoiceParams, SendLivePhotoParams, SendLocationParams, SendMediaGroupParams, SendMessageDraftParams, SendMessageParams, SendPhotoParams, SendPollParams, SendRichTextDraftParams, SendSecretAnimationParams, SendSecretContactParams, SendSecretDocumentParams, SendSecretLocationParams, SendSecretMessageParams, SendSecretPhotoParams, SendSecretStickerParams, SendSecretVenueParams, SendSecretVideoParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetChatMemberRightsParams, SetChatMemberTagParams, SetChatPhotoParams, SetReactionsParams, StartVideoChatParams, StopPollParams, SummarizeTextParams, TranslateTextParams, UpdateChecklistParams } from "./0_params.js";
23
23
  import type { ClientGeneric } from "./1_client_generic.js";
24
24
  import { type FilterQuery, type WithChatType, type WithFilter } from "./3_filters.js";
25
25
  export type ContextCommands = string | RegExp | (string | RegExp)[] | {
@@ -73,16 +73,24 @@ export declare class Context {
73
73
  toJSON(): Update | {
74
74
  update: Api.Update;
75
75
  };
76
+ /** Context-aware alias for {@link Client.acceptSecretChat}. */
77
+ acceptSecretChat(): Promise<SecretChat>;
76
78
  /** Context-aware alias for {@link Client.addContact}. */
77
79
  addAsContact(firstName: string, params?: AddContactParams): Promise<void>;
78
80
  /** Context-aware alias for {@link Client.addChatMember}. */
79
81
  addMember(userId: ID, params?: AddChatMemberParams): Promise<FailedInvitation[]>;
80
82
  /** Context-aware alias for {@link Client.addChatMembers}. */
81
83
  addMembers(userIds: ID[]): Promise<FailedInvitation[]>;
84
+ /** Context-aware alias for {@link Client.addPollOption}. */
85
+ addPollOption(messageId: number, option: InputPollOption): Promise<void>;
82
86
  /** Context-aware alias for {@link Client.addReaction}. */
83
87
  addReaction(messageId: number, reaction: Reaction, params?: AddReactionParams): Promise<void>;
88
+ /** Context-aware alias for {@link Client.addStoriesToAlbum}. */
89
+ addStoriesToAlbum(albumId: number, storyIds: number[]): Promise<StoryAlbum>;
84
90
  /** Context-aware alias for {@link Client.addStoriesToHighlights}. */
85
91
  addStoriesToHighlights(storyIds: number[]): Promise<void>;
92
+ /** Context-aware alias for {@link Client.addStoryToAlbum}. */
93
+ addStoryToAlbum(albumId: number, storyId: number): Promise<StoryAlbum>;
86
94
  /** Context-aware alias for {@link Client.addStoryToHighlights}. */
87
95
  addStoryToHighlights(storyId: number): Promise<void>;
88
96
  /** Context-aware alias for {@link Client.addToChecklist}. */
@@ -119,20 +127,22 @@ export declare class Context {
119
127
  createInviteLink(params?: CreateInviteLinkParams): Promise<InviteLink>;
120
128
  /** Context-aware alias for {@link Client.createStory}. */
121
129
  createStory(content: InputStoryContent, params?: CreateStoryParams): Promise<Story>;
130
+ /** Context-aware alias for {@link Client.createStoryAlbum}. */
131
+ createStoryAlbum(name: string, storyIds: number[]): Promise<StoryAlbum>;
122
132
  /** Context-aware alias for {@link Client.createTopic}. */
123
133
  createTopic(title: string, params?: CreateTopicParams): Promise<Topic>;
124
134
  /** Context-aware alias for {@link Client.declineJoinRequest}. */
125
135
  declineJoinRequest(): Promise<void>;
126
136
  /** Context-aware alias for {@link Client.declineJoinRequests}. */
127
137
  declineJoinRequests(params?: DeclineJoinRequestsParams): Promise<void>;
128
- /** Context-aware alias for {@link Client.deleteChatPhoto}. */
129
- deleteChatPhoto(): Promise<void>;
130
138
  /** Context-aware alias for {@link Client.deleteMessage}. */
131
139
  delete(): Promise<void>;
132
140
  /** Context-aware alias for {@link Client.deleteChat}. */
133
141
  deleteChat(): Promise<void>;
134
142
  /** Context-aware alias for {@link Client.deleteChatMemberMessages}. */
135
143
  deleteChatMemberMessages(userId: ID): Promise<void>;
144
+ /** Context-aware alias for {@link Client.deleteChatPhoto}. */
145
+ deleteChatPhoto(): Promise<void>;
136
146
  /** Context-aware alias for {@link Client.deleteChatStickerSet}. */
137
147
  deleteChatStickerSet(): Promise<void>;
138
148
  /** Context-aware alias for {@link Client.deleteMessage}. */
@@ -151,6 +161,8 @@ export declare class Context {
151
161
  disableAntispam(): Promise<void>;
152
162
  /** Context-aware alias for {@link Client.disableBusinessBots}. */
153
163
  disableBusinessBots(): Promise<void>;
164
+ /** Context-aware alias for {@link Client.disableChatHistoryForNewMembers}. */
165
+ disableChatHistoryForNewMembers(): Promise<void>;
154
166
  /** Context-aware alias for {@link Client.disableJoinRequests}. */
155
167
  disableJoinRequests(): Promise<void>;
156
168
  /** Context-aware alias for {@link Client.disableSharing}. */
@@ -169,10 +181,10 @@ export declare class Context {
169
181
  editInlineMessageMedia(media: InputMedia, params?: EditInlineMessageMediaParams): Promise<void>;
170
182
  /** Context-aware alias for {@link Client.editInlineMessageReplyMarkup}. */
171
183
  editInlineMessageReplyMarkup(params?: EditMessageReplyMarkupParams): Promise<void>;
172
- /** Context-aware alias for {@link Client.editInlineMessageText}. */
173
- editInlineMessageText(text: string, params?: EditInlineMessageTextParams): Promise<void>;
174
184
  /** Context-aware alias for {@link Client.editInlineMessageRichText}. */
175
185
  editInlineMessageRichText(richText: InputRichText, params?: EditInlineMessageRichTextParams): Promise<void>;
186
+ /** Context-aware alias for {@link Client.editInlineMessageText}. */
187
+ editInlineMessageText(text: string, params?: EditInlineMessageTextParams): Promise<void>;
176
188
  /** Context-aware alias for {@link Client.editMessageCaption}. */
177
189
  editMessageCaption(messageId: number, params?: EditMessageCaptionParams): Promise<Message>;
178
190
  /** Context-aware alias for {@link Client.editMessageLiveLocation}. */
@@ -181,18 +193,18 @@ export declare class Context {
181
193
  editMessageMedia(messageId: number, media: InputMedia, params?: EditMessageMediaParams): Promise<Message>;
182
194
  /** Context-aware alias for {@link Client.editMessageReplyMarkup}. */
183
195
  editMessageReplyMarkup(messageId: number, params?: EditMessageReplyMarkupParams): Promise<Message>;
184
- /** Context-aware alias for {@link Client.editMessageText}. */
185
- editMessageText(messageId: number, text: string, params?: EditMessageTextParams): Promise<MessageText>;
186
- /** Context-aware alias for {@link Client.getRichText}. */
187
- getRichText(messageId: number): Promise<RichText | null>;
188
196
  /** Context-aware alias for {@link Client.editMessageRichText}. */
189
197
  editMessageRichText(messageId: number, richText: InputRichText, params?: EditMessageRichTextParams): Promise<MessageRichText>;
198
+ /** Context-aware alias for {@link Client.editMessageText}. */
199
+ editMessageText(messageId: number, text: string, params?: EditMessageTextParams): Promise<MessageText>;
190
200
  /** Context-aware alias for {@link Client.editTopic}. */
191
201
  editTopic(topicId: number, title: string, params?: EditTopicParams): Promise<Topic>;
192
202
  /** Context-aware alias for {@link Client.enableAntispam}. */
193
203
  enableAntispam(): Promise<void>;
194
204
  /** Context-aware alias for {@link Client.enableBusinessBots}. */
195
205
  enableBusinessBots(): Promise<void>;
206
+ /** Context-aware alias for {@link Client.enableChatHistoryForNewMembers}. */
207
+ enableChatHistoryForNewMembers(): Promise<void>;
196
208
  /** Context-aware alias for {@link Client.enableJoinRequests}. */
197
209
  enableJoinRequests(): Promise<void>;
198
210
  /** Context-aware alias for {@link Client.enableSharing}. */
@@ -201,6 +213,8 @@ export declare class Context {
201
213
  enableSignatures(params?: EnableSignaturesParams): Promise<void>;
202
214
  /** Context-aware alias for {@link Client.enableTopics}. */
203
215
  enableTopics(isShownAsTabs: boolean): Promise<void>;
216
+ /** Context-aware alias for {@link Client.acceptSecretChat}. */
217
+ endSecretChat(params?: EndSecretChatParams): Promise<SecretChat>;
204
218
  /** Context-aware alias for {@link Client.forwardMessage}. */
205
219
  forward(to: ID, params?: ForwardMessagesParams): Promise<Message>;
206
220
  /** Context-aware alias for {@link Client.forwardMessage}. */
@@ -231,32 +245,62 @@ export declare class Context {
231
245
  getJoinRequests(params?: GetJoinRequestsParams): Promise<JoinRequest[]>;
232
246
  /** Context-aware alias for {@link Client.getMessage}. */
233
247
  getMessage(messageId: number): Promise<Message | null>;
248
+ /** Context-aware alias for {@link Client.getMessageCounters}. */
249
+ getMessageCounters(messageId: number): Promise<MessageCounters>;
234
250
  /** Context-aware alias for {@link Client.getMessageReactions}. */
235
251
  getMessageReactions(messageId: number): Promise<MessageReactionList>;
252
+ /** Context-aware alias for {@link Client.getMessageReadDate}. */
253
+ getMessageReadDate(messageId: number): Promise<number>;
236
254
  /** Context-aware alias for {@link Client.getMessages}. */
237
255
  getMessages(messageIds: number[]): Promise<Message[]>;
256
+ /** Context-aware alias for {@link Client.getMessagesCounters}. */
257
+ getMessagesCounters(messageIds: number[]): Promise<MessageCounters[]>;
258
+ /** Context-aware alias for {@link Client.getOnlineCount}. */
259
+ getOnlineCount(): Promise<number>;
260
+ /** Context-aware alias for {@link Client.getPollVoters}. */
261
+ getPollVoters(messageId: number, params?: GetPollVotersParams): Promise<PollVoterList>;
262
+ /** Context-aware alias for {@link Client.getRichText}. */
263
+ getRichText(messageId: number): Promise<RichText | null>;
238
264
  /** Context-aware alias for {@link Client.getSavedMessages}. */
239
265
  getSavedMessages(params?: GetSavedMessagesParams): Promise<Message[]>;
266
+ /** Context-aware alias for {@link Client.getScheduledMessages}. */
267
+ getScheduledMessages(): Promise<Message[]>;
240
268
  /** Context-aware alias for {@link Client.getSimilarBots}. */
241
269
  getSimilarBots(): Promise<ChatPPrivate[]>;
242
270
  /** Context-aware alias for {@link Client.getSimilarChannels}. */
243
271
  getSimilarChannels(): Promise<ChatPChannel[]>;
272
+ /** Context-aware alias for {@link Client.getStarBalance}. */
273
+ getStarBalance(): Promise<StarAmount>;
274
+ /** Context-aware alias for {@link Client.getStarTransactions}. */
275
+ getStarTransactions(params?: GetStarTransactionsParams): Promise<StarTransactionList>;
244
276
  /** Context-aware alias for {@link Client.getStories}. */
245
277
  getStories(storyIds: number[]): Promise<Story[]>;
278
+ /** Context-aware alias for {@link Client.getStoriesInAlbum}. */
279
+ getStoriesInAlbum(albumId: number): Promise<AlbumStoryList>;
246
280
  /** Context-aware alias for {@link Client.getStory}. */
247
281
  getStory(storyId: number): Promise<Story | null>;
282
+ /** Context-aware alias for {@link Client.getStoryAlbums}. */
283
+ getStoryAlbums(): Promise<StoryAlbum[]>;
284
+ /** Context-aware alias for {@link Client.getTonBalance}. */
285
+ getTonBalance(): Promise<number>;
248
286
  /** Context-aware alias for {@link Client.sendGift}. */
249
287
  gift(giftId: string, params?: SendGiftParams): Promise<void>;
250
288
  /** Context-aware alias for {@link Client.hideGeneralTopic}. */
251
289
  hideGeneralTopic(): Promise<void>;
252
290
  /** Context-aware alias for {@link Client.hideMemberList}. */
253
291
  hideMemberList(): Promise<void>;
292
+ /** Context-aware alias for {@link Client.joinChat}. */
293
+ joinChat(): Promise<void>;
254
294
  /** Context-aware alias for {@link Client.kickChatMember}. */
255
295
  kickChatMember(memberId: ID): Promise<void>;
256
296
  /** Context-aware alias for {@link Client.kickChatMember}. */
257
297
  kickSender(): Promise<void>;
258
298
  /** Context-aware alias for {@link Client.leaveChat}. */
259
299
  leaveChat(): Promise<void>;
300
+ /** Context-aware alias for {@link Client.markChatAsRead}. */
301
+ markChatAsRead(): Promise<void>;
302
+ /** Context-aware alias for {@link Client.markChatAsUnread}. */
303
+ markChatAsUnread(): Promise<void>;
260
304
  /** Context-aware alias for {@link Client.openChat}. */
261
305
  open(): Promise<void>;
262
306
  /** Context-aware alias for {@link Client.pauseBusinessBotConnection}. */
@@ -277,52 +321,28 @@ export declare class Context {
277
321
  refundStarPayment(telegramPaymentChargeId: string): Promise<void>;
278
322
  /** Context-aware alias for {@link Client.deleteContact}. */
279
323
  removeAsContact(): Promise<void>;
324
+ /** Context-aware alias for {@link Client.removePollOption}. */
325
+ removePollOption(messageId: number, optionIndex: number): Promise<void>;
280
326
  /** Context-aware alias for {@link Client.removeReaction}. */
281
327
  removeReaction(messageId: number, reaction: Reaction): Promise<void>;
282
- /** Context-aware alias for {@link Client.removeUserReaction}. */
283
- removeUserReaction(messageId: number, userId: ID): Promise<void>;
284
- /** Context-aware alias for {@link Client.removeUserReactions}. */
285
- removeUserReactions(userId: ID): Promise<void>;
328
+ /** Context-aware alias for {@link Client.removeStoriesFromAlbum}. */
329
+ removeStoriesFromAlbum(albumId: number, storyIds: number[]): Promise<StoryAlbum>;
286
330
  /** Context-aware alias for {@link Client.removeStoriesFromHighlights}. */
287
331
  removeStoriesFromHighlights(storyIds: number[]): Promise<void>;
332
+ /** Context-aware alias for {@link Client.removeStoryFromAlbum}. */
333
+ removeStoryFromAlbum(albumId: number, storyId: number): Promise<StoryAlbum>;
288
334
  /** Context-aware alias for {@link Client.removeStoryFromHighlights}. */
289
335
  removeStoryFromHighlights(storyId: number): Promise<void>;
336
+ /** Context-aware alias for {@link Client.removeUserReaction}. */
337
+ removeUserReaction(messageId: number, userId: ID): Promise<void>;
338
+ /** Context-aware alias for {@link Client.removeUserReactions}. */
339
+ removeUserReactions(userId: ID): Promise<void>;
290
340
  /** Context-aware alias for {@link Client.reopenTopic}. */
291
341
  reopenTopic(topicId: number): Promise<void>;
292
- /** Context-aware alias for {@link Client.sendSecretMessage}. */
293
- replySecret(text: string, params?: Omit<SendSecretMessageParams, "replyToMessageId"> & ReplyParams): Promise<void>;
294
- /** Context-aware alias for {@link Client.sendSecretLocation}. */
295
- replySecretLocation(latitude: number, longitude: number, params?: Omit<SendSecretLocationParams, "replyToMessageId"> & ReplyParams): Promise<void>;
296
- /** Context-aware alias for {@link Client.sendSecretVenue}. */
297
- replySecretVenue(latitude: number, longitude: number, title: string, address: string, params?: Omit<SendSecretVenueParams, "replyToMessageId"> & ReplyParams): Promise<void>;
298
- /** Context-aware alias for {@link Client.sendSecretContact}. */
299
- replySecretContact(firstName: string, phoneNumber: string, params?: Omit<SendSecretContactParams, "replyToMessageId"> & ReplyParams): Promise<void>;
300
- /** Context-aware alias for {@link Client.sendSecretDocument}. */
301
- replySecretDocument(document: FileSource, params?: Omit<SendSecretDocumentParams, "replyToMessageId"> & ReplyParams): Promise<void>;
302
- /** Context-aware alias for {@link Client.sendSecretPhoto}. */
303
- replySecretPhoto(photo: FileSource, params?: Omit<SendSecretPhotoParams, "replyToMessageId"> & ReplyParams): Promise<void>;
304
- /** Context-aware alias for {@link Client.sendSecretVideo}. */
305
- replySecretVideo(video: FileSource, params?: Omit<SendSecretVideoParams, "replyToMessageId"> & ReplyParams): Promise<void>;
306
- /** Context-aware alias for {@link Client.sendSecretVideoNote}. */
307
- replySecretVideoNote(videoNote: FileSource, params?: Omit<SendSecretVideoParams, "replyToMessageId"> & ReplyParams): Promise<void>;
308
- /** Context-aware alias for {@link Client.sendSecretAnimation}. */
309
- replySecretAnimation(animation: FileSource, params?: Omit<SendSecretAnimationParams, "replyToMessageId"> & ReplyParams): Promise<void>;
310
- /** Context-aware alias for {@link Client.sendSecretAudio}. */
311
- replySecretAudio(audio: FileSource, params?: Omit<SendSecretAnimationParams, "replyToMessageId"> & ReplyParams): Promise<void>;
312
- /** Context-aware alias for {@link Client.sendSecretVoice}. */
313
- replySecretVoice(voice: FileSource, params?: Omit<SendSecretAnimationParams, "replyToMessageId"> & ReplyParams): Promise<void>;
314
- /** Context-aware alias for {@link Client.sendSecretSticker}. */
315
- replySecretSticker(sticker: Sticker, params?: Omit<SendSecretStickerParams, "replyToMessageId"> & ReplyParams): Promise<void>;
316
- /** Context-aware alias for {@link Client.acceptSecretChat}. */
317
- acceptSecretChat(): Promise<SecretChat>;
318
- /** Context-aware alias for {@link Client.acceptSecretChat}. */
319
- endSecretChat(params?: EndSecretChatParams): Promise<SecretChat>;
320
- /** Context-aware alias for {@link Client.requestSecretChat}. */
321
- requestSecretChat(): Promise<SecretChat>;
342
+ /** Context-aware alias for {@link Client.reorderStoriesInAlbum}. */
343
+ reorderStoriesInAlbum(albumId: number, storyIds: number[]): Promise<StoryAlbum>;
322
344
  /** Context-aware alias for {@link Client.sendMessage}. */
323
345
  reply(text: string, params?: Omit<SendMessageParams, "replyTo" | "messageThreadId" | "businessConnectionId"> & ReplyParams): Promise<MessageText>;
324
- /** Context-aware alias for {@link Client.sendRichText}. */
325
- replyRichText(richText: InputRichText, params?: Omit<SendMessageParams, "replyTo" | "messageThreadId" | "businessConnectionId"> & ReplyParams): Promise<MessageRichText>;
326
346
  /** Context-aware alias for {@link Client.sendAnimation}. */
327
347
  replyAnimation(animation: FileSource, params?: Omit<SendAnimationParams, "replyTo" | "messageThreadId" | "businessConnectionId"> & ReplyParams): Promise<MessageAnimation>;
328
348
  /** Context-aware alias for {@link Client.sendAudio}. */
@@ -337,10 +357,10 @@ export declare class Context {
337
357
  replyDocument(document: FileSource, params?: Omit<SendDocumentParams, "replyTo" | "messageThreadId" | "businessConnectionId"> & ReplyParams): Promise<MessageDocument>;
338
358
  /** Context-aware alias for {@link Client.sendMessageDraft}. */
339
359
  replyDraft(draftId: number, text: string, params?: Omit<SendMessageDraftParams, "messageThreadId"> & ReplyParams): Promise<void>;
340
- /** Context-aware alias for {@link Client.sendRichTextDraft}. */
341
- replyRichTextDraft(draftId: number, richText: InputRichText, params?: Omit<SendRichTextDraftParams, "messageThreadId"> & ReplyParams): Promise<void>;
342
360
  /** Context-aware alias for {@link Client.sendInvoice}. */
343
361
  replyInvoice(title: string, description: string, payload: string, currency: string, prices: PriceTag[], params?: Omit<SendInvoiceParams, "replyTo" | "messageThreadId" | "businessConnectionId"> & ReplyParams): Promise<MessageInvoice>;
362
+ /** Context-aware alias for {@link Client.sendLivePhoto}. */
363
+ replyLivePhoto(photo: FileSource, video: FileSource, params?: Omit<SendLivePhotoParams, "replyTo" | "messageThreadId" | "businessConnectionId"> & ReplyParams): Promise<MessageLivePhoto>;
344
364
  /** Context-aware alias for {@link Client.sendLocation}. */
345
365
  replyLocation(latitude: number, longitude: number, params?: Omit<SendLocationParams, "replyTo" | "messageThreadId" | "businessConnectionId"> & ReplyParams): Promise<MessageLocation>;
346
366
  /** Context-aware alias for {@link Client.sendMediaGroup}. */
@@ -349,6 +369,34 @@ export declare class Context {
349
369
  replyPhoto(photo: FileSource, params?: Omit<SendPhotoParams, "replyTo" | "messageThreadId" | "businessConnectionId"> & ReplyParams): Promise<MessagePhoto>;
350
370
  /** Context-aware alias for {@link Client.sendPoll}. */
351
371
  replyPoll(question: string, options: InputPollOption[], params?: Omit<SendPollParams, "replyTo" | "messageThreadId" | "businessConnectionId"> & ReplyParams): Promise<MessagePoll>;
372
+ /** Context-aware alias for {@link Client.sendRichText}. */
373
+ replyRichText(richText: InputRichText, params?: Omit<SendMessageParams, "replyTo" | "messageThreadId" | "businessConnectionId"> & ReplyParams): Promise<MessageRichText>;
374
+ /** Context-aware alias for {@link Client.sendRichTextDraft}. */
375
+ replyRichTextDraft(draftId: number, richText: InputRichText, params?: Omit<SendRichTextDraftParams, "messageThreadId"> & ReplyParams): Promise<void>;
376
+ /** Context-aware alias for {@link Client.sendSecretMessage}. */
377
+ replySecret(text: string, params?: Omit<SendSecretMessageParams, "replyToMessageId"> & ReplyParams): Promise<void>;
378
+ /** Context-aware alias for {@link Client.sendSecretAnimation}. */
379
+ replySecretAnimation(animation: FileSource, params?: Omit<SendSecretAnimationParams, "replyToMessageId"> & ReplyParams): Promise<void>;
380
+ /** Context-aware alias for {@link Client.sendSecretAudio}. */
381
+ replySecretAudio(audio: FileSource, params?: Omit<SendSecretAnimationParams, "replyToMessageId"> & ReplyParams): Promise<void>;
382
+ /** Context-aware alias for {@link Client.sendSecretContact}. */
383
+ replySecretContact(firstName: string, phoneNumber: string, params?: Omit<SendSecretContactParams, "replyToMessageId"> & ReplyParams): Promise<void>;
384
+ /** Context-aware alias for {@link Client.sendSecretDocument}. */
385
+ replySecretDocument(document: FileSource, params?: Omit<SendSecretDocumentParams, "replyToMessageId"> & ReplyParams): Promise<void>;
386
+ /** Context-aware alias for {@link Client.sendSecretLocation}. */
387
+ replySecretLocation(latitude: number, longitude: number, params?: Omit<SendSecretLocationParams, "replyToMessageId"> & ReplyParams): Promise<void>;
388
+ /** Context-aware alias for {@link Client.sendSecretPhoto}. */
389
+ replySecretPhoto(photo: FileSource, params?: Omit<SendSecretPhotoParams, "replyToMessageId"> & ReplyParams): Promise<void>;
390
+ /** Context-aware alias for {@link Client.sendSecretSticker}. */
391
+ replySecretSticker(sticker: Sticker, params?: Omit<SendSecretStickerParams, "replyToMessageId"> & ReplyParams): Promise<void>;
392
+ /** Context-aware alias for {@link Client.sendSecretVenue}. */
393
+ replySecretVenue(latitude: number, longitude: number, title: string, address: string, params?: Omit<SendSecretVenueParams, "replyToMessageId"> & ReplyParams): Promise<void>;
394
+ /** Context-aware alias for {@link Client.sendSecretVideo}. */
395
+ replySecretVideo(video: FileSource, params?: Omit<SendSecretVideoParams, "replyToMessageId"> & ReplyParams): Promise<void>;
396
+ /** Context-aware alias for {@link Client.sendSecretVideoNote}. */
397
+ replySecretVideoNote(videoNote: FileSource, params?: Omit<SendSecretVideoParams, "replyToMessageId"> & ReplyParams): Promise<void>;
398
+ /** Context-aware alias for {@link Client.sendSecretVoice}. */
399
+ replySecretVoice(voice: FileSource, params?: Omit<SendSecretAnimationParams, "replyToMessageId"> & ReplyParams): Promise<void>;
352
400
  /** Context-aware alias for {@link Client.sendSticker}. */
353
401
  replySticker(sticker: FileSource, params?: Omit<SendStickerParams, "replyTo" | "messageThreadId" | "businessConnectionId"> & ReplyParams): Promise<MessageSticker>;
354
402
  /** Context-aware alias for {@link Client.sendVenue}. */
@@ -359,8 +407,18 @@ export declare class Context {
359
407
  replyVideoNote(videoNote: FileSource, params?: Omit<SendVideoNoteParams, "replyTo" | "messageThreadId" | "businessConnectionId"> & ReplyParams): Promise<MessageVideoNote>;
360
408
  /** Context-aware alias for {@link Client.sendVoice}. */
361
409
  replyVoice(voice: FileSource, params?: Omit<SendVoiceParams, "replyTo" | "messageThreadId" | "businessConnectionId"> & ReplyParams): Promise<MessageVoice>;
410
+ /** Context-aware alias for {@link Client.reportChat}. */
411
+ reportChat(reason: ReportReason, params?: ReportChatParams): Promise<void>;
412
+ /** Context-aware alias for {@link Client.reportStories}. */
413
+ reportStories(storyIds: number[], params?: ReportStoryParams): Promise<StoryReportResult>;
414
+ /** Context-aware alias for {@link Client.reportStory}. */
415
+ reportStory(storyId: number, params?: ReportStoryParams): Promise<StoryReportResult>;
416
+ /** Context-aware alias for {@link Client.requestSecretChat}. */
417
+ requestSecretChat(): Promise<SecretChat>;
362
418
  /** Context-aware alias for {@link Client.resumeBusinessBotConnection}. */
363
419
  resumeBusinessBotConnection(): Promise<void>;
420
+ /** Context-aware alias for {@link Client.retractVote}. */
421
+ retractVote(messageId: number): Promise<void>;
364
422
  /** Context-aware alias for {@link Client.scheduleVideoChat}. */
365
423
  scheduleVideoChat(startAt: number, params?: ScheduleVideoChatParams): Promise<VideoChatScheduled>;
366
424
  /** Context-aware alias for {@link Client.searchMessages}. */
@@ -371,6 +429,14 @@ export declare class Context {
371
429
  }): Promise<void>;
372
430
  /** Context-aware alias for {@link Client.sendScheduledMessage}. */
373
431
  sendScheduledMessage(messageId: number): Promise<Message>;
432
+ /** Context-aware alias for {@link Client.sendScheduledMessages}. */
433
+ sendScheduledMessages(messageIds: number[]): Promise<Message[]>;
434
+ /** Context-aware alias for {@link Client.sendScreenshotNotification}. */
435
+ sendScreenshotNotification(replyToMessageId: number): Promise<void>;
436
+ /** Context-aware alias for {@link Client.sendSecretChatAction}. */
437
+ sendSecretChatAction(action: SecretChatActionType): Promise<void>;
438
+ /** Context-aware alias for {@link Client.sendSecretScreenshotNotification}. */
439
+ sendSecretScreenshotNotification(messageIds: string[]): Promise<void>;
374
440
  /** Context-aware alias for {@link Client.setAvailableReactions}. */
375
441
  setAvailableReactions(availableReactions: AvailableReactions): Promise<void>;
376
442
  /** Context-aware alias for {@link Client.setBoostsRequiredToCircumventRestrictions}. */
@@ -385,6 +451,8 @@ export declare class Context {
385
451
  setChatStickerSet(setName: string): Promise<void>;
386
452
  /** Context-aware alias for {@link Client.setChatTitle}. */
387
453
  setChatTitle(title: string): Promise<void>;
454
+ /** Context-aware alias for {@link Client.setDefaultSendAs}. */
455
+ setDefaultSendAs(sendAs: ID): Promise<void>;
388
456
  /** Context-aware alias for {@link Client.setDiscussionChat}. */
389
457
  setDiscussionChat(discussionChatId: ID): Promise<void>;
390
458
  /** Context-aware alias for {@link Client.setChatMemberTag}. */
@@ -397,6 +465,8 @@ export declare class Context {
397
465
  setSenderRights(params?: SetChatMemberRightsParams): Promise<void>;
398
466
  /** Context-aware alias for {@link Client.setSlowMode}. */
399
467
  setSlowMode(duration: SlowModeDuration): Promise<void>;
468
+ /** Context-aware alias for {@link Client.setStoryAlbumName}. */
469
+ setStoryAlbumName(albumId: number, name: string): Promise<StoryAlbum>;
400
470
  /** Context-aware alias for {@link Client.showGeneralTopic}. */
401
471
  showGeneralTopic(): Promise<void>;
402
472
  /** Context-aware alias for {@link Client.showMemberList}. */
@@ -405,10 +475,18 @@ export declare class Context {
405
475
  startVideoChat(params?: StartVideoChatParams): Promise<VideoChatActive>;
406
476
  /** Context-aware alias for {@link Client.stopPoll}. */
407
477
  stopPoll(messageId: number, params?: StopPollParams): Promise<Poll>;
478
+ /** Context-aware alias for {@link Client.summarizeText}. */
479
+ summarizeText(messageId: number, params?: SummarizeTextParams): Promise<TranslatedText>;
408
480
  /** Context-aware alias for {@link Client.transcribeVoice}. */
409
481
  transcribeVoice(messageId: number): Promise<VoiceTranscription>;
482
+ /** Context-aware alias for {@link Client.transferGift}. */
483
+ transferGift(gift: InputGift): Promise<void>;
410
484
  /** Context-aware alias for {@link Client.transferChatOwnership}. */
411
485
  transferOwnership(userId: ID, password: string): Promise<void>;
486
+ /** Context-aware alias for {@link Client.translateMessage}. */
487
+ translateMessage(toLanguage: string, messageId: number, params?: TranslateTextParams): Promise<TranslatedText>;
488
+ /** Context-aware alias for {@link Client.translateMessages}. */
489
+ translateMessages(toLanguage: string, messageIds: number[], params?: TranslateTextParams): Promise<TranslatedText[]>;
412
490
  /** Context-aware alias for {@link Client.unarchiveChat}. */
413
491
  unarchive(): Promise<void>;
414
492
  /** Context-aware alias for {@link Client.unbanChatMember}. */
@@ -429,6 +507,12 @@ export declare class Context {
429
507
  unpinTopic(topicId: number): Promise<void>;
430
508
  /** Context-aware alias for {@link Client.updateChecklist}. */
431
509
  updateChecklist(messageId: number, params?: UpdateChecklistParams): Promise<void>;
510
+ /** Context-aware alias for {@link Client.viewMessage}. */
511
+ viewMessage(messageId: number): Promise<void>;
512
+ /** Context-aware alias for {@link Client.viewMessages}. */
513
+ viewMessages(messageIds: number[]): Promise<void>;
514
+ /** Context-aware alias for {@link Client.vote}. */
515
+ vote(messageId: number, optionIndexes: number[]): Promise<void>;
432
516
  }
433
517
  export {};
434
518
  //# sourceMappingURL=4_context.d.ts.map