|
@@ -274,8 +274,6 @@ export namespace Api {
|
|
}
|
|
}
|
|
export class InputMediaInvoice extends VirtualClass<{
|
|
export class InputMediaInvoice extends VirtualClass<{
|
|
// flags: null;
|
|
// flags: null;
|
|
- multipleAllowed?: boolean;
|
|
|
|
- canForward?: boolean;
|
|
|
|
title: string;
|
|
title: string;
|
|
description: string;
|
|
description: string;
|
|
photo?: Api.TypeInputWebDocument;
|
|
photo?: Api.TypeInputWebDocument;
|
|
@@ -283,12 +281,10 @@ export namespace Api {
|
|
payload: bytes;
|
|
payload: bytes;
|
|
provider: string;
|
|
provider: string;
|
|
providerData: Api.TypeDataJSON;
|
|
providerData: Api.TypeDataJSON;
|
|
- startParam: string;
|
|
|
|
|
|
+ startParam?: string;
|
|
}> {
|
|
}> {
|
|
static fromReader(reader: Reader): InputMediaInvoice;
|
|
static fromReader(reader: Reader): InputMediaInvoice;
|
|
// flags: null;
|
|
// flags: null;
|
|
- multipleAllowed?: boolean;
|
|
|
|
- canForward?: boolean;
|
|
|
|
title: string;
|
|
title: string;
|
|
description: string;
|
|
description: string;
|
|
photo?: Api.TypeInputWebDocument;
|
|
photo?: Api.TypeInputWebDocument;
|
|
@@ -296,7 +292,7 @@ export namespace Api {
|
|
payload: bytes;
|
|
payload: bytes;
|
|
provider: string;
|
|
provider: string;
|
|
providerData: Api.TypeDataJSON;
|
|
providerData: Api.TypeDataJSON;
|
|
- startParam: string;
|
|
|
|
|
|
+ startParam?: string;
|
|
}
|
|
}
|
|
export class InputMediaGeoLive extends VirtualClass<{
|
|
export class InputMediaGeoLive extends VirtualClass<{
|
|
// flags: null;
|
|
// flags: null;
|
|
@@ -1589,12 +1585,14 @@ export namespace Api {
|
|
settings?: Api.TypeWallPaperSettings;
|
|
settings?: Api.TypeWallPaperSettings;
|
|
}
|
|
}
|
|
export class WallPaperNoFile extends VirtualClass<{
|
|
export class WallPaperNoFile extends VirtualClass<{
|
|
|
|
+ id: long;
|
|
// flags: null;
|
|
// flags: null;
|
|
default?: boolean;
|
|
default?: boolean;
|
|
dark?: boolean;
|
|
dark?: boolean;
|
|
settings?: Api.TypeWallPaperSettings;
|
|
settings?: Api.TypeWallPaperSettings;
|
|
}> {
|
|
}> {
|
|
static fromReader(reader: Reader): WallPaperNoFile;
|
|
static fromReader(reader: Reader): WallPaperNoFile;
|
|
|
|
+ id: long;
|
|
// flags: null;
|
|
// flags: null;
|
|
default?: boolean;
|
|
default?: boolean;
|
|
dark?: boolean;
|
|
dark?: boolean;
|
|
@@ -2411,11 +2409,13 @@ export namespace Api {
|
|
pollId: long;
|
|
pollId: long;
|
|
userId: int;
|
|
userId: int;
|
|
options: bytes[];
|
|
options: bytes[];
|
|
|
|
+ qts: int;
|
|
}> {
|
|
}> {
|
|
static fromReader(reader: Reader): UpdateMessagePollVote;
|
|
static fromReader(reader: Reader): UpdateMessagePollVote;
|
|
pollId: long;
|
|
pollId: long;
|
|
userId: int;
|
|
userId: int;
|
|
options: bytes[];
|
|
options: bytes[];
|
|
|
|
+ qts: int;
|
|
}
|
|
}
|
|
export class UpdateDialogFilter extends VirtualClass<{
|
|
export class UpdateDialogFilter extends VirtualClass<{
|
|
// flags: null;
|
|
// flags: null;
|
|
@@ -2624,6 +2624,26 @@ export namespace Api {
|
|
stopped: Bool;
|
|
stopped: Bool;
|
|
qts: int;
|
|
qts: int;
|
|
}
|
|
}
|
|
|
|
+ export class UpdateGroupCallConnection extends VirtualClass<{
|
|
|
|
+ // flags: null;
|
|
|
|
+ presentation?: boolean;
|
|
|
|
+ params: Api.TypeDataJSON;
|
|
|
|
+ }> {
|
|
|
|
+ static fromReader(reader: Reader): UpdateGroupCallConnection;
|
|
|
|
+ // flags: null;
|
|
|
|
+ presentation?: boolean;
|
|
|
|
+ params: Api.TypeDataJSON;
|
|
|
|
+ }
|
|
|
|
+ export class UpdateBotCommands extends VirtualClass<{
|
|
|
|
+ peer: Api.TypePeer;
|
|
|
|
+ botId: int;
|
|
|
|
+ commands: Api.TypeBotCommand[];
|
|
|
|
+ }> {
|
|
|
|
+ static fromReader(reader: Reader): UpdateBotCommands;
|
|
|
|
+ peer: Api.TypePeer;
|
|
|
|
+ botId: int;
|
|
|
|
+ commands: Api.TypeBotCommand[];
|
|
|
|
+ }
|
|
export class UpdatesTooLong extends VirtualClass<void> {
|
|
export class UpdatesTooLong extends VirtualClass<void> {
|
|
static fromReader(reader: Reader): UpdatesTooLong;
|
|
static fromReader(reader: Reader): UpdatesTooLong;
|
|
}
|
|
}
|
|
@@ -3748,11 +3768,13 @@ export namespace Api {
|
|
// flags: null;
|
|
// flags: null;
|
|
singleUse?: boolean;
|
|
singleUse?: boolean;
|
|
selective?: boolean;
|
|
selective?: boolean;
|
|
|
|
+ placeholder?: string;
|
|
}> {
|
|
}> {
|
|
static fromReader(reader: Reader): ReplyKeyboardForceReply;
|
|
static fromReader(reader: Reader): ReplyKeyboardForceReply;
|
|
// flags: null;
|
|
// flags: null;
|
|
singleUse?: boolean;
|
|
singleUse?: boolean;
|
|
selective?: boolean;
|
|
selective?: boolean;
|
|
|
|
+ placeholder?: string;
|
|
}
|
|
}
|
|
export class ReplyKeyboardMarkup extends VirtualClass<{
|
|
export class ReplyKeyboardMarkup extends VirtualClass<{
|
|
// flags: null;
|
|
// flags: null;
|
|
@@ -3760,6 +3782,7 @@ export namespace Api {
|
|
singleUse?: boolean;
|
|
singleUse?: boolean;
|
|
selective?: boolean;
|
|
selective?: boolean;
|
|
rows: Api.TypeKeyboardButtonRow[];
|
|
rows: Api.TypeKeyboardButtonRow[];
|
|
|
|
+ placeholder?: string;
|
|
}> {
|
|
}> {
|
|
static fromReader(reader: Reader): ReplyKeyboardMarkup;
|
|
static fromReader(reader: Reader): ReplyKeyboardMarkup;
|
|
// flags: null;
|
|
// flags: null;
|
|
@@ -3767,6 +3790,7 @@ export namespace Api {
|
|
singleUse?: boolean;
|
|
singleUse?: boolean;
|
|
selective?: boolean;
|
|
selective?: boolean;
|
|
rows: Api.TypeKeyboardButtonRow[];
|
|
rows: Api.TypeKeyboardButtonRow[];
|
|
|
|
+ placeholder?: string;
|
|
}
|
|
}
|
|
export class ReplyInlineMarkup extends VirtualClass<{
|
|
export class ReplyInlineMarkup extends VirtualClass<{
|
|
rows: Api.TypeKeyboardButtonRow[];
|
|
rows: Api.TypeKeyboardButtonRow[];
|
|
@@ -4181,8 +4205,6 @@ export namespace Api {
|
|
}
|
|
}
|
|
export class InputBotInlineMessageMediaInvoice extends VirtualClass<{
|
|
export class InputBotInlineMessageMediaInvoice extends VirtualClass<{
|
|
// flags: null;
|
|
// flags: null;
|
|
- multipleAllowed?: boolean;
|
|
|
|
- canForward?: boolean;
|
|
|
|
title: string;
|
|
title: string;
|
|
description: string;
|
|
description: string;
|
|
photo?: Api.TypeInputWebDocument;
|
|
photo?: Api.TypeInputWebDocument;
|
|
@@ -4190,13 +4212,10 @@ export namespace Api {
|
|
payload: bytes;
|
|
payload: bytes;
|
|
provider: string;
|
|
provider: string;
|
|
providerData: Api.TypeDataJSON;
|
|
providerData: Api.TypeDataJSON;
|
|
- startParam: string;
|
|
|
|
replyMarkup?: Api.TypeReplyMarkup;
|
|
replyMarkup?: Api.TypeReplyMarkup;
|
|
}> {
|
|
}> {
|
|
static fromReader(reader: Reader): InputBotInlineMessageMediaInvoice;
|
|
static fromReader(reader: Reader): InputBotInlineMessageMediaInvoice;
|
|
// flags: null;
|
|
// flags: null;
|
|
- multipleAllowed?: boolean;
|
|
|
|
- canForward?: boolean;
|
|
|
|
title: string;
|
|
title: string;
|
|
description: string;
|
|
description: string;
|
|
photo?: Api.TypeInputWebDocument;
|
|
photo?: Api.TypeInputWebDocument;
|
|
@@ -4204,7 +4223,6 @@ export namespace Api {
|
|
payload: bytes;
|
|
payload: bytes;
|
|
provider: string;
|
|
provider: string;
|
|
providerData: Api.TypeDataJSON;
|
|
providerData: Api.TypeDataJSON;
|
|
- startParam: string;
|
|
|
|
replyMarkup?: Api.TypeReplyMarkup;
|
|
replyMarkup?: Api.TypeReplyMarkup;
|
|
}
|
|
}
|
|
export class InputBotInlineResult extends VirtualClass<{
|
|
export class InputBotInlineResult extends VirtualClass<{
|
|
@@ -6585,8 +6603,11 @@ export namespace Api {
|
|
static fromReader(reader: Reader): InputWallPaperSlug;
|
|
static fromReader(reader: Reader): InputWallPaperSlug;
|
|
slug: string;
|
|
slug: string;
|
|
}
|
|
}
|
|
- export class InputWallPaperNoFile extends VirtualClass<void> {
|
|
|
|
|
|
+ export class InputWallPaperNoFile extends VirtualClass<{
|
|
|
|
+ id: long;
|
|
|
|
+ }> {
|
|
static fromReader(reader: Reader): InputWallPaperNoFile;
|
|
static fromReader(reader: Reader): InputWallPaperNoFile;
|
|
|
|
+ id: long;
|
|
}
|
|
}
|
|
export class CodeSettings extends VirtualClass<{
|
|
export class CodeSettings extends VirtualClass<{
|
|
// flags: null;
|
|
// flags: null;
|
|
@@ -6606,6 +6627,8 @@ export namespace Api {
|
|
motion?: boolean;
|
|
motion?: boolean;
|
|
backgroundColor?: int;
|
|
backgroundColor?: int;
|
|
secondBackgroundColor?: int;
|
|
secondBackgroundColor?: int;
|
|
|
|
+ thirdBackgroundColor?: int;
|
|
|
|
+ fourthBackgroundColor?: int;
|
|
intensity?: int;
|
|
intensity?: int;
|
|
rotation?: int;
|
|
rotation?: int;
|
|
}> {
|
|
}> {
|
|
@@ -6615,6 +6638,8 @@ export namespace Api {
|
|
motion?: boolean;
|
|
motion?: boolean;
|
|
backgroundColor?: int;
|
|
backgroundColor?: int;
|
|
secondBackgroundColor?: int;
|
|
secondBackgroundColor?: int;
|
|
|
|
+ thirdBackgroundColor?: int;
|
|
|
|
+ fourthBackgroundColor?: int;
|
|
intensity?: int;
|
|
intensity?: int;
|
|
rotation?: int;
|
|
rotation?: int;
|
|
}
|
|
}
|
|
@@ -7125,14 +7150,16 @@ export namespace Api {
|
|
canChangeJoinMuted?: boolean;
|
|
canChangeJoinMuted?: boolean;
|
|
joinDateAsc?: boolean;
|
|
joinDateAsc?: boolean;
|
|
scheduleStartSubscribed?: boolean;
|
|
scheduleStartSubscribed?: boolean;
|
|
|
|
+ canStartVideo?: boolean;
|
|
id: long;
|
|
id: long;
|
|
accessHash: long;
|
|
accessHash: long;
|
|
participantsCount: int;
|
|
participantsCount: int;
|
|
- params?: Api.TypeDataJSON;
|
|
|
|
title?: string;
|
|
title?: string;
|
|
streamDcId?: int;
|
|
streamDcId?: int;
|
|
recordStartDate?: int;
|
|
recordStartDate?: int;
|
|
scheduleDate?: int;
|
|
scheduleDate?: int;
|
|
|
|
+ unmutedVideoCount?: int;
|
|
|
|
+ unmutedVideoLimit: int;
|
|
version: int;
|
|
version: int;
|
|
}> {
|
|
}> {
|
|
static fromReader(reader: Reader): GroupCall;
|
|
static fromReader(reader: Reader): GroupCall;
|
|
@@ -7141,14 +7168,16 @@ export namespace Api {
|
|
canChangeJoinMuted?: boolean;
|
|
canChangeJoinMuted?: boolean;
|
|
joinDateAsc?: boolean;
|
|
joinDateAsc?: boolean;
|
|
scheduleStartSubscribed?: boolean;
|
|
scheduleStartSubscribed?: boolean;
|
|
|
|
+ canStartVideo?: boolean;
|
|
id: long;
|
|
id: long;
|
|
accessHash: long;
|
|
accessHash: long;
|
|
participantsCount: int;
|
|
participantsCount: int;
|
|
- params?: Api.TypeDataJSON;
|
|
|
|
title?: string;
|
|
title?: string;
|
|
streamDcId?: int;
|
|
streamDcId?: int;
|
|
recordStartDate?: int;
|
|
recordStartDate?: int;
|
|
scheduleDate?: int;
|
|
scheduleDate?: int;
|
|
|
|
+ unmutedVideoCount?: int;
|
|
|
|
+ unmutedVideoLimit: int;
|
|
version: int;
|
|
version: int;
|
|
}
|
|
}
|
|
export class InputGroupCall extends VirtualClass<{
|
|
export class InputGroupCall extends VirtualClass<{
|
|
@@ -7170,6 +7199,7 @@ export namespace Api {
|
|
mutedByYou?: boolean;
|
|
mutedByYou?: boolean;
|
|
volumeByAdmin?: boolean;
|
|
volumeByAdmin?: boolean;
|
|
self?: boolean;
|
|
self?: boolean;
|
|
|
|
+ videoJoined?: boolean;
|
|
peer: Api.TypePeer;
|
|
peer: Api.TypePeer;
|
|
date: int;
|
|
date: int;
|
|
activeDate?: int;
|
|
activeDate?: int;
|
|
@@ -7177,7 +7207,8 @@ export namespace Api {
|
|
volume?: int;
|
|
volume?: int;
|
|
about?: string;
|
|
about?: string;
|
|
raiseHandRating?: long;
|
|
raiseHandRating?: long;
|
|
- params?: Api.TypeDataJSON;
|
|
|
|
|
|
+ video?: Api.TypeGroupCallParticipantVideo;
|
|
|
|
+ presentation?: Api.TypeGroupCallParticipantVideo;
|
|
}> {
|
|
}> {
|
|
static fromReader(reader: Reader): GroupCallParticipant;
|
|
static fromReader(reader: Reader): GroupCallParticipant;
|
|
// flags: null;
|
|
// flags: null;
|
|
@@ -7190,6 +7221,7 @@ export namespace Api {
|
|
mutedByYou?: boolean;
|
|
mutedByYou?: boolean;
|
|
volumeByAdmin?: boolean;
|
|
volumeByAdmin?: boolean;
|
|
self?: boolean;
|
|
self?: boolean;
|
|
|
|
+ videoJoined?: boolean;
|
|
peer: Api.TypePeer;
|
|
peer: Api.TypePeer;
|
|
date: int;
|
|
date: int;
|
|
activeDate?: int;
|
|
activeDate?: int;
|
|
@@ -7197,7 +7229,8 @@ export namespace Api {
|
|
volume?: int;
|
|
volume?: int;
|
|
about?: string;
|
|
about?: string;
|
|
raiseHandRating?: long;
|
|
raiseHandRating?: long;
|
|
- params?: Api.TypeDataJSON;
|
|
|
|
|
|
+ video?: Api.TypeGroupCallParticipantVideo;
|
|
|
|
+ presentation?: Api.TypeGroupCallParticipantVideo;
|
|
}
|
|
}
|
|
export class InlineQueryPeerTypeSameBotPM extends VirtualClass<void> {
|
|
export class InlineQueryPeerTypeSameBotPM extends VirtualClass<void> {
|
|
static fromReader(reader: Reader): InlineQueryPeerTypeSameBotPM;
|
|
static fromReader(reader: Reader): InlineQueryPeerTypeSameBotPM;
|
|
@@ -7232,6 +7265,60 @@ export namespace Api {
|
|
invitesCount: int;
|
|
invitesCount: int;
|
|
revokedInvitesCount: int;
|
|
revokedInvitesCount: int;
|
|
}
|
|
}
|
|
|
|
+ export class GroupCallParticipantVideoSourceGroup extends VirtualClass<{
|
|
|
|
+ semantics: string;
|
|
|
|
+ sources: int[];
|
|
|
|
+ }> {
|
|
|
|
+ static fromReader(reader: Reader): GroupCallParticipantVideoSourceGroup;
|
|
|
|
+ semantics: string;
|
|
|
|
+ sources: int[];
|
|
|
|
+ }
|
|
|
|
+ export class GroupCallParticipantVideo extends VirtualClass<{
|
|
|
|
+ // flags: null;
|
|
|
|
+ paused?: boolean;
|
|
|
|
+ endpoint: string;
|
|
|
|
+ sourceGroups: Api.TypeGroupCallParticipantVideoSourceGroup[];
|
|
|
|
+ audioSource?: int;
|
|
|
|
+ }> {
|
|
|
|
+ static fromReader(reader: Reader): GroupCallParticipantVideo;
|
|
|
|
+ // flags: null;
|
|
|
|
+ paused?: boolean;
|
|
|
|
+ endpoint: string;
|
|
|
|
+ sourceGroups: Api.TypeGroupCallParticipantVideoSourceGroup[];
|
|
|
|
+ audioSource?: int;
|
|
|
|
+ }
|
|
|
|
+ export class BotCommandScopeDefault extends VirtualClass<void> {
|
|
|
|
+ static fromReader(reader: Reader): BotCommandScopeDefault;
|
|
|
|
+ }
|
|
|
|
+ export class BotCommandScopeUsers extends VirtualClass<void> {
|
|
|
|
+ static fromReader(reader: Reader): BotCommandScopeUsers;
|
|
|
|
+ }
|
|
|
|
+ export class BotCommandScopeChats extends VirtualClass<void> {
|
|
|
|
+ static fromReader(reader: Reader): BotCommandScopeChats;
|
|
|
|
+ }
|
|
|
|
+ export class BotCommandScopeChatAdmins extends VirtualClass<void> {
|
|
|
|
+ static fromReader(reader: Reader): BotCommandScopeChatAdmins;
|
|
|
|
+ }
|
|
|
|
+ export class BotCommandScopePeer extends VirtualClass<{
|
|
|
|
+ peer: Api.TypeInputPeer;
|
|
|
|
+ }> {
|
|
|
|
+ static fromReader(reader: Reader): BotCommandScopePeer;
|
|
|
|
+ peer: Api.TypeInputPeer;
|
|
|
|
+ }
|
|
|
|
+ export class BotCommandScopePeerAdmins extends VirtualClass<{
|
|
|
|
+ peer: Api.TypeInputPeer;
|
|
|
|
+ }> {
|
|
|
|
+ static fromReader(reader: Reader): BotCommandScopePeerAdmins;
|
|
|
|
+ peer: Api.TypeInputPeer;
|
|
|
|
+ }
|
|
|
|
+ export class BotCommandScopePeerUser extends VirtualClass<{
|
|
|
|
+ peer: Api.TypeInputPeer;
|
|
|
|
+ userId: Api.TypeInputUser;
|
|
|
|
+ }> {
|
|
|
|
+ static fromReader(reader: Reader): BotCommandScopePeerUser;
|
|
|
|
+ peer: Api.TypeInputPeer;
|
|
|
|
+ userId: Api.TypeInputUser;
|
|
|
|
+ }
|
|
export class ResPQ extends VirtualClass<{
|
|
export class ResPQ extends VirtualClass<{
|
|
nonce: int128;
|
|
nonce: int128;
|
|
serverNonce: int128;
|
|
serverNonce: int128;
|
|
@@ -8774,6 +8861,7 @@ export namespace Api {
|
|
entities: Api.TypeMessageEntity[];
|
|
entities: Api.TypeMessageEntity[];
|
|
document?: Api.TypeDocument;
|
|
document?: Api.TypeDocument;
|
|
url?: string;
|
|
url?: string;
|
|
|
|
+ sticker?: Api.TypeDocument;
|
|
}> {
|
|
}> {
|
|
static fromReader(reader: Reader): AppUpdate;
|
|
static fromReader(reader: Reader): AppUpdate;
|
|
// flags: null;
|
|
// flags: null;
|
|
@@ -8784,6 +8872,7 @@ export namespace Api {
|
|
entities: Api.TypeMessageEntity[];
|
|
entities: Api.TypeMessageEntity[];
|
|
document?: Api.TypeDocument;
|
|
document?: Api.TypeDocument;
|
|
url?: string;
|
|
url?: string;
|
|
|
|
+ sticker?: Api.TypeDocument;
|
|
}
|
|
}
|
|
export class NoAppUpdate extends VirtualClass<void> {
|
|
export class NoAppUpdate extends VirtualClass<void> {
|
|
static fromReader(reader: Reader): NoAppUpdate;
|
|
static fromReader(reader: Reader): NoAppUpdate;
|
|
@@ -8996,6 +9085,7 @@ export namespace Api {
|
|
newAlgo: Api.TypePasswordKdfAlgo;
|
|
newAlgo: Api.TypePasswordKdfAlgo;
|
|
newSecureAlgo: Api.TypeSecurePasswordKdfAlgo;
|
|
newSecureAlgo: Api.TypeSecurePasswordKdfAlgo;
|
|
secureRandom: bytes;
|
|
secureRandom: bytes;
|
|
|
|
+ pendingResetDate?: int;
|
|
}> {
|
|
}> {
|
|
static fromReader(reader: Reader): Password;
|
|
static fromReader(reader: Reader): Password;
|
|
// flags: null;
|
|
// flags: null;
|
|
@@ -9010,6 +9100,7 @@ export namespace Api {
|
|
newAlgo: Api.TypePasswordKdfAlgo;
|
|
newAlgo: Api.TypePasswordKdfAlgo;
|
|
newSecureAlgo: Api.TypeSecurePasswordKdfAlgo;
|
|
newSecureAlgo: Api.TypeSecurePasswordKdfAlgo;
|
|
secureRandom: bytes;
|
|
secureRandom: bytes;
|
|
|
|
+ pendingResetDate?: int;
|
|
}
|
|
}
|
|
export class PasswordSettings extends VirtualClass<{
|
|
export class PasswordSettings extends VirtualClass<{
|
|
// flags: null;
|
|
// flags: null;
|
|
@@ -9125,6 +9216,21 @@ export namespace Api {
|
|
sensitiveEnabled?: boolean;
|
|
sensitiveEnabled?: boolean;
|
|
sensitiveCanChange?: boolean;
|
|
sensitiveCanChange?: boolean;
|
|
}
|
|
}
|
|
|
|
+ export class ResetPasswordFailedWait extends VirtualClass<{
|
|
|
|
+ retryDate: int;
|
|
|
|
+ }> {
|
|
|
|
+ static fromReader(reader: Reader): ResetPasswordFailedWait;
|
|
|
|
+ retryDate: int;
|
|
|
|
+ }
|
|
|
|
+ export class ResetPasswordRequestedWait extends VirtualClass<{
|
|
|
|
+ untilDate: int;
|
|
|
|
+ }> {
|
|
|
|
+ static fromReader(reader: Reader): ResetPasswordRequestedWait;
|
|
|
|
+ untilDate: int;
|
|
|
|
+ }
|
|
|
|
+ export class ResetPasswordOk extends VirtualClass<void> {
|
|
|
|
+ static fromReader(reader: Reader): ResetPasswordOk;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
export namespace channels {
|
|
export namespace channels {
|
|
@@ -9410,6 +9516,15 @@ export namespace Api {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ export namespace stickers {
|
|
|
|
+ export class SuggestedShortName extends VirtualClass<{
|
|
|
|
+ shortName: string;
|
|
|
|
+ }> {
|
|
|
|
+ static fromReader(reader: Reader): SuggestedShortName;
|
|
|
|
+ shortName: string;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
export namespace storage {
|
|
export namespace storage {
|
|
export type TypeFileType =
|
|
export type TypeFileType =
|
|
| storage.FileUnknown
|
|
| storage.FileUnknown
|
|
@@ -9596,6 +9711,10 @@ export namespace Api {
|
|
export type TypeAutoDownloadSettings = account.AutoDownloadSettings;
|
|
export type TypeAutoDownloadSettings = account.AutoDownloadSettings;
|
|
export type TypeThemes = account.ThemesNotModified | account.Themes;
|
|
export type TypeThemes = account.ThemesNotModified | account.Themes;
|
|
export type TypeContentSettings = account.ContentSettings;
|
|
export type TypeContentSettings = account.ContentSettings;
|
|
|
|
+ export type TypeResetPasswordResult =
|
|
|
|
+ | account.ResetPasswordFailedWait
|
|
|
|
+ | account.ResetPasswordRequestedWait
|
|
|
|
+ | account.ResetPasswordOk;
|
|
}
|
|
}
|
|
|
|
|
|
export namespace channels {
|
|
export namespace channels {
|
|
@@ -9632,6 +9751,10 @@ export namespace Api {
|
|
export type TypeMessageStats = stats.MessageStats;
|
|
export type TypeMessageStats = stats.MessageStats;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ export namespace stickers {
|
|
|
|
+ export type TypeSuggestedShortName = stickers.SuggestedShortName;
|
|
|
|
+ }
|
|
|
|
+
|
|
export namespace auth {
|
|
export namespace auth {
|
|
export class SendCode extends Request<
|
|
export class SendCode extends Request<
|
|
Partial<{
|
|
Partial<{
|
|
@@ -9749,12 +9872,16 @@ export namespace Api {
|
|
}
|
|
}
|
|
export class RecoverPassword extends Request<
|
|
export class RecoverPassword extends Request<
|
|
Partial<{
|
|
Partial<{
|
|
|
|
+ // flags: null;
|
|
code: string;
|
|
code: string;
|
|
|
|
+ newSettings?: account.TypePasswordInputSettings;
|
|
}>,
|
|
}>,
|
|
auth.TypeAuthorization
|
|
auth.TypeAuthorization
|
|
> {
|
|
> {
|
|
static fromReader(reader: Reader): RecoverPassword;
|
|
static fromReader(reader: Reader): RecoverPassword;
|
|
|
|
+ // flags: null;
|
|
code: string;
|
|
code: string;
|
|
|
|
+ newSettings?: account.TypePasswordInputSettings;
|
|
}
|
|
}
|
|
export class ResendCode extends Request<
|
|
export class ResendCode extends Request<
|
|
Partial<{
|
|
Partial<{
|
|
@@ -9818,6 +9945,15 @@ export namespace Api {
|
|
static fromReader(reader: Reader): AcceptLoginToken;
|
|
static fromReader(reader: Reader): AcceptLoginToken;
|
|
token: bytes;
|
|
token: bytes;
|
|
}
|
|
}
|
|
|
|
+ export class CheckRecoveryPassword extends Request<
|
|
|
|
+ Partial<{
|
|
|
|
+ code: string;
|
|
|
|
+ }>,
|
|
|
|
+ Bool
|
|
|
|
+ > {
|
|
|
|
+ static fromReader(reader: Reader): CheckRecoveryPassword;
|
|
|
|
+ code: string;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
export namespace account {
|
|
export namespace account {
|
|
@@ -10522,6 +10658,15 @@ export namespace Api {
|
|
reason: Api.TypeReportReason;
|
|
reason: Api.TypeReportReason;
|
|
message: string;
|
|
message: string;
|
|
}
|
|
}
|
|
|
|
+ export class ResetPassword extends Request<
|
|
|
|
+ void,
|
|
|
|
+ account.TypeResetPasswordResult
|
|
|
|
+ > {
|
|
|
|
+ static fromReader(reader: Reader): ResetPassword;
|
|
|
|
+ }
|
|
|
|
+ export class DeclinePasswordReset extends Request<void, Bool> {
|
|
|
|
+ static fromReader(reader: Reader): DeclinePasswordReset;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
export namespace users {
|
|
export namespace users {
|
|
@@ -13484,13 +13629,39 @@ export namespace Api {
|
|
}
|
|
}
|
|
export class SetBotCommands extends Request<
|
|
export class SetBotCommands extends Request<
|
|
Partial<{
|
|
Partial<{
|
|
|
|
+ scope: Api.TypeBotCommandScope;
|
|
|
|
+ langCode: string;
|
|
commands: Api.TypeBotCommand[];
|
|
commands: Api.TypeBotCommand[];
|
|
}>,
|
|
}>,
|
|
Bool
|
|
Bool
|
|
> {
|
|
> {
|
|
static fromReader(reader: Reader): SetBotCommands;
|
|
static fromReader(reader: Reader): SetBotCommands;
|
|
|
|
+ scope: Api.TypeBotCommandScope;
|
|
|
|
+ langCode: string;
|
|
commands: Api.TypeBotCommand[];
|
|
commands: Api.TypeBotCommand[];
|
|
}
|
|
}
|
|
|
|
+ export class ResetBotCommands extends Request<
|
|
|
|
+ Partial<{
|
|
|
|
+ scope: Api.TypeBotCommandScope;
|
|
|
|
+ langCode: string;
|
|
|
|
+ }>,
|
|
|
|
+ Bool
|
|
|
|
+ > {
|
|
|
|
+ static fromReader(reader: Reader): ResetBotCommands;
|
|
|
|
+ scope: Api.TypeBotCommandScope;
|
|
|
|
+ langCode: string;
|
|
|
|
+ }
|
|
|
|
+ export class GetBotCommands extends Request<
|
|
|
|
+ Partial<{
|
|
|
|
+ scope: Api.TypeBotCommandScope;
|
|
|
|
+ langCode: string;
|
|
|
|
+ }>,
|
|
|
|
+ Api.TypeBotCommand[]
|
|
|
|
+ > {
|
|
|
|
+ static fromReader(reader: Reader): GetBotCommands;
|
|
|
|
+ scope: Api.TypeBotCommandScope;
|
|
|
|
+ langCode: string;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
export namespace payments {
|
|
export namespace payments {
|
|
@@ -13601,6 +13772,7 @@ export namespace Api {
|
|
shortName: string;
|
|
shortName: string;
|
|
thumb?: Api.TypeInputDocument;
|
|
thumb?: Api.TypeInputDocument;
|
|
stickers: Api.TypeInputStickerSetItem[];
|
|
stickers: Api.TypeInputStickerSetItem[];
|
|
|
|
+ software?: string;
|
|
}>,
|
|
}>,
|
|
messages.TypeStickerSet
|
|
messages.TypeStickerSet
|
|
> {
|
|
> {
|
|
@@ -13613,6 +13785,7 @@ export namespace Api {
|
|
shortName: string;
|
|
shortName: string;
|
|
thumb?: Api.TypeInputDocument;
|
|
thumb?: Api.TypeInputDocument;
|
|
stickers: Api.TypeInputStickerSetItem[];
|
|
stickers: Api.TypeInputStickerSetItem[];
|
|
|
|
+ software?: string;
|
|
}
|
|
}
|
|
export class RemoveStickerFromSet extends Request<
|
|
export class RemoveStickerFromSet extends Request<
|
|
Partial<{
|
|
Partial<{
|
|
@@ -13656,6 +13829,24 @@ export namespace Api {
|
|
stickerset: Api.TypeInputStickerSet;
|
|
stickerset: Api.TypeInputStickerSet;
|
|
thumb: Api.TypeInputDocument;
|
|
thumb: Api.TypeInputDocument;
|
|
}
|
|
}
|
|
|
|
+ export class CheckShortName extends Request<
|
|
|
|
+ Partial<{
|
|
|
|
+ shortName: string;
|
|
|
|
+ }>,
|
|
|
|
+ Bool
|
|
|
|
+ > {
|
|
|
|
+ static fromReader(reader: Reader): CheckShortName;
|
|
|
|
+ shortName: string;
|
|
|
|
+ }
|
|
|
|
+ export class SuggestShortName extends Request<
|
|
|
|
+ Partial<{
|
|
|
|
+ title: string;
|
|
|
|
+ }>,
|
|
|
|
+ stickers.TypeSuggestedShortName
|
|
|
|
+ > {
|
|
|
|
+ static fromReader(reader: Reader): SuggestShortName;
|
|
|
|
+ title: string;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
export namespace phone {
|
|
export namespace phone {
|
|
@@ -13797,6 +13988,7 @@ export namespace Api {
|
|
Partial<{
|
|
Partial<{
|
|
// flags: null;
|
|
// flags: null;
|
|
muted?: boolean;
|
|
muted?: boolean;
|
|
|
|
+ videoStopped?: boolean;
|
|
call: Api.TypeInputGroupCall;
|
|
call: Api.TypeInputGroupCall;
|
|
joinAs: Api.TypeEntityLike;
|
|
joinAs: Api.TypeEntityLike;
|
|
inviteHash?: string;
|
|
inviteHash?: string;
|
|
@@ -13807,6 +13999,7 @@ export namespace Api {
|
|
static fromReader(reader: Reader): JoinGroupCall;
|
|
static fromReader(reader: Reader): JoinGroupCall;
|
|
// flags: null;
|
|
// flags: null;
|
|
muted?: boolean;
|
|
muted?: boolean;
|
|
|
|
+ videoStopped?: boolean;
|
|
call: Api.TypeInputGroupCall;
|
|
call: Api.TypeInputGroupCall;
|
|
joinAs: Api.TypeEntityLike;
|
|
joinAs: Api.TypeEntityLike;
|
|
inviteHash?: string;
|
|
inviteHash?: string;
|
|
@@ -13887,13 +14080,13 @@ export namespace Api {
|
|
export class CheckGroupCall extends Request<
|
|
export class CheckGroupCall extends Request<
|
|
Partial<{
|
|
Partial<{
|
|
call: Api.TypeInputGroupCall;
|
|
call: Api.TypeInputGroupCall;
|
|
- source: int;
|
|
|
|
|
|
+ sources: int[];
|
|
}>,
|
|
}>,
|
|
- Bool
|
|
|
|
|
|
+ int[]
|
|
> {
|
|
> {
|
|
static fromReader(reader: Reader): CheckGroupCall;
|
|
static fromReader(reader: Reader): CheckGroupCall;
|
|
call: Api.TypeInputGroupCall;
|
|
call: Api.TypeInputGroupCall;
|
|
- source: int;
|
|
|
|
|
|
+ sources: int[];
|
|
}
|
|
}
|
|
export class ToggleGroupCallRecord extends Request<
|
|
export class ToggleGroupCallRecord extends Request<
|
|
Partial<{
|
|
Partial<{
|
|
@@ -13913,21 +14106,27 @@ export namespace Api {
|
|
export class EditGroupCallParticipant extends Request<
|
|
export class EditGroupCallParticipant extends Request<
|
|
Partial<{
|
|
Partial<{
|
|
// flags: null;
|
|
// flags: null;
|
|
- muted?: boolean;
|
|
|
|
call: Api.TypeInputGroupCall;
|
|
call: Api.TypeInputGroupCall;
|
|
participant: Api.TypeEntityLike;
|
|
participant: Api.TypeEntityLike;
|
|
|
|
+ muted?: Bool;
|
|
volume?: int;
|
|
volume?: int;
|
|
raiseHand?: Bool;
|
|
raiseHand?: Bool;
|
|
|
|
+ videoStopped?: Bool;
|
|
|
|
+ videoPaused?: Bool;
|
|
|
|
+ presentationPaused?: Bool;
|
|
}>,
|
|
}>,
|
|
Api.TypeUpdates
|
|
Api.TypeUpdates
|
|
> {
|
|
> {
|
|
static fromReader(reader: Reader): EditGroupCallParticipant;
|
|
static fromReader(reader: Reader): EditGroupCallParticipant;
|
|
// flags: null;
|
|
// flags: null;
|
|
- muted?: boolean;
|
|
|
|
call: Api.TypeInputGroupCall;
|
|
call: Api.TypeInputGroupCall;
|
|
participant: Api.TypeEntityLike;
|
|
participant: Api.TypeEntityLike;
|
|
|
|
+ muted?: Bool;
|
|
volume?: int;
|
|
volume?: int;
|
|
raiseHand?: Bool;
|
|
raiseHand?: Bool;
|
|
|
|
+ videoStopped?: Bool;
|
|
|
|
+ videoPaused?: Bool;
|
|
|
|
+ presentationPaused?: Bool;
|
|
}
|
|
}
|
|
export class EditGroupCallTitle extends Request<
|
|
export class EditGroupCallTitle extends Request<
|
|
Partial<{
|
|
Partial<{
|
|
@@ -13993,6 +14192,26 @@ export namespace Api {
|
|
peer: Api.TypeEntityLike;
|
|
peer: Api.TypeEntityLike;
|
|
joinAs: Api.TypeEntityLike;
|
|
joinAs: Api.TypeEntityLike;
|
|
}
|
|
}
|
|
|
|
+ export class JoinGroupCallPresentation extends Request<
|
|
|
|
+ Partial<{
|
|
|
|
+ call: Api.TypeInputGroupCall;
|
|
|
|
+ params: Api.TypeDataJSON;
|
|
|
|
+ }>,
|
|
|
|
+ Api.TypeUpdates
|
|
|
|
+ > {
|
|
|
|
+ static fromReader(reader: Reader): JoinGroupCallPresentation;
|
|
|
|
+ call: Api.TypeInputGroupCall;
|
|
|
|
+ params: Api.TypeDataJSON;
|
|
|
|
+ }
|
|
|
|
+ export class LeaveGroupCallPresentation extends Request<
|
|
|
|
+ Partial<{
|
|
|
|
+ call: Api.TypeInputGroupCall;
|
|
|
|
+ }>,
|
|
|
|
+ Api.TypeUpdates
|
|
|
|
+ > {
|
|
|
|
+ static fromReader(reader: Reader): LeaveGroupCallPresentation;
|
|
|
|
+ call: Api.TypeInputGroupCall;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
export namespace langpack {
|
|
export namespace langpack {
|
|
@@ -14412,7 +14631,9 @@ export namespace Api {
|
|
| UpdatePeerHistoryTTL
|
|
| UpdatePeerHistoryTTL
|
|
| UpdateChatParticipant
|
|
| UpdateChatParticipant
|
|
| UpdateChannelParticipant
|
|
| UpdateChannelParticipant
|
|
- | UpdateBotStopped;
|
|
|
|
|
|
+ | UpdateBotStopped
|
|
|
|
+ | UpdateGroupCallConnection
|
|
|
|
+ | UpdateBotCommands;
|
|
export type TypeUpdates =
|
|
export type TypeUpdates =
|
|
| UpdatesTooLong
|
|
| UpdatesTooLong
|
|
| UpdateShortMessage
|
|
| UpdateShortMessage
|
|
@@ -14918,6 +15139,17 @@ export namespace Api {
|
|
| InlineQueryPeerTypeBroadcast;
|
|
| InlineQueryPeerTypeBroadcast;
|
|
export type TypeChatInviteImporter = ChatInviteImporter;
|
|
export type TypeChatInviteImporter = ChatInviteImporter;
|
|
export type TypeChatAdminWithInvites = ChatAdminWithInvites;
|
|
export type TypeChatAdminWithInvites = ChatAdminWithInvites;
|
|
|
|
+ export type TypeGroupCallParticipantVideoSourceGroup =
|
|
|
|
+ GroupCallParticipantVideoSourceGroup;
|
|
|
|
+ export type TypeGroupCallParticipantVideo = GroupCallParticipantVideo;
|
|
|
|
+ export type TypeBotCommandScope =
|
|
|
|
+ | BotCommandScopeDefault
|
|
|
|
+ | BotCommandScopeUsers
|
|
|
|
+ | BotCommandScopeChats
|
|
|
|
+ | BotCommandScopeChatAdmins
|
|
|
|
+ | BotCommandScopePeer
|
|
|
|
+ | BotCommandScopePeerAdmins
|
|
|
|
+ | BotCommandScopePeerUser;
|
|
export type TypeResPQ = ResPQ;
|
|
export type TypeResPQ = ResPQ;
|
|
export type TypeP_Q_inner_data =
|
|
export type TypeP_Q_inner_data =
|
|
| PQInnerData
|
|
| PQInnerData
|
|
@@ -15002,6 +15234,7 @@ export namespace Api {
|
|
| auth.ExportLoginToken
|
|
| auth.ExportLoginToken
|
|
| auth.ImportLoginToken
|
|
| auth.ImportLoginToken
|
|
| auth.AcceptLoginToken
|
|
| auth.AcceptLoginToken
|
|
|
|
+ | auth.CheckRecoveryPassword
|
|
| account.RegisterDevice
|
|
| account.RegisterDevice
|
|
| account.UnregisterDevice
|
|
| account.UnregisterDevice
|
|
| account.UpdateNotifySettings
|
|
| account.UpdateNotifySettings
|
|
@@ -15070,6 +15303,8 @@ export namespace Api {
|
|
| account.GetGlobalPrivacySettings
|
|
| account.GetGlobalPrivacySettings
|
|
| account.SetGlobalPrivacySettings
|
|
| account.SetGlobalPrivacySettings
|
|
| account.ReportProfilePhoto
|
|
| account.ReportProfilePhoto
|
|
|
|
+ | account.ResetPassword
|
|
|
|
+ | account.DeclinePasswordReset
|
|
| users.GetUsers
|
|
| users.GetUsers
|
|
| users.GetFullUser
|
|
| users.GetFullUser
|
|
| users.SetSecureValueErrors
|
|
| users.SetSecureValueErrors
|
|
@@ -15311,6 +15546,8 @@ export namespace Api {
|
|
| bots.SendCustomRequest
|
|
| bots.SendCustomRequest
|
|
| bots.AnswerWebhookJSONQuery
|
|
| bots.AnswerWebhookJSONQuery
|
|
| bots.SetBotCommands
|
|
| bots.SetBotCommands
|
|
|
|
+ | bots.ResetBotCommands
|
|
|
|
+ | bots.GetBotCommands
|
|
| payments.GetPaymentForm
|
|
| payments.GetPaymentForm
|
|
| payments.GetPaymentReceipt
|
|
| payments.GetPaymentReceipt
|
|
| payments.ValidateRequestedInfo
|
|
| payments.ValidateRequestedInfo
|
|
@@ -15323,6 +15560,8 @@ export namespace Api {
|
|
| stickers.ChangeStickerPosition
|
|
| stickers.ChangeStickerPosition
|
|
| stickers.AddStickerToSet
|
|
| stickers.AddStickerToSet
|
|
| stickers.SetStickerSetThumb
|
|
| stickers.SetStickerSetThumb
|
|
|
|
+ | stickers.CheckShortName
|
|
|
|
+ | stickers.SuggestShortName
|
|
| phone.GetCallConfig
|
|
| phone.GetCallConfig
|
|
| phone.RequestCall
|
|
| phone.RequestCall
|
|
| phone.AcceptCall
|
|
| phone.AcceptCall
|
|
@@ -15349,6 +15588,8 @@ export namespace Api {
|
|
| phone.ToggleGroupCallStartSubscription
|
|
| phone.ToggleGroupCallStartSubscription
|
|
| phone.StartScheduledGroupCall
|
|
| phone.StartScheduledGroupCall
|
|
| phone.SaveDefaultGroupCallJoinAs
|
|
| phone.SaveDefaultGroupCallJoinAs
|
|
|
|
+ | phone.JoinGroupCallPresentation
|
|
|
|
+ | phone.LeaveGroupCallPresentation
|
|
| langpack.GetLangPack
|
|
| langpack.GetLangPack
|
|
| langpack.GetStrings
|
|
| langpack.GetStrings
|
|
| langpack.GetDifference
|
|
| langpack.GetDifference
|