@mtkruto/node 0.2.30 → 0.2.32
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/esm/3_types.d.ts +1 -0
- package/esm/3_types.d.ts.map +1 -1
- package/esm/3_types.js +1 -0
- package/esm/4_constants.d.ts +1 -1
- package/esm/4_constants.js +1 -1
- package/esm/client/1_client_encrypted.d.ts +1 -1
- package/esm/client/1_client_encrypted.d.ts.map +1 -1
- package/esm/client/1_client_plain.d.ts +1 -1
- package/esm/client/1_client_plain.d.ts.map +1 -1
- package/esm/client/3_message_manager.d.ts.map +1 -1
- package/esm/client/3_message_manager.js +6 -0
- package/esm/client/4_story_manager.d.ts.map +1 -1
- package/esm/client/4_story_manager.js +3 -0
- package/esm/client/5_client.d.ts +3 -3
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/tl/0_api.d.ts +179 -22
- package/esm/tl/0_api.d.ts.map +1 -1
- package/esm/tl/0_api.js +249 -16
- package/esm/types/0_refunded_payment.d.ts +29 -0
- package/esm/types/0_refunded_payment.d.ts.map +1 -0
- package/esm/types/0_refunded_payment.js +29 -0
- package/esm/types/2_chat.d.ts +1 -0
- package/esm/types/2_chat.d.ts.map +1 -1
- package/esm/types/2_chat.js +1 -0
- package/esm/types/4_message.d.ts +11 -1
- package/esm/types/4_message.d.ts.map +1 -1
- package/esm/types/4_message.js +6 -0
- package/package.json +1 -1
- package/script/3_types.d.ts +1 -0
- package/script/3_types.d.ts.map +1 -1
- package/script/3_types.js +1 -0
- package/script/4_constants.d.ts +1 -1
- package/script/4_constants.js +1 -1
- package/script/client/1_client_encrypted.d.ts +1 -1
- package/script/client/1_client_encrypted.d.ts.map +1 -1
- package/script/client/1_client_plain.d.ts +1 -1
- package/script/client/1_client_plain.d.ts.map +1 -1
- package/script/client/3_message_manager.d.ts.map +1 -1
- package/script/client/3_message_manager.js +6 -0
- package/script/client/4_story_manager.d.ts.map +1 -1
- package/script/client/4_story_manager.js +3 -0
- package/script/client/5_client.d.ts +3 -3
- package/script/client/5_client.d.ts.map +1 -1
- package/script/tl/0_api.d.ts +179 -22
- package/script/tl/0_api.d.ts.map +1 -1
- package/script/tl/0_api.js +249 -16
- package/script/types/0_refunded_payment.d.ts +29 -0
- package/script/types/0_refunded_payment.d.ts.map +1 -0
- package/script/types/0_refunded_payment.js +33 -0
- package/script/types/2_chat.d.ts +1 -0
- package/script/types/2_chat.d.ts.map +1 -1
- package/script/types/2_chat.js +1 -0
- package/script/types/4_message.d.ts +11 -1
- package/script/types/4_message.d.ts.map +1 -1
- package/script/types/4_message.js +6 -0
package/script/tl/0_api.js
CHANGED
|
@@ -101,6 +101,7 @@ const map = new Map([
|
|
|
101
101
|
[0xF392B7F4, "inputPhoneContact"],
|
|
102
102
|
[0xF52FF27F, "inputFile"],
|
|
103
103
|
[0xFA4F0BB5, "inputFileBig"],
|
|
104
|
+
[0x62DC8B48, "inputFileStoryDocument"],
|
|
104
105
|
[0x9664F57F, "inputMediaEmpty"],
|
|
105
106
|
[0x1E287D04, "inputMediaUploadedPhoto"],
|
|
106
107
|
[0xB3BA0635, "inputMediaPhoto"],
|
|
@@ -150,7 +151,7 @@ const map = new Map([
|
|
|
150
151
|
[0xB3CEA0E4, "storage.fileMp4"],
|
|
151
152
|
[0x1081464C, "storage.fileWebp"],
|
|
152
153
|
[0xD3BC4B7A, "userEmpty"],
|
|
153
|
-
[
|
|
154
|
+
[0x83314FCA, "user"],
|
|
154
155
|
[0x4F11BAE1, "userProfilePhotoEmpty"],
|
|
155
156
|
[0x82D1F706, "userProfilePhoto"],
|
|
156
157
|
[0x09D05049, "userStatusEmpty"],
|
|
@@ -236,6 +237,8 @@ const map = new Map([
|
|
|
236
237
|
[0x2A9FADC5, "messageActionGiveawayResults"],
|
|
237
238
|
[0xCC02AA6D, "messageActionBoostApply"],
|
|
238
239
|
[0x93B31848, "messageActionRequestedPeerSentMe"],
|
|
240
|
+
[0x41B3E202, "messageActionPaymentRefunded"],
|
|
241
|
+
[0x45D5B021, "messageActionGiftStars"],
|
|
239
242
|
[0xD58A08C6, "dialog"],
|
|
240
243
|
[0x71BD134C, "dialogFolder"],
|
|
241
244
|
[0x2331B22D, "photoEmpty"],
|
|
@@ -566,7 +569,7 @@ const map = new Map([
|
|
|
566
569
|
[0x6C37C15C, "documentAttributeImageSize"],
|
|
567
570
|
[0x11B58939, "documentAttributeAnimated"],
|
|
568
571
|
[0x6319D612, "documentAttributeSticker"],
|
|
569
|
-
[
|
|
572
|
+
[0x17399FAD, "documentAttributeVideo"],
|
|
570
573
|
[0x9852F9C6, "documentAttributeAudio"],
|
|
571
574
|
[0x15590068, "documentAttributeFilename"],
|
|
572
575
|
[0x9801D2F7, "documentAttributeHasStickers"],
|
|
@@ -737,6 +740,7 @@ const map = new Map([
|
|
|
737
740
|
[0x1E76A78C, "topPeerCategoryPhoneCalls"],
|
|
738
741
|
[0xA8406CA9, "topPeerCategoryForwardUsers"],
|
|
739
742
|
[0xFBEEC0F0, "topPeerCategoryForwardChats"],
|
|
743
|
+
[0xFD9E7BEC, "topPeerCategoryBotsApp"],
|
|
740
744
|
[0xFB834291, "topPeerCategoryPeers"],
|
|
741
745
|
[0xDE266EF5, "contacts.topPeersNotModified"],
|
|
742
746
|
[0x70B772A8, "contacts.topPeers"],
|
|
@@ -1184,7 +1188,7 @@ const map = new Map([
|
|
|
1184
1188
|
[0xC5B56859, "inputInvoiceMessage"],
|
|
1185
1189
|
[0xC326CAEF, "inputInvoiceSlug"],
|
|
1186
1190
|
[0x98986C0D, "inputInvoicePremiumGiftCode"],
|
|
1187
|
-
[
|
|
1191
|
+
[0x65F00CE3, "inputInvoiceStars"],
|
|
1188
1192
|
[0xAED0CBD9, "payments.exportedInvoice"],
|
|
1189
1193
|
[0xCFB9D957, "messages.transcribedAudio"],
|
|
1190
1194
|
[0x5334759C, "help.premiumPromo"],
|
|
@@ -1192,7 +1196,8 @@ const map = new Map([
|
|
|
1192
1196
|
[0x616F7FE8, "inputStorePaymentGiftPremium"],
|
|
1193
1197
|
[0xA3805F3F, "inputStorePaymentPremiumGiftCode"],
|
|
1194
1198
|
[0x160544CA, "inputStorePaymentPremiumGiveaway"],
|
|
1195
|
-
[
|
|
1199
|
+
[0xDDDD0F56, "inputStorePaymentStarsTopup"],
|
|
1200
|
+
[0x1D741EF7, "inputStorePaymentStarsGift"],
|
|
1196
1201
|
[0x74C34319, "premiumGiftOption"],
|
|
1197
1202
|
[0x88F8F21B, "paymentFormMethod"],
|
|
1198
1203
|
[0x2DE11AAE, "emojiStatusEmpty"],
|
|
@@ -1286,6 +1291,7 @@ const map = new Map([
|
|
|
1286
1291
|
[0x770416AF, "mediaAreaChannelPost"],
|
|
1287
1292
|
[0x2271F2BF, "inputMediaAreaChannelPost"],
|
|
1288
1293
|
[0x37381085, "mediaAreaUrl"],
|
|
1294
|
+
[0x49A6549C, "mediaAreaWeather"],
|
|
1289
1295
|
[0x9A35E999, "peerStories"],
|
|
1290
1296
|
[0xCAE68768, "stories.peerStories"],
|
|
1291
1297
|
[0xFD5E12BD, "messages.webPage"],
|
|
@@ -1407,6 +1413,10 @@ const map = new Map([
|
|
|
1407
1413
|
[0x1DAB80B7, "payments.starsRevenueWithdrawalUrl"],
|
|
1408
1414
|
[0x394E7F21, "payments.starsRevenueAdsAccountUrl"],
|
|
1409
1415
|
[0x206AE6D1, "inputStarsTransaction"],
|
|
1416
|
+
[0x5E0589F1, "starsGiftOption"],
|
|
1417
|
+
[0x1991B13B, "bots.popularAppBots"],
|
|
1418
|
+
[0x23E91BA3, "botPreviewMedia"],
|
|
1419
|
+
[0x0CA71D64, "bots.previewInfo"],
|
|
1410
1420
|
]);
|
|
1411
1421
|
exports.getTypeName = map.get.bind(map);
|
|
1412
1422
|
exports.flags = Symbol();
|
|
@@ -1444,7 +1454,7 @@ const enums = new Map([
|
|
|
1444
1454
|
["InputPeer", ["inputPeerEmpty", "inputPeerSelf", "inputPeerChat", "inputPeerUser", "inputPeerChannel", "inputPeerUserFromMessage", "inputPeerChannelFromMessage"]],
|
|
1445
1455
|
["InputUser", ["inputUserEmpty", "inputUserSelf", "inputUser", "inputUserFromMessage"]],
|
|
1446
1456
|
["InputContact", ["inputPhoneContact"]],
|
|
1447
|
-
["InputFile", ["inputFile", "inputFileBig"]],
|
|
1457
|
+
["InputFile", ["inputFile", "inputFileBig", "inputFileStoryDocument"]],
|
|
1448
1458
|
["InputMedia", ["inputMediaEmpty", "inputMediaUploadedPhoto", "inputMediaPhoto", "inputMediaGeoPoint", "inputMediaContact", "inputMediaUploadedDocument", "inputMediaDocument", "inputMediaVenue", "inputMediaPhotoExternal", "inputMediaDocumentExternal", "inputMediaGame", "inputMediaInvoice", "inputMediaGeoLive", "inputMediaPoll", "inputMediaDice", "inputMediaStory", "inputMediaWebPage", "inputMediaPaidMedia"]],
|
|
1449
1459
|
["InputChatPhoto", ["inputChatPhotoEmpty", "inputChatUploadedPhoto", "inputChatPhoto"]],
|
|
1450
1460
|
["InputGeoPoint", ["inputGeoPointEmpty", "inputGeoPoint"]],
|
|
@@ -1461,7 +1471,7 @@ const enums = new Map([
|
|
|
1461
1471
|
["ChatPhoto", ["chatPhotoEmpty", "chatPhoto"]],
|
|
1462
1472
|
["Message", ["messageEmpty", "message", "messageService"]],
|
|
1463
1473
|
["MessageMedia", ["messageMediaEmpty", "messageMediaPhoto", "messageMediaGeo", "messageMediaContact", "messageMediaUnsupported", "messageMediaDocument", "messageMediaWebPage", "messageMediaVenue", "messageMediaGame", "messageMediaInvoice", "messageMediaGeoLive", "messageMediaPoll", "messageMediaDice", "messageMediaStory", "messageMediaGiveaway", "messageMediaGiveawayResults", "messageMediaPaidMedia"]],
|
|
1464
|
-
["MessageAction", ["messageActionEmpty", "messageActionChatCreate", "messageActionChatEditTitle", "messageActionChatEditPhoto", "messageActionChatDeletePhoto", "messageActionChatAddUser", "messageActionChatDeleteUser", "messageActionChatJoinedByLink", "messageActionChannelCreate", "messageActionChatMigrateTo", "messageActionChannelMigrateFrom", "messageActionPinMessage", "messageActionHistoryClear", "messageActionGameScore", "messageActionPaymentSentMe", "messageActionPaymentSent", "messageActionPhoneCall", "messageActionScreenshotTaken", "messageActionCustomAction", "messageActionBotAllowed", "messageActionSecureValuesSentMe", "messageActionSecureValuesSent", "messageActionContactSignUp", "messageActionGeoProximityReached", "messageActionGroupCall", "messageActionInviteToGroupCall", "messageActionSetMessagesTTL", "messageActionGroupCallScheduled", "messageActionSetChatTheme", "messageActionChatJoinedByRequest", "messageActionWebViewDataSentMe", "messageActionWebViewDataSent", "messageActionGiftPremium", "messageActionTopicCreate", "messageActionTopicEdit", "messageActionSuggestProfilePhoto", "messageActionRequestedPeer", "messageActionSetChatWallPaper", "messageActionGiftCode", "messageActionGiveawayLaunch", "messageActionGiveawayResults", "messageActionBoostApply", "messageActionRequestedPeerSentMe"]],
|
|
1474
|
+
["MessageAction", ["messageActionEmpty", "messageActionChatCreate", "messageActionChatEditTitle", "messageActionChatEditPhoto", "messageActionChatDeletePhoto", "messageActionChatAddUser", "messageActionChatDeleteUser", "messageActionChatJoinedByLink", "messageActionChannelCreate", "messageActionChatMigrateTo", "messageActionChannelMigrateFrom", "messageActionPinMessage", "messageActionHistoryClear", "messageActionGameScore", "messageActionPaymentSentMe", "messageActionPaymentSent", "messageActionPhoneCall", "messageActionScreenshotTaken", "messageActionCustomAction", "messageActionBotAllowed", "messageActionSecureValuesSentMe", "messageActionSecureValuesSent", "messageActionContactSignUp", "messageActionGeoProximityReached", "messageActionGroupCall", "messageActionInviteToGroupCall", "messageActionSetMessagesTTL", "messageActionGroupCallScheduled", "messageActionSetChatTheme", "messageActionChatJoinedByRequest", "messageActionWebViewDataSentMe", "messageActionWebViewDataSent", "messageActionGiftPremium", "messageActionTopicCreate", "messageActionTopicEdit", "messageActionSuggestProfilePhoto", "messageActionRequestedPeer", "messageActionSetChatWallPaper", "messageActionGiftCode", "messageActionGiveawayLaunch", "messageActionGiveawayResults", "messageActionBoostApply", "messageActionRequestedPeerSentMe", "messageActionPaymentRefunded", "messageActionGiftStars"]],
|
|
1465
1475
|
["Dialog", ["dialog", "dialogFolder"]],
|
|
1466
1476
|
["Photo", ["photoEmpty", "photo"]],
|
|
1467
1477
|
["PhotoSize", ["photoSizeEmpty", "photoSize", "photoCachedSize", "photoStrippedSize", "photoSizeProgressive", "photoPathSize"]],
|
|
@@ -1709,7 +1719,7 @@ const enums = new Map([
|
|
|
1709
1719
|
["InlineBotSwitchPM", ["inlineBotSwitchPM"]],
|
|
1710
1720
|
["messages.PeerDialogs", ["messages.peerDialogs"]],
|
|
1711
1721
|
["TopPeer", ["topPeer"]],
|
|
1712
|
-
["TopPeerCategory", ["topPeerCategoryBotsPM", "topPeerCategoryBotsInline", "topPeerCategoryCorrespondents", "topPeerCategoryGroups", "topPeerCategoryChannels", "topPeerCategoryPhoneCalls", "topPeerCategoryForwardUsers", "topPeerCategoryForwardChats"]],
|
|
1722
|
+
["TopPeerCategory", ["topPeerCategoryBotsPM", "topPeerCategoryBotsInline", "topPeerCategoryCorrespondents", "topPeerCategoryGroups", "topPeerCategoryChannels", "topPeerCategoryPhoneCalls", "topPeerCategoryForwardUsers", "topPeerCategoryForwardChats", "topPeerCategoryBotsApp"]],
|
|
1713
1723
|
["TopPeerCategoryPeers", ["topPeerCategoryPeers"]],
|
|
1714
1724
|
["contacts.TopPeers", ["contacts.topPeersNotModified", "contacts.topPeers", "contacts.topPeersDisabled"]],
|
|
1715
1725
|
["DraftMessage", ["draftMessageEmpty", "draftMessage"]],
|
|
@@ -1979,7 +1989,7 @@ const enums = new Map([
|
|
|
1979
1989
|
["payments.ExportedInvoice", ["payments.exportedInvoice"]],
|
|
1980
1990
|
["messages.TranscribedAudio", ["messages.transcribedAudio"]],
|
|
1981
1991
|
["help.PremiumPromo", ["help.premiumPromo"]],
|
|
1982
|
-
["InputStorePaymentPurpose", ["inputStorePaymentPremiumSubscription", "inputStorePaymentGiftPremium", "inputStorePaymentPremiumGiftCode", "inputStorePaymentPremiumGiveaway", "
|
|
1992
|
+
["InputStorePaymentPurpose", ["inputStorePaymentPremiumSubscription", "inputStorePaymentGiftPremium", "inputStorePaymentPremiumGiftCode", "inputStorePaymentPremiumGiveaway", "inputStorePaymentStarsTopup", "inputStorePaymentStarsGift"]],
|
|
1983
1993
|
["PremiumGiftOption", ["premiumGiftOption"]],
|
|
1984
1994
|
["PaymentFormMethod", ["paymentFormMethod"]],
|
|
1985
1995
|
["EmojiStatus", ["emojiStatusEmpty", "emojiStatus", "emojiStatusUntil"]],
|
|
@@ -2033,7 +2043,7 @@ const enums = new Map([
|
|
|
2033
2043
|
["ExportedStoryLink", ["exportedStoryLink"]],
|
|
2034
2044
|
["StoriesStealthMode", ["storiesStealthMode"]],
|
|
2035
2045
|
["MediaAreaCoordinates", ["mediaAreaCoordinates"]],
|
|
2036
|
-
["MediaArea", ["mediaAreaVenue", "inputMediaAreaVenue", "mediaAreaGeoPoint", "mediaAreaSuggestedReaction", "mediaAreaChannelPost", "inputMediaAreaChannelPost", "mediaAreaUrl"]],
|
|
2046
|
+
["MediaArea", ["mediaAreaVenue", "inputMediaAreaVenue", "mediaAreaGeoPoint", "mediaAreaSuggestedReaction", "mediaAreaChannelPost", "inputMediaAreaChannelPost", "mediaAreaUrl", "mediaAreaWeather"]],
|
|
2037
2047
|
["PeerStories", ["peerStories"]],
|
|
2038
2048
|
["stories.PeerStories", ["stories.peerStories"]],
|
|
2039
2049
|
["messages.WebPage", ["messages.webPage"]],
|
|
@@ -2125,6 +2135,10 @@ const enums = new Map([
|
|
|
2125
2135
|
["payments.StarsRevenueWithdrawalUrl", ["payments.starsRevenueWithdrawalUrl"]],
|
|
2126
2136
|
["payments.StarsRevenueAdsAccountUrl", ["payments.starsRevenueAdsAccountUrl"]],
|
|
2127
2137
|
["InputStarsTransaction", ["inputStarsTransaction"]],
|
|
2138
|
+
["StarsGiftOption", ["starsGiftOption"]],
|
|
2139
|
+
["bots.PopularAppBots", ["bots.popularAppBots"]],
|
|
2140
|
+
["BotPreviewMedia", ["botPreviewMedia"]],
|
|
2141
|
+
["bots.PreviewInfo", ["bots.previewInfo"]],
|
|
2128
2142
|
]);
|
|
2129
2143
|
const types = new Map([
|
|
2130
2144
|
[
|
|
@@ -2702,6 +2716,15 @@ const types = new Map([
|
|
|
2702
2716
|
],
|
|
2703
2717
|
],
|
|
2704
2718
|
],
|
|
2719
|
+
[
|
|
2720
|
+
"inputFileStoryDocument",
|
|
2721
|
+
[
|
|
2722
|
+
0x62DC8B48,
|
|
2723
|
+
[
|
|
2724
|
+
["id", "InputDocument", "InputDocument"],
|
|
2725
|
+
],
|
|
2726
|
+
],
|
|
2727
|
+
],
|
|
2705
2728
|
[
|
|
2706
2729
|
"inputMediaEmpty",
|
|
2707
2730
|
[
|
|
@@ -3208,7 +3231,7 @@ const types = new Map([
|
|
|
3208
3231
|
[
|
|
3209
3232
|
"user",
|
|
3210
3233
|
[
|
|
3211
|
-
|
|
3234
|
+
0x83314FCA,
|
|
3212
3235
|
[
|
|
3213
3236
|
["flags", exports.flags, "#"],
|
|
3214
3237
|
["self", "true", "flags.10?true"],
|
|
@@ -3236,6 +3259,7 @@ const types = new Map([
|
|
|
3236
3259
|
["stories_unavailable", "true", "flags2.4?true"],
|
|
3237
3260
|
["contact_require_premium", "true", "flags2.10?true"],
|
|
3238
3261
|
["bot_business", "true", "flags2.11?true"],
|
|
3262
|
+
["bot_has_main_app", "true", "flags2.13?true"],
|
|
3239
3263
|
["id", "bigint", "long"],
|
|
3240
3264
|
["access_hash", "bigint", "flags.0?long"],
|
|
3241
3265
|
["first_name", "string", "flags.1?string"],
|
|
@@ -3253,6 +3277,7 @@ const types = new Map([
|
|
|
3253
3277
|
["stories_max_id", "number", "flags2.5?int"],
|
|
3254
3278
|
["color", "PeerColor", "flags2.8?PeerColor"],
|
|
3255
3279
|
["profile_color", "PeerColor", "flags2.9?PeerColor"],
|
|
3280
|
+
["bot_active_users", "number", "flags2.12?int"],
|
|
3256
3281
|
],
|
|
3257
3282
|
],
|
|
3258
3283
|
],
|
|
@@ -3493,6 +3518,7 @@ const types = new Map([
|
|
|
3493
3518
|
["restricted_sponsored", "true", "flags2.11?true"],
|
|
3494
3519
|
["can_view_revenue", "true", "flags2.12?true"],
|
|
3495
3520
|
["paid_media_allowed", "true", "flags2.14?true"],
|
|
3521
|
+
["can_view_stars_revenue", "true", "flags2.15?true"],
|
|
3496
3522
|
["id", "bigint", "long"],
|
|
3497
3523
|
["about", "string", "string"],
|
|
3498
3524
|
["participants_count", "number", "flags.0?int"],
|
|
@@ -4337,6 +4363,35 @@ const types = new Map([
|
|
|
4337
4363
|
],
|
|
4338
4364
|
],
|
|
4339
4365
|
],
|
|
4366
|
+
[
|
|
4367
|
+
"messageActionPaymentRefunded",
|
|
4368
|
+
[
|
|
4369
|
+
0x41B3E202,
|
|
4370
|
+
[
|
|
4371
|
+
["flags", exports.flags, "#"],
|
|
4372
|
+
["peer", "Peer", "Peer"],
|
|
4373
|
+
["currency", "string", "string"],
|
|
4374
|
+
["total_amount", "bigint", "long"],
|
|
4375
|
+
["payload", Uint8Array, "flags.0?bytes"],
|
|
4376
|
+
["charge", "PaymentCharge", "PaymentCharge"],
|
|
4377
|
+
],
|
|
4378
|
+
],
|
|
4379
|
+
],
|
|
4380
|
+
[
|
|
4381
|
+
"messageActionGiftStars",
|
|
4382
|
+
[
|
|
4383
|
+
0x45D5B021,
|
|
4384
|
+
[
|
|
4385
|
+
["flags", exports.flags, "#"],
|
|
4386
|
+
["currency", "string", "string"],
|
|
4387
|
+
["amount", "bigint", "long"],
|
|
4388
|
+
["stars", "bigint", "long"],
|
|
4389
|
+
["crypto_currency", "string", "flags.0?string"],
|
|
4390
|
+
["crypto_amount", "bigint", "flags.0?long"],
|
|
4391
|
+
["transaction_id", "string", "flags.1?string"],
|
|
4392
|
+
],
|
|
4393
|
+
],
|
|
4394
|
+
],
|
|
4340
4395
|
[
|
|
4341
4396
|
"dialog",
|
|
4342
4397
|
[
|
|
@@ -7787,7 +7842,7 @@ const types = new Map([
|
|
|
7787
7842
|
[
|
|
7788
7843
|
"documentAttributeVideo",
|
|
7789
7844
|
[
|
|
7790
|
-
|
|
7845
|
+
0x17399FAD,
|
|
7791
7846
|
[
|
|
7792
7847
|
["flags", exports.flags, "#"],
|
|
7793
7848
|
["round_message", "true", "flags.0?true"],
|
|
@@ -7797,6 +7852,7 @@ const types = new Map([
|
|
|
7797
7852
|
["w", "number", "int"],
|
|
7798
7853
|
["h", "number", "int"],
|
|
7799
7854
|
["preload_prefix_size", "number", "flags.2?int"],
|
|
7855
|
+
["video_start_ts", "number", "flags.4?double"],
|
|
7800
7856
|
],
|
|
7801
7857
|
],
|
|
7802
7858
|
],
|
|
@@ -8277,6 +8333,7 @@ const types = new Map([
|
|
|
8277
8333
|
0x8F300B57,
|
|
8278
8334
|
[
|
|
8279
8335
|
["flags", exports.flags, "#"],
|
|
8336
|
+
["has_preview_medias", "true", "flags.6?true"],
|
|
8280
8337
|
["user_id", "bigint", "flags.0?long"],
|
|
8281
8338
|
["description", "string", "flags.1?string"],
|
|
8282
8339
|
["description_photo", "Photo", "flags.4?Photo"],
|
|
@@ -9705,6 +9762,13 @@ const types = new Map([
|
|
|
9705
9762
|
[],
|
|
9706
9763
|
],
|
|
9707
9764
|
],
|
|
9765
|
+
[
|
|
9766
|
+
"topPeerCategoryBotsApp",
|
|
9767
|
+
[
|
|
9768
|
+
0xFD9E7BEC,
|
|
9769
|
+
[],
|
|
9770
|
+
],
|
|
9771
|
+
],
|
|
9708
9772
|
[
|
|
9709
9773
|
"topPeerCategoryPeers",
|
|
9710
9774
|
[
|
|
@@ -14530,9 +14594,9 @@ const types = new Map([
|
|
|
14530
14594
|
[
|
|
14531
14595
|
"inputInvoiceStars",
|
|
14532
14596
|
[
|
|
14533
|
-
|
|
14597
|
+
0x65F00CE3,
|
|
14534
14598
|
[
|
|
14535
|
-
["
|
|
14599
|
+
["purpose", "InputStorePaymentPurpose", "InputStorePaymentPurpose"],
|
|
14536
14600
|
],
|
|
14537
14601
|
],
|
|
14538
14602
|
],
|
|
@@ -14628,11 +14692,22 @@ const types = new Map([
|
|
|
14628
14692
|
],
|
|
14629
14693
|
],
|
|
14630
14694
|
[
|
|
14631
|
-
"
|
|
14695
|
+
"inputStorePaymentStarsTopup",
|
|
14632
14696
|
[
|
|
14633
|
-
|
|
14697
|
+
0xDDDD0F56,
|
|
14634
14698
|
[
|
|
14635
|
-
["
|
|
14699
|
+
["stars", "bigint", "long"],
|
|
14700
|
+
["currency", "string", "string"],
|
|
14701
|
+
["amount", "bigint", "long"],
|
|
14702
|
+
],
|
|
14703
|
+
],
|
|
14704
|
+
],
|
|
14705
|
+
[
|
|
14706
|
+
"inputStorePaymentStarsGift",
|
|
14707
|
+
[
|
|
14708
|
+
0x1D741EF7,
|
|
14709
|
+
[
|
|
14710
|
+
["user_id", "InputUser", "InputUser"],
|
|
14636
14711
|
["stars", "bigint", "long"],
|
|
14637
14712
|
["currency", "string", "string"],
|
|
14638
14713
|
["amount", "bigint", "long"],
|
|
@@ -15682,6 +15757,18 @@ const types = new Map([
|
|
|
15682
15757
|
],
|
|
15683
15758
|
],
|
|
15684
15759
|
],
|
|
15760
|
+
[
|
|
15761
|
+
"mediaAreaWeather",
|
|
15762
|
+
[
|
|
15763
|
+
0x49A6549C,
|
|
15764
|
+
[
|
|
15765
|
+
["coordinates", "MediaAreaCoordinates", "MediaAreaCoordinates"],
|
|
15766
|
+
["emoji", "string", "string"],
|
|
15767
|
+
["temperature_c", "number", "double"],
|
|
15768
|
+
["color", "number", "int"],
|
|
15769
|
+
],
|
|
15770
|
+
],
|
|
15771
|
+
],
|
|
15685
15772
|
[
|
|
15686
15773
|
"peerStories",
|
|
15687
15774
|
[
|
|
@@ -16940,6 +17027,7 @@ const types = new Map([
|
|
|
16940
17027
|
["refund", "true", "flags.3?true"],
|
|
16941
17028
|
["pending", "true", "flags.4?true"],
|
|
16942
17029
|
["failed", "true", "flags.6?true"],
|
|
17030
|
+
["gift", "true", "flags.10?true"],
|
|
16943
17031
|
["id", "string", "string"],
|
|
16944
17032
|
["stars", "bigint", "long"],
|
|
16945
17033
|
["date", "number", "int"],
|
|
@@ -17060,6 +17148,51 @@ const types = new Map([
|
|
|
17060
17148
|
],
|
|
17061
17149
|
],
|
|
17062
17150
|
],
|
|
17151
|
+
[
|
|
17152
|
+
"starsGiftOption",
|
|
17153
|
+
[
|
|
17154
|
+
0x5E0589F1,
|
|
17155
|
+
[
|
|
17156
|
+
["flags", exports.flags, "#"],
|
|
17157
|
+
["extended", "true", "flags.1?true"],
|
|
17158
|
+
["stars", "bigint", "long"],
|
|
17159
|
+
["store_product", "string", "flags.0?string"],
|
|
17160
|
+
["currency", "string", "string"],
|
|
17161
|
+
["amount", "bigint", "long"],
|
|
17162
|
+
],
|
|
17163
|
+
],
|
|
17164
|
+
],
|
|
17165
|
+
[
|
|
17166
|
+
"bots.popularAppBots",
|
|
17167
|
+
[
|
|
17168
|
+
0x1991B13B,
|
|
17169
|
+
[
|
|
17170
|
+
["flags", exports.flags, "#"],
|
|
17171
|
+
["next_offset", "string", "flags.0?string"],
|
|
17172
|
+
["users", ["User"], "Vector<User>"],
|
|
17173
|
+
],
|
|
17174
|
+
],
|
|
17175
|
+
],
|
|
17176
|
+
[
|
|
17177
|
+
"botPreviewMedia",
|
|
17178
|
+
[
|
|
17179
|
+
0x23E91BA3,
|
|
17180
|
+
[
|
|
17181
|
+
["date", "number", "int"],
|
|
17182
|
+
["media", "MessageMedia", "MessageMedia"],
|
|
17183
|
+
],
|
|
17184
|
+
],
|
|
17185
|
+
],
|
|
17186
|
+
[
|
|
17187
|
+
"bots.previewInfo",
|
|
17188
|
+
[
|
|
17189
|
+
0x0CA71D64,
|
|
17190
|
+
[
|
|
17191
|
+
["media", ["BotPreviewMedia"], "Vector<BotPreviewMedia>"],
|
|
17192
|
+
["lang_codes", ["string"], "Vector<string>"],
|
|
17193
|
+
],
|
|
17194
|
+
],
|
|
17195
|
+
],
|
|
17063
17196
|
[
|
|
17064
17197
|
"req_pq_multi",
|
|
17065
17198
|
[
|
|
@@ -18755,6 +18888,7 @@ const types = new Map([
|
|
|
18755
18888
|
["forward_chats", "true", "flags.5?true"],
|
|
18756
18889
|
["groups", "true", "flags.10?true"],
|
|
18757
18890
|
["channels", "true", "flags.15?true"],
|
|
18891
|
+
["bots_app", "true", "flags.16?true"],
|
|
18758
18892
|
["offset", "number", "int"],
|
|
18759
18893
|
["limit", "number", "int"],
|
|
18760
18894
|
["hash", "bigint", "long"],
|
|
@@ -21322,6 +21456,21 @@ const types = new Map([
|
|
|
21322
21456
|
],
|
|
21323
21457
|
],
|
|
21324
21458
|
],
|
|
21459
|
+
[
|
|
21460
|
+
"messages.requestMainWebView",
|
|
21461
|
+
[
|
|
21462
|
+
0xC9E01E7B,
|
|
21463
|
+
[
|
|
21464
|
+
["flags", exports.flags, "#"],
|
|
21465
|
+
["compact", "true", "flags.7?true"],
|
|
21466
|
+
["peer", "InputPeer", "InputPeer"],
|
|
21467
|
+
["bot", "InputUser", "InputUser"],
|
|
21468
|
+
["start_param", "string", "flags.1?string"],
|
|
21469
|
+
["theme_params", "DataJSON", "flags.0?DataJSON"],
|
|
21470
|
+
["platform", "string", "string"],
|
|
21471
|
+
],
|
|
21472
|
+
],
|
|
21473
|
+
],
|
|
21325
21474
|
[
|
|
21326
21475
|
"updates.getState",
|
|
21327
21476
|
[
|
|
@@ -22576,6 +22725,80 @@ const types = new Map([
|
|
|
22576
22725
|
],
|
|
22577
22726
|
],
|
|
22578
22727
|
],
|
|
22728
|
+
[
|
|
22729
|
+
"bots.getPopularAppBots",
|
|
22730
|
+
[
|
|
22731
|
+
0xC2510192,
|
|
22732
|
+
[
|
|
22733
|
+
["offset", "string", "string"],
|
|
22734
|
+
["limit", "number", "int"],
|
|
22735
|
+
],
|
|
22736
|
+
],
|
|
22737
|
+
],
|
|
22738
|
+
[
|
|
22739
|
+
"bots.addPreviewMedia",
|
|
22740
|
+
[
|
|
22741
|
+
0x17AEB75A,
|
|
22742
|
+
[
|
|
22743
|
+
["bot", "InputUser", "InputUser"],
|
|
22744
|
+
["lang_code", "string", "string"],
|
|
22745
|
+
["media", "InputMedia", "InputMedia"],
|
|
22746
|
+
],
|
|
22747
|
+
],
|
|
22748
|
+
],
|
|
22749
|
+
[
|
|
22750
|
+
"bots.editPreviewMedia",
|
|
22751
|
+
[
|
|
22752
|
+
0x8525606F,
|
|
22753
|
+
[
|
|
22754
|
+
["bot", "InputUser", "InputUser"],
|
|
22755
|
+
["lang_code", "string", "string"],
|
|
22756
|
+
["media", "InputMedia", "InputMedia"],
|
|
22757
|
+
["new_media", "InputMedia", "InputMedia"],
|
|
22758
|
+
],
|
|
22759
|
+
],
|
|
22760
|
+
],
|
|
22761
|
+
[
|
|
22762
|
+
"bots.deletePreviewMedia",
|
|
22763
|
+
[
|
|
22764
|
+
0x2D0135B3,
|
|
22765
|
+
[
|
|
22766
|
+
["bot", "InputUser", "InputUser"],
|
|
22767
|
+
["lang_code", "string", "string"],
|
|
22768
|
+
["media", ["InputMedia"], "Vector<InputMedia>"],
|
|
22769
|
+
],
|
|
22770
|
+
],
|
|
22771
|
+
],
|
|
22772
|
+
[
|
|
22773
|
+
"bots.reorderPreviewMedias",
|
|
22774
|
+
[
|
|
22775
|
+
0xB627F3AA,
|
|
22776
|
+
[
|
|
22777
|
+
["bot", "InputUser", "InputUser"],
|
|
22778
|
+
["lang_code", "string", "string"],
|
|
22779
|
+
["order", ["InputMedia"], "Vector<InputMedia>"],
|
|
22780
|
+
],
|
|
22781
|
+
],
|
|
22782
|
+
],
|
|
22783
|
+
[
|
|
22784
|
+
"bots.getPreviewInfo",
|
|
22785
|
+
[
|
|
22786
|
+
0x423AB3AD,
|
|
22787
|
+
[
|
|
22788
|
+
["bot", "InputUser", "InputUser"],
|
|
22789
|
+
["lang_code", "string", "string"],
|
|
22790
|
+
],
|
|
22791
|
+
],
|
|
22792
|
+
],
|
|
22793
|
+
[
|
|
22794
|
+
"bots.getPreviewMedias",
|
|
22795
|
+
[
|
|
22796
|
+
0xA2A5594D,
|
|
22797
|
+
[
|
|
22798
|
+
["bot", "InputUser", "InputUser"],
|
|
22799
|
+
],
|
|
22800
|
+
],
|
|
22801
|
+
],
|
|
22579
22802
|
[
|
|
22580
22803
|
"payments.getPaymentForm",
|
|
22581
22804
|
[
|
|
@@ -22831,6 +23054,16 @@ const types = new Map([
|
|
|
22831
23054
|
],
|
|
22832
23055
|
],
|
|
22833
23056
|
],
|
|
23057
|
+
[
|
|
23058
|
+
"payments.getStarsGiftOptions",
|
|
23059
|
+
[
|
|
23060
|
+
0xD3C96BC8,
|
|
23061
|
+
[
|
|
23062
|
+
["flags", exports.flags, "#"],
|
|
23063
|
+
["user_id", "InputUser", "flags.0?InputUser"],
|
|
23064
|
+
],
|
|
23065
|
+
],
|
|
23066
|
+
],
|
|
22834
23067
|
[
|
|
22835
23068
|
"stickers.createStickerSet",
|
|
22836
23069
|
[
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
+
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of MTKruto.
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
import { Api } from "../2_tl.js";
|
|
21
|
+
export interface RefundedPayment {
|
|
22
|
+
currency: string;
|
|
23
|
+
totalAmount: number;
|
|
24
|
+
invoicePayload: string;
|
|
25
|
+
telegramPaymentChargeId: string;
|
|
26
|
+
providerPaymentChargeId?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare function constructRefundedPayment(action: Api.messageActionPaymentRefunded): RefundedPayment;
|
|
29
|
+
//# sourceMappingURL=0_refunded_payment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"0_refunded_payment.d.ts","sourceRoot":"","sources":["../../src/types/0_refunded_payment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEjC,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,uBAAuB,EAAE,MAAM,CAAC;IAChC,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,4BAA4B,GAAG,eAAe,CAQlG"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
4
|
+
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
5
|
+
*
|
|
6
|
+
* This file is part of MTKruto.
|
|
7
|
+
*
|
|
8
|
+
* This program is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU Lesser General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
19
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
+
exports.constructRefundedPayment = void 0;
|
|
23
|
+
const _1_utilities_js_1 = require("../1_utilities.js");
|
|
24
|
+
function constructRefundedPayment(action) {
|
|
25
|
+
return (0, _1_utilities_js_1.cleanObject)({
|
|
26
|
+
currency: action.currency,
|
|
27
|
+
totalAmount: Number(action.total_amount),
|
|
28
|
+
invoicePayload: new TextDecoder().decode(action.payload),
|
|
29
|
+
telegramPaymentChargeId: action.charge.id,
|
|
30
|
+
providerPaymentChargeId: action.charge.provider_charge_id,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
exports.constructRefundedPayment = constructRefundedPayment;
|
package/script/types/2_chat.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_chat.d.ts","sourceRoot":"","sources":["../../src/types/2_chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAM,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAqB,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAqB,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAyB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,EAAkB,MAAM,eAAe,CAAC;AAExG,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,gBAAgB;AAChB,MAAM,WAAW,QAAQ;IACvB,wBAAwB;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,gBAAgB;AAChB,MAAM,WAAW,WAAY,SAAQ,QAAQ,EAAE,YAAY;IACzD,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,gBAAgB;AAChB,MAAM,WAAW,cAAe,SAAQ,QAAQ,EAAE,eAAe;IAC/D,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,gBAAgB;AAChB,MAAM,WAAW,SAAU,SAAQ,QAAQ,EAAE,UAAU;IACrD,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,gBAAgB;AAChB,MAAM,WAAW,WAAY,SAAQ,QAAQ,EAAE,YAAY;IACzD,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,yCAAyC;IACzC,YAAY,CAAC,EAAE,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"2_chat.d.ts","sourceRoot":"","sources":["../../src/types/2_chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,GAAG,EAAM,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAqB,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAqB,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAyB,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,eAAe,EAAkB,MAAM,eAAe,CAAC;AAExG,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,gBAAgB;AAChB,MAAM,WAAW,QAAQ;IACvB,wBAAwB;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,gBAAgB;AAChB,MAAM,WAAW,WAAY,SAAQ,QAAQ,EAAE,YAAY;IACzD,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,gBAAgB;AAChB,MAAM,WAAW,cAAe,SAAQ,QAAQ,EAAE,eAAe;IAC/D,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,gBAAgB;AAChB,MAAM,WAAW,SAAU,SAAQ,QAAQ,EAAE,UAAU;IACrD,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,gBAAgB;AAChB,MAAM,WAAW,WAAY,SAAQ,QAAQ,EAAE,YAAY;IACzD,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,yCAAyC;IACzC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,WAAW,GAAG,cAAc,GAAG,SAAS,GAAG,WAAW,CAAC;AAE1E,wBAAsB,aAAa,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,WAAW,EAAE,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAmCnI"}
|
package/script/types/2_chat.js
CHANGED
|
@@ -41,6 +41,7 @@ async function constructChat(fullChat, getEntity) {
|
|
|
41
41
|
address: fullChat.business_location?.address,
|
|
42
42
|
location: fullChat.business_location?.geo_point && (0, _2_tl_js_1.is)("geoPoint", fullChat.business_location.geo_point) ? (0, _0_location_js_1.constructLocation)(fullChat.business_location.geo_point) : undefined,
|
|
43
43
|
openingHours: fullChat.business_work_hours ? (0, _0_opening_hours_js_1.constructOpeningHours)(fullChat.business_work_hours) : undefined,
|
|
44
|
+
hasMainMiniApp: user.bot ? user.bot_has_main_app : undefined,
|
|
44
45
|
});
|
|
45
46
|
}
|
|
46
47
|
else if ((0, _2_tl_js_1.is)("chatFull", fullChat)) {
|
|
@@ -44,6 +44,7 @@ import { Game } from "./2_game.js";
|
|
|
44
44
|
import { Poll } from "./2_poll.js";
|
|
45
45
|
import { ReplyMarkup } from "./3_reply_markup.js";
|
|
46
46
|
import { SuccessfulPayment } from "./2_successful_payment.js";
|
|
47
|
+
import { RefundedPayment } from "./0_refunded_payment.js";
|
|
47
48
|
/**
|
|
48
49
|
* Properties shared between all message types.
|
|
49
50
|
* @unlisted
|
|
@@ -547,6 +548,14 @@ export interface MessageSuccessfulPayment extends _MessageBase {
|
|
|
547
548
|
/** @discriminator */
|
|
548
549
|
successfulPayment: SuccessfulPayment;
|
|
549
550
|
}
|
|
551
|
+
/**
|
|
552
|
+
* A payment was successfully refunded. Bot-only.
|
|
553
|
+
* @unlisted
|
|
554
|
+
*/
|
|
555
|
+
export interface MessageRefundedPayment extends _MessageBase {
|
|
556
|
+
/** @discriminator */
|
|
557
|
+
refundedPayment: RefundedPayment;
|
|
558
|
+
}
|
|
550
559
|
/** @unlisted */
|
|
551
560
|
export interface MessageTypes {
|
|
552
561
|
text: MessageText;
|
|
@@ -590,10 +599,11 @@ export interface MessageTypes {
|
|
|
590
599
|
giveaway: MessageGiveaway;
|
|
591
600
|
unsupported: MessageUnsupported;
|
|
592
601
|
successfulPayment: MessageSuccessfulPayment;
|
|
602
|
+
refundedPayment: MessageRefundedPayment;
|
|
593
603
|
}
|
|
594
604
|
export declare function assertMessageType<T extends keyof MessageTypes>(message: Message, type: T): MessageTypes[T];
|
|
595
605
|
/** Any type of message. */
|
|
596
|
-
export type Message = MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment;
|
|
606
|
+
export type Message = MessageText | MessageLink | MessagePhoto | MessageDocument | MessageVideo | MessageSticker | MessageAnimation | MessageVoice | MessageAudio | MessageDice | MessageVideoNote | MessageContact | MessageGame | MessagePoll | MessageInvoice | MessageVenue | MessageLocation | MessageNewChatMembers | MessageLeftChatMember | MessageNewChatTitle | MessageNewChatPhoto | MessageDeletedChatPhoto | MessageGroupCreated | MessageSupergroupCreated | MessageChannelCreated | MessageAutoDeleteTimerChanged | MessageChatMigratedTo | MessageChatMigratedFrom | MessagePinnedMessage | MessageUserShared | MessageWriteAccessAllowed | MessageForumTopicCreated | MessageForumTopicEdited | MessageForumTopicClosed | MessageForumTopicReopened | MessageVideoChatScheduled | MessageVideoChatStarted | MessageVideoChatEnded | MessageGiveaway | MessageUnsupported | MessageSuccessfulPayment | MessageRefundedPayment;
|
|
597
607
|
/** @unlisted */
|
|
598
608
|
export interface MessageGetter {
|
|
599
609
|
(chatId: number, messageId: number): MaybePromise<Message | null>;
|