@mtkruto/node 0.192.0 → 0.193.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.
- package/README.md +5 -5
- package/esm/3_types.d.ts +6 -2
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +6 -2
- package/esm/client/0_html.d.ts +2 -1
- package/esm/client/0_html.d.ts.map +1 -1
- package/esm/client/0_html.js +18 -16
- package/esm/client/0_markdown.d.ts +3 -2
- package/esm/client/0_markdown.d.ts.map +1 -1
- package/esm/client/0_markdown.js +6 -4
- package/esm/client/0_params.d.ts +44 -0
- package/esm/client/0_params.d.ts.map +1 -1
- package/esm/client/1_client_generic.d.ts +122 -11
- package/esm/client/1_client_generic.d.ts.map +1 -1
- package/esm/client/3_account_manager.d.ts +5 -1
- package/esm/client/3_account_manager.d.ts.map +1 -1
- package/esm/client/3_account_manager.js +40 -2
- package/esm/client/3_message_manager.js +1 -1
- package/esm/client/3_secret_chat_manager.d.ts +7 -2
- package/esm/client/3_secret_chat_manager.d.ts.map +1 -1
- package/esm/client/3_secret_chat_manager.js +65 -16
- package/esm/client/3_sticker_set_manager.d.ts +5 -0
- package/esm/client/3_sticker_set_manager.d.ts.map +1 -1
- package/esm/client/3_sticker_set_manager.js +40 -9
- package/esm/client/4_chat_manager.d.ts +5 -1
- package/esm/client/4_chat_manager.d.ts.map +1 -1
- package/esm/client/4_chat_manager.js +59 -1
- package/esm/client/4_checklist_manager.js +1 -1
- package/esm/client/4_context.d.ts +10 -2
- package/esm/client/4_context.d.ts.map +1 -1
- package/esm/client/4_context.js +23 -0
- package/esm/client/4_forum_manager.d.ts +1 -0
- package/esm/client/4_forum_manager.d.ts.map +1 -1
- package/esm/client/4_forum_manager.js +5 -0
- package/esm/client/6_client.d.ts +120 -9
- package/esm/client/6_client.d.ts.map +1 -1
- package/esm/client/6_client.js +150 -7
- package/esm/client/6_client_dispatcher.d.ts +120 -9
- package/esm/client/6_client_dispatcher.d.ts.map +1 -1
- package/esm/client/6_client_dispatcher.js +150 -7
- package/esm/types/1_available_reactions.d.ts +3 -2
- package/esm/types/1_available_reactions.d.ts.map +1 -1
- package/esm/types/1_available_reactions.js +18 -1
- package/esm/types/1_channel_location.d.ts +8 -0
- package/esm/types/1_channel_location.d.ts.map +1 -0
- package/esm/types/1_channel_location.js +11 -0
- package/esm/types/1_sticker_set_p.d.ts +48 -0
- package/esm/types/1_sticker_set_p.d.ts.map +1 -0
- package/esm/types/1_sticker_set_p.js +73 -0
- package/esm/types/2_poll_voter.d.ts +19 -0
- package/esm/types/2_poll_voter.d.ts.map +1 -1
- package/esm/types/2_poll_voter.js +19 -0
- package/esm/types/3_rich_text_component.d.ts +24 -0
- package/esm/types/3_rich_text_component.d.ts.map +1 -1
- package/esm/types/4_page_block.d.ts +45 -1
- package/esm/types/4_page_block.d.ts.map +1 -1
- package/esm/types/B_recent_action.d.ts +225 -0
- package/esm/types/B_recent_action.d.ts.map +1 -0
- package/esm/types/B_recent_action.js +303 -0
- package/esm/types/B_topic_list_item.d.ts +22 -0
- package/esm/types/B_topic_list_item.d.ts.map +1 -1
- package/esm/types/B_topic_list_item.js +19 -0
- package/esm/types/C_recent_actions_entry.d.ts +13 -0
- package/esm/types/C_recent_actions_entry.d.ts.map +1 -0
- package/esm/types/C_recent_actions_entry.js +13 -0
- package/esm/types/C_topic_list.d.ts +20 -0
- package/esm/types/C_topic_list.d.ts.map +1 -1
- package/esm/types/C_topic_list.js +19 -0
- package/package.json +1 -1
- package/script/3_types.d.ts +6 -2
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +6 -2
- package/script/client/0_html.d.ts +2 -1
- package/script/client/0_html.d.ts.map +1 -1
- package/script/client/0_html.js +17 -15
- package/script/client/0_markdown.d.ts +3 -2
- package/script/client/0_markdown.d.ts.map +1 -1
- package/script/client/0_markdown.js +5 -3
- package/script/client/0_params.d.ts +44 -0
- package/script/client/0_params.d.ts.map +1 -1
- package/script/client/1_client_generic.d.ts +122 -11
- package/script/client/1_client_generic.d.ts.map +1 -1
- package/script/client/3_account_manager.d.ts +5 -1
- package/script/client/3_account_manager.d.ts.map +1 -1
- package/script/client/3_account_manager.js +40 -2
- package/script/client/3_message_manager.js +1 -1
- package/script/client/3_secret_chat_manager.d.ts +7 -2
- package/script/client/3_secret_chat_manager.d.ts.map +1 -1
- package/script/client/3_secret_chat_manager.js +65 -16
- package/script/client/3_sticker_set_manager.d.ts +5 -0
- package/script/client/3_sticker_set_manager.d.ts.map +1 -1
- package/script/client/3_sticker_set_manager.js +39 -8
- package/script/client/4_chat_manager.d.ts +5 -1
- package/script/client/4_chat_manager.d.ts.map +1 -1
- package/script/client/4_chat_manager.js +58 -0
- package/script/client/4_checklist_manager.js +1 -1
- package/script/client/4_context.d.ts +10 -2
- package/script/client/4_context.d.ts.map +1 -1
- package/script/client/4_context.js +23 -0
- package/script/client/4_forum_manager.d.ts +1 -0
- package/script/client/4_forum_manager.d.ts.map +1 -1
- package/script/client/4_forum_manager.js +5 -0
- package/script/client/6_client.d.ts +120 -9
- package/script/client/6_client.d.ts.map +1 -1
- package/script/client/6_client.js +150 -7
- package/script/client/6_client_dispatcher.d.ts +120 -9
- package/script/client/6_client_dispatcher.d.ts.map +1 -1
- package/script/client/6_client_dispatcher.js +150 -7
- package/script/types/1_available_reactions.d.ts +3 -2
- package/script/types/1_available_reactions.d.ts.map +1 -1
- package/script/types/1_available_reactions.js +18 -0
- package/script/types/1_channel_location.d.ts +8 -0
- package/script/types/1_channel_location.d.ts.map +1 -0
- package/script/types/1_channel_location.js +14 -0
- package/script/types/1_sticker_set_p.d.ts +48 -0
- package/script/types/1_sticker_set_p.d.ts.map +1 -0
- package/script/types/1_sticker_set_p.js +76 -0
- package/script/types/2_poll_voter.d.ts +19 -0
- package/script/types/2_poll_voter.d.ts.map +1 -1
- package/script/types/2_poll_voter.js +19 -0
- package/script/types/3_rich_text_component.d.ts +24 -0
- package/script/types/3_rich_text_component.d.ts.map +1 -1
- package/script/types/4_page_block.d.ts +45 -1
- package/script/types/4_page_block.d.ts.map +1 -1
- package/script/types/B_recent_action.d.ts +225 -0
- package/script/types/B_recent_action.d.ts.map +1 -0
- package/script/types/B_recent_action.js +306 -0
- package/script/types/B_topic_list_item.d.ts +22 -0
- package/script/types/B_topic_list_item.d.ts.map +1 -1
- package/script/types/B_topic_list_item.js +19 -0
- package/script/types/C_recent_actions_entry.d.ts +13 -0
- package/script/types/C_recent_actions_entry.d.ts.map +1 -0
- package/script/types/C_recent_actions_entry.js +16 -0
- package/script/types/C_topic_list.d.ts +20 -0
- package/script/types/C_topic_list.d.ts.map +1 -1
- package/script/types/C_topic_list.js +19 -0
|
@@ -555,6 +555,32 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
|
+
/**
|
|
559
|
+
* Get application configuration. User-only.
|
|
560
|
+
*
|
|
561
|
+
* @method ac
|
|
562
|
+
*/
|
|
563
|
+
async getApplicationConfiguration() {
|
|
564
|
+
return await this.#accountManager.getApplicationConfiguration();
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* Allow a bot to set custom emoji status. User-only.
|
|
568
|
+
*
|
|
569
|
+
* @param botId The user identifier of the bot.
|
|
570
|
+
* @method ac
|
|
571
|
+
*/
|
|
572
|
+
async allowBotToSetCustomEmojiStatus(botId) {
|
|
573
|
+
return await this.#accountManager.allowBotToSetCustomEmojiStatus(botId);
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Disallow a bot to set custom emoji status. User-only.
|
|
577
|
+
*
|
|
578
|
+
* @param botId The user identifier of the bot.
|
|
579
|
+
* @method ac
|
|
580
|
+
*/
|
|
581
|
+
async disallowBotToSetCustomEmojiStatus(botId) {
|
|
582
|
+
return await this.#accountManager.disallowBotToSetCustomEmojiStatus(botId);
|
|
583
|
+
}
|
|
558
584
|
/**
|
|
559
585
|
* Check if a code entered by the user was the same as the verification code.
|
|
560
586
|
*
|
|
@@ -1258,6 +1284,14 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
1258
1284
|
async checkUsername(username, params) {
|
|
1259
1285
|
return await this.#accountManager.checkUsername(username, params);
|
|
1260
1286
|
}
|
|
1287
|
+
/**
|
|
1288
|
+
* Clear recent emoji statuses. User-only.
|
|
1289
|
+
*
|
|
1290
|
+
* @method ac
|
|
1291
|
+
*/
|
|
1292
|
+
async clearRecentEmojiStatuses() {
|
|
1293
|
+
return await this.#accountManager.clearRecentEmojiStatuses();
|
|
1294
|
+
}
|
|
1261
1295
|
/**
|
|
1262
1296
|
* Delete the current account. User-only.
|
|
1263
1297
|
*
|
|
@@ -1410,6 +1444,14 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
1410
1444
|
async getProfilePhotos(userId, params) {
|
|
1411
1445
|
return await this.#accountManager.getProfilePhotos(userId, params);
|
|
1412
1446
|
}
|
|
1447
|
+
/**
|
|
1448
|
+
* Get recent emoji statuses. User-only.
|
|
1449
|
+
*
|
|
1450
|
+
* @method ac
|
|
1451
|
+
*/
|
|
1452
|
+
async getRecentEmojiStatuses() {
|
|
1453
|
+
return await this.#accountManager.getRecentEmojiStatuses();
|
|
1454
|
+
}
|
|
1413
1455
|
/**
|
|
1414
1456
|
* Get timezones. User-only.
|
|
1415
1457
|
*
|
|
@@ -1791,7 +1833,7 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
1791
1833
|
await this.#messageManager.deleteMessages(chatId, messageIds, params);
|
|
1792
1834
|
}
|
|
1793
1835
|
/**
|
|
1794
|
-
* Delete a scheduled message.
|
|
1836
|
+
* Delete a scheduled message. User-only.
|
|
1795
1837
|
*
|
|
1796
1838
|
* @method ms
|
|
1797
1839
|
* @param chatId The identifier of a chat.
|
|
@@ -1801,7 +1843,7 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
1801
1843
|
await this.#messageManager.deleteScheduledMessage(chatId, messageId);
|
|
1802
1844
|
}
|
|
1803
1845
|
/**
|
|
1804
|
-
* Delete multiple scheduled messages.
|
|
1846
|
+
* Delete multiple scheduled messages. User-only.
|
|
1805
1847
|
*
|
|
1806
1848
|
* @method ms
|
|
1807
1849
|
* @param chatId The identifier of a chat.
|
|
@@ -1832,7 +1874,7 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
1832
1874
|
await this.#messageManager.editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params);
|
|
1833
1875
|
}
|
|
1834
1876
|
/**
|
|
1835
|
-
* Edit an inline message's media.
|
|
1877
|
+
* Edit an inline message's media. User-only.
|
|
1836
1878
|
*
|
|
1837
1879
|
* @method ms
|
|
1838
1880
|
* @param inlineMessageId The identifier of the inline message.
|
|
@@ -2107,7 +2149,7 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
2107
2149
|
return await this.#messageManager.getSavedChats(params);
|
|
2108
2150
|
}
|
|
2109
2151
|
/**
|
|
2110
|
-
* Get messages saved from a specific chat.
|
|
2152
|
+
* Get messages saved from a specific chat. User-only.
|
|
2111
2153
|
*
|
|
2112
2154
|
* @method ms
|
|
2113
2155
|
* @param chatId The identifier of a chat.
|
|
@@ -2398,7 +2440,7 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
2398
2440
|
return await this.#messageManager.sendRichTextDraft(chatId, draftId, richText, params);
|
|
2399
2441
|
}
|
|
2400
2442
|
/**
|
|
2401
|
-
* Send a scheduled message before its schedule.
|
|
2443
|
+
* Send a scheduled message before its schedule. User-only.
|
|
2402
2444
|
*
|
|
2403
2445
|
* @method ms
|
|
2404
2446
|
* @param chatId The identifier of a chat.
|
|
@@ -2408,7 +2450,7 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
2408
2450
|
return await this.#messageManager.sendScheduledMessage(chatId, messageId);
|
|
2409
2451
|
}
|
|
2410
2452
|
/**
|
|
2411
|
-
* Send multiple scheduled messages before their schedule.
|
|
2453
|
+
* Send multiple scheduled messages before their schedule. User-only.
|
|
2412
2454
|
*
|
|
2413
2455
|
* @method ms
|
|
2414
2456
|
* @param chatId The identifier of a chat.
|
|
@@ -2873,6 +2915,15 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
2873
2915
|
async banChatMember(chatId, memberId, params) {
|
|
2874
2916
|
await this.#chatManager.banChatMember(chatId, memberId, params);
|
|
2875
2917
|
}
|
|
2918
|
+
/**
|
|
2919
|
+
* Add a single user to a chat. User-only.
|
|
2920
|
+
*
|
|
2921
|
+
* @method ch
|
|
2922
|
+
* @param chatId The identifier of the chat to boost.
|
|
2923
|
+
*/
|
|
2924
|
+
async boostChat(chatId, params) {
|
|
2925
|
+
return await this.#chatManager.boostChat(chatId, params);
|
|
2926
|
+
}
|
|
2876
2927
|
/**
|
|
2877
2928
|
* Close a chat previously opened by openChat.
|
|
2878
2929
|
*
|
|
@@ -2989,6 +3040,26 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
2989
3040
|
async deleteChatStickerSet(chatId) {
|
|
2990
3041
|
await this.#messageManager.deleteChatStickerSet(chatId);
|
|
2991
3042
|
}
|
|
3043
|
+
/**
|
|
3044
|
+
* Delete revoked invite links. User-only.
|
|
3045
|
+
*
|
|
3046
|
+
* @method ch
|
|
3047
|
+
* @param chatId The identifier of the chat.
|
|
3048
|
+
* @param userId The user identifier of a chat admin.
|
|
3049
|
+
*/
|
|
3050
|
+
async deleteRevokedInviteLinks(chatId, userId) {
|
|
3051
|
+
return await this.#chatManager.deleteRevokedInviteLinks(chatId, userId);
|
|
3052
|
+
}
|
|
3053
|
+
/**
|
|
3054
|
+
* Delete a forum topic.
|
|
3055
|
+
*
|
|
3056
|
+
* @method ch
|
|
3057
|
+
* @param chatId The identifier of the chat.
|
|
3058
|
+
* @param topicId The identifier of the topic.
|
|
3059
|
+
*/
|
|
3060
|
+
async deleteTopic(chatId, topicId) {
|
|
3061
|
+
return await this.#forumManager.deleteTopic(chatId, topicId);
|
|
3062
|
+
}
|
|
2992
3063
|
/**
|
|
2993
3064
|
* Disable automatic anti-spam in a group. User-only.
|
|
2994
3065
|
*
|
|
@@ -3137,6 +3208,15 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
3137
3208
|
async enableTopics(chatId, isShownAsTabs) {
|
|
3138
3209
|
await this.#chatManager.enableTopics(chatId, isShownAsTabs);
|
|
3139
3210
|
}
|
|
3211
|
+
/**
|
|
3212
|
+
* Get administered chats. User-only.
|
|
3213
|
+
*
|
|
3214
|
+
* @method ch
|
|
3215
|
+
* @returns A list of administered chats.
|
|
3216
|
+
*/
|
|
3217
|
+
async getAdministeredChats(params) {
|
|
3218
|
+
return await this.#chatManager.getAdministeredChats(params);
|
|
3219
|
+
}
|
|
3140
3220
|
/**
|
|
3141
3221
|
* Get a chat.
|
|
3142
3222
|
*
|
|
@@ -3280,6 +3360,15 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
3280
3360
|
async getPinnedChats(from) {
|
|
3281
3361
|
return await this.#chatListManager.getPinnedChats(from);
|
|
3282
3362
|
}
|
|
3363
|
+
/**
|
|
3364
|
+
* Get the recent actions of a channel or a supergroup. User-only.
|
|
3365
|
+
*
|
|
3366
|
+
* @method ch
|
|
3367
|
+
* @param chatId The identifier of the chat.
|
|
3368
|
+
*/
|
|
3369
|
+
async getRecentActions(chatId, params) {
|
|
3370
|
+
return await this.#chatManager.getRecentActions(chatId, params);
|
|
3371
|
+
}
|
|
3283
3372
|
/**
|
|
3284
3373
|
* Get recommended channels. User-only.
|
|
3285
3374
|
*
|
|
@@ -4237,7 +4326,7 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
4237
4326
|
return await this.#contactManager.getContacts();
|
|
4238
4327
|
}
|
|
4239
4328
|
/**
|
|
4240
|
-
* Set a contact note.
|
|
4329
|
+
* Set a contact note. User-only.
|
|
4241
4330
|
*
|
|
4242
4331
|
* @method co
|
|
4243
4332
|
* @param userId The identifier of the user to update the note for.
|
|
@@ -4389,6 +4478,16 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
4389
4478
|
async removeGiftsFromCollection(chatId, collectionId, gifts) {
|
|
4390
4479
|
return await this.#giftCollectionManager.removeGiftsFromCollection(chatId, collectionId, gifts);
|
|
4391
4480
|
}
|
|
4481
|
+
/**
|
|
4482
|
+
* Reorder gift collections. User-only.
|
|
4483
|
+
*
|
|
4484
|
+
* @method gc
|
|
4485
|
+
* @param chatId The identifier of the chat that includes the gift collection.
|
|
4486
|
+
* @param collectionIds The identifiers of the gift collections.
|
|
4487
|
+
*/
|
|
4488
|
+
async reorderGiftCollections(chatId, collectionIds) {
|
|
4489
|
+
return await this.#giftCollectionManager.reorderGiftCollections(chatId, collectionIds);
|
|
4490
|
+
}
|
|
4392
4491
|
/**
|
|
4393
4492
|
* Reorder gifts in a gift collection. User-only.
|
|
4394
4493
|
*
|
|
@@ -4444,6 +4543,15 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
4444
4543
|
//
|
|
4445
4544
|
// ========================= STICKER SETS ========================= //
|
|
4446
4545
|
//
|
|
4546
|
+
/**
|
|
4547
|
+
* Add a sticker set. User-only.
|
|
4548
|
+
*
|
|
4549
|
+
* @method ss
|
|
4550
|
+
* @param slug The slug of the sticker set or its link.
|
|
4551
|
+
*/
|
|
4552
|
+
async addStickerSet(slug) {
|
|
4553
|
+
return await this.#stickerSetManager.addStickerSet(slug);
|
|
4554
|
+
}
|
|
4447
4555
|
/**
|
|
4448
4556
|
* Add a sticker to a sticker set.
|
|
4449
4557
|
*
|
|
@@ -4454,6 +4562,15 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
4454
4562
|
async addStickerToStickerSet(slug, sticker, params) {
|
|
4455
4563
|
return await this.#stickerSetManager.addStickerToStickerSet(slug, sticker, params);
|
|
4456
4564
|
}
|
|
4565
|
+
/**
|
|
4566
|
+
* Archive a sticker set. User-only.
|
|
4567
|
+
*
|
|
4568
|
+
* @method ss
|
|
4569
|
+
* @param slug The slug of the sticker set or its link.
|
|
4570
|
+
*/
|
|
4571
|
+
async archiveStickerSet(slug) {
|
|
4572
|
+
return await this.#stickerSetManager.archiveStickerSet(slug);
|
|
4573
|
+
}
|
|
4457
4574
|
/**
|
|
4458
4575
|
* Change the position of a sticker in its set.
|
|
4459
4576
|
*
|
|
@@ -4494,6 +4611,14 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
4494
4611
|
async deleteStickerSet(slug) {
|
|
4495
4612
|
return await this.#stickerSetManager.deleteStickerSet(slug);
|
|
4496
4613
|
}
|
|
4614
|
+
/**
|
|
4615
|
+
* Get added sticker sets. User-only.
|
|
4616
|
+
*
|
|
4617
|
+
* @method ss
|
|
4618
|
+
*/
|
|
4619
|
+
async getAddedStickerSets() {
|
|
4620
|
+
return await this.#stickerSetManager.getAddedStickerSets();
|
|
4621
|
+
}
|
|
4497
4622
|
/**
|
|
4498
4623
|
* Get a dice sticker set.
|
|
4499
4624
|
*
|
|
@@ -4521,6 +4646,15 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
4521
4646
|
async removeStickerFromStickerSet(fileId) {
|
|
4522
4647
|
return await this.#stickerSetManager.removeStickerFromStickerSet(fileId);
|
|
4523
4648
|
}
|
|
4649
|
+
/**
|
|
4650
|
+
* Remove a sticker set. User-only.
|
|
4651
|
+
*
|
|
4652
|
+
* @method ss
|
|
4653
|
+
* @param slug The slug of the sticker set or its link.
|
|
4654
|
+
*/
|
|
4655
|
+
async removeStickerSet(slug) {
|
|
4656
|
+
return await this.#stickerSetManager.removeStickerSet(slug);
|
|
4657
|
+
}
|
|
4524
4658
|
/**
|
|
4525
4659
|
* Replace a sticker's emoji.
|
|
4526
4660
|
*
|
|
@@ -4581,6 +4715,15 @@ class Client extends _5_composer_js_1.Composer {
|
|
|
4581
4715
|
async suggestStickerSetSlug(title) {
|
|
4582
4716
|
return await this.#stickerSetManager.suggestStickerSetSlug(title);
|
|
4583
4717
|
}
|
|
4718
|
+
/**
|
|
4719
|
+
* Unarchive a sticker set. User-only.
|
|
4720
|
+
*
|
|
4721
|
+
* @method ss
|
|
4722
|
+
* @param slug The slug of the sticker set or its link.
|
|
4723
|
+
*/
|
|
4724
|
+
async unarchiveStickerSet(slug) {
|
|
4725
|
+
return await this.#stickerSetManager.unarchiveStickerSet(slug);
|
|
4726
|
+
}
|
|
4584
4727
|
//
|
|
4585
4728
|
// ========================= MANAGED BOTS ========================= //
|
|
4586
4729
|
//
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Api, Mtproto } from "../2_tl.js";
|
|
2
2
|
import type { DC } from "../3_transport.js";
|
|
3
|
-
import type { AlbumStoryList, Animation, AppSupport, AuthorizationSession, AvailableReactions, Birthday, BlockedUserList, BotAccessSettings, BotCommand, BotTokenCheckResult, BusinessConnection, CallbackQueryAnswer, CallbackQueryQuestion, Chat, ChatActionType, ChatListItem, ChatMember, ChatP, ChatPChannel, ChatPGroup, ChatPPrivate, ChatPSupergroup, ChatSettings, ClaimedGifts, CodeCheckResult, ConnectedWebsite, Country, FailedInvitation, FileSource, Gift, GiftCollection, ID, InactiveChat, InlineQueryAnswer, InlineQueryResult, InputChecklistItem, InputEmojiStatus, InputGift, InputMedia, InputPollOption, InputRichText, InputSticker, InputStoryContent, InviteLink, JoinRequest, LeftChannelList, LinkPreview, LiveStreamChannel, Message, MessageAnimation, MessageAudio, MessageChecklist, MessageContact, MessageCounters, MessageDice, MessageDocument, MessageInvoice, MessageList, MessageLivePhoto, MessageLocation, MessagePhoto, MessagePoll, MessageReactionList, MessageRichText, MessageSticker, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageViewer, MessageVoice, MiniAppInfo, NetworkStatistics, ParseMode, PasswordCheckResult, Poll, PollVoterList, PremiumSubscriptionDuration, PriceTag, ProfilePhotoList, Reaction, ReportReason, RichText, SavedChats, SecretChat, SlowModeDuration, StarAmount, StarTransactionList, Sticker, StickerSet, Story, StoryAlbum, StoryReportResult, SummarizedText, TextToTranslate, Timezone, Topic, TopicList, TopicListItem, TranslatedText, Translation, User, VideoChat, VideoChatActive, VideoChatScheduled, VoiceTranscription } from "../3_types.js";
|
|
4
|
-
import type { AddBotToAttachmentsMenuParams, AddChatMemberParams, AddContactParams, AddReactionParams, AddStickerToStickerSetParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AnswerPreCheckoutQueryParams, ApproveJoinRequestsParams, BanChatMemberParams, CheckUsernameParams, CreateChannelParams, CreateGroupParams, CreateInviteLinkParams, CreateStickerSetParams, CreateStoryParams, CreateSupergroupParams, CreateTopicParams, DeclineJoinRequestsParams, DeleteAccountParams, DeleteMessageParams, DeleteMessagesParams, DownloadLiveStreamSegmentParams, DownloadParams, EditInlineMessageCaptionParams, EditInlineMessageMediaParams, EditInlineMessageRichTextParams, EditInlineMessageTextParams, EditMessageCaptionParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageReplyMarkupParams, EditMessageRichTextParams, EditMessageTextParams, EditTopicParams, EnableSignaturesParams, EndSecretChatParams, EndTakeoutSessionParams, ForwardMessagesParams, GetBlockedUsersParams, GetChatMembersParams, GetChatsParams, GetClaimedGiftsParams, GetCommonChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetJoinRequestsParams, GetLeftChannelsParams, GetLinkPreviewParams, GetMessageReactionsParams, GetMyCommandsParams, GetPollVotersParams, GetProfilePhotosParams, GetSavedChatsParams, GetSavedMessagesParams, GetStarTransactionsParams, GetTopicsParams, GetTranslationsParams, GiftPremiumSubscriptionParams, InvokeParams, JoinVideoChatParams, MarkAllMentionsAsReadParams, OpenChatParams, OpenMiniAppParams, PinMessageParams, PromoteChatMemberParams, RemoveProfilePhotoParams, ReplaceStickerInStickerSetParams, ReportChatParams, ReportStoryParams, ResolveUsernameParams, ScheduleVideoChatParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendChecklistParams, SendContactParams, SendDiceParams, SendDocumentParams, SendGiftParams, SendInlineQueryParams, SendInvoiceParams, SendLivePhotoParams, SendLocationParams, SendMediaGroupParams, SendMessageDraftParams, SendMessageParams, SendPhotoParams, SendPollParams, SendRichTextDraftParams, SendRichTextParams, SendSecretAnimationParams, SendSecretAudioParams, SendSecretContactParams, SendSecretDocumentParams, SendSecretLocationParams, SendSecretMessageParams, SendSecretPhotoParams, SendSecretStickerParams, SendSecretVenueParams, SendSecretVideoNoteParams, SendSecretVideoParams, SendSecretVoiceParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetBirthdayParams, SetChatMemberRightsParams, SetChatMemberTagParams, SetChatPhotoParams, SetContactNoteParams, SetEmojiStatusParams, SetLocationParams, SetManagedBotAccessSettingsParams, SetMyCommandsParams, SetNameColorParams, SetPersonalChannelParams, SetProfileColorParams, SetReactionsParams, SetWorkingHoursParams, SignInParams, StartBotParams, StartTakeoutSessionParams, StartVideoChatParams, StopPollParams, SummarizeTextParams, TranslateTextParams, UnpinMessageParams, UnpinMessagesParams, UpdateChecklistParams, UpdateProfileParams, UpdateProfilePhotoParams, UpdateProfileVideoParams } from "./0_params.js";
|
|
3
|
+
import type { AlbumStoryList, Animation, AppSupport, AuthorizationSession, AvailableReactions, Birthday, BlockedUserList, BotAccessSettings, BotCommand, BotTokenCheckResult, BusinessConnection, CallbackQueryAnswer, CallbackQueryQuestion, Chat, ChatActionType, ChatListItem, ChatMember, ChatP, ChatPChannel, ChatPGroup, ChatPPrivate, ChatPSupergroup, ChatSettings, ClaimedGifts, CodeCheckResult, ConnectedWebsite, Country, EmojiStatus, FailedInvitation, FileSource, Gift, GiftCollection, ID, InactiveChat, InlineQueryAnswer, InlineQueryResult, InputChecklistItem, InputEmojiStatus, InputGift, InputMedia, InputPollOption, InputRichText, InputSticker, InputStoryContent, InviteLink, JoinRequest, LeftChannelList, LinkPreview, LiveStreamChannel, Message, MessageAnimation, MessageAudio, MessageChecklist, MessageContact, MessageCounters, MessageDice, MessageDocument, MessageInvoice, MessageList, MessageLivePhoto, MessageLocation, MessagePhoto, MessagePoll, MessageReactionList, MessageRichText, MessageSticker, MessageText, MessageVenue, MessageVideo, MessageVideoNote, MessageViewer, MessageVoice, MiniAppInfo, NetworkStatistics, ParseMode, PasswordCheckResult, Poll, PollVoterList, PremiumSubscriptionDuration, PriceTag, ProfilePhotoList, Reaction, RecentActionsEntry, ReportReason, RichText, SavedChats, SecretChat, SlowModeDuration, StarAmount, StarTransactionList, Sticker, StickerSet, StickerSetP, Story, StoryAlbum, StoryReportResult, SummarizedText, TextToTranslate, Timezone, Topic, TopicList, TopicListItem, TranslatedText, Translation, User, VideoChat, VideoChatActive, VideoChatScheduled, VoiceTranscription } from "../3_types.js";
|
|
4
|
+
import type { AddBotToAttachmentsMenuParams, AddChatMemberParams, AddContactParams, AddReactionParams, AddStickerToStickerSetParams, AnswerCallbackQueryParams, AnswerInlineQueryParams, AnswerPreCheckoutQueryParams, ApproveJoinRequestsParams, BanChatMemberParams, BoostChatParams, CheckUsernameParams, CreateChannelParams, CreateGroupParams, CreateInviteLinkParams, CreateStickerSetParams, CreateStoryParams, CreateSupergroupParams, CreateTopicParams, DeclineJoinRequestsParams, DeleteAccountParams, DeleteMessageParams, DeleteMessagesParams, DownloadLiveStreamSegmentParams, DownloadParams, EditInlineMessageCaptionParams, EditInlineMessageMediaParams, EditInlineMessageRichTextParams, EditInlineMessageTextParams, EditMessageCaptionParams, EditMessageLiveLocationParams, EditMessageMediaParams, EditMessageReplyMarkupParams, EditMessageRichTextParams, EditMessageTextParams, EditTopicParams, EnableSignaturesParams, EndSecretChatParams, EndTakeoutSessionParams, ForwardMessagesParams, GetAdministeredChatsParams, GetBlockedUsersParams, GetChatMembersParams, GetChatsParams, GetClaimedGiftsParams, GetCommonChatsParams, GetCreatedInviteLinksParams, GetHistoryParams, GetJoinRequestsParams, GetLeftChannelsParams, GetLinkPreviewParams, GetMessageReactionsParams, GetMyCommandsParams, GetPollVotersParams, GetProfilePhotosParams, GetRecentActionsParams, GetSavedChatsParams, GetSavedMessagesParams, GetStarTransactionsParams, GetTopicsParams, GetTranslationsParams, GiftPremiumSubscriptionParams, InvokeParams, JoinVideoChatParams, MarkAllMentionsAsReadParams, OpenChatParams, OpenMiniAppParams, PinMessageParams, PromoteChatMemberParams, RemoveProfilePhotoParams, ReplaceStickerInStickerSetParams, ReportChatParams, ReportStoryParams, ResolveUsernameParams, ScheduleVideoChatParams, SearchMessagesParams, SendAnimationParams, SendAudioParams, SendChecklistParams, SendContactParams, SendDiceParams, SendDocumentParams, SendGiftParams, SendInlineQueryParams, SendInvoiceParams, SendLivePhotoParams, SendLocationParams, SendMediaGroupParams, SendMessageDraftParams, SendMessageParams, SendPhotoParams, SendPollParams, SendRichTextDraftParams, SendRichTextParams, SendSecretAnimationParams, SendSecretAudioParams, SendSecretContactParams, SendSecretDocumentParams, SendSecretLocationParams, SendSecretMessageParams, SendSecretPhotoParams, SendSecretStickerParams, SendSecretVenueParams, SendSecretVideoNoteParams, SendSecretVideoParams, SendSecretVoiceParams, SendStickerParams, SendVenueParams, SendVideoNoteParams, SendVideoParams, SendVoiceParams, SetBirthdayParams, SetChatMemberRightsParams, SetChatMemberTagParams, SetChatPhotoParams, SetContactNoteParams, SetEmojiStatusParams, SetLocationParams, SetManagedBotAccessSettingsParams, SetMyCommandsParams, SetNameColorParams, SetPersonalChannelParams, SetProfileColorParams, SetReactionsParams, SetWorkingHoursParams, SignInParams, StartBotParams, StartTakeoutSessionParams, StartVideoChatParams, StopPollParams, SummarizeTextParams, TranslateTextParams, UnpinMessageParams, UnpinMessagesParams, UpdateChecklistParams, UpdateProfileParams, UpdateProfilePhotoParams, UpdateProfileVideoParams } from "./0_params.js";
|
|
5
5
|
import type { WorkerRequest } from "./0_worker_request.js";
|
|
6
6
|
import type { ClientGeneric } from "./1_client_generic.js";
|
|
7
7
|
import { type InvokeErrorHandler } from "./1_invoke_middleware.js";
|
|
@@ -85,6 +85,20 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
85
85
|
* @method ac
|
|
86
86
|
*/
|
|
87
87
|
sendCode(phoneNumber: string): Promise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* Allow a bot to set custom emoji status. User-only.
|
|
90
|
+
*
|
|
91
|
+
* @param botId The user identifier of the bot.
|
|
92
|
+
* @method ac
|
|
93
|
+
*/
|
|
94
|
+
allowBotToSetCustomEmojiStatus(botId: ID): Promise<void>;
|
|
95
|
+
/**
|
|
96
|
+
* Disallow a bot to set custom emoji status. User-only.
|
|
97
|
+
*
|
|
98
|
+
* @param botId The user identifier of the bot.
|
|
99
|
+
* @method ac
|
|
100
|
+
*/
|
|
101
|
+
disallowBotToSetCustomEmojiStatus(botId: ID): Promise<void>;
|
|
88
102
|
/**
|
|
89
103
|
* Check if a code entered by the user was the same as the verification code.
|
|
90
104
|
*
|
|
@@ -166,6 +180,12 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
166
180
|
* @returns Whether the username is available.
|
|
167
181
|
*/
|
|
168
182
|
checkUsername(username: string, params?: CheckUsernameParams): Promise<boolean>;
|
|
183
|
+
/**
|
|
184
|
+
* Clear recent emoji statuses. User-only.
|
|
185
|
+
*
|
|
186
|
+
* @method ac
|
|
187
|
+
*/
|
|
188
|
+
clearRecentEmojiStatuses(): Promise<void>;
|
|
169
189
|
/**
|
|
170
190
|
* Delete the current account. User-only.
|
|
171
191
|
*
|
|
@@ -205,6 +225,12 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
205
225
|
* @returns The current account's TTL in days.
|
|
206
226
|
*/
|
|
207
227
|
getAccountTtl(): Promise<number>;
|
|
228
|
+
/**
|
|
229
|
+
* Get application configuration. User-only.
|
|
230
|
+
*
|
|
231
|
+
* @method ac
|
|
232
|
+
*/
|
|
233
|
+
getApplicationConfiguration(): Promise<any>;
|
|
208
234
|
/**
|
|
209
235
|
* Get app support. User-only.
|
|
210
236
|
*
|
|
@@ -275,6 +301,12 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
275
301
|
* @param userId The identifier of a user.
|
|
276
302
|
*/
|
|
277
303
|
getProfilePhotos(userId: ID, params?: GetProfilePhotosParams): Promise<ProfilePhotoList>;
|
|
304
|
+
/**
|
|
305
|
+
* Get recent emoji statuses. User-only.
|
|
306
|
+
*
|
|
307
|
+
* @method ac
|
|
308
|
+
*/
|
|
309
|
+
getRecentEmojiStatuses(): Promise<EmojiStatus[]>;
|
|
278
310
|
/**
|
|
279
311
|
* Get timezones. User-only.
|
|
280
312
|
*
|
|
@@ -569,7 +601,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
569
601
|
*/
|
|
570
602
|
deleteMessages(chatId: ID, messageIds: number[], params?: DeleteMessagesParams): Promise<void>;
|
|
571
603
|
/**
|
|
572
|
-
* Delete a scheduled message.
|
|
604
|
+
* Delete a scheduled message. User-only.
|
|
573
605
|
*
|
|
574
606
|
* @method ms
|
|
575
607
|
* @param chatId The identifier of a chat.
|
|
@@ -577,7 +609,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
577
609
|
*/
|
|
578
610
|
deleteScheduledMessage(chatId: ID, messageId: number): Promise<void>;
|
|
579
611
|
/**
|
|
580
|
-
* Delete multiple scheduled messages.
|
|
612
|
+
* Delete multiple scheduled messages. User-only.
|
|
581
613
|
*
|
|
582
614
|
* @method ms
|
|
583
615
|
* @param chatId The identifier of a chat.
|
|
@@ -602,7 +634,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
602
634
|
*/
|
|
603
635
|
editInlineMessageLiveLocation(inlineMessageId: string, latitude: number, longitude: number, params?: EditMessageLiveLocationParams): Promise<void>;
|
|
604
636
|
/**
|
|
605
|
-
* Edit an inline message's media.
|
|
637
|
+
* Edit an inline message's media. User-only.
|
|
606
638
|
*
|
|
607
639
|
* @method ms
|
|
608
640
|
* @param inlineMessageId The identifier of the inline message.
|
|
@@ -825,7 +857,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
825
857
|
*/
|
|
826
858
|
getSavedChats(params?: GetSavedChatsParams): Promise<SavedChats>;
|
|
827
859
|
/**
|
|
828
|
-
* Get messages saved from a specific chat.
|
|
860
|
+
* Get messages saved from a specific chat. User-only.
|
|
829
861
|
*
|
|
830
862
|
* @method ms
|
|
831
863
|
* @param chatId The identifier of a chat.
|
|
@@ -1064,7 +1096,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
1064
1096
|
*/
|
|
1065
1097
|
sendRichTextDraft(chatId: ID, draftId: number, richText: InputRichText, params?: SendRichTextDraftParams): Promise<void>;
|
|
1066
1098
|
/**
|
|
1067
|
-
* Send a scheduled message before its schedule.
|
|
1099
|
+
* Send a scheduled message before its schedule. User-only.
|
|
1068
1100
|
*
|
|
1069
1101
|
* @method ms
|
|
1070
1102
|
* @param chatId The identifier of a chat.
|
|
@@ -1072,7 +1104,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
1072
1104
|
*/
|
|
1073
1105
|
sendScheduledMessage(chatId: ID, messageId: number): Promise<Message>;
|
|
1074
1106
|
/**
|
|
1075
|
-
* Send multiple scheduled messages before their schedule.
|
|
1107
|
+
* Send multiple scheduled messages before their schedule. User-only.
|
|
1076
1108
|
*
|
|
1077
1109
|
* @method ms
|
|
1078
1110
|
* @param chatId The identifier of a chat.
|
|
@@ -1434,6 +1466,13 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
1434
1466
|
* @param memberId The identifier of the member.
|
|
1435
1467
|
*/
|
|
1436
1468
|
banChatMember(chatId: ID, memberId: ID, params?: BanChatMemberParams): Promise<void>;
|
|
1469
|
+
/**
|
|
1470
|
+
* Add a single user to a chat. User-only.
|
|
1471
|
+
*
|
|
1472
|
+
* @method ch
|
|
1473
|
+
* @param chatId The identifier of the chat to boost.
|
|
1474
|
+
*/
|
|
1475
|
+
boostChat(chatId: ID, params?: BoostChatParams): Promise<void>;
|
|
1437
1476
|
/**
|
|
1438
1477
|
* Close a chat previously opened by openChat.
|
|
1439
1478
|
*
|
|
@@ -1526,6 +1565,22 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
1526
1565
|
* @param chatId The identifier of a chat. Must be a supergroup.
|
|
1527
1566
|
*/
|
|
1528
1567
|
deleteChatStickerSet(chatId: ID): Promise<void>;
|
|
1568
|
+
/**
|
|
1569
|
+
* Delete revoked invite links. User-only.
|
|
1570
|
+
*
|
|
1571
|
+
* @method ch
|
|
1572
|
+
* @param chatId The identifier of the chat.
|
|
1573
|
+
* @param userId The user identifier of a chat admin.
|
|
1574
|
+
*/
|
|
1575
|
+
deleteRevokedInviteLinks(chatId: ID, userId: ID): Promise<void>;
|
|
1576
|
+
/**
|
|
1577
|
+
* Delete a forum topic.
|
|
1578
|
+
*
|
|
1579
|
+
* @method ch
|
|
1580
|
+
* @param chatId The identifier of the chat.
|
|
1581
|
+
* @param topicId The identifier of the topic.
|
|
1582
|
+
*/
|
|
1583
|
+
deleteTopic(chatId: ID, topicId: number): Promise<void>;
|
|
1529
1584
|
/**
|
|
1530
1585
|
* Disable automatic anti-spam in a group. User-only.
|
|
1531
1586
|
*
|
|
@@ -1642,6 +1697,13 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
1642
1697
|
* @param isShownAsTabs Whether topics should be displayed as tabs.
|
|
1643
1698
|
*/
|
|
1644
1699
|
enableTopics(chatId: ID, isShownAsTabs: boolean): Promise<void>;
|
|
1700
|
+
/**
|
|
1701
|
+
* Get administered chats. User-only.
|
|
1702
|
+
*
|
|
1703
|
+
* @method ch
|
|
1704
|
+
* @returns A list of administered chats.
|
|
1705
|
+
*/
|
|
1706
|
+
getAdministeredChats(params?: GetAdministeredChatsParams): Promise<ChatP[]>;
|
|
1645
1707
|
/**
|
|
1646
1708
|
* Get a chat.
|
|
1647
1709
|
*
|
|
@@ -1749,6 +1811,13 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
1749
1811
|
* @param from The chat list to get the pinned chats from. Defaults to main.
|
|
1750
1812
|
*/
|
|
1751
1813
|
getPinnedChats(from?: "archived" | "main"): Promise<ChatListItem[]>;
|
|
1814
|
+
/**
|
|
1815
|
+
* Get the recent actions of a channel or a supergroup. User-only.
|
|
1816
|
+
*
|
|
1817
|
+
* @method ch
|
|
1818
|
+
* @param chatId The identifier of the chat.
|
|
1819
|
+
*/
|
|
1820
|
+
getRecentActions(chatId: ID, params?: GetRecentActionsParams): Promise<RecentActionsEntry[]>;
|
|
1752
1821
|
/**
|
|
1753
1822
|
* Get recommended channels. User-only.
|
|
1754
1823
|
*
|
|
@@ -2499,7 +2568,7 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
2499
2568
|
*/
|
|
2500
2569
|
getContacts(): Promise<User[]>;
|
|
2501
2570
|
/**
|
|
2502
|
-
* Set a contact note.
|
|
2571
|
+
* Set a contact note. User-only.
|
|
2503
2572
|
*
|
|
2504
2573
|
* @method co
|
|
2505
2574
|
* @param userId The identifier of the user to update the note for.
|
|
@@ -2612,6 +2681,14 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
2612
2681
|
* @param gifts The gifts to remove from the collection.
|
|
2613
2682
|
*/
|
|
2614
2683
|
removeGiftsFromCollection(chatId: ID, collectionId: number, gifts: InputGift[]): Promise<GiftCollection>;
|
|
2684
|
+
/**
|
|
2685
|
+
* Reorder gift collections. User-only.
|
|
2686
|
+
*
|
|
2687
|
+
* @method gc
|
|
2688
|
+
* @param chatId The identifier of the chat that includes the gift collection.
|
|
2689
|
+
* @param collectionIds The identifiers of the gift collections.
|
|
2690
|
+
*/
|
|
2691
|
+
reorderGiftCollections(chatId: ID, collectionIds: number[]): Promise<void>;
|
|
2615
2692
|
/**
|
|
2616
2693
|
* Reorder gifts in a gift collection. User-only.
|
|
2617
2694
|
*
|
|
@@ -2651,6 +2728,13 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
2651
2728
|
* @returns The identifier of the takeout session.
|
|
2652
2729
|
*/
|
|
2653
2730
|
startTakeoutSession(params?: StartTakeoutSessionParams): Promise<string>;
|
|
2731
|
+
/**
|
|
2732
|
+
* Add a sticker set. User-only.
|
|
2733
|
+
*
|
|
2734
|
+
* @method ss
|
|
2735
|
+
* @param slug The slug of the sticker set or its link.
|
|
2736
|
+
*/
|
|
2737
|
+
addStickerSet(slug: string): Promise<void>;
|
|
2654
2738
|
/**
|
|
2655
2739
|
* Add a sticker to a sticker set.
|
|
2656
2740
|
*
|
|
@@ -2659,6 +2743,13 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
2659
2743
|
* @param sticker The sticker to add.
|
|
2660
2744
|
*/
|
|
2661
2745
|
addStickerToStickerSet(slug: string, sticker: InputSticker, params?: AddStickerToStickerSetParams): Promise<void>;
|
|
2746
|
+
/**
|
|
2747
|
+
* Archive a sticker set. User-only.
|
|
2748
|
+
*
|
|
2749
|
+
* @method ss
|
|
2750
|
+
* @param slug The slug of the sticker set or its link.
|
|
2751
|
+
*/
|
|
2752
|
+
archiveStickerSet(slug: string): Promise<void>;
|
|
2662
2753
|
/**
|
|
2663
2754
|
* Change the position of a sticker in its set.
|
|
2664
2755
|
*
|
|
@@ -2691,6 +2782,12 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
2691
2782
|
* @param slug The slug of the sticker set or its link.
|
|
2692
2783
|
*/
|
|
2693
2784
|
deleteStickerSet(slug: string): Promise<void>;
|
|
2785
|
+
/**
|
|
2786
|
+
* Get added sticker sets. User-only.
|
|
2787
|
+
*
|
|
2788
|
+
* @method ss
|
|
2789
|
+
*/
|
|
2790
|
+
getAddedStickerSets(): Promise<StickerSetP[]>;
|
|
2694
2791
|
/**
|
|
2695
2792
|
* Get a dice sticker set.
|
|
2696
2793
|
*
|
|
@@ -2712,6 +2809,13 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
2712
2809
|
* @param fileId The identifier of the sticker.
|
|
2713
2810
|
*/
|
|
2714
2811
|
removeStickerFromStickerSet(fileId: string): Promise<void>;
|
|
2812
|
+
/**
|
|
2813
|
+
* Remove a sticker set. User-only.
|
|
2814
|
+
*
|
|
2815
|
+
* @method ss
|
|
2816
|
+
* @param slug The slug of the sticker set or its link.
|
|
2817
|
+
*/
|
|
2818
|
+
removeStickerSet(slug: string): Promise<void>;
|
|
2715
2819
|
/**
|
|
2716
2820
|
* Replace a sticker's emoji.
|
|
2717
2821
|
*
|
|
@@ -2760,6 +2864,13 @@ export declare class ClientDispatcher<C extends Context = Context> extends Compo
|
|
|
2760
2864
|
* @returns The suggested slug.
|
|
2761
2865
|
*/
|
|
2762
2866
|
suggestStickerSetSlug(title: string): Promise<string>;
|
|
2867
|
+
/**
|
|
2868
|
+
* Unarchive a sticker set. User-only.
|
|
2869
|
+
*
|
|
2870
|
+
* @method ss
|
|
2871
|
+
* @param slug The slug of the sticker set or its link.
|
|
2872
|
+
*/
|
|
2873
|
+
unarchiveStickerSet(slug: string): Promise<void>;
|
|
2763
2874
|
/**
|
|
2764
2875
|
* Set the access settings of a managed bot. Bot-only.
|
|
2765
2876
|
*
|