@mtkruto/browser 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.
@@ -19,8 +19,9 @@
19
19
  */
20
20
  import type { Api, Mtproto } from "../2_tl.js";
21
21
  import type { DC } from "../3_transport.js";
22
- 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";
23
- 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";
22
+ 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";
23
+ import type { AlbumStoryList } from "../types/4_album_story_list.js";
24
+ 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";
24
25
  import type { WorkerRequest } from "./0_worker_request.js";
25
26
  import type { ClientGeneric } from "./1_client_generic.js";
26
27
  import { type InvokeErrorHandler } from "./1_invoke_middleware.js";
@@ -362,19 +363,27 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
362
363
  */
363
364
  resolveUsername(username: string, params?: ResolveUsernameParams): Promise<ChatP>;
364
365
  /**
365
- * Resolve a phone number.
366
+ * Resolve a phone number. User-only.
366
367
  *
367
368
  * @method ac
368
369
  * @param username The phone number to resolve.
369
370
  */
370
371
  resolvePhoneNumber(phoneNumber: string): Promise<User>;
371
372
  /**
372
- * Set the list of close friends.
373
+ * Set the list of close friends. User-only.
373
374
  *
374
375
  * @method ac
375
376
  * @param userIds The identifiers of users to set as close friends.
376
377
  */
377
378
  setCloseFriends(userIds: ID[]): Promise<void>;
379
+ /**
380
+ * Suggest a birthday. User-only.
381
+ *
382
+ * @method ac
383
+ * @param userId The identifier of the user to suggest a birthday for.
384
+ * @param birthday The birthday to suggest.
385
+ */
386
+ suggestBirthday(userId: ID, birthday: Birthday): Promise<void>;
378
387
  /**
379
388
  * Send a text message.
380
389
  *
@@ -1585,7 +1594,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1585
1594
  /**
1586
1595
  * Set the bot's description in the given language. Bot-only.
1587
1596
  *
1588
- * @method bs
1597
+ * @method bo
1589
1598
  */
