|
@@ -383,12 +383,12 @@ export namespace Api {
|
|
|
photo?: Api.TypeInputWebDocument;
|
|
|
invoice: Api.TypeInvoice;
|
|
|
payload: bytes;
|
|
|
- provider: string;
|
|
|
+ provider?: string;
|
|
|
providerData: Api.TypeDataJSON;
|
|
|
startParam?: string;
|
|
|
extendedMedia?: Api.TypeInputMedia;
|
|
|
}> {
|
|
|
- CONSTRUCTOR_ID: 2394269397;
|
|
|
+ CONSTRUCTOR_ID: 1080028941;
|
|
|
SUBCLASS_OF_ID: 4210575092;
|
|
|
classType: "constructor";
|
|
|
className: "InputMediaInvoice";
|
|
@@ -399,7 +399,7 @@ export namespace Api {
|
|
|
photo?: Api.TypeInputWebDocument;
|
|
|
invoice: Api.TypeInvoice;
|
|
|
payload: bytes;
|
|
|
- provider: string;
|
|
|
+ provider?: string;
|
|
|
providerData: Api.TypeDataJSON;
|
|
|
startParam?: string;
|
|
|
extendedMedia?: Api.TypeInputMedia;
|
|
@@ -1390,7 +1390,7 @@ export namespace Api {
|
|
|
peerId?: Api.TypePeer;
|
|
|
}
|
|
|
export class Message extends CustomMessage {
|
|
|
- CONSTRUCTOR_ID: 592953125;
|
|
|
+ CONSTRUCTOR_ID: 2486456898;
|
|
|
SUBCLASS_OF_ID: 2030045667;
|
|
|
classType: "request";
|
|
|
className: "Message";
|
|
@@ -4775,6 +4775,28 @@ export namespace Api {
|
|
|
peer: Api.TypePeer;
|
|
|
reaction: Api.TypeReaction;
|
|
|
}
|
|
|
+ export class UpdateBroadcastRevenueTransactions extends VirtualClass<{
|
|
|
+ peer: Api.TypePeer;
|
|
|
+ balances: Api.TypeBroadcastRevenueBalances;
|
|
|
+ }> {
|
|
|
+ CONSTRUCTOR_ID: 3755565557;
|
|
|
+ SUBCLASS_OF_ID: 2676568142;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "UpdateBroadcastRevenueTransactions";
|
|
|
+ static fromReader(reader: Reader): UpdateBroadcastRevenueTransactions;
|
|
|
+ peer: Api.TypePeer;
|
|
|
+ balances: Api.TypeBroadcastRevenueBalances;
|
|
|
+ }
|
|
|
+ export class UpdateStarsBalance extends VirtualClass<{
|
|
|
+ balance: long;
|
|
|
+ }> {
|
|
|
+ CONSTRUCTOR_ID: 263737752;
|
|
|
+ SUBCLASS_OF_ID: 2676568142;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "UpdateStarsBalance";
|
|
|
+ static fromReader(reader: Reader): UpdateStarsBalance;
|
|
|
+ balance: long;
|
|
|
+ }
|
|
|
export class UpdatesTooLong extends VirtualClass<void> {
|
|
|
CONSTRUCTOR_ID: 3809980286;
|
|
|
SUBCLASS_OF_ID: 2331323052;
|
|
@@ -6996,14 +7018,18 @@ export namespace Api {
|
|
|
documentId: long;
|
|
|
}
|
|
|
export class MessageEntityBlockquote extends VirtualClass<{
|
|
|
+ // flags: null;
|
|
|
+ collapsed?: boolean;
|
|
|
offset: int;
|
|
|
length: int;
|
|
|
}> {
|
|
|
- CONSTRUCTOR_ID: 34469328;
|
|
|
+ CONSTRUCTOR_ID: 4056722092;
|
|
|
SUBCLASS_OF_ID: 3479443932;
|
|
|
classType: "constructor";
|
|
|
className: "MessageEntityBlockquote";
|
|
|
static fromReader(reader: Reader): MessageEntityBlockquote;
|
|
|
+ // flags: null;
|
|
|
+ collapsed?: boolean;
|
|
|
offset: int;
|
|
|
length: int;
|
|
|
}
|
|
@@ -12684,6 +12710,16 @@ export namespace Api {
|
|
|
purpose: Api.TypeInputStorePaymentPurpose;
|
|
|
option: Api.TypePremiumGiftCodeOption;
|
|
|
}
|
|
|
+ export class InputInvoiceStars extends VirtualClass<{
|
|
|
+ option: Api.TypeStarsTopupOption;
|
|
|
+ }> {
|
|
|
+ CONSTRUCTOR_ID: 497236696;
|
|
|
+ SUBCLASS_OF_ID: 1919851518;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "InputInvoiceStars";
|
|
|
+ static fromReader(reader: Reader): InputInvoiceStars;
|
|
|
+ option: Api.TypeStarsTopupOption;
|
|
|
+ }
|
|
|
export class InputStorePaymentPremiumSubscription extends VirtualClass<{
|
|
|
// flags: null;
|
|
|
restore?: boolean;
|
|
@@ -12760,6 +12796,22 @@ export namespace Api {
|
|
|
currency: string;
|
|
|
amount: long;
|
|
|
}
|
|
|
+ export class InputStorePaymentStars extends VirtualClass<{
|
|
|
+ // flags: null;
|
|
|
+ stars: long;
|
|
|
+ currency: string;
|
|
|
+ amount: long;
|
|
|
+ }> {
|
|
|
+ CONSTRUCTOR_ID: 1326377183;
|
|
|
+ SUBCLASS_OF_ID: 3886290765;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "InputStorePaymentStars";
|
|
|
+ static fromReader(reader: Reader): InputStorePaymentStars;
|
|
|
+ // flags: null;
|
|
|
+ stars: long;
|
|
|
+ currency: string;
|
|
|
+ amount: long;
|
|
|
+ }
|
|
|
export class PremiumGiftOption extends VirtualClass<{
|
|
|
// flags: null;
|
|
|
months: int;
|
|
@@ -14639,6 +14691,137 @@ export namespace Api {
|
|
|
availableBalance: long;
|
|
|
overallRevenue: long;
|
|
|
}
|
|
|
+ export class AvailableEffect extends VirtualClass<{
|
|
|
+ // flags: null;
|
|
|
+ premiumRequired?: boolean;
|
|
|
+ id: long;
|
|
|
+ emoticon: string;
|
|
|
+ staticIconId?: long;
|
|
|
+ effectStickerId: long;
|
|
|
+ effectAnimationId?: long;
|
|
|
+ }> {
|
|
|
+ CONSTRUCTOR_ID: 2479088254;
|
|
|
+ SUBCLASS_OF_ID: 2556047233;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "AvailableEffect";
|
|
|
+ static fromReader(reader: Reader): AvailableEffect;
|
|
|
+ // flags: null;
|
|
|
+ premiumRequired?: boolean;
|
|
|
+ id: long;
|
|
|
+ emoticon: string;
|
|
|
+ staticIconId?: long;
|
|
|
+ effectStickerId: long;
|
|
|
+ effectAnimationId?: long;
|
|
|
+ }
|
|
|
+ export class FactCheck extends VirtualClass<{
|
|
|
+ // flags: null;
|
|
|
+ needCheck?: boolean;
|
|
|
+ country?: string;
|
|
|
+ text?: Api.TypeTextWithEntities;
|
|
|
+ hash: long;
|
|
|
+ }> {
|
|
|
+ CONSTRUCTOR_ID: 3097230543;
|
|
|
+ SUBCLASS_OF_ID: 1178641315;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "FactCheck";
|
|
|
+ static fromReader(reader: Reader): FactCheck;
|
|
|
+ // flags: null;
|
|
|
+ needCheck?: boolean;
|
|
|
+ country?: string;
|
|
|
+ text?: Api.TypeTextWithEntities;
|
|
|
+ hash: long;
|
|
|
+ }
|
|
|
+ export class StarsTransactionPeerUnsupported extends VirtualClass<void> {
|
|
|
+ CONSTRUCTOR_ID: 2515714020;
|
|
|
+ SUBCLASS_OF_ID: 1102483843;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "StarsTransactionPeerUnsupported";
|
|
|
+ static fromReader(reader: Reader): StarsTransactionPeerUnsupported;
|
|
|
+ }
|
|
|
+ export class StarsTransactionPeerAppStore extends VirtualClass<void> {
|
|
|
+ CONSTRUCTOR_ID: 3025646453;
|
|
|
+ SUBCLASS_OF_ID: 1102483843;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "StarsTransactionPeerAppStore";
|
|
|
+ static fromReader(reader: Reader): StarsTransactionPeerAppStore;
|
|
|
+ }
|
|
|
+ export class StarsTransactionPeerPlayMarket extends VirtualClass<void> {
|
|
|
+ CONSTRUCTOR_ID: 2069236235;
|
|
|
+ SUBCLASS_OF_ID: 1102483843;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "StarsTransactionPeerPlayMarket";
|
|
|
+ static fromReader(reader: Reader): StarsTransactionPeerPlayMarket;
|
|
|
+ }
|
|
|
+ export class StarsTransactionPeerPremiumBot extends VirtualClass<void> {
|
|
|
+ CONSTRUCTOR_ID: 621656824;
|
|
|
+ SUBCLASS_OF_ID: 1102483843;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "StarsTransactionPeerPremiumBot";
|
|
|
+ static fromReader(reader: Reader): StarsTransactionPeerPremiumBot;
|
|
|
+ }
|
|
|
+ export class StarsTransactionPeerFragment extends VirtualClass<void> {
|
|
|
+ CONSTRUCTOR_ID: 3912227074;
|
|
|
+ SUBCLASS_OF_ID: 1102483843;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "StarsTransactionPeerFragment";
|
|
|
+ static fromReader(reader: Reader): StarsTransactionPeerFragment;
|
|
|
+ }
|
|
|
+ export class StarsTransactionPeer extends VirtualClass<{
|
|
|
+ peer: Api.TypePeer;
|
|
|
+ }> {
|
|
|
+ CONSTRUCTOR_ID: 3624771933;
|
|
|
+ SUBCLASS_OF_ID: 1102483843;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "StarsTransactionPeer";
|
|
|
+ static fromReader(reader: Reader): StarsTransactionPeer;
|
|
|
+ peer: Api.TypePeer;
|
|
|
+ }
|
|
|
+ export class StarsTopupOption extends VirtualClass<{
|
|
|
+ // flags: null;
|
|
|
+ extended?: boolean;
|
|
|
+ stars: long;
|
|
|
+ storeProduct?: string;
|
|
|
+ currency: string;
|
|
|
+ amount: long;
|
|
|
+ }> {
|
|
|
+ CONSTRUCTOR_ID: 198776256;
|
|
|
+ SUBCLASS_OF_ID: 3854345708;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "StarsTopupOption";
|
|
|
+ static fromReader(reader: Reader): StarsTopupOption;
|
|
|
+ // flags: null;
|
|
|
+ extended?: boolean;
|
|
|
+ stars: long;
|
|
|
+ storeProduct?: string;
|
|
|
+ currency: string;
|
|
|
+ amount: long;
|
|
|
+ }
|
|
|
+ export class StarsTransaction extends VirtualClass<{
|
|
|
+ // flags: null;
|
|
|
+ refund?: boolean;
|
|
|
+ id: string;
|
|
|
+ stars: long;
|
|
|
+ date: int;
|
|
|
+ peer: Api.TypeStarsTransactionPeer;
|
|
|
+ title?: string;
|
|
|
+ description?: string;
|
|
|
+ photo?: Api.TypeWebDocument;
|
|
|
+ }> {
|
|
|
+ CONSTRUCTOR_ID: 3429923250;
|
|
|
+ SUBCLASS_OF_ID: 2257078130;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "StarsTransaction";
|
|
|
+ static fromReader(reader: Reader): StarsTransaction;
|
|
|
+ // flags: null;
|
|
|
+ refund?: boolean;
|
|
|
+ id: string;
|
|
|
+ stars: long;
|
|
|
+ date: int;
|
|
|
+ peer: Api.TypeStarsTransactionPeer;
|
|
|
+ title?: string;
|
|
|
+ description?: string;
|
|
|
+ photo?: Api.TypeWebDocument;
|
|
|
+ }
|
|
|
export class ResPQ extends VirtualClass<{
|
|
|
nonce: int128;
|
|
|
serverNonce: int128;
|
|
@@ -15390,6 +15573,40 @@ export namespace Api {
|
|
|
connectionId: string;
|
|
|
query: X;
|
|
|
}
|
|
|
+ export class InvokeWithGooglePlayIntegrity extends Request<
|
|
|
+ Partial<{
|
|
|
+ nonce: string;
|
|
|
+ token: string;
|
|
|
+ query: X;
|
|
|
+ }>,
|
|
|
+ X
|
|
|
+ > {
|
|
|
+ CONSTRUCTOR_ID: 502868356;
|
|
|
+ SUBCLASS_OF_ID: 3081909835;
|
|
|
+ classType: "request";
|
|
|
+ className: "InvokeWithGooglePlayIntegrity";
|
|
|
+ static fromReader(reader: Reader): InvokeWithGooglePlayIntegrity;
|
|
|
+ nonce: string;
|
|
|
+ token: string;
|
|
|
+ query: X;
|
|
|
+ }
|
|
|
+ export class InvokeWithApnsSecret extends Request<
|
|
|
+ Partial<{
|
|
|
+ nonce: string;
|
|
|
+ secret: string;
|
|
|
+ query: X;
|
|
|
+ }>,
|
|
|
+ X
|
|
|
+ > {
|
|
|
+ CONSTRUCTOR_ID: 229528824;
|
|
|
+ SUBCLASS_OF_ID: 3081909835;
|
|
|
+ classType: "request";
|
|
|
+ className: "InvokeWithApnsSecret";
|
|
|
+ static fromReader(reader: Reader): InvokeWithApnsSecret;
|
|
|
+ nonce: string;
|
|
|
+ secret: string;
|
|
|
+ query: X;
|
|
|
+ }
|
|
|
export class ReqPq extends Request<
|
|
|
Partial<{
|
|
|
nonce: int128;
|
|
@@ -15829,17 +16046,19 @@ export namespace Api {
|
|
|
export class SentCodeTypeFirebaseSms extends VirtualClass<{
|
|
|
// flags: null;
|
|
|
nonce?: bytes;
|
|
|
+ playIntegrityNonce?: bytes;
|
|
|
receipt?: string;
|
|
|
pushTimeout?: int;
|
|
|
length: int;
|
|
|
}> {
|
|
|
- CONSTRUCTOR_ID: 3850048562;
|
|
|
+ CONSTRUCTOR_ID: 331943703;
|
|
|
SUBCLASS_OF_ID: 4284159374;
|
|
|
classType: "constructor";
|
|
|
className: "auth.SentCodeTypeFirebaseSms";
|
|
|
static fromReader(reader: Reader): SentCodeTypeFirebaseSms;
|
|
|
// flags: null;
|
|
|
nonce?: bytes;
|
|
|
+ playIntegrityNonce?: bytes;
|
|
|
receipt?: string;
|
|
|
pushTimeout?: int;
|
|
|
length: int;
|
|
@@ -17149,6 +17368,27 @@ export namespace Api {
|
|
|
updates: Api.TypeUpdates;
|
|
|
missingInvitees: Api.TypeMissingInvitee[];
|
|
|
}
|
|
|
+ export class AvailableEffectsNotModified extends VirtualClass<void> {
|
|
|
+ CONSTRUCTOR_ID: 3522009691;
|
|
|
+ SUBCLASS_OF_ID: 1148245437;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "messages.AvailableEffectsNotModified";
|
|
|
+ static fromReader(reader: Reader): AvailableEffectsNotModified;
|
|
|
+ }
|
|
|
+ export class AvailableEffects extends VirtualClass<{
|
|
|
+ hash: int;
|
|
|
+ effects: Api.TypeAvailableEffect[];
|
|
|
+ documents: Api.TypeDocument[];
|
|
|
+ }> {
|
|
|
+ CONSTRUCTOR_ID: 3185271150;
|
|
|
+ SUBCLASS_OF_ID: 1148245437;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "messages.AvailableEffects";
|
|
|
+ static fromReader(reader: Reader): AvailableEffects;
|
|
|
+ hash: int;
|
|
|
+ effects: Api.TypeAvailableEffect[];
|
|
|
+ documents: Api.TypeDocument[];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
export namespace updates {
|
|
@@ -18369,6 +18609,30 @@ export namespace Api {
|
|
|
savedCredentials?: Api.TypePaymentSavedCredentials[];
|
|
|
users: Api.TypeUser[];
|
|
|
}
|
|
|
+ export class PaymentFormStars extends VirtualClass<{
|
|
|
+ // flags: null;
|
|
|
+ formId: long;
|
|
|
+ botId: long;
|
|
|
+ title: string;
|
|
|
+ description: string;
|
|
|
+ photo?: Api.TypeWebDocument;
|
|
|
+ invoice: Api.TypeInvoice;
|
|
|
+ users: Api.TypeUser[];
|
|
|
+ }> {
|
|
|
+ CONSTRUCTOR_ID: 2079764828;
|
|
|
+ SUBCLASS_OF_ID: 2689089305;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "payments.PaymentFormStars";
|
|
|
+ static fromReader(reader: Reader): PaymentFormStars;
|
|
|
+ // flags: null;
|
|
|
+ formId: long;
|
|
|
+ botId: long;
|
|
|
+ title: string;
|
|
|
+ description: string;
|
|
|
+ photo?: Api.TypeWebDocument;
|
|
|
+ invoice: Api.TypeInvoice;
|
|
|
+ users: Api.TypeUser[];
|
|
|
+ }
|
|
|
export class ValidatedRequestedInfo extends VirtualClass<{
|
|
|
// flags: null;
|
|
|
id?: string;
|
|
@@ -18441,6 +18705,36 @@ export namespace Api {
|
|
|
credentialsTitle: string;
|
|
|
users: Api.TypeUser[];
|
|
|
}
|
|
|
+ export class PaymentReceiptStars extends VirtualClass<{
|
|
|
+ // flags: null;
|
|
|
+ date: int;
|
|
|
+ botId: long;
|
|
|
+ title: string;
|
|
|
+ description: string;
|
|
|
+ photo?: Api.TypeWebDocument;
|
|
|
+ invoice: Api.TypeInvoice;
|
|
|
+ currency: string;
|
|
|
+ totalAmount: long;
|
|
|
+ transactionId: string;
|
|
|
+ users: Api.TypeUser[];
|
|
|
+ }> {
|
|
|
+ CONSTRUCTOR_ID: 3669751866;
|
|
|
+ SUBCLASS_OF_ID: 1493210057;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "payments.PaymentReceiptStars";
|
|
|
+ static fromReader(reader: Reader): PaymentReceiptStars;
|
|
|
+ // flags: null;
|
|
|
+ date: int;
|
|
|
+ botId: long;
|
|
|
+ title: string;
|
|
|
+ description: string;
|
|
|
+ photo?: Api.TypeWebDocument;
|
|
|
+ invoice: Api.TypeInvoice;
|
|
|
+ currency: string;
|
|
|
+ totalAmount: long;
|
|
|
+ transactionId: string;
|
|
|
+ users: Api.TypeUser[];
|
|
|
+ }
|
|
|
export class SavedInfo extends VirtualClass<{
|
|
|
// flags: null;
|
|
|
hasSavedCredentials?: boolean;
|
|
@@ -18551,6 +18845,26 @@ export namespace Api {
|
|
|
winnersCount: int;
|
|
|
activatedCount: int;
|
|
|
}
|
|
|
+ export class StarsStatus extends VirtualClass<{
|
|
|
+ // flags: null;
|
|
|
+ balance: long;
|
|
|
+ history: Api.TypeStarsTransaction[];
|
|
|
+ nextOffset?: string;
|
|
|
+ chats: Api.TypeChat[];
|
|
|
+ users: Api.TypeUser[];
|
|
|
+ }> {
|
|
|
+ CONSTRUCTOR_ID: 2364862048;
|
|
|
+ SUBCLASS_OF_ID: 1855724911;
|
|
|
+ classType: "constructor";
|
|
|
+ className: "payments.StarsStatus";
|
|
|
+ static fromReader(reader: Reader): StarsStatus;
|
|
|
+ // flags: null;
|
|
|
+ balance: long;
|
|
|
+ history: Api.TypeStarsTransaction[];
|
|
|
+ nextOffset?: string;
|
|
|
+ chats: Api.TypeChat[];
|
|
|
+ users: Api.TypeUser[];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
export namespace phone {
|
|
@@ -19386,6 +19700,9 @@ export namespace Api {
|
|
|
export type TypeDialogFilters = messages.DialogFilters;
|
|
|
export type TypeMyStickers = messages.MyStickers;
|
|
|
export type TypeInvitedUsers = messages.InvitedUsers;
|
|
|
+ export type TypeAvailableEffects =
|
|
|
+ | messages.AvailableEffectsNotModified
|
|
|
+ | messages.AvailableEffects;
|
|
|
}
|
|
|
|
|
|
export namespace updates {
|
|
@@ -19504,13 +19821,17 @@ export namespace Api {
|
|
|
}
|
|
|
|
|
|
export namespace payments {
|
|
|
- export type TypePaymentForm = payments.PaymentForm;
|
|
|
+ export type TypePaymentForm =
|
|
|
+ | payments.PaymentForm
|
|
|
+ | payments.PaymentFormStars;
|
|
|
export type TypeValidatedRequestedInfo =
|
|
|
payments.ValidatedRequestedInfo;
|
|
|
export type TypePaymentResult =
|
|
|
| payments.PaymentResult
|
|
|
| payments.PaymentVerificationNeeded;
|
|
|
- export type TypePaymentReceipt = payments.PaymentReceipt;
|
|
|
+ export type TypePaymentReceipt =
|
|
|
+ | payments.PaymentReceipt
|
|
|
+ | payments.PaymentReceiptStars;
|
|
|
export type TypeSavedInfo = payments.SavedInfo;
|
|
|
export type TypeBankCardData = payments.BankCardData;
|
|
|
export type TypeExportedInvoice = payments.ExportedInvoice;
|
|
@@ -19518,6 +19839,7 @@ export namespace Api {
|
|
|
export type TypeGiveawayInfo =
|
|
|
| payments.GiveawayInfo
|
|
|
| payments.GiveawayInfoResults;
|
|
|
+ export type TypeStarsStatus = payments.StarsStatus;
|
|
|
}
|
|
|
|
|
|
export namespace phone {
|
|
@@ -19777,18 +20099,22 @@ export namespace Api {
|
|
|
}
|
|
|
export class ResendCode extends Request<
|
|
|
Partial<{
|
|
|
+ // flags: null;
|
|
|
phoneNumber: string;
|
|
|
phoneCodeHash: string;
|
|
|
+ reason?: string;
|
|
|
}>,
|
|
|
auth.TypeSentCode
|
|
|
> {
|
|
|
- CONSTRUCTOR_ID: 1056025023;
|
|
|
+ CONSTRUCTOR_ID: 3403969827;
|
|
|
SUBCLASS_OF_ID: 1827172481;
|
|
|
classType: "request";
|
|
|
className: "auth.ResendCode";
|
|
|
static fromReader(reader: Reader): ResendCode;
|
|
|
+ // flags: null;
|
|
|
phoneNumber: string;
|
|
|
phoneCodeHash: string;
|
|
|
+ reason?: string;
|
|
|
}
|
|
|
export class CancelCode extends Request<
|
|
|
Partial<{
|
|
@@ -19897,11 +20223,12 @@ export namespace Api {
|
|
|
phoneNumber: string;
|
|
|
phoneCodeHash: string;
|
|
|
safetyNetToken?: string;
|
|
|
+ playIntegrityToken?: string;
|
|
|
iosPushSecret?: string;
|
|
|
}>,
|
|
|
Bool
|
|
|
> {
|
|
|
- CONSTRUCTOR_ID: 2303085392;
|
|
|
+ CONSTRUCTOR_ID: 2386109982;
|
|
|
SUBCLASS_OF_ID: 4122188204;
|
|
|
classType: "request";
|
|
|
className: "auth.RequestFirebaseSms";
|
|
@@ -19910,6 +20237,7 @@ export namespace Api {
|
|
|
phoneNumber: string;
|
|
|
phoneCodeHash: string;
|
|
|
safetyNetToken?: string;
|
|
|
+ playIntegrityToken?: string;
|
|
|
iosPushSecret?: string;
|
|
|
}
|
|
|
export class ResetLoginEmail extends Request<
|
|
@@ -22197,10 +22525,11 @@ export namespace Api {
|
|
|
scheduleDate?: int;
|
|
|
sendAs?: Api.TypeEntityLike;
|
|
|
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
|
|
|
+ effect?: long;
|
|
|
}>,
|
|
|
Api.TypeUpdates
|
|
|
> {
|
|
|
- CONSTRUCTOR_ID: 3757573164;
|
|
|
+ CONSTRUCTOR_ID: 2554304325;
|
|
|
SUBCLASS_OF_ID: 2331323052;
|
|
|
classType: "request";
|
|
|
className: "messages.SendMessage";
|
|
@@ -22222,6 +22551,7 @@ export namespace Api {
|
|
|
scheduleDate?: int;
|
|
|
sendAs?: Api.TypeEntityLike;
|
|
|
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
|
|
|
+ effect?: long;
|
|
|
}
|
|
|
export class SendMedia extends Request<
|
|
|
Partial<{
|
|
@@ -22242,10 +22572,11 @@ export namespace Api {
|
|
|
scheduleDate?: int;
|
|
|
sendAs?: Api.TypeEntityLike;
|
|
|
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
|
|
|
+ effect?: long;
|
|
|
}>,
|
|
|
Api.TypeUpdates
|
|
|
> {
|
|
|
- CONSTRUCTOR_ID: 2077646913;
|
|
|
+ CONSTRUCTOR_ID: 2018673486;
|
|
|
SUBCLASS_OF_ID: 2331323052;
|
|
|
classType: "request";
|
|
|
className: "messages.SendMedia";
|
|
@@ -22267,6 +22598,7 @@ export namespace Api {
|
|
|
scheduleDate?: int;
|
|
|
sendAs?: Api.TypeEntityLike;
|
|
|
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
|
|
|
+ effect?: long;
|
|
|
}
|
|
|
export class ForwardMessages extends Request<
|
|
|
Partial<{
|
|
@@ -23683,10 +24015,11 @@ export namespace Api {
|
|
|
scheduleDate?: int;
|
|
|
sendAs?: Api.TypeEntityLike;
|
|
|
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
|
|
|
+ effect?: long;
|
|
|
}>,
|
|
|
Api.TypeUpdates
|
|
|
> {
|
|
|
- CONSTRUCTOR_ID: 211175177;
|
|
|
+ CONSTRUCTOR_ID: 934757205;
|
|
|
SUBCLASS_OF_ID: 2331323052;
|
|
|
classType: "request";
|
|
|
className: "messages.SendMultiMedia";
|
|
@@ -23704,6 +24037,7 @@ export namespace Api {
|
|
|
scheduleDate?: int;
|
|
|
sendAs?: Api.TypeEntityLike;
|
|
|
quickReplyShortcut?: Api.TypeInputQuickReplyShortcut;
|
|
|
+ effect?: long;
|
|
|
}
|
|
|
export class UploadEncryptedFile extends Request<
|
|
|
Partial<{
|
|
@@ -25694,6 +26028,66 @@ export namespace Api {
|
|
|
static fromReader(reader: Reader): GetEmojiStickerGroups;
|
|
|
hash: int;
|
|
|
}
|
|
|
+ export class GetAvailableEffects extends Request<
|
|
|
+ Partial<{
|
|
|
+ hash: int;
|
|
|
+ }>,
|
|
|
+ messages.TypeAvailableEffects
|
|
|
+ > {
|
|
|
+ CONSTRUCTOR_ID: 3735161401;
|
|
|
+ SUBCLASS_OF_ID: 1148245437;
|
|
|
+ classType: "request";
|
|
|
+ className: "messages.GetAvailableEffects";
|
|
|
+ static fromReader(reader: Reader): GetAvailableEffects;
|
|
|
+ hash: int;
|
|
|
+ }
|
|
|
+ export class EditFactCheck extends Request<
|
|
|
+ Partial<{
|
|
|
+ peer: Api.TypeEntityLike;
|
|
|
+ msgId: MessageIDLike;
|
|
|
+ text: Api.TypeTextWithEntities;
|
|
|
+ }>,
|
|
|
+ Api.TypeUpdates
|
|
|
+ > {
|
|
|
+ CONSTRUCTOR_ID: 92925557;
|
|
|
+ SUBCLASS_OF_ID: 2331323052;
|
|
|
+ classType: "request";
|
|
|
+ className: "messages.EditFactCheck";
|
|
|
+ static fromReader(reader: Reader): EditFactCheck;
|
|
|
+ peer: Api.TypeEntityLike;
|
|
|
+ msgId: MessageIDLike;
|
|
|
+ text: Api.TypeTextWithEntities;
|
|
|
+ }
|
|
|
+ export class DeleteFactCheck extends Request<
|
|
|
+ Partial<{
|
|
|
+ peer: Api.TypeEntityLike;
|
|
|
+ msgId: MessageIDLike;
|
|
|
+ }>,
|
|
|
+ Api.TypeUpdates
|
|
|
+ > {
|
|
|
+ CONSTRUCTOR_ID: 3520762892;
|
|
|
+ SUBCLASS_OF_ID: 2331323052;
|
|
|
+ classType: "request";
|
|
|
+ className: "messages.DeleteFactCheck";
|
|
|
+ static fromReader(reader: Reader): DeleteFactCheck;
|
|
|
+ peer: Api.TypeEntityLike;
|
|
|
+ msgId: MessageIDLike;
|
|
|
+ }
|
|
|
+ export class GetFactCheck extends Request<
|
|
|
+ Partial<{
|
|
|
+ peer: Api.TypeEntityLike;
|
|
|
+ msgId: MessageIDLike[];
|
|
|
+ }>,
|
|
|
+ Api.TypeFactCheck[]
|
|
|
+ > {
|
|
|
+ CONSTRUCTOR_ID: 3117270510;
|
|
|
+ SUBCLASS_OF_ID: 3148224531;
|
|
|
+ classType: "request";
|
|
|
+ className: "messages.GetFactCheck";
|
|
|
+ static fromReader(reader: Reader): GetFactCheck;
|
|
|
+ peer: Api.TypeEntityLike;
|
|
|
+ msgId: MessageIDLike[];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
export namespace updates {
|
|
@@ -27331,6 +27725,27 @@ export namespace Api {
|
|
|
channel: Api.TypeEntityLike;
|
|
|
restricted: Bool;
|
|
|
}
|
|
|
+ export class SearchPosts extends Request<
|
|
|
+ Partial<{
|
|
|
+ hashtag: string;
|
|
|
+ offsetRate: int;
|
|
|
+ offsetPeer: Api.TypeEntityLike;
|
|
|
+ offsetId: int;
|
|
|
+ limit: int;
|
|
|
+ }>,
|
|
|
+ messages.TypeMessages
|
|
|
+ > {
|
|
|
+ CONSTRUCTOR_ID: 3516897403;
|
|
|
+ SUBCLASS_OF_ID: 3568569182;
|
|
|
+ classType: "request";
|
|
|
+ className: "channels.SearchPosts";
|
|
|
+ static fromReader(reader: Reader): SearchPosts;
|
|
|
+ hashtag: string;
|
|
|
+ offsetRate: int;
|
|
|
+ offsetPeer: Api.TypeEntityLike;
|
|
|
+ offsetId: int;
|
|
|
+ limit: int;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
export namespace bots {
|
|
@@ -27830,6 +28245,82 @@ export namespace Api {
|
|
|
giveawayId: long;
|
|
|
purpose: Api.TypeInputStorePaymentPurpose;
|
|
|
}
|
|
|
+ export class GetStarsTopupOptions extends Request<
|
|
|
+ void,
|
|
|
+ Api.TypeStarsTopupOption[]
|
|
|
+ > {
|
|
|
+ CONSTRUCTOR_ID: 3222194131;
|
|
|
+ SUBCLASS_OF_ID: 3573451417;
|
|
|
+ classType: "request";
|
|
|
+ className: "payments.GetStarsTopupOptions";
|
|
|
+ static fromReader(reader: Reader): GetStarsTopupOptions;
|
|
|
+ }
|
|
|
+ export class GetStarsStatus extends Request<
|
|
|
+ Partial<{
|
|
|
+ peer: Api.TypeEntityLike;
|
|
|
+ }>,
|
|
|
+ payments.TypeStarsStatus
|
|
|
+ > {
|
|
|
+ CONSTRUCTOR_ID: 273665959;
|
|
|
+ SUBCLASS_OF_ID: 1855724911;
|
|
|
+ classType: "request";
|
|
|
+ className: "payments.GetStarsStatus";
|
|
|
+ static fromReader(reader: Reader): GetStarsStatus;
|
|
|
+ peer: Api.TypeEntityLike;
|
|
|
+ }
|
|
|
+ export class GetStarsTransactions extends Request<
|
|
|
+ Partial<{
|
|
|
+ // flags: null;
|
|
|
+ inbound?: boolean;
|
|
|
+ outbound?: boolean;
|
|
|
+ peer: Api.TypeEntityLike;
|
|
|
+ offset: string;
|
|
|
+ }>,
|
|
|
+ payments.TypeStarsStatus
|
|
|
+ > {
|
|
|
+ CONSTRUCTOR_ID: 1731904249;
|
|
|
+ SUBCLASS_OF_ID: 1855724911;
|
|
|
+ classType: "request";
|
|
|
+ className: "payments.GetStarsTransactions";
|
|
|
+ static fromReader(reader: Reader): GetStarsTransactions;
|
|
|
+ // flags: null;
|
|
|
+ inbound?: boolean;
|
|
|
+ outbound?: boolean;
|
|
|
+ peer: Api.TypeEntityLike;
|
|
|
+ offset: string;
|
|
|
+ }
|
|
|
+ export class SendStarsForm extends Request<
|
|
|
+ Partial<{
|
|
|
+ // flags: null;
|
|
|
+ formId: long;
|
|
|
+ invoice: Api.TypeInputInvoice;
|
|
|
+ }>,
|
|
|
+ payments.TypePaymentResult
|
|
|
+ > {
|
|
|
+ CONSTRUCTOR_ID: 45839133;
|
|
|
+ SUBCLASS_OF_ID: 2330028701;
|
|
|
+ classType: "request";
|
|
|
+ className: "payments.SendStarsForm";
|
|
|
+ static fromReader(reader: Reader): SendStarsForm;
|
|
|
+ // flags: null;
|
|
|
+ formId: long;
|
|
|
+ invoice: Api.TypeInputInvoice;
|
|
|
+ }
|
|
|
+ export class RefundStarsCharge extends Request<
|
|
|
+ Partial<{
|
|
|
+ userId: Api.TypeEntityLike;
|
|
|
+ chargeId: string;
|
|
|
+ }>,
|
|
|
+ Api.TypeUpdates
|
|
|
+ > {
|
|
|
+ CONSTRUCTOR_ID: 632196938;
|
|
|
+ SUBCLASS_OF_ID: 2331323052;
|
|
|
+ classType: "request";
|
|
|
+ className: "payments.RefundStarsCharge";
|
|
|
+ static fromReader(reader: Reader): RefundStarsCharge;
|
|
|
+ userId: Api.TypeEntityLike;
|
|
|
+ chargeId: string;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
export namespace stickers {
|
|
@@ -29923,7 +30414,9 @@ export namespace Api {
|
|
|
| UpdateBotNewBusinessMessage
|
|
|
| UpdateBotEditBusinessMessage
|
|
|
| UpdateBotDeleteBusinessMessage
|
|
|
- | UpdateNewStoryReaction;
|
|
|
+ | UpdateNewStoryReaction
|
|
|
+ | UpdateBroadcastRevenueTransactions
|
|
|
+ | UpdateStarsBalance;
|
|
|
export type TypeUpdates =
|
|
|
| UpdatesTooLong
|
|
|
| UpdateShortMessage
|
|
@@ -30535,12 +31028,14 @@ export namespace Api {
|
|
|
export type TypeInputInvoice =
|
|
|
| InputInvoiceMessage
|
|
|
| InputInvoiceSlug
|
|
|
- | InputInvoicePremiumGiftCode;
|
|
|
+ | InputInvoicePremiumGiftCode
|
|
|
+ | InputInvoiceStars;
|
|
|
export type TypeInputStorePaymentPurpose =
|
|
|
| InputStorePaymentPremiumSubscription
|
|
|
| InputStorePaymentGiftPremium
|
|
|
| InputStorePaymentPremiumGiftCode
|
|
|
- | InputStorePaymentPremiumGiveaway;
|
|
|
+ | InputStorePaymentPremiumGiveaway
|
|
|
+ | InputStorePaymentStars;
|
|
|
export type TypePremiumGiftOption = PremiumGiftOption;
|
|
|
export type TypePaymentFormMethod = PaymentFormMethod;
|
|
|
export type TypeEmojiStatus =
|
|
@@ -30678,6 +31173,17 @@ export namespace Api {
|
|
|
| ReactionNotificationsFromAll;
|
|
|
export type TypeReactionsNotifySettings = ReactionsNotifySettings;
|
|
|
export type TypeBroadcastRevenueBalances = BroadcastRevenueBalances;
|
|
|
+ export type TypeAvailableEffect = AvailableEffect;
|
|
|
+ export type TypeFactCheck = FactCheck;
|
|
|
+ export type TypeStarsTransactionPeer =
|
|
|
+ | StarsTransactionPeerUnsupported
|
|
|
+ | StarsTransactionPeerAppStore
|
|
|
+ | StarsTransactionPeerPlayMarket
|
|
|
+ | StarsTransactionPeerPremiumBot
|
|
|
+ | StarsTransactionPeerFragment
|
|
|
+ | StarsTransactionPeer;
|
|
|
+ export type TypeStarsTopupOption = StarsTopupOption;
|
|
|
+ export type TypeStarsTransaction = StarsTransaction;
|
|
|
export type TypeResPQ = ResPQ;
|
|
|
export type TypeP_Q_inner_data =
|
|
|
| PQInnerData
|
|
@@ -30736,6 +31242,8 @@ export namespace Api {
|
|
|
| InvokeWithMessagesRange
|
|
|
| InvokeWithTakeout
|
|
|
| InvokeWithBusinessConnection
|
|
|
+ | InvokeWithGooglePlayIntegrity
|
|
|
+ | InvokeWithApnsSecret
|
|
|
| ReqPq
|
|
|
| ReqPqMulti
|
|
|
| ReqDHParams
|
|
@@ -31120,6 +31628,10 @@ export namespace Api {
|
|
|
| messages.ToggleDialogFilterTags
|
|
|
| messages.GetMyStickers
|
|
|
| messages.GetEmojiStickerGroups
|
|
|
+ | messages.GetAvailableEffects
|
|
|
+ | messages.EditFactCheck
|
|
|
+ | messages.DeleteFactCheck
|
|
|
+ | messages.GetFactCheck
|
|
|
| updates.GetState
|
|
|
| updates.GetDifference
|
|
|
| updates.GetChannelDifference
|
|
@@ -31225,6 +31737,7 @@ export namespace Api {
|
|
|
| channels.SetEmojiStickers
|
|
|
| channels.ReportSponsoredMessage
|
|
|
| channels.RestrictSponsoredMessages
|
|
|
+ | channels.SearchPosts
|
|
|
| bots.SendCustomRequest
|
|
|
| bots.AnswerWebhookJSONQuery
|
|
|
| bots.SetBotCommands
|
|
@@ -31257,6 +31770,11 @@ export namespace Api {
|
|
|
| payments.ApplyGiftCode
|
|
|
| payments.GetGiveawayInfo
|
|
|
| payments.LaunchPrepaidGiveaway
|
|
|
+ | payments.GetStarsTopupOptions
|
|
|
+ | payments.GetStarsStatus
|
|
|
+ | payments.GetStarsTransactions
|
|
|
+ | payments.SendStarsForm
|
|
|
+ | payments.RefundStarsCharge
|
|
|
| stickers.CreateStickerSet
|
|
|
| stickers.RemoveStickerFromSet
|
|
|
| stickers.ChangeStickerPosition
|