@mtcute/tl 199.0.0 → 201.0.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 +1 -1
- package/api-schema.json +1 -1
- package/binary/reader.js +31 -13
- package/binary/writer.js +59 -29
- package/compat/index.d.ts +495 -0
- package/compat/reader.d.ts +1 -0
- package/compat/reader.js +18 -0
- package/index.d.ts +280 -157
- package/index.js +9 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
1
|
import _Long from 'long';
|
|
3
|
-
|
|
4
2
|
export declare namespace tl {
|
|
5
|
-
const LAYER =
|
|
3
|
+
const LAYER = 201;
|
|
6
4
|
|
|
7
5
|
function $extendTypes(types: Record<string, string>): void
|
|
8
6
|
|
|
@@ -2128,6 +2126,7 @@ export class RpcError extends Error {
|
|
|
2128
2126
|
*/
|
|
2129
2127
|
botActiveUsers?: number;
|
|
2130
2128
|
botVerificationIcon?: Long;
|
|
2129
|
+
sendPaidMessagesStars?: Long;
|
|
2131
2130
|
}
|
|
2132
2131
|
/**
|
|
2133
2132
|
* Profile photo has not been set, or was hidden.
|
|
@@ -2661,6 +2660,7 @@ export class RpcError extends Error {
|
|
|
2661
2660
|
*/
|
|
2662
2661
|
subscriptionUntilDate?: number;
|
|
2663
2662
|
botVerificationIcon?: Long;
|
|
2663
|
+
sendPaidMessagesStars?: Long;
|
|
2664
2664
|
}
|
|
2665
2665
|
/**
|
|
2666
2666
|
* Indicates a channel/supergroup we can't access because we
|
|
@@ -2930,6 +2930,7 @@ export class RpcError extends Error {
|
|
|
2930
2930
|
*/
|
|
2931
2931
|
paidReactionsAvailable?: boolean;
|
|
2932
2932
|
stargiftsAvailable?: boolean;
|
|
2933
|
+
paidMessagesAvailable?: boolean;
|
|
2933
2934
|
/**
|
|
2934
2935
|
* ID of the channel
|
|
2935
2936
|
*/
|
|
@@ -3500,6 +3501,7 @@ export class RpcError extends Error {
|
|
|
3500
3501
|
*/
|
|
3501
3502
|
factcheck?: tl.TypeFactCheck;
|
|
3502
3503
|
reportDeliveryUntilDate?: number;
|
|
3504
|
+
paidMessageStars?: Long;
|
|
3503
3505
|
}
|
|
3504
3506
|
/**
|
|
3505
3507
|
* Indicates a service message
|
|
@@ -5571,6 +5573,11 @@ export class RpcError extends Error {
|
|
|
5571
5573
|
* is set.
|
|
5572
5574
|
*/
|
|
5573
5575
|
businessBotManageUrl?: string;
|
|
5576
|
+
chargePaidMessageStars?: Long;
|
|
5577
|
+
registrationMonth?: string;
|
|
5578
|
+
phoneCountry?: string;
|
|
5579
|
+
nameChangeDate?: number;
|
|
5580
|
+
photoChangeDate?: number;
|
|
5574
5581
|
}
|
|
5575
5582
|
/**
|
|
5576
5583
|
* Represents a
|
|
@@ -5826,6 +5833,7 @@ export class RpcError extends Error {
|
|
|
5826
5833
|
* our emoji status »</a>
|
|
5827
5834
|
*/
|
|
5828
5835
|
botCanManageEmojiStatus?: boolean;
|
|
5836
|
+
displayGiftsButton?: boolean;
|
|
5829
5837
|
/**
|
|
5830
5838
|
* User ID
|
|
5831
5839
|
*/
|
|
@@ -5908,10 +5916,6 @@ export class RpcError extends Error {
|
|
|
5908
5916
|
* for more info on how to handle them »</a>.
|
|
5909
5917
|
*/
|
|
5910
5918
|
botBroadcastAdminRights?: tl.TypeChatAdminRights;
|
|
5911
|
-
/**
|
|
5912
|
-
* Telegram Premium subscriptions gift options
|
|
5913
|
-
*/
|
|
5914
|
-
premiumGifts?: tl.TypePremiumGiftOption[];
|
|
5915
5919
|
/**
|
|
5916
5920
|
* <a href="https://corefork.telegram.org/api/wallpapers">Wallpaper</a>
|
|
5917
5921
|
* to use in the private chat with the user.
|
|
@@ -5984,6 +5988,8 @@ export class RpcError extends Error {
|
|
|
5984
5988
|
*/
|
|
5985
5989
|
starrefProgram?: tl.TypeStarRefProgram;
|
|
5986
5990
|
botVerification?: tl.TypeBotVerification;
|
|
5991
|
+
sendPaidMessagesStars?: Long;
|
|
5992
|
+
disallowedGifts?: tl.TypeDisallowedGiftsSettings;
|
|
5987
5993
|
}
|
|
5988
5994
|
/**
|
|
5989
5995
|
* A contact of the current user that is registered in the
|
|
@@ -10161,6 +10167,9 @@ export class RpcError extends Error {
|
|
|
10161
10167
|
interface RawInputPrivacyKeyStarGiftsAutoSave {
|
|
10162
10168
|
_: 'inputPrivacyKeyStarGiftsAutoSave';
|
|
10163
10169
|
}
|
|
10170
|
+
interface RawInputPrivacyKeyNoPaidMessages {
|
|
10171
|
+
_: 'inputPrivacyKeyNoPaidMessages';
|
|
10172
|
+
}
|
|
10164
10173
|
/**
|
|
10165
10174
|
* Whether we can see the last online timestamp of this user.
|
|
10166
10175
|
*
|
|
@@ -10254,6 +10263,9 @@ export class RpcError extends Error {
|
|
|
10254
10263
|
interface RawPrivacyKeyStarGiftsAutoSave {
|
|
10255
10264
|
_: 'privacyKeyStarGiftsAutoSave';
|
|
10256
10265
|
}
|
|
10266
|
+
interface RawPrivacyKeyNoPaidMessages {
|
|
10267
|
+
_: 'privacyKeyNoPaidMessages';
|
|
10268
|
+
}
|
|
10257
10269
|
/**
|
|
10258
10270
|
* Allow only contacts
|
|
10259
10271
|
*/
|
|
@@ -19139,6 +19151,9 @@ export class RpcError extends Error {
|
|
|
19139
19151
|
* enable this flag.
|
|
19140
19152
|
*/
|
|
19141
19153
|
newNoncontactPeersRequirePremium?: boolean;
|
|
19154
|
+
displayGiftsButton?: boolean;
|
|
19155
|
+
noncontactPeersPaidStars?: Long;
|
|
19156
|
+
disallowedGifts?: tl.TypeDisallowedGiftsSettings;
|
|
19142
19157
|
}
|
|
19143
19158
|
/**
|
|
19144
19159
|
* View, forward counter + info about replies of a specific
|
|
@@ -20509,6 +20524,12 @@ export class RpcError extends Error {
|
|
|
20509
20524
|
stargift: tl.TypeInputSavedStarGift;
|
|
20510
20525
|
toId: tl.TypeInputPeer;
|
|
20511
20526
|
}
|
|
20527
|
+
interface RawInputInvoicePremiumGiftStars {
|
|
20528
|
+
_: 'inputInvoicePremiumGiftStars';
|
|
20529
|
+
userId: tl.TypeInputUser;
|
|
20530
|
+
months: number;
|
|
20531
|
+
message?: tl.TypeTextWithEntities;
|
|
20532
|
+
}
|
|
20512
20533
|
/**
|
|
20513
20534
|
* Info about a Telegram Premium purchase
|
|
20514
20535
|
*/
|
|
@@ -20819,45 +20840,6 @@ export class RpcError extends Error {
|
|
|
20819
20840
|
*/
|
|
20820
20841
|
users: number;
|
|
20821
20842
|
}
|
|
20822
|
-
/**
|
|
20823
|
-
* Telegram Premium gift option
|
|
20824
|
-
*/
|
|
20825
|
-
interface RawPremiumGiftOption {
|
|
20826
|
-
_: 'premiumGiftOption';
|
|
20827
|
-
/**
|
|
20828
|
-
* Duration of gifted Telegram Premium subscription
|
|
20829
|
-
*/
|
|
20830
|
-
months: number;
|
|
20831
|
-
/**
|
|
20832
|
-
* Three-letter ISO 4217
|
|
20833
|
-
* <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a>
|
|
20834
|
-
* code
|
|
20835
|
-
*/
|
|
20836
|
-
currency: string;
|
|
20837
|
-
/**
|
|
20838
|
-
* Price of the product in the smallest units of the currency
|
|
20839
|
-
* (integer, not float/double). For example, for a price of
|
|
20840
|
-
* <code>US$ 1.45</code> pass <code>amount = 145</code>. See
|
|
20841
|
-
* the exp parameter in
|
|
20842
|
-
* <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>,
|
|
20843
|
-
* it shows the number of digits past the decimal point for
|
|
20844
|
-
* each currency (2 for the majority of currencies).
|
|
20845
|
-
*/
|
|
20846
|
-
amount: Long;
|
|
20847
|
-
/**
|
|
20848
|
-
* An
|
|
20849
|
-
* <a href="https://corefork.telegram.org/api/links#invoice-links">invoice
|
|
20850
|
-
* deep link »</a> to an invoice for in-app payment, using the
|
|
20851
|
-
* official Premium bot; may be empty if direct payment isn't
|
|
20852
|
-
* available.
|
|
20853
|
-
*/
|
|
20854
|
-
botUrl: string;
|
|
20855
|
-
/**
|
|
20856
|
-
* An identifier for the App Store/Play Store product
|
|
20857
|
-
* associated with the Premium gift.
|
|
20858
|
-
*/
|
|
20859
|
-
storeProduct?: string;
|
|
20860
|
-
}
|
|
20861
20843
|
/**
|
|
20862
20844
|
* Represents an additional payment method
|
|
20863
20845
|
*/
|
|
@@ -23201,11 +23183,6 @@ export class RpcError extends Error {
|
|
|
23201
23183
|
*/
|
|
23202
23184
|
interface RawConnectedBot {
|
|
23203
23185
|
_: 'connectedBot';
|
|
23204
|
-
/**
|
|
23205
|
-
* Whether the the bot can reply to messages it receives
|
|
23206
|
-
* through the connection
|
|
23207
|
-
*/
|
|
23208
|
-
canReply?: boolean;
|
|
23209
23186
|
/**
|
|
23210
23187
|
* ID of the connected bot
|
|
23211
23188
|
*/
|
|
@@ -23218,6 +23195,7 @@ export class RpcError extends Error {
|
|
|
23218
23195
|
*
|
|
23219
23196
|
*/
|
|
23220
23197
|
recipients: tl.TypeBusinessBotRecipients;
|
|
23198
|
+
rights: tl.TypeBusinessBotRights;
|
|
23221
23199
|
}
|
|
23222
23200
|
/**
|
|
23223
23201
|
* <a href="https://corefork.telegram.org/api/profile#birthday">Birthday</a>
|
|
@@ -23250,11 +23228,6 @@ export class RpcError extends Error {
|
|
|
23250
23228
|
*/
|
|
23251
23229
|
interface RawBotBusinessConnection {
|
|
23252
23230
|
_: 'botBusinessConnection';
|
|
23253
|
-
/**
|
|
23254
|
-
* Whether the bot can reply on behalf of the user to messages
|
|
23255
|
-
* it receives through the business connection
|
|
23256
|
-
*/
|
|
23257
|
-
canReply?: boolean;
|
|
23258
23231
|
/**
|
|
23259
23232
|
* Whether this business connection is currently disabled
|
|
23260
23233
|
*/
|
|
@@ -23282,6 +23255,7 @@ export class RpcError extends Error {
|
|
|
23282
23255
|
* When was the connection created.
|
|
23283
23256
|
*/
|
|
23284
23257
|
date: number;
|
|
23258
|
+
rights?: tl.TypeBusinessBotRights;
|
|
23285
23259
|
}
|
|
23286
23260
|
/**
|
|
23287
23261
|
* <a href="https://corefork.telegram.org/api/business#business-introduction">Telegram
|
|
@@ -24169,6 +24143,9 @@ export class RpcError extends Error {
|
|
|
24169
24143
|
* affiliate, can be negative for refunds.
|
|
24170
24144
|
*/
|
|
24171
24145
|
starrefAmount?: tl.TypeStarsAmount;
|
|
24146
|
+
paidMessages?: number;
|
|
24147
|
+
premiumGiftMonths?: number;
|
|
24148
|
+
businessTransfer?: boolean;
|
|
24172
24149
|
}
|
|
24173
24150
|
/**
|
|
24174
24151
|
* A story found using
|
|
@@ -24829,6 +24806,7 @@ export class RpcError extends Error {
|
|
|
24829
24806
|
unsaved?: boolean;
|
|
24830
24807
|
refunded?: boolean;
|
|
24831
24808
|
canUpgrade?: boolean;
|
|
24809
|
+
pinnedToTop?: boolean;
|
|
24832
24810
|
fromId?: tl.TypePeer;
|
|
24833
24811
|
date: number;
|
|
24834
24812
|
gift: tl.TypeStarGift;
|
|
@@ -24859,6 +24837,107 @@ export class RpcError extends Error {
|
|
|
24859
24837
|
_: 'paidReactionPrivacyPeer';
|
|
24860
24838
|
peer: tl.TypeInputPeer;
|
|
24861
24839
|
}
|
|
24840
|
+
interface RawRequirementToContactEmpty {
|
|
24841
|
+
_: 'requirementToContactEmpty';
|
|
24842
|
+
}
|
|
24843
|
+
interface RawRequirementToContactPremium {
|
|
24844
|
+
_: 'requirementToContactPremium';
|
|
24845
|
+
}
|
|
24846
|
+
interface RawRequirementToContactPaidMessages {
|
|
24847
|
+
_: 'requirementToContactPaidMessages';
|
|
24848
|
+
starsAmount: Long;
|
|
24849
|
+
}
|
|
24850
|
+
interface RawMessageActionPaidMessagesRefunded {
|
|
24851
|
+
_: 'messageActionPaidMessagesRefunded';
|
|
24852
|
+
count: number;
|
|
24853
|
+
stars: Long;
|
|
24854
|
+
}
|
|
24855
|
+
interface RawMessageActionPaidMessagesPrice {
|
|
24856
|
+
_: 'messageActionPaidMessagesPrice';
|
|
24857
|
+
stars: Long;
|
|
24858
|
+
}
|
|
24859
|
+
interface RawUpdateSentPhoneCode {
|
|
24860
|
+
_: 'updateSentPhoneCode';
|
|
24861
|
+
sentCode: tl.auth.TypeSentCode;
|
|
24862
|
+
}
|
|
24863
|
+
interface RawInputStorePaymentAuthCode {
|
|
24864
|
+
_: 'inputStorePaymentAuthCode';
|
|
24865
|
+
restore?: boolean;
|
|
24866
|
+
phoneNumber: string;
|
|
24867
|
+
phoneCodeHash: string;
|
|
24868
|
+
currency: string;
|
|
24869
|
+
amount: Long;
|
|
24870
|
+
}
|
|
24871
|
+
interface RawBusinessBotRights {
|
|
24872
|
+
_: 'businessBotRights';
|
|
24873
|
+
reply?: boolean;
|
|
24874
|
+
readMessages?: boolean;
|
|
24875
|
+
deleteSentMessages?: boolean;
|
|
24876
|
+
deleteReceivedMessages?: boolean;
|
|
24877
|
+
editName?: boolean;
|
|
24878
|
+
editBio?: boolean;
|
|
24879
|
+
editProfilePhoto?: boolean;
|
|
24880
|
+
editUsername?: boolean;
|
|
24881
|
+
viewGifts?: boolean;
|
|
24882
|
+
sellGifts?: boolean;
|
|
24883
|
+
changeGiftSettings?: boolean;
|
|
24884
|
+
transferAndUpgradeGifts?: boolean;
|
|
24885
|
+
transferStars?: boolean;
|
|
24886
|
+
manageStories?: boolean;
|
|
24887
|
+
}
|
|
24888
|
+
interface RawDisallowedGiftsSettings {
|
|
24889
|
+
_: 'disallowedGiftsSettings';
|
|
24890
|
+
disallowUnlimitedStargifts?: boolean;
|
|
24891
|
+
disallowLimitedStargifts?: boolean;
|
|
24892
|
+
disallowUniqueStargifts?: boolean;
|
|
24893
|
+
disallowPremiumGifts?: boolean;
|
|
24894
|
+
}
|
|
24895
|
+
interface RawSponsoredPeer {
|
|
24896
|
+
_: 'sponsoredPeer';
|
|
24897
|
+
randomId: Uint8Array;
|
|
24898
|
+
peer: tl.TypePeer;
|
|
24899
|
+
sponsorInfo?: string;
|
|
24900
|
+
additionalInfo?: string;
|
|
24901
|
+
}
|
|
24902
|
+
/**
|
|
24903
|
+
* Telegram Premium gift option
|
|
24904
|
+
*/
|
|
24905
|
+
interface RawPremiumGiftOption {
|
|
24906
|
+
_: 'premiumGiftOption';
|
|
24907
|
+
/**
|
|
24908
|
+
* Duration of gifted Telegram Premium subscription
|
|
24909
|
+
*/
|
|
24910
|
+
months: number;
|
|
24911
|
+
/**
|
|
24912
|
+
* Three-letter ISO 4217
|
|
24913
|
+
* <a href="https://corefork.telegram.org/bots/payments#supported-currencies">currency</a>
|
|
24914
|
+
* code
|
|
24915
|
+
*/
|
|
24916
|
+
currency: string;
|
|
24917
|
+
/**
|
|
24918
|
+
* Price of the product in the smallest units of the currency
|
|
24919
|
+
* (integer, not float/double). For example, for a price of
|
|
24920
|
+
* <code>US$ 1.45</code> pass <code>amount = 145</code>. See
|
|
24921
|
+
* the exp parameter in
|
|
24922
|
+
* <a href="https://corefork.telegram.org/bots/payments/currencies.json">currencies.json</a>,
|
|
24923
|
+
* it shows the number of digits past the decimal point for
|
|
24924
|
+
* each currency (2 for the majority of currencies).
|
|
24925
|
+
*/
|
|
24926
|
+
amount: Long;
|
|
24927
|
+
/**
|
|
24928
|
+
* An
|
|
24929
|
+
* <a href="https://corefork.telegram.org/api/links#invoice-links">invoice
|
|
24930
|
+
* deep link »</a> to an invoice for in-app payment, using the
|
|
24931
|
+
* official Premium bot; may be empty if direct payment isn't
|
|
24932
|
+
* available.
|
|
24933
|
+
*/
|
|
24934
|
+
botUrl: string;
|
|
24935
|
+
/**
|
|
24936
|
+
* An identifier for the App Store/Play Store product
|
|
24937
|
+
* associated with the Premium gift.
|
|
24938
|
+
*/
|
|
24939
|
+
storeProduct?: string;
|
|
24940
|
+
}
|
|
24862
24941
|
/**
|
|
24863
24942
|
* An
|
|
24864
24943
|
* <a href="https://corefork.telegram.org/api/emoji-status">emoji
|
|
@@ -24930,6 +25009,11 @@ export class RpcError extends Error {
|
|
|
24930
25009
|
*/
|
|
24931
25010
|
convertStars?: Long;
|
|
24932
25011
|
}
|
|
25012
|
+
interface RawInputInvoiceBusinessBotTransferStars {
|
|
25013
|
+
_: 'inputInvoiceBusinessBotTransferStars';
|
|
25014
|
+
bot: tl.TypeInputUser;
|
|
25015
|
+
stars: Long;
|
|
25016
|
+
}
|
|
24933
25017
|
/**
|
|
24934
25018
|
* RPC method returns {@link tl.TypeError}
|
|
24935
25019
|
*/
|
|
@@ -25308,7 +25392,7 @@ export class RpcError extends Error {
|
|
|
25308
25392
|
/**
|
|
25309
25393
|
* Object describing actions connected to a service message.
|
|
25310
25394
|
*/
|
|
25311
|
-
type TypeMessageAction = tl.RawMessageActionEmpty | tl.RawMessageActionChatCreate | tl.RawMessageActionChatEditTitle | tl.RawMessageActionChatEditPhoto | tl.RawMessageActionChatDeletePhoto | tl.RawMessageActionChatAddUser | tl.RawMessageActionChatDeleteUser | tl.RawMessageActionChatJoinedByLink | tl.RawMessageActionChannelCreate | tl.RawMessageActionChatMigrateTo | tl.RawMessageActionChannelMigrateFrom | tl.RawMessageActionPinMessage | tl.RawMessageActionHistoryClear | tl.RawMessageActionGameScore | tl.RawMessageActionPaymentSentMe | tl.RawMessageActionPaymentSent | tl.RawMessageActionPhoneCall | tl.RawMessageActionScreenshotTaken | tl.RawMessageActionCustomAction | tl.RawMessageActionBotAllowed | tl.RawMessageActionSecureValuesSentMe | tl.RawMessageActionSecureValuesSent | tl.RawMessageActionContactSignUp | tl.RawMessageActionGeoProximityReached | tl.RawMessageActionGroupCall | tl.RawMessageActionInviteToGroupCall | tl.RawMessageActionSetMessagesTTL | tl.RawMessageActionGroupCallScheduled | tl.RawMessageActionSetChatTheme | tl.RawMessageActionChatJoinedByRequest | tl.RawMessageActionWebViewDataSentMe | tl.RawMessageActionWebViewDataSent | tl.RawMessageActionGiftPremium | tl.RawMessageActionTopicCreate | tl.RawMessageActionTopicEdit | tl.RawMessageActionSuggestProfilePhoto | tl.RawMessageActionRequestedPeer | tl.RawMessageActionSetChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch | tl.RawMessageActionGiveawayResults | tl.RawMessageActionBoostApply | tl.RawMessageActionRequestedPeerSentMe | tl.RawMessageActionPaymentRefunded | tl.RawMessageActionGiftStars | tl.RawMessageActionPrizeStars | tl.RawMessageActionStarGift | tl.RawMessageActionStarGiftUnique
|
|
25395
|
+
type TypeMessageAction = tl.RawMessageActionEmpty | tl.RawMessageActionChatCreate | tl.RawMessageActionChatEditTitle | tl.RawMessageActionChatEditPhoto | tl.RawMessageActionChatDeletePhoto | tl.RawMessageActionChatAddUser | tl.RawMessageActionChatDeleteUser | tl.RawMessageActionChatJoinedByLink | tl.RawMessageActionChannelCreate | tl.RawMessageActionChatMigrateTo | tl.RawMessageActionChannelMigrateFrom | tl.RawMessageActionPinMessage | tl.RawMessageActionHistoryClear | tl.RawMessageActionGameScore | tl.RawMessageActionPaymentSentMe | tl.RawMessageActionPaymentSent | tl.RawMessageActionPhoneCall | tl.RawMessageActionScreenshotTaken | tl.RawMessageActionCustomAction | tl.RawMessageActionBotAllowed | tl.RawMessageActionSecureValuesSentMe | tl.RawMessageActionSecureValuesSent | tl.RawMessageActionContactSignUp | tl.RawMessageActionGeoProximityReached | tl.RawMessageActionGroupCall | tl.RawMessageActionInviteToGroupCall | tl.RawMessageActionSetMessagesTTL | tl.RawMessageActionGroupCallScheduled | tl.RawMessageActionSetChatTheme | tl.RawMessageActionChatJoinedByRequest | tl.RawMessageActionWebViewDataSentMe | tl.RawMessageActionWebViewDataSent | tl.RawMessageActionGiftPremium | tl.RawMessageActionTopicCreate | tl.RawMessageActionTopicEdit | tl.RawMessageActionSuggestProfilePhoto | tl.RawMessageActionRequestedPeer | tl.RawMessageActionSetChatWallPaper | tl.RawMessageActionGiftCode | tl.RawMessageActionGiveawayLaunch | tl.RawMessageActionGiveawayResults | tl.RawMessageActionBoostApply | tl.RawMessageActionRequestedPeerSentMe | tl.RawMessageActionPaymentRefunded | tl.RawMessageActionGiftStars | tl.RawMessageActionPrizeStars | tl.RawMessageActionStarGift | tl.RawMessageActionStarGiftUnique | tl.RawMessageActionPaidMessagesRefunded | tl.RawMessageActionPaidMessagesPrice
|
|
25312
25396
|
function isAnyMessageAction(o: object): o is TypeMessageAction
|
|
25313
25397
|
/**
|
|
25314
25398
|
* Chat info.
|
|
@@ -25391,7 +25475,7 @@ export class RpcError extends Error {
|
|
|
25391
25475
|
/**
|
|
25392
25476
|
* Object contains info on events occurred.
|
|
25393
25477
|
*/
|
|
25394
|
-
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateBroadcastRevenueTransactions | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.mtcute.RawDummyUpdate
|
|
25478
|
+
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateBroadcastRevenueTransactions | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.mtcute.RawDummyUpdate
|
|
25395
25479
|
function isAnyUpdate(o: object): o is TypeUpdate
|
|
25396
25480
|
/**
|
|
25397
25481
|
* Object which is perceived by the client without a call on
|
|
@@ -25475,7 +25559,7 @@ export class RpcError extends Error {
|
|
|
25475
25559
|
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
25476
25560
|
* documentation »</a> for more info.
|
|
25477
25561
|
*/
|
|
25478
|
-
type TypeInputPrivacyKey = tl.RawInputPrivacyKeyStatusTimestamp | tl.RawInputPrivacyKeyChatInvite | tl.RawInputPrivacyKeyPhoneCall | tl.RawInputPrivacyKeyPhoneP2P | tl.RawInputPrivacyKeyForwards | tl.RawInputPrivacyKeyProfilePhoto | tl.RawInputPrivacyKeyPhoneNumber | tl.RawInputPrivacyKeyAddedByPhone | tl.RawInputPrivacyKeyVoiceMessages | tl.RawInputPrivacyKeyAbout | tl.RawInputPrivacyKeyBirthday | tl.RawInputPrivacyKeyStarGiftsAutoSave
|
|
25562
|
+
type TypeInputPrivacyKey = tl.RawInputPrivacyKeyStatusTimestamp | tl.RawInputPrivacyKeyChatInvite | tl.RawInputPrivacyKeyPhoneCall | tl.RawInputPrivacyKeyPhoneP2P | tl.RawInputPrivacyKeyForwards | tl.RawInputPrivacyKeyProfilePhoto | tl.RawInputPrivacyKeyPhoneNumber | tl.RawInputPrivacyKeyAddedByPhone | tl.RawInputPrivacyKeyVoiceMessages | tl.RawInputPrivacyKeyAbout | tl.RawInputPrivacyKeyBirthday | tl.RawInputPrivacyKeyStarGiftsAutoSave | tl.RawInputPrivacyKeyNoPaidMessages
|
|
25479
25563
|
function isAnyInputPrivacyKey(o: object): o is TypeInputPrivacyKey
|
|
25480
25564
|
/**
|
|
25481
25565
|
* Privacy <strong>keys</strong> together with
|
|
@@ -25490,7 +25574,7 @@ export class RpcError extends Error {
|
|
|
25490
25574
|
* <a href="https://corefork.telegram.org/api/privacy">privacy
|
|
25491
25575
|
* documentation »</a> for more info.
|
|
25492
25576
|
*/
|
|
25493
|
-
type TypePrivacyKey = tl.RawPrivacyKeyStatusTimestamp | tl.RawPrivacyKeyChatInvite | tl.RawPrivacyKeyPhoneCall | tl.RawPrivacyKeyPhoneP2P | tl.RawPrivacyKeyForwards | tl.RawPrivacyKeyProfilePhoto | tl.RawPrivacyKeyPhoneNumber | tl.RawPrivacyKeyAddedByPhone | tl.RawPrivacyKeyVoiceMessages | tl.RawPrivacyKeyAbout | tl.RawPrivacyKeyBirthday | tl.RawPrivacyKeyStarGiftsAutoSave
|
|
25577
|
+
type TypePrivacyKey = tl.RawPrivacyKeyStatusTimestamp | tl.RawPrivacyKeyChatInvite | tl.RawPrivacyKeyPhoneCall | tl.RawPrivacyKeyPhoneP2P | tl.RawPrivacyKeyForwards | tl.RawPrivacyKeyProfilePhoto | tl.RawPrivacyKeyPhoneNumber | tl.RawPrivacyKeyAddedByPhone | tl.RawPrivacyKeyVoiceMessages | tl.RawPrivacyKeyAbout | tl.RawPrivacyKeyBirthday | tl.RawPrivacyKeyStarGiftsAutoSave | tl.RawPrivacyKeyNoPaidMessages
|
|
25494
25578
|
function isAnyPrivacyKey(o: object): o is TypePrivacyKey
|
|
25495
25579
|
/**
|
|
25496
25580
|
* Privacy <strong>rules</strong> indicate <em>who</em> can or
|
|
@@ -26483,18 +26567,13 @@ export class RpcError extends Error {
|
|
|
26483
26567
|
/**
|
|
26484
26568
|
* An invoice
|
|
26485
26569
|
*/
|
|
26486
|
-
type TypeInputInvoice = tl.RawInputInvoiceMessage | tl.RawInputInvoiceSlug | tl.RawInputInvoicePremiumGiftCode | tl.RawInputInvoiceStars | tl.RawInputInvoiceChatInviteSubscription | tl.RawInputInvoiceStarGift | tl.RawInputInvoiceStarGiftUpgrade | tl.RawInputInvoiceStarGiftTransfer
|
|
26570
|
+
type TypeInputInvoice = tl.RawInputInvoiceMessage | tl.RawInputInvoiceSlug | tl.RawInputInvoicePremiumGiftCode | tl.RawInputInvoiceStars | tl.RawInputInvoiceChatInviteSubscription | tl.RawInputInvoiceStarGift | tl.RawInputInvoiceStarGiftUpgrade | tl.RawInputInvoiceStarGiftTransfer | tl.RawInputInvoicePremiumGiftStars | tl.RawInputInvoiceBusinessBotTransferStars
|
|
26487
26571
|
function isAnyInputInvoice(o: object): o is TypeInputInvoice
|
|
26488
26572
|
/**
|
|
26489
26573
|
* Info about a Telegram Premium purchase
|
|
26490
26574
|
*/
|
|
26491
|
-
type TypeInputStorePaymentPurpose = tl.RawInputStorePaymentPremiumSubscription | tl.RawInputStorePaymentGiftPremium | tl.RawInputStorePaymentPremiumGiftCode | tl.RawInputStorePaymentPremiumGiveaway | tl.RawInputStorePaymentStarsTopup | tl.RawInputStorePaymentStarsGift | tl.RawInputStorePaymentStarsGiveaway
|
|
26575
|
+
type TypeInputStorePaymentPurpose = tl.RawInputStorePaymentPremiumSubscription | tl.RawInputStorePaymentGiftPremium | tl.RawInputStorePaymentPremiumGiftCode | tl.RawInputStorePaymentPremiumGiveaway | tl.RawInputStorePaymentStarsTopup | tl.RawInputStorePaymentStarsGift | tl.RawInputStorePaymentStarsGiveaway | tl.RawInputStorePaymentAuthCode
|
|
26492
26576
|
function isAnyInputStorePaymentPurpose(o: object): o is TypeInputStorePaymentPurpose
|
|
26493
|
-
/**
|
|
26494
|
-
* Telegram Premium gift option
|
|
26495
|
-
*/
|
|
26496
|
-
type TypePremiumGiftOption = tl.RawPremiumGiftOption
|
|
26497
|
-
function isAnyPremiumGiftOption(o: object): o is TypePremiumGiftOption
|
|
26498
26577
|
/**
|
|
26499
26578
|
* Represents a payment method
|
|
26500
26579
|
*/
|
|
@@ -27187,6 +27266,19 @@ export class RpcError extends Error {
|
|
|
27187
27266
|
function isAnyInputSavedStarGift(o: object): o is TypeInputSavedStarGift
|
|
27188
27267
|
type TypePaidReactionPrivacy = tl.RawPaidReactionPrivacyDefault | tl.RawPaidReactionPrivacyAnonymous | tl.RawPaidReactionPrivacyPeer
|
|
27189
27268
|
function isAnyPaidReactionPrivacy(o: object): o is TypePaidReactionPrivacy
|
|
27269
|
+
type TypeRequirementToContact = tl.RawRequirementToContactEmpty | tl.RawRequirementToContactPremium | tl.RawRequirementToContactPaidMessages
|
|
27270
|
+
function isAnyRequirementToContact(o: object): o is TypeRequirementToContact
|
|
27271
|
+
type TypeBusinessBotRights = tl.RawBusinessBotRights
|
|
27272
|
+
function isAnyBusinessBotRights(o: object): o is TypeBusinessBotRights
|
|
27273
|
+
type TypeDisallowedGiftsSettings = tl.RawDisallowedGiftsSettings
|
|
27274
|
+
function isAnyDisallowedGiftsSettings(o: object): o is TypeDisallowedGiftsSettings
|
|
27275
|
+
type TypeSponsoredPeer = tl.RawSponsoredPeer
|
|
27276
|
+
function isAnySponsoredPeer(o: object): o is TypeSponsoredPeer
|
|
27277
|
+
/**
|
|
27278
|
+
* Telegram Premium gift option
|
|
27279
|
+
*/
|
|
27280
|
+
type TypePremiumGiftOption = tl.RawPremiumGiftOption
|
|
27281
|
+
function isAnyPremiumGiftOption(o: object): o is TypePremiumGiftOption
|
|
27190
27282
|
/**
|
|
27191
27283
|
* Represents a
|
|
27192
27284
|
* <a href="https://corefork.telegram.org/api/gifts">gift</a>,
|
|
@@ -28716,6 +28808,11 @@ export class RpcError extends Error {
|
|
|
28716
28808
|
*/
|
|
28717
28809
|
futureAuthToken?: Uint8Array;
|
|
28718
28810
|
}
|
|
28811
|
+
interface RawSentCodePaymentRequired {
|
|
28812
|
+
_: 'auth.sentCodePaymentRequired';
|
|
28813
|
+
storeProduct: string;
|
|
28814
|
+
phoneCodeHash: string;
|
|
28815
|
+
}
|
|
28719
28816
|
/**
|
|
28720
28817
|
* Send the verification code for login
|
|
28721
28818
|
*
|
|
@@ -29239,7 +29336,7 @@ export class RpcError extends Error {
|
|
|
29239
29336
|
* Contains info on a confirmation code message sent via SMS,
|
|
29240
29337
|
* phone call or Telegram.
|
|
29241
29338
|
*/
|
|
29242
|
-
type TypeSentCode = tl.auth.RawSentCode | tl.auth.RawSentCodeSuccess
|
|
29339
|
+
type TypeSentCode = tl.auth.RawSentCode | tl.auth.RawSentCodeSuccess | tl.auth.RawSentCodePaymentRequired
|
|
29243
29340
|
function isAnySentCode(o: object): o is TypeSentCode
|
|
29244
29341
|
/**
|
|
29245
29342
|
* Object contains info on user authorization.
|
|
@@ -29457,6 +29554,15 @@ export class RpcError extends Error {
|
|
|
29457
29554
|
*/
|
|
29458
29555
|
users: tl.TypeUser[];
|
|
29459
29556
|
}
|
|
29557
|
+
interface RawSponsoredPeersEmpty {
|
|
29558
|
+
_: 'contacts.sponsoredPeersEmpty';
|
|
29559
|
+
}
|
|
29560
|
+
interface RawSponsoredPeers {
|
|
29561
|
+
_: 'contacts.sponsoredPeers';
|
|
29562
|
+
peers: tl.TypeSponsoredPeer[];
|
|
29563
|
+
chats: tl.TypeChat[];
|
|
29564
|
+
users: tl.TypeUser[];
|
|
29565
|
+
}
|
|
29460
29566
|
/**
|
|
29461
29567
|
* Get the telegram IDs of all contacts.
|
|
29462
29568
|
*
|
|
@@ -29968,6 +30074,13 @@ export class RpcError extends Error {
|
|
|
29968
30074
|
interface RawGetBirthdaysRequest {
|
|
29969
30075
|
_: 'contacts.getBirthdays';
|
|
29970
30076
|
}
|
|
30077
|
+
/**
|
|
30078
|
+
* RPC method returns {@link tl.contacts.TypeSponsoredPeers}
|
|
30079
|
+
*/
|
|
30080
|
+
interface RawGetSponsoredPeersRequest {
|
|
30081
|
+
_: 'contacts.getSponsoredPeers';
|
|
30082
|
+
q: string;
|
|
30083
|
+
}
|
|
29971
30084
|
interface RpcCallReturn {
|
|
29972
30085
|
'contacts.getContactIDs': number[]
|
|
29973
30086
|
'contacts.getStatuses': tl.TypeContactStatus[]
|
|
@@ -29995,6 +30108,7 @@ export class RpcError extends Error {
|
|
|
29995
30108
|
'contacts.editCloseFriends': boolean
|
|
29996
30109
|
'contacts.setBlocked': boolean
|
|
29997
30110
|
'contacts.getBirthdays': tl.contacts.TypeContactBirthdays
|
|
30111
|
+
'contacts.getSponsoredPeers': tl.contacts.TypeSponsoredPeers
|
|
29998
30112
|
}
|
|
29999
30113
|
/**
|
|
30000
30114
|
* Info on the current user's contact list.
|
|
@@ -30032,6 +30146,8 @@ export class RpcError extends Error {
|
|
|
30032
30146
|
*/
|
|
30033
30147
|
type TypeContactBirthdays = tl.contacts.RawContactBirthdays
|
|
30034
30148
|
function isAnyContactBirthdays(o: object): o is TypeContactBirthdays
|
|
30149
|
+
type TypeSponsoredPeers = tl.contacts.RawSponsoredPeersEmpty | tl.contacts.RawSponsoredPeers
|
|
30150
|
+
function isAnySponsoredPeers(o: object): o is TypeSponsoredPeers
|
|
30035
30151
|
}
|
|
30036
30152
|
|
|
30037
30153
|
namespace messages {
|
|
@@ -32054,6 +32170,7 @@ export class RpcError extends Error {
|
|
|
32054
32170
|
* effect »</a> to use for the message.
|
|
32055
32171
|
*/
|
|
32056
32172
|
effect?: Long;
|
|
32173
|
+
allowPaidStars?: Long;
|
|
32057
32174
|
}
|
|
32058
32175
|
/**
|
|
32059
32176
|
* Send a media
|
|
@@ -32153,6 +32270,7 @@ export class RpcError extends Error {
|
|
|
32153
32270
|
* effect »</a> to use for the message.
|
|
32154
32271
|
*/
|
|
32155
32272
|
effect?: Long;
|
|
32273
|
+
allowPaidStars?: Long;
|
|
32156
32274
|
}
|
|
32157
32275
|
/**
|
|
32158
32276
|
* Forwards messages by their IDs.
|
|
@@ -32236,6 +32354,7 @@ export class RpcError extends Error {
|
|
|
32236
32354
|
*/
|
|
32237
32355
|
quickReplyShortcut?: tl.TypeInputQuickReplyShortcut;
|
|
32238
32356
|
videoTimestamp?: number;
|
|
32357
|
+
allowPaidStars?: Long;
|
|
32239
32358
|
}
|
|
32240
32359
|
/**
|
|
32241
32360
|
* Report a new incoming chat for spam, if the
|
|
@@ -33198,6 +33317,7 @@ export class RpcError extends Error {
|
|
|
33198
33317
|
* reply shortcut »</a>, instead.
|
|
33199
33318
|
*/
|
|
33200
33319
|
quickReplyShortcut?: tl.TypeInputQuickReplyShortcut;
|
|
33320
|
+
allowPaidStars?: Long;
|
|
33201
33321
|
}
|
|
33202
33322
|
/**
|
|
33203
33323
|
* Find out if a media message's caption can be edited
|
|
@@ -34087,6 +34207,7 @@ export class RpcError extends Error {
|
|
|
34087
34207
|
* effect »</a> to use for the message.
|
|
34088
34208
|
*/
|
|
34089
34209
|
effect?: Long;
|
|
34210
|
+
allowPaidStars?: Long;
|
|
34090
34211
|
}
|
|
34091
34212
|
/**
|
|
34092
34213
|
* Upload encrypted file and associate it to a secret chat
|
|
@@ -37133,10 +37254,6 @@ export class RpcError extends Error {
|
|
|
37133
37254
|
*/
|
|
37134
37255
|
interface RawViewSponsoredMessageRequest {
|
|
37135
37256
|
_: 'messages.viewSponsoredMessage';
|
|
37136
|
-
/**
|
|
37137
|
-
* The channel/bot where the ad is located
|
|
37138
|
-
*/
|
|
37139
|
-
peer: tl.TypeInputPeer;
|
|
37140
37257
|
/**
|
|
37141
37258
|
* The ad's unique ID.
|
|
37142
37259
|
*/
|
|
@@ -37161,10 +37278,6 @@ export class RpcError extends Error {
|
|
|
37161
37278
|
* on it.
|
|
37162
37279
|
*/
|
|
37163
37280
|
fullscreen?: boolean;
|
|
37164
|
-
/**
|
|
37165
|
-
* The channel/bot where the ad is located
|
|
37166
|
-
*/
|
|
37167
|
-
peer: tl.TypeInputPeer;
|
|
37168
37281
|
/**
|
|
37169
37282
|
* The ad's unique ID.
|
|
37170
37283
|
*/
|
|
@@ -37182,10 +37295,6 @@ export class RpcError extends Error {
|
|
|
37182
37295
|
*/
|
|
37183
37296
|
interface RawReportSponsoredMessageRequest {
|
|
37184
37297
|
_: 'messages.reportSponsoredMessage';
|
|
37185
|
-
/**
|
|
37186
|
-
* The channel/bot where the ad is located
|
|
37187
|
-
*/
|
|
37188
|
-
peer: tl.TypeInputPeer;
|
|
37189
37298
|
/**
|
|
37190
37299
|
* The ad's unique ID.
|
|
37191
37300
|
*/
|
|
@@ -39314,6 +39423,10 @@ export class RpcError extends Error {
|
|
|
39314
39423
|
*/
|
|
39315
39424
|
users: tl.TypeUser[];
|
|
39316
39425
|
}
|
|
39426
|
+
interface RawPaidMessagesRevenue {
|
|
39427
|
+
_: 'account.paidMessagesRevenue';
|
|
39428
|
+
starsAmount: Long;
|
|
39429
|
+
}
|
|
39317
39430
|
/**
|
|
39318
39431
|
* Register device to receive
|
|
39319
39432
|
* <a href="https://corefork.telegram.org/api/push-updates">PUSH
|
|
@@ -40992,18 +41105,12 @@ export class RpcError extends Error {
|
|
|
40992
41105
|
*/
|
|
40993
41106
|
interface RawUpdateConnectedBotRequest {
|
|
40994
41107
|
_: 'account.updateConnectedBot';
|
|
40995
|
-
/**
|
|
40996
|
-
* Whether the bot can reply to messages it receives from us,
|
|
40997
|
-
* on behalf of us using the
|
|
40998
|
-
* <a href="https://corefork.telegram.org/api/business#connected-bots">business
|
|
40999
|
-
* connection</a>.
|
|
41000
|
-
*/
|
|
41001
|
-
canReply?: boolean;
|
|
41002
41108
|
/**
|
|
41003
41109
|
* Whether to fully disconnect the bot from the current
|
|
41004
41110
|
* account.
|
|
41005
41111
|
*/
|
|
41006
41112
|
deleted?: boolean;
|
|
41113
|
+
rights?: tl.TypeBusinessBotRights;
|
|
41007
41114
|
/**
|
|
41008
41115
|
* The bot to connect or disconnect
|
|
41009
41116
|
*/
|
|
@@ -41278,6 +41385,22 @@ export class RpcError extends Error {
|
|
|
41278
41385
|
_: 'account.getCollectibleEmojiStatuses';
|
|
41279
41386
|
hash: Long;
|
|
41280
41387
|
}
|
|
41388
|
+
/**
|
|
41389
|
+
* RPC method returns boolean
|
|
41390
|
+
*/
|
|
41391
|
+
interface RawAddNoPaidMessagesExceptionRequest {
|
|
41392
|
+
_: 'account.addNoPaidMessagesException';
|
|
41393
|
+
refundCharged?: boolean;
|
|
41394
|
+
userId: tl.TypeInputUser;
|
|
41395
|
+
}
|
|
41396
|
+
/**
|
|
41397
|
+
* RPC method returns
|
|
41398
|
+
* {@link tl.account.TypePaidMessagesRevenue}
|
|
41399
|
+
*/
|
|
41400
|
+
interface RawGetPaidMessagesRevenueRequest {
|
|
41401
|
+
_: 'account.getPaidMessagesRevenue';
|
|
41402
|
+
userId: tl.TypeInputUser;
|
|
41403
|
+
}
|
|
41281
41404
|
interface RpcCallReturn {
|
|
41282
41405
|
'account.registerDevice': boolean
|
|
41283
41406
|
'account.unregisterDevice': boolean
|
|
@@ -41392,6 +41515,8 @@ export class RpcError extends Error {
|
|
|
41392
41515
|
'account.getReactionsNotifySettings': tl.TypeReactionsNotifySettings
|
|
41393
41516
|
'account.setReactionsNotifySettings': tl.TypeReactionsNotifySettings
|
|
41394
41517
|
'account.getCollectibleEmojiStatuses': tl.account.TypeEmojiStatuses
|
|
41518
|
+
'account.addNoPaidMessagesException': boolean
|
|
41519
|
+
'account.getPaidMessagesRevenue': tl.account.TypePaidMessagesRevenue
|
|
41395
41520
|
}
|
|
41396
41521
|
/**
|
|
41397
41522
|
* Privacy rules
|
|
@@ -41522,6 +41647,8 @@ export class RpcError extends Error {
|
|
|
41522
41647
|
*/
|
|
41523
41648
|
type TypeResolvedBusinessChatLinks = tl.account.RawResolvedBusinessChatLinks
|
|
41524
41649
|
function isAnyResolvedBusinessChatLinks(o: object): o is TypeResolvedBusinessChatLinks
|
|
41650
|
+
type TypePaidMessagesRevenue = tl.account.RawPaidMessagesRevenue
|
|
41651
|
+
function isAnyPaidMessagesRevenue(o: object): o is TypePaidMessagesRevenue
|
|
41525
41652
|
}
|
|
41526
41653
|
|
|
41527
41654
|
namespace channels {
|
|
@@ -43018,60 +43145,12 @@ export class RpcError extends Error {
|
|
|
43018
43145
|
limit: number;
|
|
43019
43146
|
}
|
|
43020
43147
|
/**
|
|
43021
|
-
*
|
|
43022
|
-
*
|
|
43023
|
-
* RPC method returns boolean
|
|
43024
|
-
*/
|
|
43025
|
-
interface RawViewSponsoredMessageRequest {
|
|
43026
|
-
_: 'channels.viewSponsoredMessage';
|
|
43027
|
-
/**
|
|
43028
|
-
* Peer
|
|
43029
|
-
*/
|
|
43030
|
-
channel: tl.TypeInputChannel;
|
|
43031
|
-
/**
|
|
43032
|
-
* Message ID
|
|
43033
|
-
*/
|
|
43034
|
-
randomId: Uint8Array;
|
|
43035
|
-
}
|
|
43036
|
-
/**
|
|
43037
|
-
* Get a list of sponsored messages
|
|
43038
|
-
*
|
|
43039
|
-
* RPC method returns {@link tl.messages.TypeSponsoredMessages}
|
|
43040
|
-
*/
|
|
43041
|
-
interface RawGetSponsoredMessagesRequest {
|
|
43042
|
-
_: 'channels.getSponsoredMessages';
|
|
43043
|
-
/**
|
|
43044
|
-
* Peer
|
|
43045
|
-
*/
|
|
43046
|
-
channel: tl.TypeInputChannel;
|
|
43047
|
-
}
|
|
43048
|
-
/**
|
|
43049
|
-
* Informs the server that the user has either:
|
|
43050
|
-
*
|
|
43051
|
-
* RPC method returns boolean
|
|
43052
|
-
*/
|
|
43053
|
-
interface RawClickSponsoredMessageRequest {
|
|
43054
|
-
_: 'channels.clickSponsoredMessage';
|
|
43055
|
-
media?: boolean;
|
|
43056
|
-
fullscreen?: boolean;
|
|
43057
|
-
channel: tl.TypeInputChannel;
|
|
43058
|
-
randomId: Uint8Array;
|
|
43059
|
-
}
|
|
43060
|
-
/**
|
|
43061
|
-
* Report a
|
|
43062
|
-
* <a href="https://corefork.telegram.org/api/sponsored-messages">sponsored
|
|
43063
|
-
* message »</a>, see
|
|
43064
|
-
* <a href="https://corefork.telegram.org/api/sponsored-messages#reporting-sponsored-messages">here
|
|
43065
|
-
* »</a> for more info on the full flow.
|
|
43066
|
-
*
|
|
43067
|
-
* RPC method returns
|
|
43068
|
-
* {@link tl.channels.TypeSponsoredMessageReportResult}
|
|
43148
|
+
* RPC method returns {@link tl.TypeUpdates}
|
|
43069
43149
|
*/
|
|
43070
|
-
interface
|
|
43071
|
-
_: 'channels.
|
|
43150
|
+
interface RawUpdatePaidMessagesPriceRequest {
|
|
43151
|
+
_: 'channels.updatePaidMessagesPrice';
|
|
43072
43152
|
channel: tl.TypeInputChannel;
|
|
43073
|
-
|
|
43074
|
-
option: Uint8Array;
|
|
43153
|
+
sendPaidMessagesStars: Long;
|
|
43075
43154
|
}
|
|
43076
43155
|
interface RpcCallReturn {
|
|
43077
43156
|
'channels.readHistory': boolean
|
|
@@ -43135,10 +43214,7 @@ export class RpcError extends Error {
|
|
|
43135
43214
|
'channels.setEmojiStickers': boolean
|
|
43136
43215
|
'channels.restrictSponsoredMessages': tl.TypeUpdates
|
|
43137
43216
|
'channels.searchPosts': tl.messages.TypeMessages
|
|
43138
|
-
'channels.
|
|
43139
|
-
'channels.getSponsoredMessages': tl.messages.TypeSponsoredMessages
|
|
43140
|
-
'channels.clickSponsoredMessage': boolean
|
|
43141
|
-
'channels.reportSponsoredMessage': tl.channels.TypeSponsoredMessageReportResult
|
|
43217
|
+
'channels.updatePaidMessagesPrice': tl.TypeUpdates
|
|
43142
43218
|
}
|
|
43143
43219
|
/**
|
|
43144
43220
|
* Channel/supergroup participants
|
|
@@ -44740,6 +44816,21 @@ export class RpcError extends Error {
|
|
|
44740
44816
|
enabled?: boolean;
|
|
44741
44817
|
peer: tl.TypeInputPeer;
|
|
44742
44818
|
}
|
|
44819
|
+
/**
|
|
44820
|
+
* RPC method returns boolean
|
|
44821
|
+
*/
|
|
44822
|
+
interface RawToggleStarGiftsPinnedToTopRequest {
|
|
44823
|
+
_: 'payments.toggleStarGiftsPinnedToTop';
|
|
44824
|
+
peer: tl.TypeInputPeer;
|
|
44825
|
+
stargift: tl.TypeInputSavedStarGift[];
|
|
44826
|
+
}
|
|
44827
|
+
/**
|
|
44828
|
+
* RPC method returns boolean
|
|
44829
|
+
*/
|
|
44830
|
+
interface RawCanPurchaseStoreRequest {
|
|
44831
|
+
_: 'payments.canPurchaseStore';
|
|
44832
|
+
purpose: tl.TypeInputStorePaymentPurpose;
|
|
44833
|
+
}
|
|
44743
44834
|
/**
|
|
44744
44835
|
* Get the
|
|
44745
44836
|
* <a href="https://corefork.telegram.org/api/gifts">gifts
|
|
@@ -44819,6 +44910,8 @@ export class RpcError extends Error {
|
|
|
44819
44910
|
'payments.getSavedStarGift': tl.payments.TypeSavedStarGifts
|
|
44820
44911
|
'payments.getStarGiftWithdrawalUrl': tl.payments.TypeStarGiftWithdrawalUrl
|
|
44821
44912
|
'payments.toggleChatStarGiftNotifications': boolean
|
|
44913
|
+
'payments.toggleStarGiftsPinnedToTop': boolean
|
|
44914
|
+
'payments.canPurchaseStore': boolean
|
|
44822
44915
|
'payments.getUserStarGifts': tl.payments.TypeUserStarGifts
|
|
44823
44916
|
}
|
|
44824
44917
|
/**
|
|
@@ -46796,6 +46889,13 @@ export class RpcError extends Error {
|
|
|
46796
46889
|
*/
|
|
46797
46890
|
errors: tl.TypeSecureValueError[];
|
|
46798
46891
|
}
|
|
46892
|
+
/**
|
|
46893
|
+
* RPC method returns {@link tl.TypeRequirementToContact} array
|
|
46894
|
+
*/
|
|
46895
|
+
interface RawGetRequirementsToContactRequest {
|
|
46896
|
+
_: 'users.getRequirementsToContact';
|
|
46897
|
+
id: tl.TypeInputUser[];
|
|
46898
|
+
}
|
|
46799
46899
|
/**
|
|
46800
46900
|
* Check whether we can write to the specified user (this
|
|
46801
46901
|
* method can only be called by
|
|
@@ -46817,6 +46917,7 @@ export class RpcError extends Error {
|
|
|
46817
46917
|
'users.getUsers': tl.TypeUser[]
|
|
46818
46918
|
'users.getFullUser': tl.users.TypeUserFull
|
|
46819
46919
|
'users.setSecureValueErrors': boolean
|
|
46920
|
+
'users.getRequirementsToContact': tl.TypeRequirementToContact[]
|
|
46820
46921
|
'users.getIsPremiumRequiredToContact': boolean[]
|
|
46821
46922
|
}
|
|
46822
46923
|
/**
|
|
@@ -49403,7 +49504,7 @@ export class RpcError extends Error {
|
|
|
49403
49504
|
/**
|
|
49404
49505
|
* Object contains info on events occurred.
|
|
49405
49506
|
*/
|
|
49406
|
-
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateBroadcastRevenueTransactions | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.mtcute.RawDummyUpdate
|
|
49507
|
+
type TypeUpdate = tl.RawUpdateNewMessage | tl.RawUpdateMessageID | tl.RawUpdateDeleteMessages | tl.RawUpdateUserTyping | tl.RawUpdateChatUserTyping | tl.RawUpdateChatParticipants | tl.RawUpdateUserStatus | tl.RawUpdateUserName | tl.RawUpdateNewAuthorization | tl.RawUpdateNewEncryptedMessage | tl.RawUpdateEncryptedChatTyping | tl.RawUpdateEncryption | tl.RawUpdateEncryptedMessagesRead | tl.RawUpdateChatParticipantAdd | tl.RawUpdateChatParticipantDelete | tl.RawUpdateDcOptions | tl.RawUpdateNotifySettings | tl.RawUpdateServiceNotification | tl.RawUpdatePrivacy | tl.RawUpdateUserPhone | tl.RawUpdateReadHistoryInbox | tl.RawUpdateReadHistoryOutbox | tl.RawUpdateWebPage | tl.RawUpdateReadMessagesContents | tl.RawUpdateChannelTooLong | tl.RawUpdateChannel | tl.RawUpdateNewChannelMessage | tl.RawUpdateReadChannelInbox | tl.RawUpdateDeleteChannelMessages | tl.RawUpdateChannelMessageViews | tl.RawUpdateChatParticipantAdmin | tl.RawUpdateNewStickerSet | tl.RawUpdateStickerSetsOrder | tl.RawUpdateStickerSets | tl.RawUpdateSavedGifs | tl.RawUpdateBotInlineQuery | tl.RawUpdateBotInlineSend | tl.RawUpdateEditChannelMessage | tl.RawUpdateBotCallbackQuery | tl.RawUpdateEditMessage | tl.RawUpdateInlineBotCallbackQuery | tl.RawUpdateReadChannelOutbox | tl.RawUpdateDraftMessage | tl.RawUpdateReadFeaturedStickers | tl.RawUpdateRecentStickers | tl.RawUpdateConfig | tl.RawUpdatePtsChanged | tl.RawUpdateChannelWebPage | tl.RawUpdateDialogPinned | tl.RawUpdatePinnedDialogs | tl.RawUpdateBotWebhookJSON | tl.RawUpdateBotWebhookJSONQuery | tl.RawUpdateBotShippingQuery | tl.RawUpdateBotPrecheckoutQuery | tl.RawUpdatePhoneCall | tl.RawUpdateLangPackTooLong | tl.RawUpdateLangPack | tl.RawUpdateFavedStickers | tl.RawUpdateChannelReadMessagesContents | tl.RawUpdateContactsReset | tl.RawUpdateChannelAvailableMessages | tl.RawUpdateDialogUnreadMark | tl.RawUpdateMessagePoll | tl.RawUpdateChatDefaultBannedRights | tl.RawUpdateFolderPeers | tl.RawUpdatePeerSettings | tl.RawUpdatePeerLocated | tl.RawUpdateNewScheduledMessage | tl.RawUpdateDeleteScheduledMessages | tl.RawUpdateTheme | tl.RawUpdateGeoLiveViewed | tl.RawUpdateLoginToken | tl.RawUpdateMessagePollVote | tl.RawUpdateDialogFilter | tl.RawUpdateDialogFilterOrder | tl.RawUpdateDialogFilters | tl.RawUpdatePhoneCallSignalingData | tl.RawUpdateChannelMessageForwards | tl.RawUpdateReadChannelDiscussionInbox | tl.RawUpdateReadChannelDiscussionOutbox | tl.RawUpdatePeerBlocked | tl.RawUpdateChannelUserTyping | tl.RawUpdatePinnedMessages | tl.RawUpdatePinnedChannelMessages | tl.RawUpdateChat | tl.RawUpdateGroupCallParticipants | tl.RawUpdateGroupCall | tl.RawUpdatePeerHistoryTTL | tl.RawUpdateChatParticipant | tl.RawUpdateChannelParticipant | tl.RawUpdateBotStopped | tl.RawUpdateGroupCallConnection | tl.RawUpdateBotCommands | tl.RawUpdatePendingJoinRequests | tl.RawUpdateBotChatInviteRequester | tl.RawUpdateMessageReactions | tl.RawUpdateAttachMenuBots | tl.RawUpdateWebViewResultSent | tl.RawUpdateBotMenuButton | tl.RawUpdateSavedRingtones | tl.RawUpdateTranscribedAudio | tl.RawUpdateReadFeaturedEmojiStickers | tl.RawUpdateUserEmojiStatus | tl.RawUpdateRecentEmojiStatuses | tl.RawUpdateRecentReactions | tl.RawUpdateMoveStickerSetToTop | tl.RawUpdateMessageExtendedMedia | tl.RawUpdateChannelPinnedTopic | tl.RawUpdateChannelPinnedTopics | tl.RawUpdateUser | tl.RawUpdateAutoSaveSettings | tl.RawUpdateStory | tl.RawUpdateReadStories | tl.RawUpdateStoryID | tl.RawUpdateStoriesStealthMode | tl.RawUpdateSentStoryReaction | tl.RawUpdateBotChatBoost | tl.RawUpdateChannelViewForumAsMessages | tl.RawUpdatePeerWallpaper | tl.RawUpdateBotMessageReaction | tl.RawUpdateBotMessageReactions | tl.RawUpdateSavedDialogPinned | tl.RawUpdatePinnedSavedDialogs | tl.RawUpdateSavedReactionTags | tl.RawUpdateSmsJob | tl.RawUpdateQuickReplies | tl.RawUpdateNewQuickReply | tl.RawUpdateDeleteQuickReply | tl.RawUpdateQuickReplyMessage | tl.RawUpdateDeleteQuickReplyMessages | tl.RawUpdateBotBusinessConnect | tl.RawUpdateBotNewBusinessMessage | tl.RawUpdateBotEditBusinessMessage | tl.RawUpdateBotDeleteBusinessMessage | tl.RawUpdateNewStoryReaction | tl.RawUpdateBroadcastRevenueTransactions | tl.RawUpdateStarsBalance | tl.RawUpdateBusinessBotCallbackQuery | tl.RawUpdateStarsRevenueStatus | tl.RawUpdateBotPurchasedPaidMedia | tl.RawUpdatePaidReactionPrivacy | tl.RawUpdateSentPhoneCode | tl.mtcute.RawDummyUpdate
|
|
49407
49508
|
function isAnyUpdate(o: object): o is TypeUpdate
|
|
49408
49509
|
/**
|
|
49409
49510
|
* Peer
|
|
@@ -49715,10 +49816,12 @@ export class RpcError extends Error {
|
|
|
49715
49816
|
| tl.account.RawGetReactionsNotifySettingsRequest
|
|
49716
49817
|
| tl.account.RawSetReactionsNotifySettingsRequest
|
|
49717
49818
|
| tl.account.RawGetCollectibleEmojiStatusesRequest
|
|
49819
|
+
| tl.account.RawAddNoPaidMessagesExceptionRequest
|
|
49820
|
+
| tl.account.RawGetPaidMessagesRevenueRequest
|
|
49718
49821
|
| tl.users.RawGetUsersRequest
|
|
49719
49822
|
| tl.users.RawGetFullUserRequest
|
|
49720
49823
|
| tl.users.RawSetSecureValueErrorsRequest
|
|
49721
|
-
| tl.users.
|
|
49824
|
+
| tl.users.RawGetRequirementsToContactRequest
|
|
49722
49825
|
| tl.contacts.RawGetContactIDsRequest
|
|
49723
49826
|
| tl.contacts.RawGetStatusesRequest
|
|
49724
49827
|
| tl.contacts.RawGetContactsRequest
|
|
@@ -50072,6 +50175,7 @@ export class RpcError extends Error {
|
|
|
50072
50175
|
| tl.channels.RawSetEmojiStickersRequest
|
|
50073
50176
|
| tl.channels.RawRestrictSponsoredMessagesRequest
|
|
50074
50177
|
| tl.channels.RawSearchPostsRequest
|
|
50178
|
+
| tl.channels.RawUpdatePaidMessagesPriceRequest
|
|
50075
50179
|
| tl.bots.RawSendCustomRequestRequest
|
|
50076
50180
|
| tl.bots.RawAnswerWebhookJSONQueryRequest
|
|
50077
50181
|
| tl.bots.RawSetBotCommandsRequest
|
|
@@ -50149,6 +50253,7 @@ export class RpcError extends Error {
|
|
|
50149
50253
|
| tl.payments.RawGetSavedStarGiftRequest
|
|
50150
50254
|
| tl.payments.RawGetStarGiftWithdrawalUrlRequest
|
|
50151
50255
|
| tl.payments.RawToggleChatStarGiftNotificationsRequest
|
|
50256
|
+
| tl.payments.RawToggleStarGiftsPinnedToTopRequest
|
|
50152
50257
|
| tl.stickers.RawCreateStickerSetRequest
|
|
50153
50258
|
| tl.stickers.RawRemoveStickerFromSetRequest
|
|
50154
50259
|
| tl.stickers.RawChangeStickerPositionRequest
|
|
@@ -50258,11 +50363,10 @@ export class RpcError extends Error {
|
|
|
50258
50363
|
| tl.smsjobs.RawGetSmsJobRequest
|
|
50259
50364
|
| tl.smsjobs.RawFinishJobRequest
|
|
50260
50365
|
| tl.fragment.RawGetCollectibleInfoRequest
|
|
50366
|
+
| tl.contacts.RawGetSponsoredPeersRequest
|
|
50367
|
+
| tl.payments.RawCanPurchaseStoreRequest
|
|
50368
|
+
| tl.users.RawGetIsPremiumRequiredToContactRequest
|
|
50261
50369
|
| tl.payments.RawGetUserStarGiftsRequest
|
|
50262
|
-
| tl.channels.RawViewSponsoredMessageRequest
|
|
50263
|
-
| tl.channels.RawGetSponsoredMessagesRequest
|
|
50264
|
-
| tl.channels.RawClickSponsoredMessageRequest
|
|
50265
|
-
| tl.channels.RawReportSponsoredMessageRequest
|
|
50266
50370
|
| tl.mtcute.RawCustomMethodRequest
|
|
50267
50371
|
|
|
50268
50372
|
type TlObject =
|
|
@@ -50725,6 +50829,7 @@ export class RpcError extends Error {
|
|
|
50725
50829
|
| tl.RawInputPrivacyKeyAbout
|
|
50726
50830
|
| tl.RawInputPrivacyKeyBirthday
|
|
50727
50831
|
| tl.RawInputPrivacyKeyStarGiftsAutoSave
|
|
50832
|
+
| tl.RawInputPrivacyKeyNoPaidMessages
|
|
50728
50833
|
| tl.RawPrivacyKeyStatusTimestamp
|
|
50729
50834
|
| tl.RawPrivacyKeyChatInvite
|
|
50730
50835
|
| tl.RawPrivacyKeyPhoneCall
|
|
@@ -50737,6 +50842,7 @@ export class RpcError extends Error {
|
|
|
50737
50842
|
| tl.RawPrivacyKeyAbout
|
|
50738
50843
|
| tl.RawPrivacyKeyBirthday
|
|
50739
50844
|
| tl.RawPrivacyKeyStarGiftsAutoSave
|
|
50845
|
+
| tl.RawPrivacyKeyNoPaidMessages
|
|
50740
50846
|
| tl.RawInputPrivacyValueAllowContacts
|
|
50741
50847
|
| tl.RawInputPrivacyValueAllowAll
|
|
50742
50848
|
| tl.RawInputPrivacyValueAllowUsers
|
|
@@ -51396,6 +51502,7 @@ export class RpcError extends Error {
|
|
|
51396
51502
|
| tl.RawInputInvoiceStarGift
|
|
51397
51503
|
| tl.RawInputInvoiceStarGiftUpgrade
|
|
51398
51504
|
| tl.RawInputInvoiceStarGiftTransfer
|
|
51505
|
+
| tl.RawInputInvoicePremiumGiftStars
|
|
51399
51506
|
| tl.payments.RawExportedInvoice
|
|
51400
51507
|
| tl.messages.RawTranscribedAudio
|
|
51401
51508
|
| tl.help.RawPremiumPromo
|
|
@@ -51406,7 +51513,6 @@ export class RpcError extends Error {
|
|
|
51406
51513
|
| tl.RawInputStorePaymentStarsTopup
|
|
51407
51514
|
| tl.RawInputStorePaymentStarsGift
|
|
51408
51515
|
| tl.RawInputStorePaymentStarsGiveaway
|
|
51409
|
-
| tl.RawPremiumGiftOption
|
|
51410
51516
|
| tl.RawPaymentFormMethod
|
|
51411
51517
|
| tl.RawEmojiStatusEmpty
|
|
51412
51518
|
| tl.RawEmojiStatus
|
|
@@ -51672,9 +51778,25 @@ export class RpcError extends Error {
|
|
|
51672
51778
|
| tl.RawPaidReactionPrivacyDefault
|
|
51673
51779
|
| tl.RawPaidReactionPrivacyAnonymous
|
|
51674
51780
|
| tl.RawPaidReactionPrivacyPeer
|
|
51781
|
+
| tl.account.RawPaidMessagesRevenue
|
|
51782
|
+
| tl.RawRequirementToContactEmpty
|
|
51783
|
+
| tl.RawRequirementToContactPremium
|
|
51784
|
+
| tl.RawRequirementToContactPaidMessages
|
|
51785
|
+
| tl.RawMessageActionPaidMessagesRefunded
|
|
51786
|
+
| tl.RawMessageActionPaidMessagesPrice
|
|
51787
|
+
| tl.auth.RawSentCodePaymentRequired
|
|
51788
|
+
| tl.RawUpdateSentPhoneCode
|
|
51789
|
+
| tl.RawInputStorePaymentAuthCode
|
|
51790
|
+
| tl.RawBusinessBotRights
|
|
51791
|
+
| tl.RawDisallowedGiftsSettings
|
|
51792
|
+
| tl.RawSponsoredPeer
|
|
51793
|
+
| tl.contacts.RawSponsoredPeersEmpty
|
|
51794
|
+
| tl.contacts.RawSponsoredPeers
|
|
51795
|
+
| tl.RawPremiumGiftOption
|
|
51675
51796
|
| tl.RawEmojiStatusUntil
|
|
51676
51797
|
| tl.RawUserStarGift
|
|
51677
51798
|
| tl.payments.RawUserStarGifts
|
|
51799
|
+
| tl.RawInputInvoiceBusinessBotTransferStars
|
|
51678
51800
|
| tl.mtcute.RawDummyUpdate
|
|
51679
51801
|
| tl.mtcute.RawDummyInputPeerMinUser
|
|
51680
51802
|
| tl.mtcute.RawDummyInputPeerMinChannel
|
|
@@ -51831,10 +51953,12 @@ export class RpcError extends Error {
|
|
|
51831
51953
|
| tl.account.RawGetReactionsNotifySettingsRequest
|
|
51832
51954
|
| tl.account.RawSetReactionsNotifySettingsRequest
|
|
51833
51955
|
| tl.account.RawGetCollectibleEmojiStatusesRequest
|
|
51956
|
+
| tl.account.RawAddNoPaidMessagesExceptionRequest
|
|
51957
|
+
| tl.account.RawGetPaidMessagesRevenueRequest
|
|
51834
51958
|
| tl.users.RawGetUsersRequest
|
|
51835
51959
|
| tl.users.RawGetFullUserRequest
|
|
51836
51960
|
| tl.users.RawSetSecureValueErrorsRequest
|
|
51837
|
-
| tl.users.
|
|
51961
|
+
| tl.users.RawGetRequirementsToContactRequest
|
|
51838
51962
|
| tl.contacts.RawGetContactIDsRequest
|
|
51839
51963
|
| tl.contacts.RawGetStatusesRequest
|
|
51840
51964
|
| tl.contacts.RawGetContactsRequest
|
|
@@ -52188,6 +52312,7 @@ export class RpcError extends Error {
|
|
|
52188
52312
|
| tl.channels.RawSetEmojiStickersRequest
|
|
52189
52313
|
| tl.channels.RawRestrictSponsoredMessagesRequest
|
|
52190
52314
|
| tl.channels.RawSearchPostsRequest
|
|
52315
|
+
| tl.channels.RawUpdatePaidMessagesPriceRequest
|
|
52191
52316
|
| tl.bots.RawSendCustomRequestRequest
|
|
52192
52317
|
| tl.bots.RawAnswerWebhookJSONQueryRequest
|
|
52193
52318
|
| tl.bots.RawSetBotCommandsRequest
|
|
@@ -52265,6 +52390,7 @@ export class RpcError extends Error {
|
|
|
52265
52390
|
| tl.payments.RawGetSavedStarGiftRequest
|
|
52266
52391
|
| tl.payments.RawGetStarGiftWithdrawalUrlRequest
|
|
52267
52392
|
| tl.payments.RawToggleChatStarGiftNotificationsRequest
|
|
52393
|
+
| tl.payments.RawToggleStarGiftsPinnedToTopRequest
|
|
52268
52394
|
| tl.stickers.RawCreateStickerSetRequest
|
|
52269
52395
|
| tl.stickers.RawRemoveStickerFromSetRequest
|
|
52270
52396
|
| tl.stickers.RawChangeStickerPositionRequest
|
|
@@ -52374,17 +52500,14 @@ export class RpcError extends Error {
|
|
|
52374
52500
|
| tl.smsjobs.RawGetSmsJobRequest
|
|
52375
52501
|
| tl.smsjobs.RawFinishJobRequest
|
|
52376
52502
|
| tl.fragment.RawGetCollectibleInfoRequest
|
|
52503
|
+
| tl.contacts.RawGetSponsoredPeersRequest
|
|
52504
|
+
| tl.payments.RawCanPurchaseStoreRequest
|
|
52505
|
+
| tl.users.RawGetIsPremiumRequiredToContactRequest
|
|
52377
52506
|
| tl.payments.RawGetUserStarGiftsRequest
|
|
52378
|
-
| tl.channels.RawViewSponsoredMessageRequest
|
|
52379
|
-
| tl.channels.RawGetSponsoredMessagesRequest
|
|
52380
|
-
| tl.channels.RawClickSponsoredMessageRequest
|
|
52381
|
-
| tl.channels.RawReportSponsoredMessageRequest
|
|
52382
52507
|
| tl.mtcute.RawCustomMethodRequest
|
|
52383
52508
|
}
|
|
52384
52509
|
|
|
52385
52510
|
|
|
52386
|
-
|
|
52387
|
-
|
|
52388
52511
|
export declare namespace mtp {
|
|
52389
52512
|
const LAYER = 0;
|
|
52390
52513
|
|