@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
package/esm/client/6_client.js
CHANGED
|
@@ -551,6 +551,32 @@ export class Client extends Composer {
|
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
+
/**
|
|
555
|
+
* Get application configuration. User-only.
|
|
556
|
+
*
|
|
557
|
+
* @method ac
|
|
558
|
+
*/
|
|
559
|
+
async getApplicationConfiguration() {
|
|
560
|
+
return await this.#accountManager.getApplicationConfiguration();
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Allow a bot to set custom emoji status. User-only.
|
|
564
|
+
*
|
|
565
|
+
* @param botId The user identifier of the bot.
|
|
566
|
+
* @method ac
|
|
567
|
+
*/
|
|
568
|
+
async allowBotToSetCustomEmojiStatus(botId) {
|
|
569
|
+
return await this.#accountManager.allowBotToSetCustomEmojiStatus(botId);
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Disallow a bot to set custom emoji status. User-only.
|
|
573
|
+
*
|
|
574
|
+
* @param botId The user identifier of the bot.
|
|
575
|
+
* @method ac
|
|
576
|
+
*/
|
|
577
|
+
async disallowBotToSetCustomEmojiStatus(botId) {
|
|
578
|
+
return await this.#accountManager.disallowBotToSetCustomEmojiStatus(botId);
|
|
579
|
+
}
|
|
554
580
|
/**
|
|
555
581
|
* Check if a code entered by the user was the same as the verification code.
|
|
556
582
|
*
|
|
@@ -1254,6 +1280,14 @@ export class Client extends Composer {
|
|
|
1254
1280
|
async checkUsername(username, params) {
|
|
1255
1281
|
return await this.#accountManager.checkUsername(username, params);
|
|
1256
1282
|
}
|
|
1283
|
+
/**
|
|
1284
|
+
* Clear recent emoji statuses. User-only.
|
|
1285
|
+
*
|
|
1286
|
+
* @method ac
|
|
1287
|
+
*/
|
|
1288
|
+
async clearRecentEmojiStatuses() {
|
|
1289
|
+
return await this.#accountManager.clearRecentEmojiStatuses();
|
|
1290
|
+
}
|
|
1257
1291
|
/**
|
|
1258
1292
|
* Delete the current account. User-only.
|
|
1259
1293
|
*
|
|
@@ -1406,6 +1440,14 @@ export class Client extends Composer {
|
|
|
1406
1440
|
async getProfilePhotos(userId, params) {
|
|
1407
1441
|
return await this.#accountManager.getProfilePhotos(userId, params);
|
|
1408
1442
|
}
|
|
1443
|
+
/**
|
|
1444
|
+
* Get recent emoji statuses. User-only.
|
|
1445
|
+
*
|
|
1446
|
+
* @method ac
|
|
1447
|
+
*/
|
|
1448
|
+
async getRecentEmojiStatuses() {
|
|
1449
|
+
return await this.#accountManager.getRecentEmojiStatuses();
|
|
1450
|
+
}
|
|
1409
1451
|
/**
|
|
1410
1452
|
* Get timezones. User-only.
|
|
1411
1453
|
*
|
|
@@ -1787,7 +1829,7 @@ export class Client extends Composer {
|
|
|
1787
1829
|
await this.#messageManager.deleteMessages(chatId, messageIds, params);
|
|
1788
1830
|
}
|
|
1789
1831
|
/**
|
|
1790
|
-
* Delete a scheduled message.
|
|
1832
|
+
* Delete a scheduled message. User-only.
|
|
1791
1833
|
*
|
|
1792
1834
|
* @method ms
|
|
1793
1835
|
* @param chatId The identifier of a chat.
|
|
@@ -1797,7 +1839,7 @@ export class Client extends Composer {
|
|
|
1797
1839
|
await this.#messageManager.deleteScheduledMessage(chatId, messageId);
|
|
1798
1840
|
}
|
|
1799
1841
|
/**
|
|
1800
|
-
* Delete multiple scheduled messages.
|
|
1842
|
+
* Delete multiple scheduled messages. User-only.
|
|
1801
1843
|
*
|
|
1802
1844
|
* @method ms
|
|
1803
1845
|
* @param chatId The identifier of a chat.
|
|
@@ -1828,7 +1870,7 @@ export class Client extends Composer {
|
|
|
1828
1870
|
await this.#messageManager.editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, params);
|
|
1829
1871
|
}
|
|
1830
1872
|
/**
|
|
1831
|
-
* Edit an inline message's media.
|
|
1873
|
+
* Edit an inline message's media. User-only.
|
|
1832
1874
|
*
|
|
1833
1875
|
* @method ms
|
|
1834
1876
|
* @param inlineMessageId The identifier of the inline message.
|
|
@@ -2103,7 +2145,7 @@ export class Client extends Composer {
|
|
|
2103
2145
|
return await this.#messageManager.getSavedChats(params);
|
|
2104
2146
|
}
|
|
2105
2147
|
/**
|
|
2106
|
-
* Get messages saved from a specific chat.
|
|
2148
|
+
* Get messages saved from a specific chat. User-only.
|
|
2107
2149
|
*
|
|
2108
2150
|
* @method ms
|
|
2109
2151
|
* @param chatId The identifier of a chat.
|
|
@@ -2394,7 +2436,7 @@ export class Client extends Composer {
|
|
|
2394
2436
|
return await this.#messageManager.sendRichTextDraft(chatId, draftId, richText, params);
|
|
2395
2437
|
}
|
|
2396
2438
|
/**
|
|
2397
|
-
* Send a scheduled message before its schedule.
|
|
2439
|
+
* Send a scheduled message before its schedule. User-only.
|
|
2398
2440
|
*
|
|
2399
2441
|
* @method ms
|
|
2400
2442
|
* @param chatId The identifier of a chat.
|
|
@@ -2404,7 +2446,7 @@ export class Client extends Composer {
|
|
|
2404
2446
|
return await this.#messageManager.sendScheduledMessage(chatId, messageId);
|
|
2405
2447
|
}
|
|
2406
2448
|
/**
|
|
2407
|
-
* Send multiple scheduled messages before their schedule.
|
|
2449
|
+
* Send multiple scheduled messages before their schedule. User-only.
|
|
2408
2450
|
*
|
|
2409
2451
|
* @method ms
|
|
2410
2452
|
* @param chatId The identifier of a chat.
|
|
@@ -2869,6 +2911,15 @@ export class Client extends Composer {
|
|
|
2869
2911
|
async banChatMember(chatId, memberId, params) {
|
|
2870
2912
|
await this.#chatManager.banChatMember(chatId, memberId, params);
|
|
2871
2913
|
}
|
|
2914
|
+
/**
|
|
2915
|
+
* Add a single user to a chat. User-only.
|
|
2916
|
+
*
|
|
2917
|
+
* @method ch
|
|
2918
|
+
* @param chatId The identifier of the chat to boost.
|
|
2919
|
+
*/
|
|
2920
|
+
async boostChat(chatId, params) {
|
|
2921
|
+
return await this.#chatManager.boostChat(chatId, params);
|
|
2922
|
+
}
|
|
2872
2923
|
/**
|
|
2873
2924
|
* Close a chat previously opened by openChat.
|
|
2874
2925
|
*
|
|
@@ -2985,6 +3036,26 @@ export class Client extends Composer {
|
|
|
2985
3036
|
async deleteChatStickerSet(chatId) {
|
|
2986
3037
|
await this.#messageManager.deleteChatStickerSet(chatId);
|
|
2987
3038
|
}
|
|
3039
|
+
/**
|
|
3040
|
+
* Delete revoked invite links. User-only.
|
|
3041
|
+
*
|
|
3042
|
+
* @method ch
|
|
3043
|
+
* @param chatId The identifier of the chat.
|
|
3044
|
+
* @param userId The user identifier of a chat admin.
|
|
3045
|
+
*/
|
|
3046
|
+
async deleteRevokedInviteLinks(chatId, userId) {
|
|
3047
|
+
return await this.#chatManager.deleteRevokedInviteLinks(chatId, userId);
|
|
3048
|
+
}
|
|
3049
|
+
/**
|
|
3050
|
+
* Delete a forum topic.
|
|
3051
|
+
*
|
|
3052
|
+
* @method ch
|
|
3053
|
+
* @param chatId The identifier of the chat.
|
|
3054
|
+
* @param topicId The identifier of the topic.
|
|
3055
|
+
*/
|
|
3056
|
+
async deleteTopic(chatId, topicId) {
|
|
3057
|
+
return await this.#forumManager.deleteTopic(chatId, topicId);
|
|
3058
|
+
}
|
|
2988
3059
|
/**
|
|
2989
3060
|
* Disable automatic anti-spam in a group. User-only.
|
|
2990
3061
|
*
|
|
@@ -3133,6 +3204,15 @@ export class Client extends Composer {
|
|
|
3133
3204
|
async enableTopics(chatId, isShownAsTabs) {
|
|
3134
3205
|
await this.#chatManager.enableTopics(chatId, isShownAsTabs);
|
|
3135
3206
|
}
|
|
3207
|
+
/**
|
|
3208
|
+
* Get administered chats. User-only.
|
|
3209
|
+
*
|
|
3210
|
+
* @method ch
|
|
3211
|
+
* @returns A list of administered chats.
|
|
3212
|
+
*/
|
|
3213
|
+
async getAdministeredChats(params) {
|
|
3214
|
+
return await this.#chatManager.getAdministeredChats(params);
|
|
3215
|
+
}
|
|
3136
3216
|
/**
|
|
3137
3217
|
* Get a chat.
|
|
3138
3218
|
*
|
|
@@ -3276,6 +3356,15 @@ export class Client extends Composer {
|
|
|
3276
3356
|
async getPinnedChats(from) {
|
|
3277
3357
|
return await this.#chatListManager.getPinnedChats(from);
|
|
3278
3358
|
}
|
|
3359
|
+
/**
|
|
3360
|
+
* Get the recent actions of a channel or a supergroup. User-only.
|
|
3361
|
+
*
|
|
3362
|
+
* @method ch
|
|
3363
|
+
* @param chatId The identifier of the chat.
|
|
3364
|
+
*/
|
|
3365
|
+
async getRecentActions(chatId, params) {
|
|
3366
|
+
return await this.#chatManager.getRecentActions(chatId, params);
|
|
3367
|
+
}
|
|
3279
3368
|
/**
|
|
3280
3369
|
* Get recommended channels. User-only.
|
|
3281
3370
|
*
|
|
@@ -4233,7 +4322,7 @@ export class Client extends Composer {
|
|
|
4233
4322
|
return await this.#contactManager.getContacts();
|
|
4234
4323
|
}
|
|
4235
4324
|
/**
|
|
4236
|
-
* Set a contact note.
|
|
4325
|
+
* Set a contact note. User-only.
|
|
4237
4326
|
*
|
|
4238
4327
|
* @method co
|
|
4239
4328
|
* @param userId The identifier of the user to update the note for.
|
|
@@ -4385,6 +4474,16 @@ export class Client extends Composer {
|
|
|
4385
4474
|
async removeGiftsFromCollection(chatId, collectionId, gifts) {
|
|
4386
4475
|
return await this.#giftCollectionManager.removeGiftsFromCollection(chatId, collectionId, gifts);
|
|
4387
4476
|
}
|
|
4477
|
+
/**
|
|
4478
|
+
* Reorder gift collections. User-only.
|
|
4479
|
+
*
|
|
4480
|
+
* @method gc
|
|
4481
|
+
* @param chatId The identifier of the chat that includes the gift collection.
|
|
4482
|
+
* @param collectionIds The identifiers of the gift collections.
|
|
4483
|
+
*/
|
|
4484
|
+
async reorderGiftCollections(chatId, collectionIds) {
|
|
4485
|
+
return await this.#giftCollectionManager.reorderGiftCollections(chatId, collectionIds);
|
|
4486
|
+
}
|
|
4388
4487
|
/**
|
|
4389
4488
|
* Reorder gifts in a gift collection. User-only.
|
|
4390
4489
|
*
|
|
@@ -4440,6 +4539,15 @@ export class Client extends Composer {
|
|
|
4440
4539
|
//
|
|
4441
4540
|
// ========================= STICKER SETS ========================= //
|
|
4442
4541
|
//
|
|
4542
|
+
/**
|
|
4543
|
+
* Add a sticker set. User-only.
|
|
4544
|
+
*
|
|
4545
|
+
* @method ss
|
|
4546
|
+
* @param slug The slug of the sticker set or its link.
|
|
4547
|
+
*/
|
|
4548
|
+
async addStickerSet(slug) {
|
|
4549
|
+
return await this.#stickerSetManager.addStickerSet(slug);
|
|
4550
|
+
}
|
|
4443
4551
|
/**
|
|
4444
4552
|
* Add a sticker to a sticker set.
|
|
4445
4553
|
*
|
|
@@ -4450,6 +4558,15 @@ export class Client extends Composer {
|
|
|
4450
4558
|
async addStickerToStickerSet(slug, sticker, params) {
|
|
4451
4559
|
return await this.#stickerSetManager.addStickerToStickerSet(slug, sticker, params);
|
|
4452
4560
|
}
|
|
4561
|
+
/**
|
|
4562
|
+
* Archive a sticker set. User-only.
|
|
4563
|
+
*
|
|
4564
|
+
* @method ss
|
|
4565
|
+
* @param slug The slug of the sticker set or its link.
|
|
4566
|
+
*/
|
|
4567
|
+
async archiveStickerSet(slug) {
|
|
4568
|
+
return await this.#stickerSetManager.archiveStickerSet(slug);
|
|
4569
|
+
}
|
|
4453
4570
|
/**
|
|
4454
4571
|
* Change the position of a sticker in its set.
|
|
4455
4572
|
*
|
|
@@ -4490,6 +4607,14 @@ export class Client extends Composer {
|
|
|
4490
4607
|
async deleteStickerSet(slug) {
|
|
4491
4608
|
return await this.#stickerSetManager.deleteStickerSet(slug);
|
|
4492
4609
|
}
|
|
4610
|
+
/**
|
|
4611
|
+
* Get added sticker sets. User-only.
|
|
4612
|
+
*
|
|
4613
|
+
* @method ss
|
|
4614
|
+
*/
|
|
4615
|
+
async getAddedStickerSets() {
|
|
4616
|
+
return await this.#stickerSetManager.getAddedStickerSets();
|
|
4617
|
+
}
|
|
4493
4618
|
/**
|
|
4494
4619
|
* Get a dice sticker set.
|
|
4495
4620
|
*
|
|
@@ -4517,6 +4642,15 @@ export class Client extends Composer {
|
|
|
4517
4642
|
async removeStickerFromStickerSet(fileId) {
|
|
4518
4643
|
return await this.#stickerSetManager.removeStickerFromStickerSet(fileId);
|
|
4519
4644
|
}
|
|
4645
|
+
/**
|
|
4646
|
+
* Remove a sticker set. User-only.
|
|
4647
|
+
*
|
|
4648
|
+
* @method ss
|
|
4649
|
+
* @param slug The slug of the sticker set or its link.
|
|
4650
|
+
*/
|
|
4651
|
+
async removeStickerSet(slug) {
|
|
4652
|
+
return await this.#stickerSetManager.removeStickerSet(slug);
|
|
4653
|
+
}
|
|
4520
4654
|
/**
|
|
4521
4655
|
* Replace a sticker's emoji.
|
|
4522
4656
|
*
|
|
@@ -4577,6 +4711,15 @@ export class Client extends Composer {
|
|
|
4577
4711
|
async suggestStickerSetSlug(title) {
|
|
4578
4712
|
return await this.#stickerSetManager.suggestStickerSetSlug(title);
|
|
4579
4713
|
}
|
|
4714
|
+
/**
|
|
4715
|
+
* Unarchive a sticker set. User-only.
|
|
4716
|
+
*
|
|
4717
|
+
* @method ss
|
|
4718
|
+
* @param slug The slug of the sticker set or its link.
|
|
4719
|
+
*/
|
|
4720
|
+
async unarchiveStickerSet(slug) {
|
|
4721
|
+
return await this.#stickerSetManager.unarchiveStickerSet(slug);
|
|
4722
|
+
}
|
|
4580
4723
|
//
|
|
4581
4724
|
// ========================= MANAGED BOTS ========================= //
|
|
4582
4725
|
//
|
|
@@ -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
|
*
|