@mtkruto/node 0.124.0 → 0.126.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 (65) hide show
  1. package/esm/3_types.d.ts +3 -0
  2. package/esm/3_types.d.ts.map +1 -1
  3. package/esm/3_types.js +3 -0
  4. package/esm/client/0_params.d.ts +14 -0
  5. package/esm/client/0_params.d.ts.map +1 -1
  6. package/esm/client/1_client_generic.d.ts +112 -19
  7. package/esm/client/1_client_generic.d.ts.map +1 -1
  8. package/esm/client/2_account_manager.d.ts +2 -1
  9. package/esm/client/2_account_manager.d.ts.map +1 -1
  10. package/esm/client/2_account_manager.js +6 -0
  11. package/esm/client/2_story_album_manager.d.ts +36 -0
  12. package/esm/client/2_story_album_manager.d.ts.map +1 -0
  13. package/esm/client/2_story_album_manager.js +99 -0
  14. package/esm/client/4_contact_manager.d.ts +2 -1
  15. package/esm/client/4_contact_manager.d.ts.map +1 -1
  16. package/esm/client/4_contact_manager.js +5 -0
  17. package/esm/client/4_story_manager.js +4 -4
  18. package/esm/client/6_client.d.ts +112 -19
  19. package/esm/client/6_client.d.ts.map +1 -1
  20. package/esm/client/6_client.js +140 -18
  21. package/esm/client/6_client_dispatcher.d.ts +113 -19
  22. package/esm/client/6_client_dispatcher.d.ts.map +1 -1
  23. package/esm/client/6_client_dispatcher.js +135 -17
  24. package/esm/types/2_story_album_icon.d.ts +35 -0
  25. package/esm/types/2_story_album_icon.d.ts.map +1 -0
  26. package/esm/types/2_story_album_icon.js +20 -0
  27. package/esm/types/3_story_album.d.ts +32 -0
  28. package/esm/types/3_story_album.d.ts.map +1 -0
  29. package/esm/types/3_story_album.js +50 -0
  30. package/esm/types/4_album_story_list.d.ts +33 -0
  31. package/esm/types/4_album_story_list.d.ts.map +1 -0
  32. package/esm/types/4_album_story_list.js +32 -0
  33. package/package.json +1 -1
  34. package/script/3_types.d.ts +3 -0
  35. package/script/3_types.d.ts.map +1 -1
  36. package/script/3_types.js +3 -0
  37. package/script/client/0_params.d.ts +14 -0
  38. package/script/client/0_params.d.ts.map +1 -1
  39. package/script/client/1_client_generic.d.ts +112 -19
  40. package/script/client/1_client_generic.d.ts.map +1 -1
  41. package/script/client/2_account_manager.d.ts +2 -1
  42. package/script/client/2_account_manager.d.ts.map +1 -1
  43. package/script/client/2_account_manager.js +6 -0
  44. package/script/client/2_story_album_manager.d.ts +36 -0
  45. package/script/client/2_story_album_manager.d.ts.map +1 -0
  46. package/script/client/2_story_album_manager.js +103 -0
  47. package/script/client/4_contact_manager.d.ts +2 -1
  48. package/script/client/4_contact_manager.d.ts.map +1 -1
  49. package/script/client/4_contact_manager.js +5 -0
  50. package/script/client/4_story_manager.js +4 -4
  51. package/script/client/6_client.d.ts +112 -19
  52. package/script/client/6_client.d.ts.map +1 -1
  53. package/script/client/6_client.js +140 -18
  54. package/script/client/6_client_dispatcher.d.ts +113 -19
  55. package/script/client/6_client_dispatcher.d.ts.map +1 -1
  56. package/script/client/6_client_dispatcher.js +135 -17
  57. package/script/types/2_story_album_icon.d.ts +35 -0
  58. package/script/types/2_story_album_icon.d.ts.map +1 -0
  59. package/script/types/2_story_album_icon.js +21 -0
  60. package/script/types/3_story_album.d.ts +32 -0
  61. package/script/types/3_story_album.d.ts.map +1 -0
  62. package/script/types/3_story_album.js +53 -0
  63. package/script/types/4_album_story_list.d.ts +33 -0
  64. package/script/types/4_album_story_list.d.ts.map +1 -0
  65. package/script/types/4_album_story_list.js +35 -0
@@ -41,6 +41,7 @@ import { NetworkStatisticsManager } from "./2_network_statistics_manager.js";
41
41
  import { PaymentManager } from "./2_payment_manager.js";
42
42
  import { ReactionManager } from "./2_reaction_manager.js";
43
43
  import { signIn } from "./2_sign_in.js";
44
+ import { StoryAlbumManager } from "./2_story_album_manager.js";
44
45
  import { TranslationsManager } from "./2_translations_manager.js";
