|
@@ -1071,6 +1071,7 @@ export namespace Api {
|
|
blocked?: boolean;
|
|
blocked?: boolean;
|
|
// flags2: null;
|
|
// flags2: null;
|
|
canDeleteChannel?: boolean;
|
|
canDeleteChannel?: boolean;
|
|
|
|
+ antispam?: boolean;
|
|
id: long;
|
|
id: long;
|
|
about: string;
|
|
about: string;
|
|
participantsCount?: int;
|
|
participantsCount?: int;
|
|
@@ -1123,6 +1124,7 @@ export namespace Api {
|
|
blocked?: boolean;
|
|
blocked?: boolean;
|
|
// flags2: null;
|
|
// flags2: null;
|
|
canDeleteChannel?: boolean;
|
|
canDeleteChannel?: boolean;
|
|
|
|
+ antispam?: boolean;
|
|
id: long;
|
|
id: long;
|
|
about: string;
|
|
about: string;
|
|
participantsCount?: int;
|
|
participantsCount?: int;
|
|
@@ -1757,14 +1759,18 @@ export namespace Api {
|
|
users: long[];
|
|
users: long[];
|
|
}
|
|
}
|
|
export class MessageActionSetMessagesTTL extends VirtualClass<{
|
|
export class MessageActionSetMessagesTTL extends VirtualClass<{
|
|
|
|
+ // flags: null;
|
|
period: int;
|
|
period: int;
|
|
|
|
+ autoSettingFrom?: long;
|
|
}> {
|
|
}> {
|
|
- CONSTRUCTOR_ID: 2853895165;
|
|
|
|
|
|
+ CONSTRUCTOR_ID: 1007897979;
|
|
SUBCLASS_OF_ID: 2256589094;
|
|
SUBCLASS_OF_ID: 2256589094;
|
|
classType: "constructor";
|
|
classType: "constructor";
|
|
className: "MessageActionSetMessagesTTL";
|
|
className: "MessageActionSetMessagesTTL";
|
|
static fromReader(reader: Reader): MessageActionSetMessagesTTL;
|
|
static fromReader(reader: Reader): MessageActionSetMessagesTTL;
|
|
|
|
+ // flags: null;
|
|
period: int;
|
|
period: int;
|
|
|
|
+ autoSettingFrom?: long;
|
|
}
|
|
}
|
|
export class MessageActionGroupCallScheduled extends VirtualClass<{
|
|
export class MessageActionGroupCallScheduled extends VirtualClass<{
|
|
call: Api.TypeInputGroupCall;
|
|
call: Api.TypeInputGroupCall;
|
|
@@ -1852,8 +1858,9 @@ export namespace Api {
|
|
title?: string;
|
|
title?: string;
|
|
iconEmojiId?: long;
|
|
iconEmojiId?: long;
|
|
closed?: Bool;
|
|
closed?: Bool;
|
|
|
|
+ hidden?: Bool;
|
|
}> {
|
|
}> {
|
|
- CONSTRUCTOR_ID: 2978628380;
|
|
|
|
|
|
+ CONSTRUCTOR_ID: 3230943264;
|
|
SUBCLASS_OF_ID: 2256589094;
|
|
SUBCLASS_OF_ID: 2256589094;
|
|
classType: "constructor";
|
|
classType: "constructor";
|
|
className: "MessageActionTopicEdit";
|
|
className: "MessageActionTopicEdit";
|
|
@@ -1862,6 +1869,7 @@ export namespace Api {
|
|
title?: string;
|
|
title?: string;
|
|
iconEmojiId?: long;
|
|
iconEmojiId?: long;
|
|
closed?: Bool;
|
|
closed?: Bool;
|
|
|
|
+ hidden?: Bool;
|
|
}
|
|
}
|
|
export class Dialog extends VirtualClass<{
|
|
export class Dialog extends VirtualClass<{
|
|
// flags: null;
|
|
// flags: null;
|
|
@@ -1878,8 +1886,9 @@ export namespace Api {
|
|
pts?: int;
|
|
pts?: int;
|
|
draft?: Api.TypeDraftMessage;
|
|
draft?: Api.TypeDraftMessage;
|
|
folderId?: int;
|
|
folderId?: int;
|
|
|
|
+ ttlPeriod?: int;
|
|
}> {
|
|
}> {
|
|
- CONSTRUCTOR_ID: 2834157813;
|
|
|
|
|
|
+ CONSTRUCTOR_ID: 3582593222;
|
|
SUBCLASS_OF_ID: 1120787796;
|
|
SUBCLASS_OF_ID: 1120787796;
|
|
classType: "constructor";
|
|
classType: "constructor";
|
|
className: "Dialog";
|
|
className: "Dialog";
|
|
@@ -1898,6 +1907,7 @@ export namespace Api {
|
|
pts?: int;
|
|
pts?: int;
|
|
draft?: Api.TypeDraftMessage;
|
|
draft?: Api.TypeDraftMessage;
|
|
folderId?: int;
|
|
folderId?: int;
|
|
|
|
+ ttlPeriod?: int;
|
|
}
|
|
}
|
|
export class DialogFolder extends VirtualClass<{
|
|
export class DialogFolder extends VirtualClass<{
|
|
// flags: null;
|
|
// flags: null;
|
|
@@ -3981,17 +3991,33 @@ export namespace Api {
|
|
}
|
|
}
|
|
export class UpdateChannelPinnedTopic extends VirtualClass<{
|
|
export class UpdateChannelPinnedTopic extends VirtualClass<{
|
|
// flags: null;
|
|
// flags: null;
|
|
|
|
+ pinned?: boolean;
|
|
channelId: long;
|
|
channelId: long;
|
|
- topicId?: int;
|
|
|
|
|
|
+ topicId: int;
|
|
}> {
|
|
}> {
|
|
- CONSTRUCTOR_ID: 4136939694;
|
|
|
|
|
|
+ CONSTRUCTOR_ID: 422509539;
|
|
SUBCLASS_OF_ID: 2676568142;
|
|
SUBCLASS_OF_ID: 2676568142;
|
|
classType: "constructor";
|
|
classType: "constructor";
|
|
className: "UpdateChannelPinnedTopic";
|
|
className: "UpdateChannelPinnedTopic";
|
|
static fromReader(reader: Reader): UpdateChannelPinnedTopic;
|
|
static fromReader(reader: Reader): UpdateChannelPinnedTopic;
|
|
// flags: null;
|
|
// flags: null;
|
|
|
|
+ pinned?: boolean;
|
|
|
|
+ channelId: long;
|
|
|
|
+ topicId: int;
|
|
|
|
+ }
|
|
|
|
+ export class UpdateChannelPinnedTopics extends VirtualClass<{
|
|
|
|
+ // flags: null;
|
|
|
|
+ channelId: long;
|
|
|
|
+ order?: int[];
|
|
|
|
+ }> {
|
|
|
|
+ CONSTRUCTOR_ID: 4263085570;
|
|
|
|
+ SUBCLASS_OF_ID: 2676568142;
|
|
|
|
+ classType: "constructor";
|
|
|
|
+ className: "UpdateChannelPinnedTopics";
|
|
|
|
+ static fromReader(reader: Reader): UpdateChannelPinnedTopics;
|
|
|
|
+ // flags: null;
|
|
channelId: long;
|
|
channelId: long;
|
|
- topicId?: int;
|
|
|
|
|
|
+ order?: int[];
|
|
}
|
|
}
|
|
export class UpdatesTooLong extends VirtualClass<void> {
|
|
export class UpdatesTooLong extends VirtualClass<void> {
|
|
CONSTRUCTOR_ID: 3809980286;
|
|
CONSTRUCTOR_ID: 3809980286;
|
|
@@ -8800,6 +8826,18 @@ export namespace Api {
|
|
prevTopic?: Api.TypeForumTopic;
|
|
prevTopic?: Api.TypeForumTopic;
|
|
newTopic?: Api.TypeForumTopic;
|
|
newTopic?: Api.TypeForumTopic;
|
|
}
|
|
}
|
|
|
|
+ export class ChannelAdminLogEventActionToggleAntiSpam extends VirtualClass<{
|
|
|
|
+ newValue: Bool;
|
|
|
|
+ }> {
|
|
|
|
+ CONSTRUCTOR_ID: 1693675004;
|
|
|
|
+ SUBCLASS_OF_ID: 2998503411;
|
|
|
|
+ classType: "constructor";
|
|
|
|
+ className: "ChannelAdminLogEventActionToggleAntiSpam";
|
|
|
|
+ static fromReader(
|
|
|
|
+ reader: Reader
|
|
|
|
+ ): ChannelAdminLogEventActionToggleAntiSpam;
|
|
|
|
+ newValue: Bool;
|
|
|
|
+ }
|
|
export class ChannelAdminLogEvent extends VirtualClass<{
|
|
export class ChannelAdminLogEvent extends VirtualClass<{
|
|
id: long;
|
|
id: long;
|
|
date: int;
|
|
date: int;
|
|
@@ -11774,6 +11812,8 @@ export namespace Api {
|
|
my?: boolean;
|
|
my?: boolean;
|
|
closed?: boolean;
|
|
closed?: boolean;
|
|
pinned?: boolean;
|
|
pinned?: boolean;
|
|
|
|
+ short?: boolean;
|
|
|
|
+ hidden?: boolean;
|
|
id: int;
|
|
id: int;
|
|
date: int;
|
|
date: int;
|
|
title: string;
|
|
title: string;
|
|
@@ -11798,6 +11838,8 @@ export namespace Api {
|
|
my?: boolean;
|
|
my?: boolean;
|
|
closed?: boolean;
|
|
closed?: boolean;
|
|
pinned?: boolean;
|
|
pinned?: boolean;
|
|
|
|
+ short?: boolean;
|
|
|
|
+ hidden?: boolean;
|
|
id: int;
|
|
id: int;
|
|
date: int;
|
|
date: int;
|
|
title: string;
|
|
title: string;
|
|
@@ -11813,6 +11855,28 @@ export namespace Api {
|
|
notifySettings: Api.TypePeerNotifySettings;
|
|
notifySettings: Api.TypePeerNotifySettings;
|
|
draft?: Api.TypeDraftMessage;
|
|
draft?: Api.TypeDraftMessage;
|
|
}
|
|
}
|
|
|
|
+ export class DefaultHistoryTTL extends VirtualClass<{
|
|
|
|
+ period: int;
|
|
|
|
+ }> {
|
|
|
|
+ CONSTRUCTOR_ID: 1135897376;
|
|
|
|
+ SUBCLASS_OF_ID: 4027396967;
|
|
|
|
+ classType: "constructor";
|
|
|
|
+ className: "DefaultHistoryTTL";
|
|
|
|
+ static fromReader(reader: Reader): DefaultHistoryTTL;
|
|
|
|
+ period: int;
|
|
|
|
+ }
|
|
|
|
+ export class ExportedContactToken extends VirtualClass<{
|
|
|
|
+ url: string;
|
|
|
|
+ expires: int;
|
|
|
|
+ }> {
|
|
|
|
+ CONSTRUCTOR_ID: 1103040667;
|
|
|
|
+ SUBCLASS_OF_ID: 2262679249;
|
|
|
|
+ classType: "constructor";
|
|
|
|
+ className: "ExportedContactToken";
|
|
|
|
+ static fromReader(reader: Reader): ExportedContactToken;
|
|
|
|
+ url: string;
|
|
|
|
+ expires: int;
|
|
|
|
+ }
|
|
export class ResPQ extends VirtualClass<{
|
|
export class ResPQ extends VirtualClass<{
|
|
nonce: int128;
|
|
nonce: int128;
|
|
serverNonce: int128;
|
|
serverNonce: int128;
|
|
@@ -12856,6 +12920,13 @@ export namespace Api {
|
|
className: "auth.CodeTypeMissedCall";
|
|
className: "auth.CodeTypeMissedCall";
|
|
static fromReader(reader: Reader): CodeTypeMissedCall;
|
|
static fromReader(reader: Reader): CodeTypeMissedCall;
|
|
}
|
|
}
|
|
|
|
+ export class CodeTypeFragmentSms extends VirtualClass<void> {
|
|
|
|
+ CONSTRUCTOR_ID: 116234636;
|
|
|
|
+ SUBCLASS_OF_ID: 3019105281;
|
|
|
|
+ classType: "constructor";
|
|
|
|
+ className: "auth.CodeTypeFragmentSms";
|
|
|
|
+ static fromReader(reader: Reader): CodeTypeFragmentSms;
|
|
|
|
+ }
|
|
export class SentCodeTypeApp extends VirtualClass<{
|
|
export class SentCodeTypeApp extends VirtualClass<{
|
|
length: int;
|
|
length: int;
|
|
}> {
|
|
}> {
|
|
@@ -12942,6 +13013,18 @@ export namespace Api {
|
|
appleSigninAllowed?: boolean;
|
|
appleSigninAllowed?: boolean;
|
|
googleSigninAllowed?: boolean;
|
|
googleSigninAllowed?: boolean;
|
|
}
|
|
}
|
|
|
|
+ export class SentCodeTypeFragmentSms extends VirtualClass<{
|
|
|
|
+ url: string;
|
|
|
|
+ length: int;
|
|
|
|
+ }> {
|
|
|
|
+ CONSTRUCTOR_ID: 3646315577;
|
|
|
|
+ SUBCLASS_OF_ID: 4284159374;
|
|
|
|
+ classType: "constructor";
|
|
|
|
+ className: "auth.SentCodeTypeFragmentSms";
|
|
|
|
+ static fromReader(reader: Reader): SentCodeTypeFragmentSms;
|
|
|
|
+ url: string;
|
|
|
|
+ length: int;
|
|
|
|
+ }
|
|
export class LoginToken extends VirtualClass<{
|
|
export class LoginToken extends VirtualClass<{
|
|
expires: int;
|
|
expires: int;
|
|
token: bytes;
|
|
token: bytes;
|
|
@@ -13208,10 +13291,11 @@ export namespace Api {
|
|
count: int;
|
|
count: int;
|
|
offsetIdOffset?: int;
|
|
offsetIdOffset?: int;
|
|
messages: Api.TypeMessage[];
|
|
messages: Api.TypeMessage[];
|
|
|
|
+ topics: Api.TypeForumTopic[];
|
|
chats: Api.TypeChat[];
|
|
chats: Api.TypeChat[];
|
|
users: Api.TypeUser[];
|
|
users: Api.TypeUser[];
|
|
}> {
|
|
}> {
|
|
- CONSTRUCTOR_ID: 1682413576;
|
|
|
|
|
|
+ CONSTRUCTOR_ID: 3346446926;
|
|
SUBCLASS_OF_ID: 3568569182;
|
|
SUBCLASS_OF_ID: 3568569182;
|
|
classType: "constructor";
|
|
classType: "constructor";
|
|
className: "messages.ChannelMessages";
|
|
className: "messages.ChannelMessages";
|
|
@@ -13222,6 +13306,7 @@ export namespace Api {
|
|
count: int;
|
|
count: int;
|
|
offsetIdOffset?: int;
|
|
offsetIdOffset?: int;
|
|
messages: Api.TypeMessage[];
|
|
messages: Api.TypeMessage[];
|
|
|
|
+ topics: Api.TypeForumTopic[];
|
|
chats: Api.TypeChat[];
|
|
chats: Api.TypeChat[];
|
|
users: Api.TypeUser[];
|
|
users: Api.TypeUser[];
|
|
}
|
|
}
|
|
@@ -15409,7 +15494,8 @@ export namespace Api {
|
|
| auth.CodeTypeSms
|
|
| auth.CodeTypeSms
|
|
| auth.CodeTypeCall
|
|
| auth.CodeTypeCall
|
|
| auth.CodeTypeFlashCall
|
|
| auth.CodeTypeFlashCall
|
|
- | auth.CodeTypeMissedCall;
|
|
|
|
|
|
+ | auth.CodeTypeMissedCall
|
|
|
|
+ | auth.CodeTypeFragmentSms;
|
|
export type TypeSentCodeType =
|
|
export type TypeSentCodeType =
|
|
| auth.SentCodeTypeApp
|
|
| auth.SentCodeTypeApp
|
|
| auth.SentCodeTypeSms
|
|
| auth.SentCodeTypeSms
|
|
@@ -15417,7 +15503,8 @@ export namespace Api {
|
|
| auth.SentCodeTypeFlashCall
|
|
| auth.SentCodeTypeFlashCall
|
|
| auth.SentCodeTypeMissedCall
|
|
| auth.SentCodeTypeMissedCall
|
|
| auth.SentCodeTypeEmailCode
|
|
| auth.SentCodeTypeEmailCode
|
|
- | auth.SentCodeTypeSetUpEmailRequired;
|
|
|
|
|
|
+ | auth.SentCodeTypeSetUpEmailRequired
|
|
|
|
+ | auth.SentCodeTypeFragmentSms;
|
|
export type TypeLoginToken =
|
|
export type TypeLoginToken =
|
|
| auth.LoginToken
|
|
| auth.LoginToken
|
|
| auth.LoginTokenMigrateTo
|
|
| auth.LoginTokenMigrateTo
|
|
@@ -15940,6 +16027,23 @@ export namespace Api {
|
|
static fromReader(reader: Reader): CheckRecoveryPassword;
|
|
static fromReader(reader: Reader): CheckRecoveryPassword;
|
|
code: string;
|
|
code: string;
|
|
}
|
|
}
|
|
|
|
+ export class ImportWebTokenAuthorization extends Request<
|
|
|
|
+ Partial<{
|
|
|
|
+ apiId: int;
|
|
|
|
+ apiHash: string;
|
|
|
|
+ webAuthToken: string;
|
|
|
|
+ }>,
|
|
|
|
+ auth.TypeAuthorization
|
|
|
|
+ > {
|
|
|
|
+ CONSTRUCTOR_ID: 767062953;
|
|
|
|
+ SUBCLASS_OF_ID: 3118485049;
|
|
|
|
+ classType: "request";
|
|
|
|
+ className: "auth.ImportWebTokenAuthorization";
|
|
|
|
+ static fromReader(reader: Reader): ImportWebTokenAuthorization;
|
|
|
|
+ apiId: int;
|
|
|
|
+ apiHash: string;
|
|
|
|
+ webAuthToken: string;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
export namespace account {
|
|
export namespace account {
|
|
@@ -17460,6 +17564,29 @@ export namespace Api {
|
|
static fromReader(reader: Reader): ResolvePhone;
|
|
static fromReader(reader: Reader): ResolvePhone;
|
|
phone: string;
|
|
phone: string;
|
|
}
|
|
}
|
|
|
|
+ export class ExportContactToken extends Request<
|
|
|
|
+ void,
|
|
|
|
+ Api.TypeExportedContactToken
|
|
|
|
+ > {
|
|
|
|
+ CONSTRUCTOR_ID: 4167385127;
|
|
|
|
+ SUBCLASS_OF_ID: 2262679249;
|
|
|
|
+ classType: "request";
|
|
|
|
+ className: "contacts.ExportContactToken";
|
|
|
|
+ static fromReader(reader: Reader): ExportContactToken;
|
|
|
|
+ }
|
|
|
|
+ export class ImportContactToken extends Request<
|
|
|
|
+ Partial<{
|
|
|
|
+ token: string;
|
|
|
|
+ }>,
|
|
|
|
+ Api.TypeUser
|
|
|
|
+ > {
|
|
|
|
+ CONSTRUCTOR_ID: 318789512;
|
|
|
|
+ SUBCLASS_OF_ID: 765557111;
|
|
|
|
+ classType: "request";
|
|
|
|
+ className: "contacts.ImportContactToken";
|
|
|
|
+ static fromReader(reader: Reader): ImportContactToken;
|
|
|
|
+ token: string;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
export namespace messages {
|
|
export namespace messages {
|
|
@@ -17922,18 +18049,22 @@ export namespace Api {
|
|
}
|
|
}
|
|
export class CreateChat extends Request<
|
|
export class CreateChat extends Request<
|
|
Partial<{
|
|
Partial<{
|
|
|
|
+ // flags: null;
|
|
users: Api.TypeEntityLike[];
|
|
users: Api.TypeEntityLike[];
|
|
title: string;
|
|
title: string;
|
|
|
|
+ ttlPeriod?: int;
|
|
}>,
|
|
}>,
|
|
Api.TypeUpdates
|
|
Api.TypeUpdates
|
|
> {
|
|
> {
|
|
- CONSTRUCTOR_ID: 164303470;
|
|
|
|
|
|
+ CONSTRUCTOR_ID: 3450904;
|
|
SUBCLASS_OF_ID: 2331323052;
|
|
SUBCLASS_OF_ID: 2331323052;
|
|
classType: "request";
|
|
classType: "request";
|
|
className: "messages.CreateChat";
|
|
className: "messages.CreateChat";
|
|
static fromReader(reader: Reader): CreateChat;
|
|
static fromReader(reader: Reader): CreateChat;
|
|
|
|
+ // flags: null;
|
|
users: Api.TypeEntityLike[];
|
|
users: Api.TypeEntityLike[];
|
|
title: string;
|
|
title: string;
|
|
|
|
+ ttlPeriod?: int;
|
|
}
|
|
}
|
|
export class GetDhConfig extends Request<
|
|
export class GetDhConfig extends Request<
|
|
Partial<{
|
|
Partial<{
|
|
@@ -20604,6 +20735,29 @@ export namespace Api {
|
|
peer: Api.TypeEntityLike;
|
|
peer: Api.TypeEntityLike;
|
|
id: int[];
|
|
id: int[];
|
|
}
|
|
}
|
|
|
|
+ export class SetDefaultHistoryTTL extends Request<
|
|
|
|
+ Partial<{
|
|
|
|
+ period: int;
|
|
|
|
+ }>,
|
|
|
|
+ Bool
|
|
|
|
+ > {
|
|
|
|
+ CONSTRUCTOR_ID: 2662667333;
|
|
|
|
+ SUBCLASS_OF_ID: 4122188204;
|
|
|
|
+ classType: "request";
|
|
|
|
+ className: "messages.SetDefaultHistoryTTL";
|
|
|
|
+ static fromReader(reader: Reader): SetDefaultHistoryTTL;
|
|
|
|
+ period: int;
|
|
|
|
+ }
|
|
|
|
+ export class GetDefaultHistoryTTL extends Request<
|
|
|
|
+ void,
|
|
|
|
+ Api.TypeDefaultHistoryTTL
|
|
|
|
+ > {
|
|
|
|
+ CONSTRUCTOR_ID: 1703637384;
|
|
|
|
+ SUBCLASS_OF_ID: 4027396967;
|
|
|
|
+ classType: "request";
|
|
|
|
+ className: "messages.GetDefaultHistoryTTL";
|
|
|
|
+ static fromReader(reader: Reader): GetDefaultHistoryTTL;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
export namespace updates {
|
|
export namespace updates {
|
|
@@ -21264,10 +21418,11 @@ export namespace Api {
|
|
about: string;
|
|
about: string;
|
|
geoPoint?: Api.TypeInputGeoPoint;
|
|
geoPoint?: Api.TypeInputGeoPoint;
|
|
address?: string;
|
|
address?: string;
|
|
|
|
+ ttlPeriod?: int;
|
|
}>,
|
|
}>,
|
|
Api.TypeUpdates
|
|
Api.TypeUpdates
|
|
> {
|
|
> {
|
|
- CONSTRUCTOR_ID: 1029681423;
|
|
|
|
|
|
+ CONSTRUCTOR_ID: 2432722695;
|
|
SUBCLASS_OF_ID: 2331323052;
|
|
SUBCLASS_OF_ID: 2331323052;
|
|
classType: "request";
|
|
classType: "request";
|
|
className: "channels.CreateChannel";
|
|
className: "channels.CreateChannel";
|
|
@@ -21280,6 +21435,7 @@ export namespace Api {
|
|
about: string;
|
|
about: string;
|
|
geoPoint?: Api.TypeInputGeoPoint;
|
|
geoPoint?: Api.TypeInputGeoPoint;
|
|
address?: string;
|
|
address?: string;
|
|
|
|
+ ttlPeriod?: int;
|
|
}
|
|
}
|
|
export class EditAdmin extends Request<
|
|
export class EditAdmin extends Request<
|
|
Partial<{
|
|
Partial<{
|
|
@@ -21904,10 +22060,11 @@ export namespace Api {
|
|
title?: string;
|
|
title?: string;
|
|
iconEmojiId?: long;
|
|
iconEmojiId?: long;
|
|
closed?: Bool;
|
|
closed?: Bool;
|
|
|
|
+ hidden?: Bool;
|
|
}>,
|
|
}>,
|
|
Api.TypeUpdates
|
|
Api.TypeUpdates
|
|
> {
|
|
> {
|
|
- CONSTRUCTOR_ID: 1820868141;
|
|
|
|
|
|
+ CONSTRUCTOR_ID: 4108296581;
|
|
SUBCLASS_OF_ID: 2331323052;
|
|
SUBCLASS_OF_ID: 2331323052;
|
|
classType: "request";
|
|
classType: "request";
|
|
className: "channels.EditForumTopic";
|
|
className: "channels.EditForumTopic";
|
|
@@ -21918,6 +22075,7 @@ export namespace Api {
|
|
title?: string;
|
|
title?: string;
|
|
iconEmojiId?: long;
|
|
iconEmojiId?: long;
|
|
closed?: Bool;
|
|
closed?: Bool;
|
|
|
|
+ hidden?: Bool;
|
|
}
|
|
}
|
|
export class UpdatePinnedForumTopic extends Request<
|
|
export class UpdatePinnedForumTopic extends Request<
|
|
Partial<{
|
|
Partial<{
|
|
@@ -21951,6 +22109,55 @@ export namespace Api {
|
|
channel: Api.TypeEntityLike;
|
|
channel: Api.TypeEntityLike;
|
|
topMsgId: MessageIDLike;
|
|
topMsgId: MessageIDLike;
|
|
}
|
|
}
|
|
|
|
+ export class ReorderPinnedForumTopics extends Request<
|
|
|
|
+ Partial<{
|
|
|
|
+ // flags: null;
|
|
|
|
+ force?: boolean;
|
|
|
|
+ channel: Api.TypeEntityLike;
|
|
|
|
+ order: int[];
|
|
|
|
+ }>,
|
|
|
|
+ Api.TypeUpdates
|
|
|
|
+ > {
|
|
|
|
+ CONSTRUCTOR_ID: 693150095;
|
|
|
|
+ SUBCLASS_OF_ID: 2331323052;
|
|
|
|
+ classType: "request";
|
|
|
|
+ className: "channels.ReorderPinnedForumTopics";
|
|
|
|
+ static fromReader(reader: Reader): ReorderPinnedForumTopics;
|
|
|
|
+ // flags: null;
|
|
|
|
+ force?: boolean;
|
|
|
|
+ channel: Api.TypeEntityLike;
|
|
|
|
+ order: int[];
|
|
|
|
+ }
|
|
|
|
+ export class ToggleAntiSpam extends Request<
|
|
|
|
+ Partial<{
|
|
|
|
+ channel: Api.TypeEntityLike;
|
|
|
|
+ enabled: Bool;
|
|
|
|
+ }>,
|
|
|
|
+ Api.TypeUpdates
|
|
|
|
+ > {
|
|
|
|
+ CONSTRUCTOR_ID: 1760814315;
|
|
|
|
+ SUBCLASS_OF_ID: 2331323052;
|
|
|
|
+ classType: "request";
|
|
|
|
+ className: "channels.ToggleAntiSpam";
|
|
|
|
+ static fromReader(reader: Reader): ToggleAntiSpam;
|
|
|
|
+ channel: Api.TypeEntityLike;
|
|
|
|
+ enabled: Bool;
|
|
|
|
+ }
|
|
|
|
+ export class ReportAntiSpamFalsePositive extends Request<
|
|
|
|
+ Partial<{
|
|
|
|
+ channel: Api.TypeEntityLike;
|
|
|
|
+ msgId: MessageIDLike;
|
|
|
|
+ }>,
|
|
|
|
+ Bool
|
|
|
|
+ > {
|
|
|
|
+ CONSTRUCTOR_ID: 2823857811;
|
|
|
|
+ SUBCLASS_OF_ID: 4122188204;
|
|
|
|
+ classType: "request";
|
|
|
|
+ className: "channels.ReportAntiSpamFalsePositive";
|
|
|
|
+ static fromReader(reader: Reader): ReportAntiSpamFalsePositive;
|
|
|
|
+ channel: Api.TypeEntityLike;
|
|
|
|
+ msgId: MessageIDLike;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
export namespace bots {
|
|
export namespace bots {
|
|
@@ -23401,7 +23608,8 @@ export namespace Api {
|
|
| UpdateRecentReactions
|
|
| UpdateRecentReactions
|
|
| UpdateMoveStickerSetToTop
|
|
| UpdateMoveStickerSetToTop
|
|
| UpdateMessageExtendedMedia
|
|
| UpdateMessageExtendedMedia
|
|
- | UpdateChannelPinnedTopic;
|
|
|
|
|
|
+ | UpdateChannelPinnedTopic
|
|
|
|
+ | UpdateChannelPinnedTopics;
|
|
export type TypeUpdates =
|
|
export type TypeUpdates =
|
|
| UpdatesTooLong
|
|
| UpdatesTooLong
|
|
| UpdateShortMessage
|
|
| UpdateShortMessage
|
|
@@ -23783,7 +23991,8 @@ export namespace Api {
|
|
| ChannelAdminLogEventActionCreateTopic
|
|
| ChannelAdminLogEventActionCreateTopic
|
|
| ChannelAdminLogEventActionEditTopic
|
|
| ChannelAdminLogEventActionEditTopic
|
|
| ChannelAdminLogEventActionDeleteTopic
|
|
| ChannelAdminLogEventActionDeleteTopic
|
|
- | ChannelAdminLogEventActionPinTopic;
|
|
|
|
|
|
+ | ChannelAdminLogEventActionPinTopic
|
|
|
|
+ | ChannelAdminLogEventActionToggleAntiSpam;
|
|
export type TypeChannelAdminLogEvent = ChannelAdminLogEvent;
|
|
export type TypeChannelAdminLogEvent = ChannelAdminLogEvent;
|
|
export type TypeChannelAdminLogEventsFilter = ChannelAdminLogEventsFilter;
|
|
export type TypeChannelAdminLogEventsFilter = ChannelAdminLogEventsFilter;
|
|
export type TypePopularContact = PopularContact;
|
|
export type TypePopularContact = PopularContact;
|
|
@@ -24017,6 +24226,8 @@ export namespace Api {
|
|
export type TypeStickerKeyword = StickerKeyword;
|
|
export type TypeStickerKeyword = StickerKeyword;
|
|
export type TypeUsername = Username;
|
|
export type TypeUsername = Username;
|
|
export type TypeForumTopic = ForumTopicDeleted | ForumTopic;
|
|
export type TypeForumTopic = ForumTopicDeleted | ForumTopic;
|
|
|
|
+ export type TypeDefaultHistoryTTL = DefaultHistoryTTL;
|
|
|
|
+ export type TypeExportedContactToken = ExportedContactToken;
|
|
export type TypeResPQ = ResPQ;
|
|
export type TypeResPQ = ResPQ;
|
|
export type TypeP_Q_inner_data =
|
|
export type TypeP_Q_inner_data =
|
|
| PQInnerData
|
|
| PQInnerData
|
|
@@ -24102,6 +24313,7 @@ export namespace Api {
|
|
| auth.ImportLoginToken
|
|
| auth.ImportLoginToken
|
|
| auth.AcceptLoginToken
|
|
| auth.AcceptLoginToken
|
|
| auth.CheckRecoveryPassword
|
|
| auth.CheckRecoveryPassword
|
|
|
|
+ | auth.ImportWebTokenAuthorization
|
|
| account.RegisterDevice
|
|
| account.RegisterDevice
|
|
| account.UnregisterDevice
|
|
| account.UnregisterDevice
|
|
| account.UpdateNotifySettings
|
|
| account.UpdateNotifySettings
|
|
@@ -24208,6 +24420,8 @@ export namespace Api {
|
|
| contacts.GetLocated
|
|
| contacts.GetLocated
|
|
| contacts.BlockFromReplies
|
|
| contacts.BlockFromReplies
|
|
| contacts.ResolvePhone
|
|
| contacts.ResolvePhone
|
|
|
|
+ | contacts.ExportContactToken
|
|
|
|
+ | contacts.ImportContactToken
|
|
| messages.GetMessages
|
|
| messages.GetMessages
|
|
| messages.GetDialogs
|
|
| messages.GetDialogs
|
|
| messages.GetHistory
|
|
| messages.GetHistory
|
|
@@ -24385,6 +24599,8 @@ export namespace Api {
|
|
| messages.GetRecentReactions
|
|
| messages.GetRecentReactions
|
|
| messages.ClearRecentReactions
|
|
| messages.ClearRecentReactions
|
|
| messages.GetExtendedMedia
|
|
| messages.GetExtendedMedia
|
|
|
|
+ | messages.SetDefaultHistoryTTL
|
|
|
|
+ | messages.GetDefaultHistoryTTL
|
|
| updates.GetState
|
|
| updates.GetState
|
|
| updates.GetDifference
|
|
| updates.GetDifference
|
|
| updates.GetChannelDifference
|
|
| updates.GetChannelDifference
|
|
@@ -24474,6 +24690,9 @@ export namespace Api {
|
|
| channels.EditForumTopic
|
|
| channels.EditForumTopic
|
|
| channels.UpdatePinnedForumTopic
|
|
| channels.UpdatePinnedForumTopic
|
|
| channels.DeleteTopicHistory
|
|
| channels.DeleteTopicHistory
|
|
|
|
+ | channels.ReorderPinnedForumTopics
|
|
|
|
+ | channels.ToggleAntiSpam
|
|
|
|
+ | channels.ReportAntiSpamFalsePositive
|
|
| bots.SendCustomRequest
|
|
| bots.SendCustomRequest
|
|
| bots.AnswerWebhookJSONQuery
|
|
| bots.AnswerWebhookJSONQuery
|
|
| bots.SetBotCommands
|
|
| bots.SetBotCommands
|