1590
1599
  setMyDescription(params?: {
1591
1600
  description?: string;
@@ -1594,7 +1603,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1594
1603
  /**
1595
1604
  * Set the bot's name in the given language. Bot-only.
1596
1605
  *
1597
- * @method bs
1606
+ * @method bo
1598
1607
  */
1599
1608
  setMyName(params?: {
1600
1609
  name?: string;
@@ -1603,7 +1612,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1603
1612
  /**
1604
1613
  * Set the bot's short description in the given language. Bot-only.
1605
1614
  *
1606
- * @method bs
1615
+ * @method bo
1607
1616
  */
1608
1617
  setMyShortDescription(params?: {
1609
1618
  shortDescription?: string;
@@ -1612,7 +1621,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1612
1621
  /**
1613
1622
  * Get the bot's description in the given language. Bot-only.
1614
1623
  *
1615
- * @method bs
1624
+ * @method bo
1616
1625
  * @returns The current bot's description in the specified language.
1617
1626
  */
1618
1627
  getMyDescription(params?: {
@@ -1621,7 +1630,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1621
1630
  /**
1622
1631
  * Get the bot's name in the given language. Bot-only.
1623
1632
  *
1624
- * @method bs
1633
+ * @method bo
1625
1634
  * @returns The current bot's name in the specified language.
1626
1635
  */
1627
1636
  getMyName(params?: {
@@ -1630,7 +1639,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1630
1639
  /**
1631
1640
  * Get the bot's short description in the given language. Bot-only.
1632
1641
  *
1633
- * @method bs
1642
+ * @method bo
1634
1643
  * @returns The current bot's short description in the specified language.
1635
1644
  */
1636
1645
  getMyShortDescription(params?: {
@@ -1639,14 +1648,14 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1639
1648
  /**
1640
1649
  * Set the bot's commands in the given scope and/or language. Bot-only.
1641
1650
  *
1642
- * @method bs
1651
+ * @method bo
1643
1652
  * @param commands The commands to set.
1644
1653
  */
1645
1654
  setMyCommands(commands: BotCommand[], params?: SetMyCommandsParams): Promise<void>;
1646
1655
  /**
1647
1656
  * Get the bot's commands in the given scope and/or language. Bot-only.
1648
1657
  *
1649
- * @method bs
1658
+ * @method bo
1650
1659
  * @returns The current bot's commands in the specified language.
1651
1660
  */
1652
1661
  getMyCommands(params?: GetMyCommandsParams): Promise<BotCommand[]>;
@@ -1751,6 +1760,84 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1751
1760
  * @param storyId The identifier of the story to remove from highlights.
1752
1761
  */
1753
1762
  removeStoryFromHighlights(chatId: ID, storyId: number): Promise<void>;
1763
+ /**
1764
+ * Create a story album. User-only.
1765
+ *
1766
+ * @method sa
1767
+ * @param chatId The identifier of the chat to create the album in.
1768
+ * @param name The name of the album.
1769
+ * @param storyIds The initial stories inside the album.
1770
+ */
1771
+ createStoryAlbum(chatId: ID, name: string, storyIds: number[]): Promise<StoryAlbum>;
1772
+ /**
1773
+ * Set the name of a story album. User-only.
1774
+ *
1775
+ * @method sa
1776
+ * @param chatId The identifier of the chat including the album.
1777
+ * @param albumId The identifier of the album to rename.
1778
+ * @param name The new name of the album.
1779
+ */
1780
+ setStoryAlbumName(chatId: ID, albumId: number, name: string): Promise<StoryAlbum>;
1781
+ /**
1782
+ * Add multiple stories to an album. User-only.
1783
+ *
1784
+ * @method sa
1785
+ * @param chatId The identifier of the chat including the album.
1786
+ * @param albumId The identifier of an album.
1787
+ * @param storyIds The identifiers of the stories to add.
1788
+ */
1789
+ addStoriesToAlbum(chatId: ID, albumId: number, storyIds: number[]): Promise<StoryAlbum>;
1790
+ /**
1791
+ * Add a single story to an album. User-only.
1792
+ *
1793
+ * @method sa
1794
+ * @param chatId The identifier of the chat including the album.
1795
+ * @param albumId The identifier of an album.
1796
+ * @param storyIds The identifier of the story to add.
1797
+ */
1798
+ addStoryToAlbum(chatId: ID, albumId: number, storyId: number): Promise<StoryAlbum>;
1799
+ /**
1800
+ * Remove multiple stories from an album. User-only.
1801
+ *
1802
+ * @method sa
1803
+ * @param chatId The identifier of the chat including the album.
1804
+ * @param albumId The identifier of an album.
1805
+ * @param storyIds The identifiers of the stories to remove.
1806
+ */
1807
+ removeStoriesFromAlbum(chatId: ID, albumId: number, storyIds: number[]): Promise<StoryAlbum>;
1808
+ /**
1809
+ * Remove a single story from an album. User-only.
1810
+ *
1811
+ * @method sa
1812
+ * @param chatId The identifier of the chat including the album.
1813
+ * @param albumId The identifier of an album.
1814
+ * @param storyIds The identifier of the story to remove.
1815
+ */
1816
+ removeStoryFromAlbum(chatId: ID, albumId: number, storyId: number): Promise<StoryAlbum>;
1817
+ /**
1818
+ * Reorder stories in an album. User-only.
1819
+ *
1820
+ * @method sa
1821
+ * @param chatId The identifier of the chat including the album.
1822
+ * @param albumId The identifier of an album.
1823
+ * @param storyIds The new order of stories.
1824
+ */
1825
+ reorderStoriesInAlbum(chatId: ID, albumId: number, storyIds: number[]): Promise<StoryAlbum>;
1826
+ /**
1827
+ * Get story albums in a chat. User-only.
1828
+ *
1829
+ * @method sa
1830
+ * @param chatId The identifier of a chat including albums.
1831
+ */
1832
+ getStoryAlbums(chatId: ID): Promise<StoryAlbum[]>;
1833
+ /**
1834
+ * Get stories inside an album. User-only.
1835
+ *
1836
+ * @method sa
1837
+ * @param chatId The identifier of the chat including albums.
1838
+ * @param albumId The identifier of an album.
1839
+ */
1840
+ getStoriesInAlbum(chatId: ID, albumId: number): Promise<AlbumStoryList>;
1754
1841
  /**
1755
1842
  * Get network statistics. This might not always be available.
1756
1843
  *
@@ -1880,6 +1967,13 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1880
1967
  * @param firstName The contact's first name.
1881
1968
  */
1882
1969
  addContact(userId: ID, firstName: string, params?: AddContactParams): Promise<void>;
1970
+ /**
1971
+ * Set a contact note.
1972
+ *
1973
+ * @method co
1974
+ * @param userId The identifier of the user to update the note for.
1975
+ */
1976
+ setContactNote(userId: ID, params?: SetContactNoteParams): Promise<void>;
1883
1977
  /**
1884
1978
  * Get translations. User-only.
1885
1979
  *
@@ -1938,14 +2032,14 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1938
2032
  */
1939
2033
  transferGift(chatId: ID, gift: InputGift): Promise<void>;
1940
2034
  /**
1941
- * Get gift collections of a chat.
2035
+ * Get gift collections of a chat. User-only.
1942
2036
  *
1943
2037
  * @method gc
1944
2038
  * @param chatId The identifier of a chat to get gift collections for.
1945
2039
  */
1946
2040
  getGiftCollections(chatId: ID): Promise<GiftCollection[]>;
1947
2041
  /**
1948
- * Create a gift collection.
2042
+ * Create a gift collection. User-only.
1949
2043
  *
1950
2044
  * @method gc
1951
2045
  * @param chatId The identifier of a chat to create the gift collection in.
@@ -1954,7 +2048,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1954
2048
  */
1955
2049
  createGiftCollection(chatId: ID, name: string, gifts: InputGift[]): Promise<GiftCollection>;
1956
2050
  /**
1957
- * Set the name of a gift collection.
2051
+ * Set the name of a gift collection. User-only.
1958
2052
  *
1959
2053
  * @method gc
1960
2054
  * @param chatId The identifier of the chat that includes the gift collection.
@@ -1963,7 +2057,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1963
2057
  */
1964
2058
  setGiftCollectionName(chatId: ID, collectionId: number, name: string): Promise<GiftCollection>;
1965
2059
  /**
1966
- * Add gifts to a gift collection.
2060
+ * Add gifts to a gift collection. User-only.
1967
2061
  *
1968
2062
  * @method gc
1969
2063
  * @param chatId The identifier of the chat that includes the gift collection.
@@ -1972,7 +2066,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1972
2066
  */
1973
2067
  addGiftsToCollection(chatId: ID, collectionId: number, gifts: InputGift[]): Promise<GiftCollection>;
1974
2068
  /**
1975
- * Remove gifts from a gift collection.
2069
+ * Remove gifts from a gift collection. User-only.
1976
2070
  *
1977
2071
  * @method gc
1978
2072
  * @param chatId The identifier of the chat that includes the gift collection.
@@ -1981,7 +2075,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1981
2075
  */
1982
2076
  removeGiftsFromCollection(chatId: ID, collectionId: number, gifts: InputGift[]): Promise<GiftCollection>;
1983
2077
  /**
1984
- * Reorder gifts in a gift collection.
2078
+ * Reorder gifts in a gift collection. User-only.
1985
2079
  *
1986
2080
  * @method gc
1987
2081
  * @param chatId The identifier of the chat that includes the gift collection.
@@ -1990,7 +2084,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
1990
2084
  */
1991
2085
  reorderGiftsInCollection(chatId: ID, collectionId: number, gifts: InputGift[]): Promise<GiftCollection>;
1992
2086
  /**
1993
- * Delete a gift collection.
2087
+ * Delete a gift collection. User-only.
1994
2088
  *
1995
2089
  * @method gc
1996
2090
  * @param chatId The identifier of the chat that includes the gift collection.