45
46
  import { UpdateManager } from "./2_update_manager.js";
46
47
  import { ClientEncryptedPool } from "./3_client_encrypted_pool.js";
@@ -81,6 +82,7 @@ export class Client extends Composer {
81
82
  #networkStatisticsManager;
82
83
  #paymentManager;
83
84
  #reactionManager;
85
+ #storyAlbumManager;
84
86
  #translationsManager;
85
87
  #updateManager;
86
88
  // 3_
@@ -112,6 +114,7 @@ export class Client extends Composer {
112
114
  networkStatisticsManager: this.#networkStatisticsManager,
113
115
  paymentManager: this.#paymentManager,
114
116
  reactionManager: this.#reactionManager,
117
+ storyAlbumManager: this.#storyAlbumManager,
115
118
  translationsManager: this.#translationsManager,
116
119
  updateManager: this.#updateManager,
117
120
  // 3_
@@ -237,6 +240,7 @@ export class Client extends Composer {
237
240
  this.#networkStatisticsManager = new NetworkStatisticsManager(c);
238
241
  this.#paymentManager = new PaymentManager(c);
239
242
  this.#reactionManager = new ReactionManager(c);
243
+ this.#storyAlbumManager = new StoryAlbumManager(c);
240
244
  this.#translationsManager = new TranslationsManager(c);
241
245
  this.#updateManager = new UpdateManager(c);
242
246
  // 3_
@@ -1449,7 +1453,7 @@ export class Client extends Composer {
1449
1453
  return await this.#accountManager.resolveUsername(username, params);
1450
1454
  }
1451
1455
  /**
1452
- * Resolve a phone number.
1456
+ * Resolve a phone number. User-only.
1453
1457
  *
1454
1458
  * @method ac
1455
1459
  * @param username The phone number to resolve.
@@ -1458,13 +1462,23 @@ export class Client extends Composer {
1458
1462
  return await this.#accountManager.resolvePhoneNumber(phoneNumber);
1459
1463
  }
1460
1464
  /**
1461
- * Set the list of close friends.
1465
+ * Set the list of close friends. User-only.
1462
1466
  *
1463
1467
  * @method ac
1464
1468
  * @param userIds The identifiers of users to set as close friends.
1465
1469
  */
1466
1470
  async setCloseFriends(userIds) {
1467
- return await this.#accountManager.setCloseFriends(userIds);
1471
+ await this.#accountManager.setCloseFriends(userIds);
1472
+ }
1473
+ /**
1474
+ * Suggest a birthday. User-only.
1475
+ *
1476
+ * @method ac
1477
+ * @param userId The identifier of the user to suggest a birthday for.
1478
+ * @param birthday The birthday to suggest.
1479
+ */
1480
+ async suggestBirthday(userId, birthday) {
1481
+ await this.#accountManager.suggestBirthday(userId, birthday);
1468
1482
  }
1469
1483
  //
1470
1484
  // ========================= MESSAGES ========================= //
@@ -3009,7 +3023,7 @@ export class Client extends Composer {
3009
3023
  /**
3010
3024
  * Set the bot's description in the given language. Bot-only.
3011
3025
  *
3012
- * @method bs
3026
+ * @method bo
3013
3027
  */
3014
3028
  async setMyDescription(params) {
3015
3029
  await this.#botInfoManager.setMyDescription(params);
@@ -3017,7 +3031,7 @@ export class Client extends Composer {
3017
3031
  /**
3018
3032
  * Set the bot's name in the given language. Bot-only.
3019
3033
  *
3020
- * @method bs
3034
+ * @method bo
3021
3035
  */
3022
3036
  async setMyName(params) {
3023
3037
  await this.#botInfoManager.setMyName(params);
@@ -3025,7 +3039,7 @@ export class Client extends Composer {
3025
3039
  /**
3026
3040
  * Set the bot's short description in the given language. Bot-only.
3027
3041
  *
3028
- * @method bs
3042
+ * @method bo
3029
3043
  */
3030
3044
  async setMyShortDescription(params) {
3031
3045
  await this.#botInfoManager.setMyShortDescription(params);
@@ -3033,7 +3047,7 @@ export class Client extends Composer {
3033
3047
  /**
3034
3048
  * Get the bot's description in the given language. Bot-only.
3035
3049
  *
3036
- * @method bs
3050
+ * @method bo
3037
3051
  * @returns The current bot's description in the specified language.
3038
3052
  */
3039
3053
  async getMyDescription(params) {
@@ -3042,7 +3056,7 @@ export class Client extends Composer {
3042
3056
  /**
3043
3057
  * Get the bot's name in the given language. Bot-only.
3044
3058
  *
3045
- * @method bs
3059
+ * @method bo
3046
3060
  * @returns The current bot's name in the specified language.
3047
3061
  */
3048
3062
  async getMyName(params) {
@@ -3051,7 +3065,7 @@ export class Client extends Composer {
3051
3065
  /**
3052
3066
  * Get the bot's short description in the given language. Bot-only.
3053
3067
  *
3054
- * @method bs
3068
+ * @method bo
3055
3069
  * @returns The current bot's short description in the specified language.
3056
3070
  */
3057
3071
  async getMyShortDescription(params) {
@@ -3060,7 +3074,7 @@ export class Client extends Composer {
3060
3074
  /**
3061
3075
  * Set the bot's commands in the given scope and/or language. Bot-only.
3062
3076
  *
3063
- * @method bs
3077
+ * @method bo
3064
3078
  * @param commands The commands to set.
3065
3079
  */
3066
3080
  async setMyCommands(commands, params) {
@@ -3069,7 +3083,7 @@ export class Client extends Composer {
3069
3083
  /**
3070
3084
  * Get the bot's commands in the given scope and/or language. Bot-only.
3071
3085
  *
3072
- * @method bs
3086
+ * @method bo
3073
3087
  * @returns The current bot's commands in the specified language.
3074
3088
  */
3075
3089
  async getMyCommands(params) {
@@ -3210,6 +3224,105 @@ export class Client extends Composer {
3210
3224
  await this.#storyManager.removeStoryFromHighlights(chatId, storyId);
3211
3225
  }
3212
3226
  //
3227
+ // ========================= STORY ALBUMS ========================= //
3228
+ //
3229
+ /**
3230
+ * Create a story album. User-only.
3231
+ *
3232
+ * @method sa
3233
+ * @param chatId The identifier of the chat to create the album in.
3234
+ * @param name The name of the album.
3235
+ * @param storyIds The initial stories inside the album.
3236
+ */
3237
+ async createStoryAlbum(chatId, name, storyIds) {
3238
+ return await this.#storyAlbumManager.createStoryAlbum(chatId, name, storyIds);
3239
+ }
3240
+ /**
3241
+ * Set the name of a story album. User-only.
3242
+ *
3243
+ * @method sa
3244
+ * @param chatId The identifier of the chat including the album.
3245
+ * @param albumId The identifier of the album to rename.
3246
+ * @param name The new name of the album.
3247
+ */
3248
+ async setStoryAlbumName(chatId, albumId, name) {
3249
+ return await this.#storyAlbumManager.setStoryAlbumName(chatId, albumId, name);
3250
+ }
3251
+ /**
3252
+ * Add multiple stories to an album. User-only.
3253
+ *
3254
+ * @method sa
3255
+ * @param chatId The identifier of the chat including the album.
3256
+ * @param albumId The identifier of an album.
3257
+ * @param storyIds The identifiers of the stories to add.
3258
+ */
3259
+ async addStoriesToAlbum(chatId, albumId, storyIds) {
3260
+ return await this.#storyAlbumManager.addStoriesToAlbum(chatId, albumId, storyIds);
3261
+ }
3262
+ /**
3263
+ * Add a single story to an album. User-only.
3264
+ *
3265
+ * @method sa
3266
+ * @param chatId The identifier of the chat including the album.
3267
+ * @param albumId The identifier of an album.
3268
+ * @param storyIds The identifier of the story to add.
3269
+ */
3270
+ async addStoryToAlbum(chatId, albumId, storyId) {
3271
+ return await this.#storyAlbumManager.addStoryToAlbum(chatId, albumId, storyId);
3272
+ }
3273
+ /**
3274
+ * Remove multiple stories from an album. User-only.
3275
+ *
3276
+ * @method sa
3277
+ * @param chatId The identifier of the chat including the album.
3278
+ * @param albumId The identifier of an album.
3279
+ * @param storyIds The identifiers of the stories to remove.
3280
+ */
3281
+ async removeStoriesFromAlbum(chatId, albumId, storyIds) {
3282
+ return await this.#storyAlbumManager.removeStoriesFromAlbum(chatId, albumId, storyIds);
3283
+ }
3284
+ /**
3285
+ * Remove a single story from an album. User-only.
3286
+ *
3287
+ * @method sa
3288
+ * @param chatId The identifier of the chat including the album.
3289
+ * @param albumId The identifier of an album.
3290
+ * @param storyIds The identifier of the story to remove.
3291
+ */
3292
+ async removeStoryFromAlbum(chatId, albumId, storyId) {
3293
+ return await this.#storyAlbumManager.removeStoryFromAlbum(chatId, albumId, storyId);
3294
+ }
3295
+ /**
3296
+ * Reorder stories in an album. User-only.
3297
+ *
3298
+ * @method sa
3299
+ * @param chatId The identifier of the chat including the album.
3300
+ * @param albumId The identifier of an album.
3301
+ * @param storyIds The new order of stories.
3302
+ */
3303
+ async reorderStoriesInAlbum(chatId, albumId, storyIds) {
3304
+ return await this.#storyAlbumManager.reorderStoriesInAlbum(chatId, albumId, storyIds);
3305
+ }
3306
+ /**
3307
+ * Get story albums in a chat. User-only.
3308
+ *
3309
+ * @method sa
3310
+ * @param chatId The identifier of a chat including albums.
3311
+ */
3312
+ async getStoryAlbums(chatId) {
3313
+ return await this.#storyAlbumManager.getStoryAlbums(chatId);
3314
+ }
3315
+ /**
3316
+ * Get stories inside an album. User-only.
3317
+ *
3318
+ * @method sa
3319
+ * @param chatId The identifier of the chat including albums.
3320
+ * @param albumId The identifier of an album.
3321
+ */
3322
+ async getStoriesInAlbum(chatId, albumId) {
3323
+ return await this.#storyAlbumManager.getStoriesInAlbum(chatId, albumId);
3324
+ }
3325
+ //
3213
3326
  // ========================= MISC ========================= //
3214
3327
  //
3215
3328
  /**
@@ -3384,6 +3497,15 @@ export class Client extends Composer {
3384
3497
  async addContact(userId, firstName, params) {
3385
3498
  await this.#contactManager.addContact(userId, firstName, params);
3386
3499
  }
3500
+ /**
3501
+ * Set a contact note.
3502
+ *
3503
+ * @method co
3504
+ * @param userId The identifier of the user to update the note for.
3505
+ */
3506
+ async setContactNote(userId, params) {
3507
+ await this.#contactManager.setContactNote(userId, params);
3508
+ }
3387
3509
  //
3388
3510
  // ========================= TRANSLATIONS ========================= //
3389
3511
  //
@@ -3467,7 +3589,7 @@ export class Client extends Composer {
3467
3589
  // ========================= GIFT COLLECTIONS ========================= //
3468
3590
  //
3469
3591
  /**
3470
- * Get gift collections of a chat.
3592
+ * Get gift collections of a chat. User-only.
3471
3593
  *
3472
3594
  * @method gc
3473
3595
  * @param chatId The identifier of a chat to get gift collections for.
@@ -3476,7 +3598,7 @@ export class Client extends Composer {
3476
3598
  return await this.#giftCollectionManager.getGiftCollections(chatId);
3477
3599
  }
3478
3600
  /**
3479
- * Create a gift collection.
3601
+ * Create a gift collection. User-only.
3480
3602
  *
3481
3603
  * @method gc
3482
3604
  * @param chatId The identifier of a chat to create the gift collection in.
@@ -3487,7 +3609,7 @@ export class Client extends Composer {
3487
3609
  return await this.#giftCollectionManager.createGiftCollection(chatId, name, gifts);
3488
3610
  }
3489
3611
  /**
3490
- * Set the name of a gift collection.
3612
+ * Set the name of a gift collection. User-only.
3491
3613
  *
3492
3614
  * @method gc
3493
3615
  * @param chatId The identifier of the chat that includes the gift collection.
@@ -3498,7 +3620,7 @@ export class Client extends Composer {
3498
3620
  return await this.#giftCollectionManager.setGiftCollectionName(chatId, collectionId, name);
3499
3621
  }
3500
3622
  /**
3501
- * Add gifts to a gift collection.
3623
+ * Add gifts to a gift collection. User-only.
3502
3624
  *
3503
3625
  * @method gc
3504
3626
  * @param chatId The identifier of the chat that includes the gift collection.
@@ -3509,7 +3631,7 @@ export class Client extends Composer {
3509
3631
  return await this.#giftCollectionManager.addGiftsToCollection(chatId, collectionId, gifts);
3510
3632
  }
3511
3633
  /**
3512
- * Remove gifts from a gift collection.
3634
+ * Remove gifts from a gift collection. User-only.
3513
3635
  *
3514
3636
  * @method gc
3515
3637
  * @param chatId The identifier of the chat that includes the gift collection.
@@ -3520,7 +3642,7 @@ export class Client extends Composer {
3520
3642
  return await this.#giftCollectionManager.removeGiftsFromCollection(chatId, collectionId, gifts);
3521
3643
  }
3522
3644
  /**
3523
- * Reorder gifts in a gift collection.
3645
+ * Reorder gifts in a gift collection. User-only.
3524
3646
  *
3525
3647
  * @method gc
3526
3648
  * @param chatId The identifier of the chat that includes the gift collection.
@@ -3531,7 +3653,7 @@ export class Client extends Composer {
3531
3653
  return await this.#giftCollectionManager.reorderGiftsInCollection(chatId, collectionId, gifts);
3532
3654
  }
3533
3655
  /**
3534
- * Delete a gift collection.
3656
+ * Delete a gift collection. User-only.
3535
3657
  *
3536
3658
  * @method gc
3537
3659
  * @param chatId The identifier of the chat that includes the gift collection.
@@ -1,7 +1,8 @@
1
1
  import type { Api, Mtproto } from "../2_tl.js";
2
2
  import type { DC } from "../3_transport.js";
3
- import type { BotCommand, BotTokenCheckResult, BusinessConnection, CallbackQueryAnswer, CallbackQueryQuestion, Chat, ChatActionType, ChatListItem, ChatMember, ChatP, ChatPChannel, ChatPGroup, ChatPPrivate, ChatPSupergroup, ChatSettings, ClaimedGifts, CodeCheckResult, FailedInvitation, FileSource, Gift, GiftCollection, ID, InactiveChat, InlineQueryAnswer, InlineQueryResult, InputChecklistItem, InputEmojiStatus, InputGift, InputMedia, InputPollOption, InputStoryContent, InviteLink, JoinRequest, LinkPreview, LiveStreamChannel, Message, MessageAnimation, MessageAudio, MessageChecklist, MessageContact, MessageDice, MessageDocument, MessageInvoice, MessageList, MessageLocation, MessagePhoto, MessagePoll, MessageReactionList, MessageSticker, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, MiniAppInfo, NetworkStatistics, ParseMode, PasswordCheckResult, Poll, PriceTag, Reaction, SavedChats, SlowModeDuration, Sticker, StickerSet, Story, Topic, Translation, User, VideoChat, VideoChatActive, VideoChatScheduled, VoiceTranscription } from "../3_types.js";
4
- import type { AddChatMemberParams, AddContactParams, AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AnswerPreCheckoutQueryParams, ApproveJoinRequestsParams, BanChatMemberParams, CheckUsernameParams, CreateChannelParams, CreateGroupParams, CreateInviteLinkParams, CreateStoryParams, CreateSupergroupParams, CreateTopicParams, DeclineJoinRequestsParams, DeleteMessageParams, DeleteMessagesParams, DownloadLiveStreamSegmentParams, DownloadParams, EditInlineMessageCaptionParams, EditInlineMessageMediaParams, EditInlineMessageTextParams, EditMessageCaptionParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageReplyMarkupParams, EditMessageTextParams, EditTopicParams, EnableSignaturesParams, ForwardMessagesParams, GetChatMembersParams, GetChatsParams, GetClaimedGiftsParams, GetCommonChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetJoinRequestsParams, GetLinkPreviewParams, GetMessageReactionsParams, GetMyCommandsParams, GetSavedChatsParams, GetSavedMessagesParams, GetTranslationsParams, InvokeParams, JoinVideoChatParams, OpenChatParams, OpenMiniAppParams, PinMessageParams, PromoteChatMemberParams, ResolveUsernameParams, ScheduleVideoChatParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendChecklistParams, SendContactParams, SendDiceParams, SendDocumentParams, SendGiftParams, SendInlineQueryParams, SendInvoiceParams, SendLocationParams, SendMediaGroupParams, SendMessageDraftParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetBirthdayParams, SetChatMemberRightsParams, SetChatMemberTagParams, SetChatPhotoParams, SetEmojiStatusParams, SetLocationParams, SetMyCommandsParams, SetNameColorParams, SetPersonalChannelParams, SetProfileColorParams, SetReactionsParams, SetWorkingHoursParams, SignInParams, StartBotParams, StartVideoChatParams, StopPollParams, UnpinMessageParams, UnpinMessagesParams, UpdateChecklistParams, UpdateProfileParams } from "./0_params.js";
3
+ import type { Birthday, BotCommand, BotTokenCheckResult, BusinessConnection, CallbackQueryAnswer, CallbackQueryQuestion, Chat, ChatActionType, ChatListItem, ChatMember, ChatP, ChatPChannel, ChatPGroup, ChatPPrivate, ChatPSupergroup, ChatSettings, ClaimedGifts, CodeCheckResult, FailedInvitation, FileSource, Gift, GiftCollection, ID, InactiveChat, InlineQueryAnswer, InlineQueryResult, InputChecklistItem, InputEmojiStatus, InputGift, InputMedia, InputPollOption, InputStoryContent, InviteLink, JoinRequest, LinkPreview, LiveStreamChannel, Message, MessageAnimation, MessageAudio, MessageChecklist, MessageContact, MessageDice, MessageDocument, MessageInvoice, MessageList, MessageLocation, MessagePhoto, MessagePoll, MessageReactionList, MessageSticker, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageVoice, MiniAppInfo, NetworkStatistics, ParseMode, PasswordCheckResult, Poll, PriceTag, Reaction, SavedChats, SlowModeDuration, Sticker, StickerSet, Story, StoryAlbum, Topic, Translation, User, VideoChat, VideoChatActive, VideoChatScheduled, VoiceTranscription } from "../3_types.js";
4
+ import type { AlbumStoryList } from "../types/4_album_story_list.js";
5
+ import type { AddChatMemberParams, AddContactParams, AddReactionParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AnswerPreCheckoutQueryParams, ApproveJoinRequestsParams, BanChatMemberParams, CheckUsernameParams, CreateChannelParams, CreateGroupParams, CreateInviteLinkParams, CreateStoryParams, CreateSupergroupParams, CreateTopicParams, DeclineJoinRequestsParams, DeleteMessageParams, DeleteMessagesParams, DownloadLiveStreamSegmentParams, DownloadParams, EditInlineMessageCaptionParams, EditInlineMessageMediaParams, EditInlineMessageTextParams, EditMessageCaptionParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageReplyMarkupParams, EditMessageTextParams, EditTopicParams, EnableSignaturesParams, ForwardMessagesParams, GetChatMembersParams, GetChatsParams, GetClaimedGiftsParams, GetCommonChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetJoinRequestsParams, GetLinkPreviewParams, GetMessageReactionsParams, GetMyCommandsParams, GetSavedChatsParams, GetSavedMessagesParams, GetTranslationsParams, InvokeParams, JoinVideoChatParams, OpenChatParams, OpenMiniAppParams, PinMessageParams, PromoteChatMemberParams, ResolveUsernameParams, ScheduleVideoChatParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendChecklistParams, SendContactParams, SendDiceParams, SendDocumentParams, SendGiftParams, SendInlineQueryParams, SendInvoiceParams, SendLocationParams, SendMediaGroupParams, SendMessageDraftParams, SendMessageParams, SendPhotoParams, SendPollParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetBirthdayParams, SetChatMemberRightsParams, SetChatMemberTagParams, SetChatPhotoParams, SetContactNoteParams, SetEmojiStatusParams, SetLocationParams, SetMyCommandsParams, SetNameColorParams, SetPersonalChannelParams, SetProfileColorParams, SetReactionsParams, SetWorkingHoursParams, SignInParams, StartBotParams, StartVideoChatParams, StopPollParams, UnpinMessageParams, UnpinMessagesParams, UpdateChecklistParams, UpdateProfileParams } from "./0_params.js";
5
6
  import type { WorkerRequest } from "./0_worker_request.js";
6
7
  import type { ClientGeneric } from "./1_client_generic.js";
7
8
  import { type InvokeErrorHandler } from "./1_invoke_middleware.js";
@@ -343,19 +344,27 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
343
344
  */
344
345
  resolveUsername(username: string, params?: ResolveUsernameParams): Promise<ChatP>;
345
346
  /**
346
- * Resolve a phone number.
347
+ * Resolve a phone number. User-only.
347
348
  *
348
349
  * @method ac
349
350
  * @param username The phone number to resolve.
350
351
  */
351
352
  resolvePhoneNumber(phoneNumber: string): Promise<User>;
352
353
  /**
353
- * Set the list of close friends.
354
+ * Set the list of close friends. User-only.
354
355
  *
355
356
  * @method ac
356
357
  * @param userIds The identifiers of users to set as close friends.
357
358
  */
358
359
  setCloseFriends(userIds: ID[]): Promise<void>;
360
+ /**
361
+ * Suggest a birthday. User-only.
362
+ *
363
+ * @method ac
364
+ * @param userId The identifier of the user to suggest a birthday for.
365
+ * @param birthday The birthday to suggest.
366
+ */
367
+ suggestBirthday(userId: ID, birthday: Birthday): Promise<void>;
359
368
  /**
360
369
  * Send a text message.
361
370
  *
@@ -1566,7 +1575,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1566
1575
  /**
1567
1576
  * Set the bot's description in the given language. Bot-only.
1568
1577
  *
1569
- * @method bs
1578
+ * @method bo
1570
1579
  */
1571
1580
  setMyDescription(params?: {
1572
1581
  description?: string;
@@ -1575,7 +1584,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1575
1584
  /**
1576
1585
  * Set the bot's name in the given language. Bot-only.
1577
1586
  *
1578
- * @method bs
1587
+ * @method bo
1579
1588
  */
1580
1589
  setMyName(params?: {
1581
1590
  name?: string;
@@ -1584,7 +1593,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1584
1593
  /**
1585
1594
  * Set the bot's short description in the given language. Bot-only.
1586
1595
  *
1587
- * @method bs
1596
+ * @method bo
1588
1597
  */
1589
1598
  setMyShortDescription(params?: {
1590
1599
  shortDescription?: string;
@@ -1593,7 +1602,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1593
1602
  /**
1594
1603
  * Get the bot's description in the given language. Bot-only.
1595
1604
  *
1596
- * @method bs
1605
+ * @method bo
1597
1606
  * @returns The current bot's description in the specified language.
1598
1607
  */
1599
1608
  getMyDescription(params?: {
@@ -1602,7 +1611,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1602
1611
  /**
1603
1612
  * Get the bot's name in the given language. Bot-only.
1604
1613
  *
1605
- * @method bs
1614
+ * @method bo
1606
1615
  * @returns The current bot's name in the specified language.
1607
1616
  */
1608
1617
  getMyName(params?: {
@@ -1611,7 +1620,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1611
1620
  /**
1612
1621
  * Get the bot's short description in the given language. Bot-only.
1613
1622
  *
1614
- * @method bs
1623
+ * @method bo
1615
1624
  * @returns The current bot's short description in the specified language.
1616
1625
  */
1617
1626
  getMyShortDescription(params?: {
@@ -1620,14 +1629,14 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1620
1629
  /**
1621
1630
  * Set the bot's commands in the given scope and/or language. Bot-only.
1622
1631
  *
1623
- * @method bs
1632
+ * @method bo
1624
1633
  * @param commands The commands to set.
1625
1634
  */
1626
1635
  setMyCommands(commands: BotCommand[], params?: SetMyCommandsParams): Promise<void>;
1627
1636
  /**
1628
1637
  * Get the bot's commands in the given scope and/or language. Bot-only.
1629
1638
  *
1630
- * @method bs
1639
+ * @method bo
1631
1640
  * @returns The current bot's commands in the specified language.
1632
1641
  */
1633
1642
  getMyCommands(params?: GetMyCommandsParams): Promise<BotCommand[]>;
@@ -1732,6 +1741,84 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1732
1741
  * @param storyId The identifier of the story to remove from highlights.
1733
1742
  */
1734
1743
  removeStoryFromHighlights(chatId: ID, storyId: number): Promise<void>;
1744
+ /**
1745
+ * Create a story album. User-only.
1746
+ *
1747
+ * @method sa
1748
+ * @param chatId The identifier of the chat to create the album in.
1749
+ * @param name The name of the album.
1750
+ * @param storyIds The initial stories inside the album.
1751
+ */
1752
+ createStoryAlbum(chatId: ID, name: string, storyIds: number[]): Promise<StoryAlbum>;
1753
+ /**
1754
+ * Set the name of a story album. User-only.
1755
+ *
1756
+ * @method sa
1757
+ * @param chatId The identifier of the chat including the album.
1758
+ * @param albumId The identifier of the album to rename.
1759
+ * @param name The new name of the album.
1760
+ */
1761
+ setStoryAlbumName(chatId: ID, albumId: number, name: string): Promise<StoryAlbum>;
1762
+ /**
1763
+ * Add multiple stories to an album. User-only.
1764
+ *
1765
+ * @method sa
1766
+ * @param chatId The identifier of the chat including the album.
1767
+ * @param albumId The identifier of an album.
1768
+ * @param storyIds The identifiers of the stories to add.
1769
+ */
1770
+ addStoriesToAlbum(chatId: ID, albumId: number, storyIds: number[]): Promise<StoryAlbum>;
1771
+ /**
1772
+ * Add a single story to an album. User-only.
1773
+ *
1774
+ * @method sa
1775
+ * @param chatId The identifier of the chat including the album.
1776
+ * @param albumId The identifier of an album.
1777
+ * @param storyIds The identifier of the story to add.
1778
+ */
1779
+ addStoryToAlbum(chatId: ID, albumId: number, storyId: number): Promise<StoryAlbum>;
1780
+ /**
1781
+ * Remove multiple stories from an album. User-only.
1782
+ *
1783
+ * @method sa
1784
+ * @param chatId The identifier of the chat including the album.
1785
+ * @param albumId The identifier of an album.
1786
+ * @param storyIds The identifiers of the stories to remove.
1787
+ */
1788
+ removeStoriesFromAlbum(chatId: ID, albumId: number, storyIds: number[]): Promise<StoryAlbum>;
1789
+ /**
1790
+ * Remove a single story from an album. User-only.
1791
+ *
1792
+ * @method sa
1793
+ * @param chatId The identifier of the chat including the album.
1794
+ * @param albumId The identifier of an album.
1795
+ * @param storyIds The identifier of the story to remove.
1796
+ */
1797
+ removeStoryFromAlbum(chatId: ID, albumId: number, storyId: number): Promise<StoryAlbum>;
1798
+ /**
1799
+ * Reorder stories in an album. User-only.
1800
+ *
1801
+ * @method sa
1802
+ * @param chatId The identifier of the chat including the album.
1803
+ * @param albumId The identifier of an album.
1804
+ * @param storyIds The new order of stories.
1805
+ */
1806
+ reorderStoriesInAlbum(chatId: ID, albumId: number, storyIds: number[]): Promise<StoryAlbum>;
1807
+ /**
1808
+ * Get story albums in a chat. User-only.
1809
+ *
1810
+ * @method sa
1811
+ * @param chatId The identifier of a chat including albums.
1812
+ */
1813
+ getStoryAlbums(chatId: ID): Promise<StoryAlbum[]>;
1814
+ /**
1815
+ * Get stories inside an album. User-only.
1816
+ *
1817
+ * @method sa
1818
+ * @param chatId The identifier of the chat including albums.
1819
+ * @param albumId The identifier of an album.
1820
+ */
1821
+ getStoriesInAlbum(chatId: ID, albumId: number): Promise<AlbumStoryList>;
1735
1822
  /**
1736
1823
  * Get network statistics. This might not always be available.
1737
1824
  *
@@ -1861,6 +1948,13 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1861
1948
  * @param firstName The contact's first name.
1862
1949
  */
1863
1950
  addContact(userId: ID, firstName: string, params?: AddContactParams): Promise<void>;
1951
+ /**
1952
+ * Set a contact note.
1953
+ *
1954
+ * @method co
1955
+ * @param userId The identifier of the user to update the note for.
1956
+ */
1957
+ setContactNote(userId: ID, params?: SetContactNoteParams): Promise<void>;
1864
1958
  /**
1865
1959
  * Get translations. User-only.
1866
1960
  *
@@ -1919,14 +2013,14 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1919
2013
  */
1920
2014
  transferGift(chatId: ID, gift: InputGift): Promise<void>;
1921
2015
  /**
1922
- * Get gift collections of a chat.
2016
+ * Get gift collections of a chat. User-only.
1923
2017
  *
1924
2018
  * @method gc
1925
2019
  * @param chatId The identifier of a chat to get gift collections for.
1926
2020
  */
1927
2021
  getGiftCollections(chatId: ID): Promise<GiftCollection[]>;
1928
2022
  /**
1929
- * Create a gift collection.
2023
+ * Create a gift collection. User-only.
1930
2024
  *
1931
2025
  * @method gc
1932
2026
  * @param chatId The identifier of a chat to create the gift collection in.
@@ -1935,7 +2029,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1935
2029
  */
1936
2030
  createGiftCollection(chatId: ID, name: string, gifts: InputGift[]): Promise<GiftCollection>;
1937
2031
  /**
1938
- * Set the name of a gift collection.
2032
+ * Set the name of a gift collection. User-only.
1939
2033
  *
1940
2034
  * @method gc
1941
2035
  * @param chatId The identifier of the chat that includes the gift collection.
@@ -1944,7 +2038,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1944
2038
  */
1945
2039
  setGiftCollectionName(chatId: ID, collectionId: number, name: string): Promise<GiftCollection>;
1946
2040
  /**
1947
- * Add gifts to a gift collection.
2041
+ * Add gifts to a gift collection. User-only.
1948
2042
  *
1949
2043
  * @method gc
1950
2044
  * @param chatId The identifier of the chat that includes the gift collection.
@@ -1953,7 +2047,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1953
2047
  */
1954
2048
  addGiftsToCollection(chatId: ID, collectionId: number, gifts: InputGift[]): Promise<GiftCollection>;
1955
2049
  /**
1956
- * Remove gifts from a gift collection.
2050
+ * Remove gifts from a gift collection. User-only.
1957
2051
  *
1958
2052
  * @method gc
1959
2053
  * @param chatId The identifier of the chat that includes the gift collection.
@@ -1962,7 +2056,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1962
2056
  */
1963
2057
  removeGiftsFromCollection(chatId: ID, collectionId: number, gifts: InputGift[]): Promise<GiftCollection>;
1964
2058
  /**
1965
- * Reorder gifts in a gift collection.
2059
+ * Reorder gifts in a gift collection. User-only.
1966
2060
  *
1967
2061
  * @method gc
1968
2062
  * @param chatId The identifier of the chat that includes the gift collection.
@@ -1971,7 +2065,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1971
2065
  */
1972
2066
  reorderGiftsInCollection(chatId: ID, collectionId: number, gifts: InputGift[]): Promise<GiftCollection>;
1973
2067
  /**
1974
- * Delete a gift collection.
2068
+ * Delete a gift collection. User-only.
1975
2069
  *
1976
2070
  * @method gc
1977
2071
  * @param chatId The identifier of the chat that includes the gift collection.