diff --git a/README.md b/README.md index b04590c..6f673b9 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ To find which derived classes are available for a given base class, the fastest The Telegram [API object classes](https://core.telegram.org/schema) are defined in the `TL` namespace, and the [API functions](https://core.telegram.org/methods) are available as async methods of `Client`. -Below is an example of calling the [messages.getAllChats](https://core.telegram.org/method/messages.getAllChats) API function and enumerating the various groups/channels the user is in: +Below is an example of calling the [messages.getAllChats](https://core.telegram.org/method/messages.getAllChats) API function and enumerating the various groups/channels the user is in, and then using `client.SendMessageAsync` helper function to easily send a message: ```csharp using TL; ... @@ -89,6 +89,10 @@ foreach (var chat in chats) Console.WriteLine($"{group.id}: Group {group.username}: {group.title}"); break; } +Console.Write("Type a chat ID to send a message: "); +var id = int.Parse(Console.ReadLine()); +var target = chats.First(chat => chat.ID == id); +await client.SendMessageAsync(target, "Hello, World"); ``` # Other things to know diff --git a/src/Generator.cs b/src/Generator.cs index c523484..e8d9ebb 100644 --- a/src/Generator.cs +++ b/src/Generator.cs @@ -11,8 +11,7 @@ namespace WTelegram { public class Generator { - //TODO: generate BinaryReader/Writer serialization directly to avoid using Reflection - //TODO: generate partial class with methods for functions instead of exposing request classes + //TODO: generate BinaryReader/Writer serialization for objects too? readonly Dictionary ctorToTypes = new(); readonly HashSet allTypes = new(); readonly Dictionary> typeInfosByLayer = new(); @@ -24,13 +23,12 @@ namespace WTelegram public async Task FromWeb() { Console.WriteLine("Fetch web pages..."); - //using var http = new HttpClient(); - //var html = await http.GetStringAsync("https://core.telegram.org/api/layers"); - var html = await Task.FromResult("#layer-121"); + using var http = new HttpClient(); + var html = await http.GetStringAsync("https://core.telegram.org/api/layers"); currentLayer = int.Parse(Regex.Match(html, @"#layer-(\d+)").Groups[1].Value); - //await File.WriteAllBytesAsync("TL.MTProto.json", await http.GetByteArrayAsync("https://core.telegram.org/schema/mtproto-json")); - //await File.WriteAllBytesAsync("TL.Schema.json", await http.GetByteArrayAsync("https://core.telegram.org/schema/json")); - //await File.WriteAllBytesAsync("TL.Secret.json", await http.GetByteArrayAsync("https://core.telegram.org/schema/end-to-end-json")); + await File.WriteAllBytesAsync("TL.MTProto.json", await http.GetByteArrayAsync("https://core.telegram.org/schema/mtproto-json")); + await File.WriteAllBytesAsync("TL.Schema.json", await http.GetByteArrayAsync("https://core.telegram.org/schema/json")); + await File.WriteAllBytesAsync("TL.Secret.json", await http.GetByteArrayAsync("https://core.telegram.org/schema/end-to-end-json")); FromJson("TL.MTProto.json", "TL.MTProto.cs", @"TL.Table.cs", true); FromJson("TL.Schema.json", "TL.Schema.cs", @"TL.Table.cs"); FromJson("TL.Secret.json", "TL.Secret.cs", @"TL.Table.cs"); @@ -187,7 +185,7 @@ namespace WTelegram { needNewLine = false; sw.WriteLine(); - sw.WriteLine($"{tabIndent}public abstract class {parentClass} : ITLObject {{ }}"); + sw.WriteLine($"{tabIndent}public abstract partial class {parentClass} : ITLObject {{ }}"); } int skipParams = 0; foreach (var ctor in typeInfo.Structs) @@ -198,14 +196,14 @@ namespace WTelegram if (!allTypes.Add(layerPrefix + className)) continue; if (needNewLine) { needNewLine = false; sw.WriteLine(); } if (ctor.id == null) - sw.Write($"{tabIndent}public abstract class {className} : ITLObject"); + sw.Write($"{tabIndent}public abstract partial class {className} : ITLObject"); else { sw.Write($"{tabIndent}[TLDef(0x{ctor.ID:X8})] //{ctor.predicate}#{ctor.ID:x8} "); if (genericType != null) sw.Write($"{{{typeInfo.ReturnName}:Type}} "); foreach (var parm in ctor.@params) sw.Write($"{parm.name}:{parm.type} "); sw.WriteLine($"= {ctor.type}"); - sw.Write($"{tabIndent}public class {className} : "); + sw.Write($"{tabIndent}public partial class {className} : "); sw.Write(skipParams == 0 && typeInfo.NeedAbstract > 0 ? "ITLObject" : parentClass); } var parms = ctor.@params.Skip(skipParams).ToArray(); @@ -269,8 +267,6 @@ namespace WTelegram if (multiline) sw.WriteLine(); } - if (ctorNeedClone.Contains(className)) - sw.WriteLine($"{tabIndent}\tpublic {className} Clone() => ({className})MemberwiseClone();"); if (multiline) sw.WriteLine(tabIndent + "}"); else @@ -489,8 +485,6 @@ namespace WTelegram File.Replace(tableCs + ".new", tableCs, null); } - static readonly HashSet ctorNeedClone = new() { /*"User"*/ }; - private static bool HasPrefix(Constructor ctor, IList prefixParams) { if (ctor.@params.Length < prefixParams.Count) return false; diff --git a/src/Helpers.TL.cs b/src/Helpers.TL.cs new file mode 100644 index 0000000..90687b0 --- /dev/null +++ b/src/Helpers.TL.cs @@ -0,0 +1,157 @@ +namespace TL +{ + partial class InputChannel { public static InputPeerChannel Empty => new(); } + partial class InputDocument { public static InputDocumentEmpty Empty => new(); } + partial class InputPeer { public static InputPeerEmpty Empty => new(); } + partial class InputPhoto { public static InputPhotoEmpty Empty => new(); } + partial class InputEncryptedFile{ public static InputEncryptedFileEmpty Empty => new(); } + partial class InputStickerSet { public static InputStickerSetEmpty Empty => new(); } + partial class InputUser { public static InputUserEmpty Empty => new(); } + partial class InputUser { public static InputUserSelf Self => new(); } + + partial class ChatBase + { + public abstract int ID { get; } + public abstract string Title { get; } + protected abstract InputPeer ToInputPeer(); + public static implicit operator InputPeer(ChatBase chat) => chat.ToInputPeer(); + } + partial class ChatEmpty + { + public override int ID => id; + public override string Title => null; + protected override InputPeer ToInputPeer() => InputPeer.Empty; + } + partial class Chat + { + public override int ID => id; + public override string Title => title; + protected override InputPeer ToInputPeer() => new InputPeerChat { chat_id = id }; + } + partial class ChatForbidden + { + public override int ID => id; + public override string Title => title; + protected override InputPeer ToInputPeer() => new InputPeerChat { chat_id = id }; + } + partial class Channel + { + public override int ID => id; + public override string Title => title; + protected override InputPeer ToInputPeer() => new InputPeerChannel { channel_id = id, access_hash = access_hash }; + public static implicit operator InputChannel(Channel channel) => new() { channel_id = channel.id, access_hash = channel.access_hash }; + } + partial class ChannelForbidden + { + public override int ID => id; + public override string Title => title; + protected override InputPeer ToInputPeer() => new InputPeerChannel { channel_id = id, access_hash = access_hash }; + } + + partial class UserBase + { + public abstract int ID { get; } + protected abstract InputPeer ToInputPeer(); + protected abstract InputUserBase ToInputUser(); + public static implicit operator InputPeer(UserBase user) => user.ToInputPeer(); + public static implicit operator InputUserBase(UserBase user) => user.ToInputUser(); + } + partial class UserEmpty + { + public override int ID => id; + protected override InputPeer ToInputPeer() => InputPeer.Empty; + protected override InputUserBase ToInputUser() => InputUser.Empty; + } + partial class User + { + public override int ID => id; + protected override InputPeer ToInputPeer() => new InputPeerUser { user_id = id, access_hash = access_hash }; + protected override InputUserBase ToInputUser() => new InputUser { user_id = id, access_hash = access_hash }; + } + + partial class PhotoBase + { + public abstract long ID { get; } + protected abstract InputPhotoBase ToInputPhoto(); + public static implicit operator InputPhotoBase(PhotoBase photo) => photo.ToInputPhoto(); + } + partial class PhotoEmpty + { + public override long ID => id; + protected override InputPhotoBase ToInputPhoto() => InputPhoto.Empty; + } + partial class Photo + { + public override long ID => id; + protected override InputPhotoBase ToInputPhoto() => new InputPhoto() { id = id, access_hash = access_hash, file_reference = file_reference }; + public InputPhotoFileLocation ToFileLocation(PhotoSizeBase photoSize) => new() { id = id, access_hash = access_hash, file_reference = file_reference, thumb_size = photoSize.Type }; + } + + partial class PhotoSizeBase { public abstract string Type { get; } } + partial class PhotoSizeEmpty { public override string Type => type; } + partial class PhotoSize { public override string Type => type; } + partial class PhotoCachedSize { public override string Type => type; } + partial class PhotoStrippedSize { public override string Type => type; } + partial class PhotoSizeProgressive { public override string Type => type; } + partial class PhotoPathSize { public override string Type => type; } + + partial class DocumentBase + { + public abstract long ID { get; } + protected abstract InputDocumentBase ToInputDocument(); + public static implicit operator InputDocumentBase(DocumentBase document) => document.ToInputDocument(); + } + partial class DocumentEmpty + { + public override long ID => id; + protected override InputDocumentBase ToInputDocument() => InputDocument.Empty; + } + partial class Document + { + public override long ID => id; + protected override InputDocumentBase ToInputDocument() => new InputDocument() { id = id, access_hash = access_hash, file_reference = file_reference }; + public InputDocumentFileLocation ToFileLocation(PhotoSizeBase photoSize) => new() { id = id, access_hash = access_hash, file_reference = file_reference, thumb_size = photoSize.Type }; + } + + partial class EncryptedFileBase + { + protected abstract InputEncryptedFileBase ToInputEncryptedFile(); + public static implicit operator InputEncryptedFileBase(EncryptedFileBase file) => file.ToInputEncryptedFile(); + } + partial class EncryptedFileEmpty + { + protected override InputEncryptedFileBase ToInputEncryptedFile() => InputEncryptedFile.Empty; + } + partial class EncryptedFile + { + protected override InputEncryptedFileBase ToInputEncryptedFile() => new InputEncryptedFile { id = id, access_hash = access_hash }; + public InputEncryptedFileLocation ToFileLocation() => new() { id = id, access_hash = access_hash }; + } + + partial class SecureFile + { + public static implicit operator InputSecureFile(SecureFile file) => new() { id = file.id, access_hash = file.access_hash }; + public InputSecureFileLocation ToFileLocation() => new() { id = id, access_hash = access_hash }; + } + + partial class InputFileBase + { + public abstract InputEncryptedFileBase ToInputEncryptedFile(int key_fingerprint); + public abstract InputSecureFileBase ToInputSecureFile(byte[] file_hash, byte[] secret); + } + partial class InputFile + { + public override InputEncryptedFileBase ToInputEncryptedFile(int key_fingerprint) => new InputEncryptedFileUploaded { id = id, parts = parts, md5_checksum = md5_checksum, key_fingerprint = key_fingerprint }; + public override InputSecureFileBase ToInputSecureFile(byte[] file_hash, byte[] secret) => new InputSecureFileUploaded { id = id, parts = parts, md5_checksum = md5_checksum, file_hash = file_hash, secret = secret }; + } + partial class InputFileBig + { + public override InputEncryptedFileBase ToInputEncryptedFile(int key_fingerprint) => new InputEncryptedFileBigUploaded { id = id, parts = parts, key_fingerprint = key_fingerprint }; + public override InputSecureFileBase ToInputSecureFile(byte[] file_hash, byte[] secret) => new InputSecureFileUploaded { id = id, parts = parts, file_hash = file_hash, secret = secret }; + } + + partial class StickerSet + { + public static implicit operator InputStickerSetID(StickerSet stickerSet) => new() { id = stickerSet.id, access_hash = stickerSet.access_hash }; + } +} diff --git a/src/TL.MTProto.cs b/src/TL.MTProto.cs index 10c23cf..248c465 100644 --- a/src/TL.MTProto.cs +++ b/src/TL.MTProto.cs @@ -5,7 +5,7 @@ using System.Threading.Tasks; namespace TL { [TLDef(0x05162463)] //resPQ#05162463 nonce:int128 server_nonce:int128 pq:bytes server_public_key_fingerprints:Vector = ResPQ - public class ResPQ : ITLObject + public partial class ResPQ : ITLObject { public Int128 nonce; public Int128 server_nonce; @@ -14,7 +14,7 @@ namespace TL } [TLDef(0x83C95AEC)] //p_q_inner_data#83c95aec pq:bytes p:bytes q:bytes nonce:int128 server_nonce:int128 new_nonce:int256 = P_Q_inner_data - public class PQInnerData : ITLObject + public partial class PQInnerData : ITLObject { public byte[] pq; public byte[] p; @@ -24,26 +24,26 @@ namespace TL public Int256 new_nonce; } [TLDef(0xA9F55F95)] //p_q_inner_data_DC#a9f55f95 pq:bytes p:bytes q:bytes nonce:int128 server_nonce:int128 new_nonce:int256 dc:int = P_Q_inner_data - public class PQInnerDataDC : PQInnerData { public int dc; } + public partial class PQInnerDataDC : PQInnerData { public int dc; } [TLDef(0x56FDDF88)] //p_q_inner_data_temp_DC#56fddf88 pq:bytes p:bytes q:bytes nonce:int128 server_nonce:int128 new_nonce:int256 dc:int expires_in:int = P_Q_inner_data - public class PQInnerDataTempDC : PQInnerData + public partial class PQInnerDataTempDC : PQInnerData { public int dc; public int expires_in; // seconds } - public abstract class ServerDHParams : ITLObject + public abstract partial class ServerDHParams : ITLObject { public Int128 nonce; public Int128 server_nonce; } [TLDef(0x79CB045D)] //server_DH_params_fail#79cb045d nonce:int128 server_nonce:int128 new_nonce_hash:int128 = Server_DH_Params - public class ServerDHParamsFail : ServerDHParams { public Int128 new_nonce_hash; } + public partial class ServerDHParamsFail : ServerDHParams { public Int128 new_nonce_hash; } [TLDef(0xD0E8075C)] //server_DH_params_ok#d0e8075c nonce:int128 server_nonce:int128 encrypted_answer:bytes = Server_DH_Params - public class ServerDHParamsOk : ServerDHParams { public byte[] encrypted_answer; } + public partial class ServerDHParamsOk : ServerDHParams { public byte[] encrypted_answer; } [TLDef(0xB5890DBA)] //server_DH_inner_data#b5890dba nonce:int128 server_nonce:int128 g:int dh_prime:bytes g_a:bytes server_time:int = Server_DH_inner_data - public class ServerDHInnerData : ITLObject + public partial class ServerDHInnerData : ITLObject { public Int128 nonce; public Int128 server_nonce; @@ -54,7 +54,7 @@ namespace TL } [TLDef(0x6643B654)] //client_DH_inner_data#6643b654 nonce:int128 server_nonce:int128 retry_id:long g_b:bytes = Client_DH_Inner_Data - public class ClientDHInnerData : ITLObject + public partial class ClientDHInnerData : ITLObject { public Int128 nonce; public Int128 server_nonce; @@ -62,21 +62,21 @@ namespace TL public byte[] g_b; } - public abstract class SetClientDHParamsAnswer : ITLObject + public abstract partial class SetClientDHParamsAnswer : ITLObject { public Int128 nonce; public Int128 server_nonce; public Int128 new_nonce_hashN; // 16 low order bytes from SHA1(new_nonce + (01=ok, 02=retry, 03=fail) + 8 high order bytes from SHA1(auth_key)) } [TLDef(0x3BCBF734)] //DH_gen_ok#3bcbf734 nonce:int128 server_nonce:int128 new_nonce_hashN:int128 = Set_client_DH_params_answer - public class DHGenOk : SetClientDHParamsAnswer { } + public partial class DHGenOk : SetClientDHParamsAnswer { } [TLDef(0x46DC1FB9)] //DH_gen_retry#46dc1fb9 nonce:int128 server_nonce:int128 new_nonce_hashN:int128 = Set_client_DH_params_answer - public class DHGenRetry : SetClientDHParamsAnswer { } + public partial class DHGenRetry : SetClientDHParamsAnswer { } [TLDef(0xA69DAE02)] //DH_gen_fail#a69dae02 nonce:int128 server_nonce:int128 new_nonce_hashN:int128 = Set_client_DH_params_answer - public class DHGenFail : SetClientDHParamsAnswer { } + public partial class DHGenFail : SetClientDHParamsAnswer { } [TLDef(0x75A3F765)] //bind_auth_key_inner#75a3f765 nonce:long temp_auth_key_id:long perm_auth_key_id:long temp_session_id:long expires_at:int = BindAuthKeyInner - public class BindAuthKeyInner : ITLObject + public partial class BindAuthKeyInner : ITLObject { public long nonce; public long temp_auth_key_id; @@ -86,26 +86,26 @@ namespace TL } [TLDef(0xF35C6D01)] //rpc_result#f35c6d01 req_msg_id:long result:Object = RpcResult - public class RpcResult : ITLObject + public partial class RpcResult : ITLObject { internal long req_msg_id; internal object result; } [TLDef(0x2144CA19)] //rpc_error#2144ca19 error_code:int error_message:string = RpcError - public class RpcError : ITLObject + public partial class RpcError : ITLObject { public int error_code; public string error_message; } - public abstract class RpcDropAnswer : ITLObject { } + public abstract partial class RpcDropAnswer : ITLObject { } [TLDef(0x5E2AD36E)] //rpc_answer_unknown#5e2ad36e = RpcDropAnswer - public class RpcAnswerUnknown : RpcDropAnswer { } + public partial class RpcAnswerUnknown : RpcDropAnswer { } [TLDef(0xCD78E586)] //rpc_answer_dropped_running#cd78e586 = RpcDropAnswer - public class RpcAnswerDroppedRunning : RpcDropAnswer { } + public partial class RpcAnswerDroppedRunning : RpcDropAnswer { } [TLDef(0xA43AD8B7)] //rpc_answer_dropped#a43ad8b7 msg_id:long seq_no:int bytes:int = RpcDropAnswer - public class RpcAnswerDropped : RpcDropAnswer + public partial class RpcAnswerDropped : RpcDropAnswer { public long msg_id; public int seq_no; @@ -113,7 +113,7 @@ namespace TL } [TLDef(0x0949D9DC)] //future_salt#0949d9dc valid_since:int valid_until:int salt:long = FutureSalt - public class FutureSalt : ITLObject + public partial class FutureSalt : ITLObject { public DateTime valid_since; public DateTime valid_until; @@ -121,7 +121,7 @@ namespace TL } [TLDef(0xAE500895)] //future_salts#ae500895 req_msg_id:long now:int salts:Vector = FutureSalts - public class FutureSalts : ITLObject + public partial class FutureSalts : ITLObject { public long req_msg_id; public DateTime now; @@ -129,34 +129,34 @@ namespace TL } [TLDef(0x347773C5)] //pong#347773c5 msg_id:long ping_id:long = Pong - public class Pong : ITLObject + public partial class Pong : ITLObject { public long msg_id; public long ping_id; } - public abstract class DestroySessionRes : ITLObject { public long session_id; } + public abstract partial class DestroySessionRes : ITLObject { public long session_id; } [TLDef(0xE22045FC)] //destroy_session_ok#e22045fc session_id:long = DestroySessionRes - public class DestroySessionOk : DestroySessionRes { } + public partial class DestroySessionOk : DestroySessionRes { } [TLDef(0x62D350C9)] //destroy_session_none#62d350c9 session_id:long = DestroySessionRes - public class DestroySessionNone : DestroySessionRes { } + public partial class DestroySessionNone : DestroySessionRes { } - public abstract class NewSession : ITLObject { } + public abstract partial class NewSession : ITLObject { } [TLDef(0x9EC20908)] //new_session_created#9ec20908 first_msg_id:long unique_id:long server_salt:long = NewSession - public class NewSessionCreated : NewSession + public partial class NewSessionCreated : NewSession { public long first_msg_id; public long unique_id; public long server_salt; } - public abstract class MessageContainer : ITLObject { } + public abstract partial class MessageContainer : ITLObject { } [TLDef(0x73F1F8DC)] //msg_container#73f1f8dc messages:vector<%Message> = MessageContainer - public class MsgContainer : MessageContainer { public _Message[] messages; } + public partial class MsgContainer : MessageContainer { public _Message[] messages; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Style", "IDE1006")] [TLDef(0x5BB8E511)] //message#5bb8e511 msg_id:long seqno:int bytes:int body:Object = Message - public class _Message + public partial class _Message { public long msg_id; public int seqno; @@ -164,49 +164,49 @@ namespace TL public ITLObject body; } - public abstract class MessageCopy : ITLObject { } + public abstract partial class MessageCopy : ITLObject { } [TLDef(0xE06046B2)] //msg_copy#e06046b2 orig_message:Message = MessageCopy - public class MsgCopy : MessageCopy { public _Message orig_message; } + public partial class MsgCopy : MessageCopy { public _Message orig_message; } [TLDef(0x3072CFA1)] //gzip_packed#3072cfa1 packed_data:bytes = Object - public class GzipPacked : ITLObject { public byte[] packed_data; } + public partial class GzipPacked : ITLObject { public byte[] packed_data; } [TLDef(0x62D6B459)] //msgs_ack#62d6b459 msg_ids:Vector = MsgsAck - public class MsgsAck : ITLObject { public long[] msg_ids; } + public partial class MsgsAck : ITLObject { public long[] msg_ids; } [TLDef(0xA7EFF811)] //bad_msg_notification#a7eff811 bad_msg_id:long bad_msg_seqno:int error_code:int = BadMsgNotification - public class BadMsgNotification : ITLObject + public partial class BadMsgNotification : ITLObject { public long bad_msg_id; public int bad_msg_seqno; public int error_code; } [TLDef(0xEDAB447B)] //bad_server_salt#edab447b bad_msg_id:long bad_msg_seqno:int error_code:int new_server_salt:long = BadMsgNotification - public class BadServerSalt : BadMsgNotification { public long new_server_salt; } + public partial class BadServerSalt : BadMsgNotification { public long new_server_salt; } [TLDef(0x7D861A08)] //msg_resend_req#7d861a08 msg_ids:Vector = MsgResendReq - public class MsgResendReq : ITLObject { public long[] msg_ids; } + public partial class MsgResendReq : ITLObject { public long[] msg_ids; } [TLDef(0xDA69FB52)] //msgs_state_req#da69fb52 msg_ids:Vector = MsgsStateReq - public class MsgsStateReq : ITLObject { public long[] msg_ids; } + public partial class MsgsStateReq : ITLObject { public long[] msg_ids; } [TLDef(0x04DEB57D)] //msgs_state_info#04deb57d req_msg_id:long info:bytes = MsgsStateInfo - public class MsgsStateInfo : ITLObject + public partial class MsgsStateInfo : ITLObject { public long req_msg_id; public byte[] info; } [TLDef(0x8CC0D131)] //msgs_all_info#8cc0d131 msg_ids:Vector info:bytes = MsgsAllInfo - public class MsgsAllInfo : ITLObject + public partial class MsgsAllInfo : ITLObject { public long[] msg_ids; public byte[] info; } - public abstract class MsgDetailedInfoBase : ITLObject { } + public abstract partial class MsgDetailedInfoBase : ITLObject { } [TLDef(0x276D3EC6)] //msg_detailed_info#276d3ec6 msg_id:long answer_msg_id:long bytes:int status:int = MsgDetailedInfo - public class MsgDetailedInfo : MsgDetailedInfoBase + public partial class MsgDetailedInfo : MsgDetailedInfoBase { public long msg_id; public long answer_msg_id; @@ -214,7 +214,7 @@ namespace TL public int status; } [TLDef(0x809DB6DF)] //msg_new_detailed_info#809db6df answer_msg_id:long bytes:int status:int = MsgDetailedInfo - public class MsgNewDetailedInfo : MsgDetailedInfoBase + public partial class MsgNewDetailedInfo : MsgDetailedInfoBase { public long answer_msg_id; public int bytes; @@ -222,19 +222,19 @@ namespace TL } [TLDef(0x7A19CB76)] //RSA_public_key#7a19cb76 n:bytes e:bytes = RSAPublicKey - public class RSAPublicKey : ITLObject + public partial class RSAPublicKey : ITLObject { public byte[] n; public byte[] e; } - public abstract class DestroyAuthKeyRes : ITLObject { } + public abstract partial class DestroyAuthKeyRes : ITLObject { } [TLDef(0xF660E1D4)] //destroy_auth_key_ok#f660e1d4 = DestroyAuthKeyRes - public class DestroyAuthKeyOk : DestroyAuthKeyRes { } + public partial class DestroyAuthKeyOk : DestroyAuthKeyRes { } [TLDef(0x0A9F2259)] //destroy_auth_key_none#0a9f2259 = DestroyAuthKeyRes - public class DestroyAuthKeyNone : DestroyAuthKeyRes { } + public partial class DestroyAuthKeyNone : DestroyAuthKeyRes { } [TLDef(0xEA109B13)] //destroy_auth_key_fail#ea109b13 = DestroyAuthKeyRes - public class DestroyAuthKeyFail : DestroyAuthKeyRes { } + public partial class DestroyAuthKeyFail : DestroyAuthKeyRes { } } namespace WTelegram // ---functions--- diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs index 6291cac..940173e 100644 --- a/src/TL.Schema.cs +++ b/src/TL.Schema.cs @@ -5,74 +5,74 @@ using System.Threading.Tasks; namespace TL { [TLDef(0x3FEDD339)] //true#3fedd339 = True - public class True : ITLObject { } + public partial class True : ITLObject { } [TLDef(0xC4B9F9BB)] //error#c4b9f9bb code:int text:string = Error - public class Error : ITLObject + public partial class Error : ITLObject { public int code; public string text; } [TLDef(0x56730BCC)] //null#56730bcc = Null - public class Null : ITLObject { } + public partial class Null : ITLObject { } - public abstract class InputPeer : ITLObject { } + public abstract partial class InputPeer : ITLObject { } [TLDef(0x7F3B18EA)] //inputPeerEmpty#7f3b18ea = InputPeer - public class InputPeerEmpty : InputPeer { } + public partial class InputPeerEmpty : InputPeer { } [TLDef(0x7DA07EC9)] //inputPeerSelf#7da07ec9 = InputPeer - public class InputPeerSelf : InputPeer { } + public partial class InputPeerSelf : InputPeer { } [TLDef(0x179BE863)] //inputPeerChat#179be863 chat_id:int = InputPeer - public class InputPeerChat : InputPeer { public int chat_id; } + public partial class InputPeerChat : InputPeer { public int chat_id; } [TLDef(0x7B8E7DE6)] //inputPeerUser#7b8e7de6 user_id:int access_hash:long = InputPeer - public class InputPeerUser : InputPeer + public partial class InputPeerUser : InputPeer { public int user_id; public long access_hash; } [TLDef(0x20ADAEF8)] //inputPeerChannel#20adaef8 channel_id:int access_hash:long = InputPeer - public class InputPeerChannel : InputPeer + public partial class InputPeerChannel : InputPeer { public int channel_id; public long access_hash; } [TLDef(0x17BAE2E6)] //inputPeerUserFromMessage#17bae2e6 peer:InputPeer msg_id:int user_id:int = InputPeer - public class InputPeerUserFromMessage : InputPeer + public partial class InputPeerUserFromMessage : InputPeer { public InputPeer peer; public int msg_id; public int user_id; } [TLDef(0x9C95F7BB)] //inputPeerChannelFromMessage#9c95f7bb peer:InputPeer msg_id:int channel_id:int = InputPeer - public class InputPeerChannelFromMessage : InputPeer + public partial class InputPeerChannelFromMessage : InputPeer { public InputPeer peer; public int msg_id; public int channel_id; } - public abstract class InputUserBase : ITLObject { } + public abstract partial class InputUserBase : ITLObject { } [TLDef(0xB98886CF)] //inputUserEmpty#b98886cf = InputUser - public class InputUserEmpty : InputUserBase { } + public partial class InputUserEmpty : InputUserBase { } [TLDef(0xF7C1B13F)] //inputUserSelf#f7c1b13f = InputUser - public class InputUserSelf : InputUserBase { } + public partial class InputUserSelf : InputUserBase { } [TLDef(0xD8292816)] //inputUser#d8292816 user_id:int access_hash:long = InputUser - public class InputUser : InputUserBase + public partial class InputUser : InputUserBase { public int user_id; public long access_hash; } [TLDef(0x2D117597)] //inputUserFromMessage#2d117597 peer:InputPeer msg_id:int user_id:int = InputUser - public class InputUserFromMessage : InputUserBase + public partial class InputUserFromMessage : InputUserBase { public InputPeer peer; public int msg_id; public int user_id; } - public abstract class InputContact : ITLObject { } + public abstract partial class InputContact : ITLObject { } [TLDef(0xF392B7F4)] //inputPhoneContact#f392b7f4 client_id:long phone:string first_name:string last_name:string = InputContact - public class InputPhoneContact : InputContact + public partial class InputPhoneContact : InputContact { public long client_id; public string phone; @@ -80,9 +80,9 @@ namespace TL public string last_name; } - public abstract class InputFileBase : ITLObject { } + public abstract partial class InputFileBase : ITLObject { } [TLDef(0xF52FF27F)] //inputFile#f52ff27f id:long parts:int name:string md5_checksum:string = InputFile - public class InputFile : InputFileBase + public partial class InputFile : InputFileBase { public long id; public int parts; @@ -90,18 +90,18 @@ namespace TL public byte[] md5_checksum; } [TLDef(0xFA4F0BB5)] //inputFileBig#fa4f0bb5 id:long parts:int name:string = InputFile - public class InputFileBig : InputFileBase + public partial class InputFileBig : InputFileBase { public long id; public int parts; public string name; } - public abstract class InputMedia : ITLObject { } + public abstract partial class InputMedia : ITLObject { } [TLDef(0x9664F57F)] //inputMediaEmpty#9664f57f = InputMedia - public class InputMediaEmpty : InputMedia { } + public partial class InputMediaEmpty : InputMedia { } [TLDef(0x1E287D04)] //inputMediaUploadedPhoto#1e287d04 flags:# file:InputFile stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia - public class InputMediaUploadedPhoto : InputMedia + public partial class InputMediaUploadedPhoto : InputMedia { [Flags] public enum Flags { has_stickers = 0x1, has_ttl_seconds = 0x2 } public Flags flags; @@ -110,7 +110,7 @@ namespace TL [IfFlag(1)] public int ttl_seconds; } [TLDef(0xB3BA0635)] //inputMediaPhoto#b3ba0635 flags:# id:InputPhoto ttl_seconds:flags.0?int = InputMedia - public class InputMediaPhoto : InputMedia + public partial class InputMediaPhoto : InputMedia { [Flags] public enum Flags { has_ttl_seconds = 0x1 } public Flags flags; @@ -118,9 +118,9 @@ namespace TL [IfFlag(0)] public int ttl_seconds; } [TLDef(0xF9C44144)] //inputMediaGeoPoint#f9c44144 geo_point:InputGeoPoint = InputMedia - public class InputMediaGeoPoint : InputMedia { public InputGeoPointBase geo_point; } + public partial class InputMediaGeoPoint : InputMedia { public InputGeoPointBase geo_point; } [TLDef(0xF8AB7DFB)] //inputMediaContact#f8ab7dfb phone_number:string first_name:string last_name:string vcard:string = InputMedia - public class InputMediaContact : InputMedia + public partial class InputMediaContact : InputMedia { public string phone_number; public string first_name; @@ -128,7 +128,7 @@ namespace TL public string vcard; } [TLDef(0x5B38C6C1)] //inputMediaUploadedDocument#5b38c6c1 flags:# nosound_video:flags.3?true force_file:flags.4?true file:InputFile thumb:flags.2?InputFile mime_type:string attributes:Vector stickers:flags.0?Vector ttl_seconds:flags.1?int = InputMedia - public class InputMediaUploadedDocument : InputMedia + public partial class InputMediaUploadedDocument : InputMedia { [Flags] public enum Flags { has_stickers = 0x1, has_ttl_seconds = 0x2, has_thumb = 0x4, nosound_video = 0x8, force_file = 0x10 } public Flags flags; @@ -140,7 +140,7 @@ namespace TL [IfFlag(1)] public int ttl_seconds; } [TLDef(0x23AB23D2)] //inputMediaDocument#23ab23d2 flags:# id:InputDocument ttl_seconds:flags.0?int = InputMedia - public class InputMediaDocument : InputMedia + public partial class InputMediaDocument : InputMedia { [Flags] public enum Flags { has_ttl_seconds = 0x1 } public Flags flags; @@ -148,7 +148,7 @@ namespace TL [IfFlag(0)] public int ttl_seconds; } [TLDef(0xC13D1C11)] //inputMediaVenue#c13d1c11 geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string = InputMedia - public class InputMediaVenue : InputMedia + public partial class InputMediaVenue : InputMedia { public InputGeoPointBase geo_point; public string title; @@ -158,7 +158,7 @@ namespace TL public string venue_type; } [TLDef(0xE5BBFE1A)] //inputMediaPhotoExternal#e5bbfe1a flags:# url:string ttl_seconds:flags.0?int = InputMedia - public class InputMediaPhotoExternal : InputMedia + public partial class InputMediaPhotoExternal : InputMedia { [Flags] public enum Flags { has_ttl_seconds = 0x1 } public Flags flags; @@ -166,7 +166,7 @@ namespace TL [IfFlag(0)] public int ttl_seconds; } [TLDef(0xFB52DC99)] //inputMediaDocumentExternal#fb52dc99 flags:# url:string ttl_seconds:flags.0?int = InputMedia - public class InputMediaDocumentExternal : InputMedia + public partial class InputMediaDocumentExternal : InputMedia { [Flags] public enum Flags { has_ttl_seconds = 0x1 } public Flags flags; @@ -174,9 +174,9 @@ namespace TL [IfFlag(0)] public int ttl_seconds; } [TLDef(0xD33F43F3)] //inputMediaGame#d33f43f3 id:InputGame = InputMedia - public class InputMediaGame : InputMedia { public InputGame id; } + public partial class InputMediaGame : InputMedia { public InputGame id; } [TLDef(0xF4E096C3)] //inputMediaInvoice#f4e096c3 flags:# title:string description:string photo:flags.0?InputWebDocument invoice:Invoice payload:bytes provider:string provider_data:DataJSON start_param:string = InputMedia - public class InputMediaInvoice : InputMedia + public partial class InputMediaInvoice : InputMedia { [Flags] public enum Flags { has_photo = 0x1 } public Flags flags; @@ -190,7 +190,7 @@ namespace TL public string start_param; } [TLDef(0x971FA843)] //inputMediaGeoLive#971fa843 flags:# stopped:flags.0?true geo_point:InputGeoPoint heading:flags.2?int period:flags.1?int proximity_notification_radius:flags.3?int = InputMedia - public class InputMediaGeoLive : InputMedia + public partial class InputMediaGeoLive : InputMedia { [Flags] public enum Flags { stopped = 0x1, has_period = 0x2, has_heading = 0x4, has_proximity_notification_radius = 0x8 } public Flags flags; @@ -200,7 +200,7 @@ namespace TL [IfFlag(3)] public int proximity_notification_radius; } [TLDef(0x0F94E5F1)] //inputMediaPoll#0f94e5f1 flags:# poll:Poll correct_answers:flags.0?Vector solution:flags.1?string solution_entities:flags.1?Vector = InputMedia - public class InputMediaPoll : InputMedia + public partial class InputMediaPoll : InputMedia { [Flags] public enum Flags { has_correct_answers = 0x1, has_solution = 0x2 } public Flags flags; @@ -210,13 +210,13 @@ namespace TL [IfFlag(1)] public MessageEntity[] solution_entities; } [TLDef(0xE66FBF7B)] //inputMediaDice#e66fbf7b emoticon:string = InputMedia - public class InputMediaDice : InputMedia { public string emoticon; } + public partial class InputMediaDice : InputMedia { public string emoticon; } - public abstract class InputChatPhotoBase : ITLObject { } + public abstract partial class InputChatPhotoBase : ITLObject { } [TLDef(0x1CA48F57)] //inputChatPhotoEmpty#1ca48f57 = InputChatPhoto - public class InputChatPhotoEmpty : InputChatPhotoBase { } + public partial class InputChatPhotoEmpty : InputChatPhotoBase { } [TLDef(0xC642724E)] //inputChatUploadedPhoto#c642724e flags:# file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double = InputChatPhoto - public class InputChatUploadedPhoto : InputChatPhotoBase + public partial class InputChatUploadedPhoto : InputChatPhotoBase { [Flags] public enum Flags { has_file = 0x1, has_video = 0x2, has_video_start_ts = 0x4 } public Flags flags; @@ -225,13 +225,13 @@ namespace TL [IfFlag(2)] public double video_start_ts; } [TLDef(0x8953AD37)] //inputChatPhoto#8953ad37 id:InputPhoto = InputChatPhoto - public class InputChatPhoto : InputChatPhotoBase { public InputPhotoBase id; } + public partial class InputChatPhoto : InputChatPhotoBase { public InputPhotoBase id; } - public abstract class InputGeoPointBase : ITLObject { } + public abstract partial class InputGeoPointBase : ITLObject { } [TLDef(0xE4C123D6)] //inputGeoPointEmpty#e4c123d6 = InputGeoPoint - public class InputGeoPointEmpty : InputGeoPointBase { } + public partial class InputGeoPointEmpty : InputGeoPointBase { } [TLDef(0x48222FAF)] //inputGeoPoint#48222faf flags:# lat:double long:double accuracy_radius:flags.0?int = InputGeoPoint - public class InputGeoPoint : InputGeoPointBase + public partial class InputGeoPoint : InputGeoPointBase { [Flags] public enum Flags { has_accuracy_radius = 0x1 } public Flags flags; @@ -240,20 +240,20 @@ namespace TL [IfFlag(0)] public int accuracy_radius; } - public abstract class InputPhotoBase : ITLObject { } + public abstract partial class InputPhotoBase : ITLObject { } [TLDef(0x1CD7BF0D)] //inputPhotoEmpty#1cd7bf0d = InputPhoto - public class InputPhotoEmpty : InputPhotoBase { } + public partial class InputPhotoEmpty : InputPhotoBase { } [TLDef(0x3BB3B94A)] //inputPhoto#3bb3b94a id:long access_hash:long file_reference:bytes = InputPhoto - public class InputPhoto : InputPhotoBase + public partial class InputPhoto : InputPhotoBase { public long id; public long access_hash; public byte[] file_reference; } - public abstract class InputFileLocationBase : ITLObject { } + public abstract partial class InputFileLocationBase : ITLObject { } [TLDef(0xDFDAABE1)] //inputFileLocation#dfdaabe1 volume_id:long local_id:int secret:long file_reference:bytes = InputFileLocation - public class InputFileLocation : InputFileLocationBase + public partial class InputFileLocation : InputFileLocationBase { public long volume_id; public int local_id; @@ -261,13 +261,13 @@ namespace TL public byte[] file_reference; } [TLDef(0xF5235D55)] //inputEncryptedFileLocation#f5235d55 id:long access_hash:long = InputFileLocation - public class InputEncryptedFileLocation : InputFileLocationBase + public partial class InputEncryptedFileLocation : InputFileLocationBase { public long id; public long access_hash; } [TLDef(0xBAD07584)] //inputDocumentFileLocation#bad07584 id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation - public class InputDocumentFileLocation : InputFileLocationBase + public partial class InputDocumentFileLocation : InputFileLocationBase { public long id; public long access_hash; @@ -275,15 +275,15 @@ namespace TL public string thumb_size; } [TLDef(0xCBC7EE28)] //inputSecureFileLocation#cbc7ee28 id:long access_hash:long = InputFileLocation - public class InputSecureFileLocation : InputFileLocationBase + public partial class InputSecureFileLocation : InputFileLocationBase { public long id; public long access_hash; } [TLDef(0x29BE5899)] //inputTakeoutFileLocation#29be5899 = InputFileLocation - public class InputTakeoutFileLocation : InputFileLocationBase { } + public partial class InputTakeoutFileLocation : InputFileLocationBase { } [TLDef(0x40181FFE)] //inputPhotoFileLocation#40181ffe id:long access_hash:long file_reference:bytes thumb_size:string = InputFileLocation - public class InputPhotoFileLocation : InputFileLocationBase + public partial class InputPhotoFileLocation : InputFileLocationBase { public long id; public long access_hash; @@ -291,7 +291,7 @@ namespace TL public string thumb_size; } [TLDef(0xD83466F3)] //inputPhotoLegacyFileLocation#d83466f3 id:long access_hash:long file_reference:bytes volume_id:long local_id:int secret:long = InputFileLocation - public class InputPhotoLegacyFileLocation : InputFileLocationBase + public partial class InputPhotoLegacyFileLocation : InputFileLocationBase { public long id; public long access_hash; @@ -301,7 +301,7 @@ namespace TL public long secret; } [TLDef(0x27D69997)] //inputPeerPhotoFileLocation#27d69997 flags:# big:flags.0?true peer:InputPeer volume_id:long local_id:int = InputFileLocation - public class InputPeerPhotoFileLocation : InputFileLocationBase + public partial class InputPeerPhotoFileLocation : InputFileLocationBase { [Flags] public enum Flags { big = 0x1 } public Flags flags; @@ -310,48 +310,48 @@ namespace TL public int local_id; } [TLDef(0x0DBAEAE9)] //inputStickerSetThumb#0dbaeae9 stickerset:InputStickerSet volume_id:long local_id:int = InputFileLocation - public class InputStickerSetThumb : InputFileLocationBase + public partial class InputStickerSetThumb : InputFileLocationBase { public InputStickerSet stickerset; public long volume_id; public int local_id; } - public abstract class Peer : ITLObject { } + public abstract partial class Peer : ITLObject { } [TLDef(0x9DB1BC6D)] //peerUser#9db1bc6d user_id:int = Peer - public class PeerUser : Peer { public int user_id; } + public partial class PeerUser : Peer { public int user_id; } [TLDef(0xBAD0E5BB)] //peerChat#bad0e5bb chat_id:int = Peer - public class PeerChat : Peer { public int chat_id; } + public partial class PeerChat : Peer { public int chat_id; } [TLDef(0xBDDDE532)] //peerChannel#bddde532 channel_id:int = Peer - public class PeerChannel : Peer { public int channel_id; } + public partial class PeerChannel : Peer { public int channel_id; } - public abstract class Storage_FileType : ITLObject { } + public abstract partial class Storage_FileType : ITLObject { } [TLDef(0xAA963B05)] //storage.fileUnknown#aa963b05 = storage.FileType - public class Storage_FileUnknown : Storage_FileType { } + public partial class Storage_FileUnknown : Storage_FileType { } [TLDef(0x40BC6F52)] //storage.filePartial#40bc6f52 = storage.FileType - public class Storage_FilePartial : Storage_FileType { } + public partial class Storage_FilePartial : Storage_FileType { } [TLDef(0x007EFE0E)] //storage.fileJpeg#007efe0e = storage.FileType - public class Storage_FileJpeg : Storage_FileType { } + public partial class Storage_FileJpeg : Storage_FileType { } [TLDef(0xCAE1AADF)] //storage.fileGif#cae1aadf = storage.FileType - public class Storage_FileGif : Storage_FileType { } + public partial class Storage_FileGif : Storage_FileType { } [TLDef(0x0A4F63C0)] //storage.filePng#0a4f63c0 = storage.FileType - public class Storage_FilePng : Storage_FileType { } + public partial class Storage_FilePng : Storage_FileType { } [TLDef(0xAE1E508D)] //storage.filePdf#ae1e508d = storage.FileType - public class Storage_FilePdf : Storage_FileType { } + public partial class Storage_FilePdf : Storage_FileType { } [TLDef(0x528A0677)] //storage.fileMp3#528a0677 = storage.FileType - public class Storage_FileMp3 : Storage_FileType { } + public partial class Storage_FileMp3 : Storage_FileType { } [TLDef(0x4B09EBBC)] //storage.fileMov#4b09ebbc = storage.FileType - public class Storage_FileMov : Storage_FileType { } + public partial class Storage_FileMov : Storage_FileType { } [TLDef(0xB3CEA0E4)] //storage.fileMp4#b3cea0e4 = storage.FileType - public class Storage_FileMp4 : Storage_FileType { } + public partial class Storage_FileMp4 : Storage_FileType { } [TLDef(0x1081464C)] //storage.fileWebp#1081464c = storage.FileType - public class Storage_FileWebp : Storage_FileType { } + public partial class Storage_FileWebp : Storage_FileType { } - public abstract class UserBase : ITLObject { } + public abstract partial class UserBase : ITLObject { } [TLDef(0x200250BA)] //userEmpty#200250ba id:int = User - public class UserEmpty : UserBase { public int id; } + public partial class UserEmpty : UserBase { public int id; } [TLDef(0x938458C1)] //user#938458c1 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true id:int access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User - public class User : UserBase + public partial class User : UserBase { [Flags] public enum Flags { has_access_hash = 0x1, has_first_name = 0x2, has_last_name = 0x4, has_username = 0x8, has_phone = 0x10, has_photo = 0x20, has_status = 0x40, self = 0x400, contact = 0x800, mutual_contact = 0x1000, @@ -373,11 +373,11 @@ namespace TL [IfFlag(22)] public string lang_code; } - public abstract class UserProfilePhotoBase : ITLObject { } + public abstract partial class UserProfilePhotoBase : ITLObject { } [TLDef(0x4F11BAE1)] //userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto - public class UserProfilePhotoEmpty : UserProfilePhotoBase { } + public partial class UserProfilePhotoEmpty : UserProfilePhotoBase { } [TLDef(0x69D3AB26)] //userProfilePhoto#69d3ab26 flags:# has_video:flags.0?true photo_id:long photo_small:FileLocation photo_big:FileLocation dc_id:int = UserProfilePhoto - public class UserProfilePhoto : UserProfilePhotoBase + public partial class UserProfilePhoto : UserProfilePhotoBase { [Flags] public enum Flags { has_video = 0x1 } public Flags flags; @@ -387,25 +387,25 @@ namespace TL public int dc_id; } - public abstract class UserStatus : ITLObject { } + public abstract partial class UserStatus : ITLObject { } [TLDef(0x09D05049)] //userStatusEmpty#09d05049 = UserStatus - public class UserStatusEmpty : UserStatus { } + public partial class UserStatusEmpty : UserStatus { } [TLDef(0xEDB93949)] //userStatusOnline#edb93949 expires:int = UserStatus - public class UserStatusOnline : UserStatus { public DateTime expires; } + public partial class UserStatusOnline : UserStatus { public DateTime expires; } [TLDef(0x008C703F)] //userStatusOffline#008c703f was_online:int = UserStatus - public class UserStatusOffline : UserStatus { public int was_online; } + public partial class UserStatusOffline : UserStatus { public int was_online; } [TLDef(0xE26F42F1)] //userStatusRecently#e26f42f1 = UserStatus - public class UserStatusRecently : UserStatus { } + public partial class UserStatusRecently : UserStatus { } [TLDef(0x07BF09FC)] //userStatusLastWeek#07bf09fc = UserStatus - public class UserStatusLastWeek : UserStatus { } + public partial class UserStatusLastWeek : UserStatus { } [TLDef(0x77EBC742)] //userStatusLastMonth#77ebc742 = UserStatus - public class UserStatusLastMonth : UserStatus { } + public partial class UserStatusLastMonth : UserStatus { } - public abstract class ChatBase : ITLObject { } + public abstract partial class ChatBase : ITLObject { } [TLDef(0x9BA2D800)] //chatEmpty#9ba2d800 id:int = Chat - public class ChatEmpty : ChatBase { public int id; } + public partial class ChatEmpty : ChatBase { public int id; } [TLDef(0x3BDA1BDE)] //chat#3bda1bde flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true deactivated:flags.5?true call_active:flags.23?true call_not_empty:flags.24?true id:int title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel admin_rights:flags.14?ChatAdminRights default_banned_rights:flags.18?ChatBannedRights = Chat - public class Chat : ChatBase + public partial class Chat : ChatBase { [Flags] public enum Flags { creator = 0x1, kicked = 0x2, left = 0x4, deactivated = 0x20, has_migrated_to = 0x40, has_admin_rights = 0x4000, has_default_banned_rights = 0x40000, call_active = 0x800000, call_not_empty = 0x1000000 } @@ -421,13 +421,13 @@ namespace TL [IfFlag(18)] public ChatBannedRights default_banned_rights; } [TLDef(0x07328BDB)] //chatForbidden#07328bdb id:int title:string = Chat - public class ChatForbidden : ChatBase + public partial class ChatForbidden : ChatBase { public int id; public string title; } [TLDef(0xD31A961E)] //channel#d31a961e flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true signatures:flags.11?true min:flags.12?true scam:flags.19?true has_link:flags.20?true has_geo:flags.21?true slowmode_enabled:flags.22?true call_active:flags.23?true call_not_empty:flags.24?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?Vector admin_rights:flags.14?ChatAdminRights banned_rights:flags.15?ChatBannedRights default_banned_rights:flags.18?ChatBannedRights participants_count:flags.17?int = Chat - public class Channel : ChatBase + public partial class Channel : ChatBase { [Flags] public enum Flags { creator = 0x1, left = 0x4, broadcast = 0x20, has_username = 0x40, verified = 0x80, megagroup = 0x100, restricted = 0x200, signatures = 0x800, min = 0x1000, has_access_hash = 0x2000, has_admin_rights = 0x4000, @@ -448,7 +448,7 @@ namespace TL [IfFlag(17)] public int participants_count; } [TLDef(0x289DA732)] //channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat - public class ChannelForbidden : ChatBase + public partial class ChannelForbidden : ChatBase { [Flags] public enum Flags { broadcast = 0x20, megagroup = 0x100, has_until_date = 0x10000 } public Flags flags; @@ -458,9 +458,9 @@ namespace TL [IfFlag(16)] public DateTime until_date; } - public abstract class ChatFullBase : ITLObject { } + public abstract partial class ChatFullBase : ITLObject { } [TLDef(0x1B7C9DB3)] //chatFull#1b7c9db3 flags:# can_set_username:flags.7?true has_scheduled:flags.8?true id:int about:string participants:ChatParticipants chat_photo:flags.2?Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:flags.3?Vector pinned_msg_id:flags.6?int folder_id:flags.11?int = ChatFull - public class ChatFull : ChatFullBase + public partial class ChatFull : ChatFullBase { [Flags] public enum Flags { has_chat_photo = 0x4, has_bot_info = 0x8, has_pinned_msg_id = 0x40, can_set_username = 0x80, has_scheduled = 0x100, has_folder_id = 0x800 } @@ -476,7 +476,7 @@ namespace TL [IfFlag(11)] public int folder_id; } [TLDef(0xF0E6672A)] //channelFull#f0e6672a flags:# can_view_participants:flags.3?true can_set_username:flags.6?true can_set_stickers:flags.7?true hidden_prehistory:flags.10?true can_set_location:flags.16?true has_scheduled:flags.19?true can_view_stats:flags.20?true blocked:flags.22?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int online_count:flags.13?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int stickerset:flags.8?StickerSet available_min_id:flags.9?int folder_id:flags.11?int linked_chat_id:flags.14?int location:flags.15?ChannelLocation slowmode_seconds:flags.17?int slowmode_next_send_date:flags.18?int stats_dc:flags.12?int pts:int = ChatFull - public class ChannelFull : ChatFullBase + public partial class ChannelFull : ChatFullBase { [Flags] public enum Flags { has_participants_count = 0x1, has_admins_count = 0x2, has_kicked_count = 0x4, can_view_participants = 0x8, has_migrated_from_chat_id = 0x10, has_pinned_msg_id = 0x20, can_set_username = 0x40, @@ -513,27 +513,27 @@ namespace TL public int pts; } - public abstract class ChatParticipantBase : ITLObject { } + public abstract partial class ChatParticipantBase : ITLObject { } [TLDef(0xC8D7493E)] //chatParticipant#c8d7493e user_id:int inviter_id:int date:int = ChatParticipant - public class ChatParticipant : ChatParticipantBase + public partial class ChatParticipant : ChatParticipantBase { public int user_id; public int inviter_id; public DateTime date; } [TLDef(0xDA13538A)] //chatParticipantCreator#da13538a user_id:int = ChatParticipant - public class ChatParticipantCreator : ChatParticipantBase { public int user_id; } + public partial class ChatParticipantCreator : ChatParticipantBase { public int user_id; } [TLDef(0xE2D6E436)] //chatParticipantAdmin#e2d6e436 user_id:int inviter_id:int date:int = ChatParticipant - public class ChatParticipantAdmin : ChatParticipantBase + public partial class ChatParticipantAdmin : ChatParticipantBase { public int user_id; public int inviter_id; public DateTime date; } - public abstract class ChatParticipantsBase : ITLObject { } + public abstract partial class ChatParticipantsBase : ITLObject { } [TLDef(0xFC900C2B)] //chatParticipantsForbidden#fc900c2b flags:# chat_id:int self_participant:flags.0?ChatParticipant = ChatParticipants - public class ChatParticipantsForbidden : ChatParticipantsBase + public partial class ChatParticipantsForbidden : ChatParticipantsBase { [Flags] public enum Flags { has_self_participant = 0x1 } public Flags flags; @@ -541,18 +541,18 @@ namespace TL [IfFlag(0)] public ChatParticipantBase self_participant; } [TLDef(0x3F460FED)] //chatParticipants#3f460fed chat_id:int participants:Vector version:int = ChatParticipants - public class ChatParticipants : ChatParticipantsBase + public partial class ChatParticipants : ChatParticipantsBase { public int chat_id; public ChatParticipantBase[] participants; public int version; } - public abstract class ChatPhotoBase : ITLObject { } + public abstract partial class ChatPhotoBase : ITLObject { } [TLDef(0x37C1011C)] //chatPhotoEmpty#37c1011c = ChatPhoto - public class ChatPhotoEmpty : ChatPhotoBase { } + public partial class ChatPhotoEmpty : ChatPhotoBase { } [TLDef(0xD20B9F3C)] //chatPhoto#d20b9f3c flags:# has_video:flags.0?true photo_small:FileLocation photo_big:FileLocation dc_id:int = ChatPhoto - public class ChatPhoto : ChatPhotoBase + public partial class ChatPhoto : ChatPhotoBase { [Flags] public enum Flags { has_video = 0x1 } public Flags flags; @@ -561,11 +561,11 @@ namespace TL public int dc_id; } - public abstract class MessageBase : ITLObject { } + public abstract partial class MessageBase : ITLObject { } [TLDef(0x83E5DE54)] //messageEmpty#83e5de54 id:int = Message - public class MessageEmpty : MessageBase { public int id; } + public partial class MessageEmpty : MessageBase { public int id; } [TLDef(0x58AE39C9)] //message#58ae39c9 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true from_scheduled:flags.18?true legacy:flags.19?true edit_hide:flags.21?true pinned:flags.24?true id:int from_id:flags.8?Peer peer_id:Peer fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader date:int message:string media:flags.9?MessageMedia reply_markup:flags.6?ReplyMarkup entities:flags.7?Vector views:flags.10?int forwards:flags.10?int replies:flags.23?MessageReplies edit_date:flags.15?int post_author:flags.16?string grouped_id:flags.17?long restriction_reason:flags.22?Vector = Message - public class Message : MessageBase + public partial class Message : MessageBase { [Flags] public enum Flags { out_ = 0x2, has_fwd_from = 0x4, has_reply_to = 0x8, mentioned = 0x10, media_unread = 0x20, has_reply_markup = 0x40, has_entities = 0x80, has_from_id = 0x100, has_media = 0x200, has_views = 0x400, @@ -593,7 +593,7 @@ namespace TL [IfFlag(22)] public RestrictionReason[] restriction_reason; } [TLDef(0x286FA604)] //messageService#286fa604 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true post:flags.14?true legacy:flags.19?true id:int from_id:flags.8?Peer peer_id:Peer reply_to:flags.3?MessageReplyHeader date:int action:MessageAction = Message - public class MessageService : MessageBase + public partial class MessageService : MessageBase { [Flags] public enum Flags { out_ = 0x2, has_reply_to = 0x8, mentioned = 0x10, media_unread = 0x20, has_from_id = 0x100, silent = 0x2000, post = 0x4000, legacy = 0x80000 } @@ -606,11 +606,11 @@ namespace TL public MessageAction action; } - public abstract class MessageMedia : ITLObject { } + public abstract partial class MessageMedia : ITLObject { } [TLDef(0x3DED6320)] //messageMediaEmpty#3ded6320 = MessageMedia - public class MessageMediaEmpty : MessageMedia { } + public partial class MessageMediaEmpty : MessageMedia { } [TLDef(0x695150D7)] //messageMediaPhoto#695150d7 flags:# photo:flags.0?Photo ttl_seconds:flags.2?int = MessageMedia - public class MessageMediaPhoto : MessageMedia + public partial class MessageMediaPhoto : MessageMedia { [Flags] public enum Flags { has_photo = 0x1, has_ttl_seconds = 0x4 } public Flags flags; @@ -618,9 +618,9 @@ namespace TL [IfFlag(2)] public int ttl_seconds; } [TLDef(0x56E0D474)] //messageMediaGeo#56e0d474 geo:GeoPoint = MessageMedia - public class MessageMediaGeo : MessageMedia { public GeoPointBase geo; } + public partial class MessageMediaGeo : MessageMedia { public GeoPointBase geo; } [TLDef(0xCBF24940)] //messageMediaContact#cbf24940 phone_number:string first_name:string last_name:string vcard:string user_id:int = MessageMedia - public class MessageMediaContact : MessageMedia + public partial class MessageMediaContact : MessageMedia { public string phone_number; public string first_name; @@ -629,9 +629,9 @@ namespace TL public int user_id; } [TLDef(0x9F84F49E)] //messageMediaUnsupported#9f84f49e = MessageMedia - public class MessageMediaUnsupported : MessageMedia { } + public partial class MessageMediaUnsupported : MessageMedia { } [TLDef(0x9CB070D7)] //messageMediaDocument#9cb070d7 flags:# document:flags.0?Document ttl_seconds:flags.2?int = MessageMedia - public class MessageMediaDocument : MessageMedia + public partial class MessageMediaDocument : MessageMedia { [Flags] public enum Flags { has_document = 0x1, has_ttl_seconds = 0x4 } public Flags flags; @@ -639,9 +639,9 @@ namespace TL [IfFlag(2)] public int ttl_seconds; } [TLDef(0xA32DD600)] //messageMediaWebPage#a32dd600 webpage:WebPage = MessageMedia - public class MessageMediaWebPage : MessageMedia { public WebPageBase webpage; } + public partial class MessageMediaWebPage : MessageMedia { public WebPageBase webpage; } [TLDef(0x2EC0533F)] //messageMediaVenue#2ec0533f geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string = MessageMedia - public class MessageMediaVenue : MessageMedia + public partial class MessageMediaVenue : MessageMedia { public GeoPointBase geo; public string title; @@ -651,9 +651,9 @@ namespace TL public string venue_type; } [TLDef(0xFDB19008)] //messageMediaGame#fdb19008 game:Game = MessageMedia - public class MessageMediaGame : MessageMedia { public Game game; } + public partial class MessageMediaGame : MessageMedia { public Game game; } [TLDef(0x84551347)] //messageMediaInvoice#84551347 flags:# shipping_address_requested:flags.1?true test:flags.3?true title:string description:string photo:flags.0?WebDocument receipt_msg_id:flags.2?int currency:string total_amount:long start_param:string = MessageMedia - public class MessageMediaInvoice : MessageMedia + public partial class MessageMediaInvoice : MessageMedia { [Flags] public enum Flags { has_photo = 0x1, shipping_address_requested = 0x2, has_receipt_msg_id = 0x4, test = 0x8 } public Flags flags; @@ -666,7 +666,7 @@ namespace TL public string start_param; } [TLDef(0xB940C666)] //messageMediaGeoLive#b940c666 flags:# geo:GeoPoint heading:flags.0?int period:int proximity_notification_radius:flags.1?int = MessageMedia - public class MessageMediaGeoLive : MessageMedia + public partial class MessageMediaGeoLive : MessageMedia { [Flags] public enum Flags { has_heading = 0x1, has_proximity_notification_radius = 0x2 } public Flags flags; @@ -676,61 +676,61 @@ namespace TL [IfFlag(1)] public int proximity_notification_radius; } [TLDef(0x4BD6E798)] //messageMediaPoll#4bd6e798 poll:Poll results:PollResults = MessageMedia - public class MessageMediaPoll : MessageMedia + public partial class MessageMediaPoll : MessageMedia { public Poll poll; public PollResults results; } [TLDef(0x3F7EE58B)] //messageMediaDice#3f7ee58b value:int emoticon:string = MessageMedia - public class MessageMediaDice : MessageMedia + public partial class MessageMediaDice : MessageMedia { public int value; public string emoticon; } - public abstract class MessageAction : ITLObject { } + public abstract partial class MessageAction : ITLObject { } [TLDef(0xB6AEF7B0)] //messageActionEmpty#b6aef7b0 = MessageAction - public class MessageActionEmpty : MessageAction { } + public partial class MessageActionEmpty : MessageAction { } [TLDef(0xA6638B9A)] //messageActionChatCreate#a6638b9a title:string users:Vector = MessageAction - public class MessageActionChatCreate : MessageAction + public partial class MessageActionChatCreate : MessageAction { public string title; public int[] users; } [TLDef(0xB5A1CE5A)] //messageActionChatEditTitle#b5a1ce5a title:string = MessageAction - public class MessageActionChatEditTitle : MessageAction { public string title; } + public partial class MessageActionChatEditTitle : MessageAction { public string title; } [TLDef(0x7FCB13A8)] //messageActionChatEditPhoto#7fcb13a8 photo:Photo = MessageAction - public class MessageActionChatEditPhoto : MessageAction { public PhotoBase photo; } + public partial class MessageActionChatEditPhoto : MessageAction { public PhotoBase photo; } [TLDef(0x95E3FBEF)] //messageActionChatDeletePhoto#95e3fbef = MessageAction - public class MessageActionChatDeletePhoto : MessageAction { } + public partial class MessageActionChatDeletePhoto : MessageAction { } [TLDef(0x488A7337)] //messageActionChatAddUser#488a7337 users:Vector = MessageAction - public class MessageActionChatAddUser : MessageAction { public int[] users; } + public partial class MessageActionChatAddUser : MessageAction { public int[] users; } [TLDef(0xB2AE9B0C)] //messageActionChatDeleteUser#b2ae9b0c user_id:int = MessageAction - public class MessageActionChatDeleteUser : MessageAction { public int user_id; } + public partial class MessageActionChatDeleteUser : MessageAction { public int user_id; } [TLDef(0xF89CF5E8)] //messageActionChatJoinedByLink#f89cf5e8 inviter_id:int = MessageAction - public class MessageActionChatJoinedByLink : MessageAction { public int inviter_id; } + public partial class MessageActionChatJoinedByLink : MessageAction { public int inviter_id; } [TLDef(0x95D2AC92)] //messageActionChannelCreate#95d2ac92 title:string = MessageAction - public class MessageActionChannelCreate : MessageAction { public string title; } + public partial class MessageActionChannelCreate : MessageAction { public string title; } [TLDef(0x51BDB021)] //messageActionChatMigrateTo#51bdb021 channel_id:int = MessageAction - public class MessageActionChatMigrateTo : MessageAction { public int channel_id; } + public partial class MessageActionChatMigrateTo : MessageAction { public int channel_id; } [TLDef(0xB055EAEE)] //messageActionChannelMigrateFrom#b055eaee title:string chat_id:int = MessageAction - public class MessageActionChannelMigrateFrom : MessageAction + public partial class MessageActionChannelMigrateFrom : MessageAction { public string title; public int chat_id; } [TLDef(0x94BD38ED)] //messageActionPinMessage#94bd38ed = MessageAction - public class MessageActionPinMessage : MessageAction { } + public partial class MessageActionPinMessage : MessageAction { } [TLDef(0x9FBAB604)] //messageActionHistoryClear#9fbab604 = MessageAction - public class MessageActionHistoryClear : MessageAction { } + public partial class MessageActionHistoryClear : MessageAction { } [TLDef(0x92A72876)] //messageActionGameScore#92a72876 game_id:long score:int = MessageAction - public class MessageActionGameScore : MessageAction + public partial class MessageActionGameScore : MessageAction { public long game_id; public int score; } [TLDef(0x8F31B327)] //messageActionPaymentSentMe#8f31b327 flags:# currency:string total_amount:long payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string charge:PaymentCharge = MessageAction - public class MessageActionPaymentSentMe : MessageAction + public partial class MessageActionPaymentSentMe : MessageAction { [Flags] public enum Flags { has_info = 0x1, has_shipping_option_id = 0x2 } public Flags flags; @@ -742,13 +742,13 @@ namespace TL public PaymentCharge charge; } [TLDef(0x40699CD0)] //messageActionPaymentSent#40699cd0 currency:string total_amount:long = MessageAction - public class MessageActionPaymentSent : MessageAction + public partial class MessageActionPaymentSent : MessageAction { public string currency; public long total_amount; } [TLDef(0x80E11A7F)] //messageActionPhoneCall#80e11a7f flags:# video:flags.2?true call_id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = MessageAction - public class MessageActionPhoneCall : MessageAction + public partial class MessageActionPhoneCall : MessageAction { [Flags] public enum Flags { has_reason = 0x1, has_duration = 0x2, video = 0x4 } public Flags flags; @@ -757,32 +757,32 @@ namespace TL [IfFlag(1)] public int duration; } [TLDef(0x4792929B)] //messageActionScreenshotTaken#4792929b = MessageAction - public class MessageActionScreenshotTaken : MessageAction { } + public partial class MessageActionScreenshotTaken : MessageAction { } [TLDef(0xFAE69F56)] //messageActionCustomAction#fae69f56 message:string = MessageAction - public class MessageActionCustomAction : MessageAction { public string message; } + public partial class MessageActionCustomAction : MessageAction { public string message; } [TLDef(0xABE9AFFE)] //messageActionBotAllowed#abe9affe domain:string = MessageAction - public class MessageActionBotAllowed : MessageAction { public string domain; } + public partial class MessageActionBotAllowed : MessageAction { public string domain; } [TLDef(0x1B287353)] //messageActionSecureValuesSentMe#1b287353 values:Vector credentials:SecureCredentialsEncrypted = MessageAction - public class MessageActionSecureValuesSentMe : MessageAction + public partial class MessageActionSecureValuesSentMe : MessageAction { public SecureValue[] values; public SecureCredentialsEncrypted credentials; } [TLDef(0xD95C6154)] //messageActionSecureValuesSent#d95c6154 types:Vector = MessageAction - public class MessageActionSecureValuesSent : MessageAction { public SecureValueType[] types; } + public partial class MessageActionSecureValuesSent : MessageAction { public SecureValueType[] types; } [TLDef(0xF3F25F76)] //messageActionContactSignUp#f3f25f76 = MessageAction - public class MessageActionContactSignUp : MessageAction { } + public partial class MessageActionContactSignUp : MessageAction { } [TLDef(0x98E0D697)] //messageActionGeoProximityReached#98e0d697 from_id:Peer to_id:Peer distance:int = MessageAction - public class MessageActionGeoProximityReached : MessageAction + public partial class MessageActionGeoProximityReached : MessageAction { public Peer from_id; public Peer to_id; public int distance; } - public abstract class DialogBase : ITLObject { } + public abstract partial class DialogBase : ITLObject { } [TLDef(0x2C171F72)] //dialog#2c171f72 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog - public class Dialog : DialogBase + public partial class Dialog : DialogBase { [Flags] public enum Flags { has_pts = 0x1, has_draft = 0x2, pinned = 0x4, unread_mark = 0x8, has_folder_id = 0x10 } public Flags flags; @@ -798,7 +798,7 @@ namespace TL [IfFlag(4)] public int folder_id; } [TLDef(0x71BD134C)] //dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog - public class DialogFolder : DialogBase + public partial class DialogFolder : DialogBase { [Flags] public enum Flags { pinned = 0x4 } public Flags flags; @@ -811,11 +811,11 @@ namespace TL public int unread_unmuted_messages_count; } - public abstract class PhotoBase : ITLObject { } + public abstract partial class PhotoBase : ITLObject { } [TLDef(0x2331B22D)] //photoEmpty#2331b22d id:long = Photo - public class PhotoEmpty : PhotoBase { public long id; } + public partial class PhotoEmpty : PhotoBase { public long id; } [TLDef(0xFB197A65)] //photo#fb197a65 flags:# has_stickers:flags.0?true id:long access_hash:long file_reference:bytes date:int sizes:Vector video_sizes:flags.1?Vector dc_id:int = Photo - public class Photo : PhotoBase + public partial class Photo : PhotoBase { [Flags] public enum Flags { has_stickers = 0x1, has_video_sizes = 0x2 } public Flags flags; @@ -828,11 +828,11 @@ namespace TL public int dc_id; } - public abstract class PhotoSizeBase : ITLObject { } + public abstract partial class PhotoSizeBase : ITLObject { } [TLDef(0x0E17E23C)] //photoSizeEmpty#0e17e23c type:string = PhotoSize - public class PhotoSizeEmpty : PhotoSizeBase { public string type; } + public partial class PhotoSizeEmpty : PhotoSizeBase { public string type; } [TLDef(0x77BFB61B)] //photoSize#77bfb61b type:string location:FileLocation w:int h:int size:int = PhotoSize - public class PhotoSize : PhotoSizeBase + public partial class PhotoSize : PhotoSizeBase { public string type; public FileLocation location; @@ -841,7 +841,7 @@ namespace TL public int size; } [TLDef(0xE9A734FA)] //photoCachedSize#e9a734fa type:string location:FileLocation w:int h:int bytes:bytes = PhotoSize - public class PhotoCachedSize : PhotoSizeBase + public partial class PhotoCachedSize : PhotoSizeBase { public string type; public FileLocation location; @@ -850,13 +850,13 @@ namespace TL public byte[] bytes; } [TLDef(0xE0B0BC2E)] //photoStrippedSize#e0b0bc2e type:string bytes:bytes = PhotoSize - public class PhotoStrippedSize : PhotoSizeBase + public partial class PhotoStrippedSize : PhotoSizeBase { public string type; public byte[] bytes; } [TLDef(0x5AA86A51)] //photoSizeProgressive#5aa86a51 type:string location:FileLocation w:int h:int sizes:Vector = PhotoSize - public class PhotoSizeProgressive : PhotoSizeBase + public partial class PhotoSizeProgressive : PhotoSizeBase { public string type; public FileLocation location; @@ -865,17 +865,17 @@ namespace TL public int[] sizes; } [TLDef(0xD8214D41)] //photoPathSize#d8214d41 type:string bytes:bytes = PhotoSize - public class PhotoPathSize : PhotoSizeBase + public partial class PhotoPathSize : PhotoSizeBase { public string type; public byte[] bytes; } - public abstract class GeoPointBase : ITLObject { } + public abstract partial class GeoPointBase : ITLObject { } [TLDef(0x1117DD5F)] //geoPointEmpty#1117dd5f = GeoPoint - public class GeoPointEmpty : GeoPointBase { } + public partial class GeoPointEmpty : GeoPointBase { } [TLDef(0xB2A2F663)] //geoPoint#b2a2f663 flags:# long:double lat:double access_hash:long accuracy_radius:flags.0?int = GeoPoint - public class GeoPoint : GeoPointBase + public partial class GeoPoint : GeoPointBase { [Flags] public enum Flags { has_accuracy_radius = 0x1 } public Flags flags; @@ -886,7 +886,7 @@ namespace TL } [TLDef(0x5E002502)] //auth.sentCode#5e002502 flags:# type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode - public class Auth_SentCode : ITLObject + public partial class Auth_SentCode : ITLObject { [Flags] public enum Flags { has_next_type = 0x2, has_timeout = 0x4 } public Flags flags; @@ -896,9 +896,9 @@ namespace TL [IfFlag(2)] public int timeout; } - public abstract class Auth_AuthorizationBase : ITLObject { } + public abstract partial class Auth_AuthorizationBase : ITLObject { } [TLDef(0xCD050916)] //auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization - public class Auth_Authorization : Auth_AuthorizationBase + public partial class Auth_Authorization : Auth_AuthorizationBase { [Flags] public enum Flags { has_tmp_sessions = 0x1 } public Flags flags; @@ -906,7 +906,7 @@ namespace TL public UserBase user; } [TLDef(0x44747E9A)] //auth.authorizationSignUpRequired#44747e9a flags:# terms_of_service:flags.0?help.TermsOfService = auth.Authorization - public class Auth_AuthorizationSignUpRequired : Auth_AuthorizationBase + public partial class Auth_AuthorizationSignUpRequired : Auth_AuthorizationBase { [Flags] public enum Flags { has_terms_of_service = 0x1 } public Flags flags; @@ -914,24 +914,24 @@ namespace TL } [TLDef(0xDF969C2D)] //auth.exportedAuthorization#df969c2d id:int bytes:bytes = auth.ExportedAuthorization - public class Auth_ExportedAuthorization : ITLObject + public partial class Auth_ExportedAuthorization : ITLObject { public int id; public byte[] bytes; } - public abstract class InputNotifyPeerBase : ITLObject { } + public abstract partial class InputNotifyPeerBase : ITLObject { } [TLDef(0xB8BC5B0C)] //inputNotifyPeer#b8bc5b0c peer:InputPeer = InputNotifyPeer - public class InputNotifyPeer : InputNotifyPeerBase { public InputPeer peer; } + public partial class InputNotifyPeer : InputNotifyPeerBase { public InputPeer peer; } [TLDef(0x193B4417)] //inputNotifyUsers#193b4417 = InputNotifyPeer - public class InputNotifyUsers : InputNotifyPeerBase { } + public partial class InputNotifyUsers : InputNotifyPeerBase { } [TLDef(0x4A95E84E)] //inputNotifyChats#4a95e84e = InputNotifyPeer - public class InputNotifyChats : InputNotifyPeerBase { } + public partial class InputNotifyChats : InputNotifyPeerBase { } [TLDef(0xB1DB7C7E)] //inputNotifyBroadcasts#b1db7c7e = InputNotifyPeer - public class InputNotifyBroadcasts : InputNotifyPeerBase { } + public partial class InputNotifyBroadcasts : InputNotifyPeerBase { } [TLDef(0x9C3D198E)] //inputPeerNotifySettings#9c3d198e flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = InputPeerNotifySettings - public class InputPeerNotifySettings : ITLObject + public partial class InputPeerNotifySettings : ITLObject { [Flags] public enum Flags { has_show_previews = 0x1, has_silent = 0x2, has_mute_until = 0x4, has_sound = 0x8 } public Flags flags; @@ -942,7 +942,7 @@ namespace TL } [TLDef(0xAF509D20)] //peerNotifySettings#af509d20 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?string = PeerNotifySettings - public class PeerNotifySettings : ITLObject + public partial class PeerNotifySettings : ITLObject { [Flags] public enum Flags { has_show_previews = 0x1, has_silent = 0x2, has_mute_until = 0x4, has_sound = 0x8 } public Flags flags; @@ -953,7 +953,7 @@ namespace TL } [TLDef(0x733F2961)] //peerSettings#733f2961 flags:# report_spam:flags.0?true add_contact:flags.1?true block_contact:flags.2?true share_contact:flags.3?true need_contacts_exception:flags.4?true report_geo:flags.5?true autoarchived:flags.7?true invite_members:flags.8?true geo_distance:flags.6?int = PeerSettings - public class PeerSettings : ITLObject + public partial class PeerSettings : ITLObject { [Flags] public enum Flags { report_spam = 0x1, add_contact = 0x2, block_contact = 0x4, share_contact = 0x8, need_contacts_exception = 0x10, report_geo = 0x20, has_geo_distance = 0x40, autoarchived = 0x80, invite_members = 0x100 } @@ -961,9 +961,9 @@ namespace TL [IfFlag(6)] public int geo_distance; } - public abstract class WallPaperBase : ITLObject { } + public abstract partial class WallPaperBase : ITLObject { } [TLDef(0xA437C3ED)] //wallPaper#a437c3ed id:long flags:# creator:flags.0?true default:flags.1?true pattern:flags.3?true dark:flags.4?true access_hash:long slug:string document:Document settings:flags.2?WallPaperSettings = WallPaper - public class WallPaper : WallPaperBase + public partial class WallPaper : WallPaperBase { [Flags] public enum Flags { creator = 0x1, default_ = 0x2, has_settings = 0x4, pattern = 0x8, dark = 0x10 } public long id; @@ -974,31 +974,31 @@ namespace TL [IfFlag(2)] public WallPaperSettings settings; } [TLDef(0x8AF40B25)] //wallPaperNoFile#8af40b25 flags:# default:flags.1?true dark:flags.4?true settings:flags.2?WallPaperSettings = WallPaper - public class WallPaperNoFile : WallPaperBase + public partial class WallPaperNoFile : WallPaperBase { [Flags] public enum Flags { default_ = 0x2, has_settings = 0x4, dark = 0x10 } public Flags flags; [IfFlag(2)] public WallPaperSettings settings; } - public abstract class ReportReason : ITLObject { } + public abstract partial class ReportReason : ITLObject { } [TLDef(0x58DBCAB8)] //inputReportReasonSpam#58dbcab8 = ReportReason - public class InputReportReasonSpam : ReportReason { } + public partial class InputReportReasonSpam : ReportReason { } [TLDef(0x1E22C78D)] //inputReportReasonViolence#1e22c78d = ReportReason - public class InputReportReasonViolence : ReportReason { } + public partial class InputReportReasonViolence : ReportReason { } [TLDef(0x2E59D922)] //inputReportReasonPornography#2e59d922 = ReportReason - public class InputReportReasonPornography : ReportReason { } + public partial class InputReportReasonPornography : ReportReason { } [TLDef(0xADF44EE3)] //inputReportReasonChildAbuse#adf44ee3 = ReportReason - public class InputReportReasonChildAbuse : ReportReason { } + public partial class InputReportReasonChildAbuse : ReportReason { } [TLDef(0xE1746D0A)] //inputReportReasonOther#e1746d0a text:string = ReportReason - public class InputReportReasonOther : ReportReason { public string text; } + public partial class InputReportReasonOther : ReportReason { public string text; } [TLDef(0x9B89F93A)] //inputReportReasonCopyright#9b89f93a = ReportReason - public class InputReportReasonCopyright : ReportReason { } + public partial class InputReportReasonCopyright : ReportReason { } [TLDef(0xDBD4FEED)] //inputReportReasonGeoIrrelevant#dbd4feed = ReportReason - public class InputReportReasonGeoIrrelevant : ReportReason { } + public partial class InputReportReasonGeoIrrelevant : ReportReason { } [TLDef(0xEDF17C12)] //userFull#edf17c12 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true user:User about:flags.1?string settings:PeerSettings profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int = UserFull - public class UserFull : ITLObject + public partial class UserFull : ITLObject { [Flags] public enum Flags { blocked = 0x1, has_about = 0x2, has_profile_photo = 0x4, has_bot_info = 0x8, phone_calls_available = 0x10, phone_calls_private = 0x20, has_pinned_msg_id = 0x40, can_pin_message = 0x80, @@ -1016,31 +1016,31 @@ namespace TL } [TLDef(0xF911C994)] //contact#f911c994 user_id:int mutual:Bool = Contact - public class Contact : ITLObject + public partial class Contact : ITLObject { public int user_id; public bool mutual; } [TLDef(0xD0028438)] //importedContact#d0028438 user_id:int client_id:long = ImportedContact - public class ImportedContact : ITLObject + public partial class ImportedContact : ITLObject { public int user_id; public long client_id; } [TLDef(0xD3680C61)] //contactStatus#d3680c61 user_id:int status:UserStatus = ContactStatus - public class ContactStatus : ITLObject + public partial class ContactStatus : ITLObject { public int user_id; public UserStatus status; } - public abstract class Contacts_ContactsBase : ITLObject { } + public abstract partial class Contacts_ContactsBase : ITLObject { } [TLDef(0xB74BA9D2)] //contacts.contactsNotModified#b74ba9d2 = contacts.Contacts - public class Contacts_ContactsNotModified : Contacts_ContactsBase { } + public partial class Contacts_ContactsNotModified : Contacts_ContactsBase { } [TLDef(0xEAE87E42)] //contacts.contacts#eae87e42 contacts:Vector saved_count:int users:Vector = contacts.Contacts - public class Contacts_Contacts : Contacts_ContactsBase + public partial class Contacts_Contacts : Contacts_ContactsBase { public Contact[] contacts; public int saved_count; @@ -1048,7 +1048,7 @@ namespace TL } [TLDef(0x77D01C3B)] //contacts.importedContacts#77d01c3b imported:Vector popular_invites:Vector retry_contacts:Vector users:Vector = contacts.ImportedContacts - public class Contacts_ImportedContacts : ITLObject + public partial class Contacts_ImportedContacts : ITLObject { public ImportedContact[] imported; public PopularContact[] popular_invites; @@ -1056,16 +1056,16 @@ namespace TL public UserBase[] users; } - public abstract class Contacts_BlockedBase : ITLObject { } + public abstract partial class Contacts_BlockedBase : ITLObject { } [TLDef(0x0ADE1591)] //contacts.blocked#0ade1591 blocked:Vector chats:Vector users:Vector = contacts.Blocked - public class Contacts_Blocked : Contacts_BlockedBase + public partial class Contacts_Blocked : Contacts_BlockedBase { public PeerBlocked[] blocked; public ChatBase[] chats; public UserBase[] users; } [TLDef(0xE1664194)] //contacts.blockedSlice#e1664194 count:int blocked:Vector chats:Vector users:Vector = contacts.Blocked - public class Contacts_BlockedSlice : Contacts_BlockedBase + public partial class Contacts_BlockedSlice : Contacts_BlockedBase { public int count; public PeerBlocked[] blocked; @@ -1073,9 +1073,9 @@ namespace TL public UserBase[] users; } - public abstract class Messages_DialogsBase : ITLObject { } + public abstract partial class Messages_DialogsBase : ITLObject { } [TLDef(0x15BA6C40)] //messages.dialogs#15ba6c40 dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs - public class Messages_Dialogs : Messages_DialogsBase + public partial class Messages_Dialogs : Messages_DialogsBase { public DialogBase[] dialogs; public MessageBase[] messages; @@ -1083,7 +1083,7 @@ namespace TL public UserBase[] users; } [TLDef(0x71E094F3)] //messages.dialogsSlice#71e094f3 count:int dialogs:Vector messages:Vector chats:Vector users:Vector = messages.Dialogs - public class Messages_DialogsSlice : Messages_DialogsBase + public partial class Messages_DialogsSlice : Messages_DialogsBase { public int count; public DialogBase[] dialogs; @@ -1092,18 +1092,18 @@ namespace TL public UserBase[] users; } [TLDef(0xF0E3E596)] //messages.dialogsNotModified#f0e3e596 count:int = messages.Dialogs - public class Messages_DialogsNotModified : Messages_DialogsBase { public int count; } + public partial class Messages_DialogsNotModified : Messages_DialogsBase { public int count; } - public abstract class Messages_MessagesBase : ITLObject { } + public abstract partial class Messages_MessagesBase : ITLObject { } [TLDef(0x8C718E87)] //messages.messages#8c718e87 messages:Vector chats:Vector users:Vector = messages.Messages - public class Messages_Messages : Messages_MessagesBase + public partial class Messages_Messages : Messages_MessagesBase { public MessageBase[] messages; public ChatBase[] chats; public UserBase[] users; } [TLDef(0x3A54685E)] //messages.messagesSlice#3a54685e flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int messages:Vector chats:Vector users:Vector = messages.Messages - public class Messages_MessagesSlice : Messages_MessagesBase + public partial class Messages_MessagesSlice : Messages_MessagesBase { [Flags] public enum Flags { has_next_rate = 0x1, inexact = 0x2, has_offset_id_offset = 0x4 } public Flags flags; @@ -1115,7 +1115,7 @@ namespace TL public UserBase[] users; } [TLDef(0x64479808)] //messages.channelMessages#64479808 flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector chats:Vector users:Vector = messages.Messages - public class Messages_ChannelMessages : Messages_MessagesBase + public partial class Messages_ChannelMessages : Messages_MessagesBase { [Flags] public enum Flags { inexact = 0x2, has_offset_id_offset = 0x4 } public Flags flags; @@ -1127,20 +1127,20 @@ namespace TL public UserBase[] users; } [TLDef(0x74535F21)] //messages.messagesNotModified#74535f21 count:int = messages.Messages - public class Messages_MessagesNotModified : Messages_MessagesBase { public int count; } + public partial class Messages_MessagesNotModified : Messages_MessagesBase { public int count; } - public abstract class Messages_ChatsBase : ITLObject { } + public abstract partial class Messages_ChatsBase : ITLObject { } [TLDef(0x64FF9FD5)] //messages.chats#64ff9fd5 chats:Vector = messages.Chats - public class Messages_Chats : Messages_ChatsBase { public ChatBase[] chats; } + public partial class Messages_Chats : Messages_ChatsBase { public ChatBase[] chats; } [TLDef(0x9CD81144)] //messages.chatsSlice#9cd81144 count:int chats:Vector = messages.Chats - public class Messages_ChatsSlice : Messages_ChatsBase + public partial class Messages_ChatsSlice : Messages_ChatsBase { public int count; public ChatBase[] chats; } [TLDef(0xE5D7D19C)] //messages.chatFull#e5d7d19c full_chat:ChatFull chats:Vector users:Vector = messages.ChatFull - public class Messages_ChatFull : ITLObject + public partial class Messages_ChatFull : ITLObject { public ChatFullBase full_chat; public ChatBase[] chats; @@ -1148,97 +1148,97 @@ namespace TL } [TLDef(0xB45C69D1)] //messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory - public class Messages_AffectedHistory : ITLObject + public partial class Messages_AffectedHistory : ITLObject { public int pts; public int pts_count; public int offset; } - public abstract class MessagesFilter : ITLObject { } + public abstract partial class MessagesFilter : ITLObject { } [TLDef(0x57E2F66C)] //inputMessagesFilterEmpty#57e2f66c = MessagesFilter - public class InputMessagesFilterEmpty : MessagesFilter { } + public partial class InputMessagesFilterEmpty : MessagesFilter { } [TLDef(0x9609A51C)] //inputMessagesFilterPhotos#9609a51c = MessagesFilter - public class InputMessagesFilterPhotos : MessagesFilter { } + public partial class InputMessagesFilterPhotos : MessagesFilter { } [TLDef(0x9FC00E65)] //inputMessagesFilterVideo#9fc00e65 = MessagesFilter - public class InputMessagesFilterVideo : MessagesFilter { } + public partial class InputMessagesFilterVideo : MessagesFilter { } [TLDef(0x56E9F0E4)] //inputMessagesFilterPhotoVideo#56e9f0e4 = MessagesFilter - public class InputMessagesFilterPhotoVideo : MessagesFilter { } + public partial class InputMessagesFilterPhotoVideo : MessagesFilter { } [TLDef(0x9EDDF188)] //inputMessagesFilterDocument#9eddf188 = MessagesFilter - public class InputMessagesFilterDocument : MessagesFilter { } + public partial class InputMessagesFilterDocument : MessagesFilter { } [TLDef(0x7EF0DD87)] //inputMessagesFilterUrl#7ef0dd87 = MessagesFilter - public class InputMessagesFilterUrl : MessagesFilter { } + public partial class InputMessagesFilterUrl : MessagesFilter { } [TLDef(0xFFC86587)] //inputMessagesFilterGif#ffc86587 = MessagesFilter - public class InputMessagesFilterGif : MessagesFilter { } + public partial class InputMessagesFilterGif : MessagesFilter { } [TLDef(0x50F5C392)] //inputMessagesFilterVoice#50f5c392 = MessagesFilter - public class InputMessagesFilterVoice : MessagesFilter { } + public partial class InputMessagesFilterVoice : MessagesFilter { } [TLDef(0x3751B49E)] //inputMessagesFilterMusic#3751b49e = MessagesFilter - public class InputMessagesFilterMusic : MessagesFilter { } + public partial class InputMessagesFilterMusic : MessagesFilter { } [TLDef(0x3A20ECB8)] //inputMessagesFilterChatPhotos#3a20ecb8 = MessagesFilter - public class InputMessagesFilterChatPhotos : MessagesFilter { } + public partial class InputMessagesFilterChatPhotos : MessagesFilter { } [TLDef(0x80C99768)] //inputMessagesFilterPhoneCalls#80c99768 flags:# missed:flags.0?true = MessagesFilter - public class InputMessagesFilterPhoneCalls : MessagesFilter + public partial class InputMessagesFilterPhoneCalls : MessagesFilter { [Flags] public enum Flags { missed = 0x1 } public Flags flags; } [TLDef(0x7A7C17A4)] //inputMessagesFilterRoundVoice#7a7c17a4 = MessagesFilter - public class InputMessagesFilterRoundVoice : MessagesFilter { } + public partial class InputMessagesFilterRoundVoice : MessagesFilter { } [TLDef(0xB549DA53)] //inputMessagesFilterRoundVideo#b549da53 = MessagesFilter - public class InputMessagesFilterRoundVideo : MessagesFilter { } + public partial class InputMessagesFilterRoundVideo : MessagesFilter { } [TLDef(0xC1F8E69A)] //inputMessagesFilterMyMentions#c1f8e69a = MessagesFilter - public class InputMessagesFilterMyMentions : MessagesFilter { } + public partial class InputMessagesFilterMyMentions : MessagesFilter { } [TLDef(0xE7026D0D)] //inputMessagesFilterGeo#e7026d0d = MessagesFilter - public class InputMessagesFilterGeo : MessagesFilter { } + public partial class InputMessagesFilterGeo : MessagesFilter { } [TLDef(0xE062DB83)] //inputMessagesFilterContacts#e062db83 = MessagesFilter - public class InputMessagesFilterContacts : MessagesFilter { } + public partial class InputMessagesFilterContacts : MessagesFilter { } [TLDef(0x1BB00451)] //inputMessagesFilterPinned#1bb00451 = MessagesFilter - public class InputMessagesFilterPinned : MessagesFilter { } + public partial class InputMessagesFilterPinned : MessagesFilter { } - public abstract class Update : ITLObject { } + public abstract partial class Update : ITLObject { } [TLDef(0x1F2B0AFD)] //updateNewMessage#1f2b0afd message:Message pts:int pts_count:int = Update - public class UpdateNewMessage : Update + public partial class UpdateNewMessage : Update { public MessageBase message; public int pts; public int pts_count; } [TLDef(0x4E90BFD6)] //updateMessageID#4e90bfd6 id:int random_id:long = Update - public class UpdateMessageID : Update + public partial class UpdateMessageID : Update { public int id; public long random_id; } [TLDef(0xA20DB0E5)] //updateDeleteMessages#a20db0e5 messages:Vector pts:int pts_count:int = Update - public class UpdateDeleteMessages : Update + public partial class UpdateDeleteMessages : Update { public int[] messages; public int pts; public int pts_count; } [TLDef(0x5C486927)] //updateUserTyping#5c486927 user_id:int action:SendMessageAction = Update - public class UpdateUserTyping : Update + public partial class UpdateUserTyping : Update { public int user_id; public SendMessageAction action; } [TLDef(0x9A65EA1F)] //updateChatUserTyping#9a65ea1f chat_id:int user_id:int action:SendMessageAction = Update - public class UpdateChatUserTyping : Update + public partial class UpdateChatUserTyping : Update { public int chat_id; public int user_id; public SendMessageAction action; } [TLDef(0x07761198)] //updateChatParticipants#07761198 participants:ChatParticipants = Update - public class UpdateChatParticipants : Update { public ChatParticipantsBase participants; } + public partial class UpdateChatParticipants : Update { public ChatParticipantsBase participants; } [TLDef(0x1BFBD823)] //updateUserStatus#1bfbd823 user_id:int status:UserStatus = Update - public class UpdateUserStatus : Update + public partial class UpdateUserStatus : Update { public int user_id; public UserStatus status; } [TLDef(0xA7332B73)] //updateUserName#a7332b73 user_id:int first_name:string last_name:string username:string = Update - public class UpdateUserName : Update + public partial class UpdateUserName : Update { public int user_id; public string first_name; @@ -1246,7 +1246,7 @@ namespace TL public string username; } [TLDef(0x95313B0C)] //updateUserPhoto#95313b0c user_id:int date:int photo:UserProfilePhoto previous:Bool = Update - public class UpdateUserPhoto : Update + public partial class UpdateUserPhoto : Update { public int user_id; public DateTime date; @@ -1254,28 +1254,28 @@ namespace TL public bool previous; } [TLDef(0x12BCBD9A)] //updateNewEncryptedMessage#12bcbd9a message:EncryptedMessage qts:int = Update - public class UpdateNewEncryptedMessage : Update + public partial class UpdateNewEncryptedMessage : Update { public EncryptedMessageBase message; public int qts; } [TLDef(0x1710F156)] //updateEncryptedChatTyping#1710f156 chat_id:int = Update - public class UpdateEncryptedChatTyping : Update { public int chat_id; } + public partial class UpdateEncryptedChatTyping : Update { public int chat_id; } [TLDef(0xB4A2E88D)] //updateEncryption#b4a2e88d chat:EncryptedChat date:int = Update - public class UpdateEncryption : Update + public partial class UpdateEncryption : Update { public EncryptedChatBase chat; public DateTime date; } [TLDef(0x38FE25B7)] //updateEncryptedMessagesRead#38fe25b7 chat_id:int max_date:int date:int = Update - public class UpdateEncryptedMessagesRead : Update + public partial class UpdateEncryptedMessagesRead : Update { public int chat_id; public DateTime max_date; public DateTime date; } [TLDef(0xEA4B0E5C)] //updateChatParticipantAdd#ea4b0e5c chat_id:int user_id:int inviter_id:int date:int version:int = Update - public class UpdateChatParticipantAdd : Update + public partial class UpdateChatParticipantAdd : Update { public int chat_id; public int user_id; @@ -1284,22 +1284,22 @@ namespace TL public int version; } [TLDef(0x6E5F8C22)] //updateChatParticipantDelete#6e5f8c22 chat_id:int user_id:int version:int = Update - public class UpdateChatParticipantDelete : Update + public partial class UpdateChatParticipantDelete : Update { public int chat_id; public int user_id; public int version; } [TLDef(0x8E5E9873)] //updateDcOptions#8e5e9873 dc_options:Vector = Update - public class UpdateDcOptions : Update { public DcOption[] dc_options; } + public partial class UpdateDcOptions : Update { public DcOption[] dc_options; } [TLDef(0xBEC268EF)] //updateNotifySettings#bec268ef peer:NotifyPeer notify_settings:PeerNotifySettings = Update - public class UpdateNotifySettings : Update + public partial class UpdateNotifySettings : Update { public NotifyPeerBase peer; public PeerNotifySettings notify_settings; } [TLDef(0xEBE46819)] //updateServiceNotification#ebe46819 flags:# popup:flags.0?true inbox_date:flags.1?int type:string message:string media:MessageMedia entities:Vector = Update - public class UpdateServiceNotification : Update + public partial class UpdateServiceNotification : Update { [Flags] public enum Flags { popup = 0x1, has_inbox_date = 0x2 } public Flags flags; @@ -1310,19 +1310,19 @@ namespace TL public MessageEntity[] entities; } [TLDef(0xEE3B272A)] //updatePrivacy#ee3b272a key:PrivacyKey rules:Vector = Update - public class UpdatePrivacy : Update + public partial class UpdatePrivacy : Update { public PrivacyKey key; public PrivacyRule[] rules; } [TLDef(0x12B9417B)] //updateUserPhone#12b9417b user_id:int phone:string = Update - public class UpdateUserPhone : Update + public partial class UpdateUserPhone : Update { public int user_id; public string phone; } [TLDef(0x9C974FDF)] //updateReadHistoryInbox#9c974fdf flags:# folder_id:flags.0?int peer:Peer max_id:int still_unread_count:int pts:int pts_count:int = Update - public class UpdateReadHistoryInbox : Update + public partial class UpdateReadHistoryInbox : Update { [Flags] public enum Flags { has_folder_id = 0x1 } public Flags flags; @@ -1334,7 +1334,7 @@ namespace TL public int pts_count; } [TLDef(0x2F2F21BF)] //updateReadHistoryOutbox#2f2f21bf peer:Peer max_id:int pts:int pts_count:int = Update - public class UpdateReadHistoryOutbox : Update + public partial class UpdateReadHistoryOutbox : Update { public Peer peer; public int max_id; @@ -1342,21 +1342,21 @@ namespace TL public int pts_count; } [TLDef(0x7F891213)] //updateWebPage#7f891213 webpage:WebPage pts:int pts_count:int = Update - public class UpdateWebPage : Update + public partial class UpdateWebPage : Update { public WebPageBase webpage; public int pts; public int pts_count; } [TLDef(0x68C13933)] //updateReadMessagesContents#68c13933 messages:Vector pts:int pts_count:int = Update - public class UpdateReadMessagesContents : Update + public partial class UpdateReadMessagesContents : Update { public int[] messages; public int pts; public int pts_count; } [TLDef(0xEB0467FB)] //updateChannelTooLong#eb0467fb flags:# channel_id:int pts:flags.0?int = Update - public class UpdateChannelTooLong : Update + public partial class UpdateChannelTooLong : Update { [Flags] public enum Flags { has_pts = 0x1 } public Flags flags; @@ -1364,16 +1364,16 @@ namespace TL [IfFlag(0)] public int pts; } [TLDef(0xB6D45656)] //updateChannel#b6d45656 channel_id:int = Update - public class UpdateChannel : Update { public int channel_id; } + public partial class UpdateChannel : Update { public int channel_id; } [TLDef(0x62BA04D9)] //updateNewChannelMessage#62ba04d9 message:Message pts:int pts_count:int = Update - public class UpdateNewChannelMessage : Update + public partial class UpdateNewChannelMessage : Update { public MessageBase message; public int pts; public int pts_count; } [TLDef(0x330B5424)] //updateReadChannelInbox#330b5424 flags:# folder_id:flags.0?int channel_id:int max_id:int still_unread_count:int pts:int = Update - public class UpdateReadChannelInbox : Update + public partial class UpdateReadChannelInbox : Update { [Flags] public enum Flags { has_folder_id = 0x1 } public Flags flags; @@ -1384,7 +1384,7 @@ namespace TL public int pts; } [TLDef(0xC37521C9)] //updateDeleteChannelMessages#c37521c9 channel_id:int messages:Vector pts:int pts_count:int = Update - public class UpdateDeleteChannelMessages : Update + public partial class UpdateDeleteChannelMessages : Update { public int channel_id; public int[] messages; @@ -1392,14 +1392,14 @@ namespace TL public int pts_count; } [TLDef(0x98A12B4B)] //updateChannelMessageViews#98a12b4b channel_id:int id:int views:int = Update - public class UpdateChannelMessageViews : Update + public partial class UpdateChannelMessageViews : Update { public int channel_id; public int id; public int views; } [TLDef(0xB6901959)] //updateChatParticipantAdmin#b6901959 chat_id:int user_id:int is_admin:Bool version:int = Update - public class UpdateChatParticipantAdmin : Update + public partial class UpdateChatParticipantAdmin : Update { public int chat_id; public int user_id; @@ -1407,20 +1407,20 @@ namespace TL public int version; } [TLDef(0x688A30AA)] //updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update - public class UpdateNewStickerSet : Update { public Messages_StickerSet stickerset; } + public partial class UpdateNewStickerSet : Update { public Messages_StickerSet stickerset; } [TLDef(0x0BB2D201)] //updateStickerSetsOrder#0bb2d201 flags:# masks:flags.0?true order:Vector = Update - public class UpdateStickerSetsOrder : Update + public partial class UpdateStickerSetsOrder : Update { [Flags] public enum Flags { masks = 0x1 } public Flags flags; public long[] order; } [TLDef(0x43AE3DEC)] //updateStickerSets#43ae3dec = Update - public class UpdateStickerSets : Update { } + public partial class UpdateStickerSets : Update { } [TLDef(0x9375341E)] //updateSavedGifs#9375341e = Update - public class UpdateSavedGifs : Update { } + public partial class UpdateSavedGifs : Update { } [TLDef(0x54826690)] //updateBotInlineQuery#54826690 flags:# query_id:long user_id:int query:string geo:flags.0?GeoPoint offset:string = Update - public class UpdateBotInlineQuery : Update + public partial class UpdateBotInlineQuery : Update { [Flags] public enum Flags { has_geo = 0x1 } public Flags flags; @@ -1431,7 +1431,7 @@ namespace TL public string offset; } [TLDef(0x0E48F964)] //updateBotInlineSend#0e48f964 flags:# user_id:int query:string geo:flags.0?GeoPoint id:string msg_id:flags.1?InputBotInlineMessageID = Update - public class UpdateBotInlineSend : Update + public partial class UpdateBotInlineSend : Update { [Flags] public enum Flags { has_geo = 0x1, has_msg_id = 0x2 } public Flags flags; @@ -1442,14 +1442,14 @@ namespace TL [IfFlag(1)] public InputBotInlineMessageID msg_id; } [TLDef(0x1B3F4DF7)] //updateEditChannelMessage#1b3f4df7 message:Message pts:int pts_count:int = Update - public class UpdateEditChannelMessage : Update + public partial class UpdateEditChannelMessage : Update { public MessageBase message; public int pts; public int pts_count; } [TLDef(0xE73547E1)] //updateBotCallbackQuery#e73547e1 flags:# query_id:long user_id:int peer:Peer msg_id:int chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update - public class UpdateBotCallbackQuery : Update + public partial class UpdateBotCallbackQuery : Update { [Flags] public enum Flags { has_data = 0x1, has_game_short_name = 0x2 } public Flags flags; @@ -1462,14 +1462,14 @@ namespace TL [IfFlag(1)] public string game_short_name; } [TLDef(0xE40370A3)] //updateEditMessage#e40370a3 message:Message pts:int pts_count:int = Update - public class UpdateEditMessage : Update + public partial class UpdateEditMessage : Update { public MessageBase message; public int pts; public int pts_count; } [TLDef(0xF9D27A5A)] //updateInlineBotCallbackQuery#f9d27a5a flags:# query_id:long user_id:int msg_id:InputBotInlineMessageID chat_instance:long data:flags.0?bytes game_short_name:flags.1?string = Update - public class UpdateInlineBotCallbackQuery : Update + public partial class UpdateInlineBotCallbackQuery : Update { [Flags] public enum Flags { has_data = 0x1, has_game_short_name = 0x2 } public Flags flags; @@ -1481,27 +1481,27 @@ namespace TL [IfFlag(1)] public string game_short_name; } [TLDef(0x25D6C9C7)] //updateReadChannelOutbox#25d6c9c7 channel_id:int max_id:int = Update - public class UpdateReadChannelOutbox : Update + public partial class UpdateReadChannelOutbox : Update { public int channel_id; public int max_id; } [TLDef(0xEE2BB969)] //updateDraftMessage#ee2bb969 peer:Peer draft:DraftMessage = Update - public class UpdateDraftMessage : Update + public partial class UpdateDraftMessage : Update { public Peer peer; public DraftMessageBase draft; } [TLDef(0x571D2742)] //updateReadFeaturedStickers#571d2742 = Update - public class UpdateReadFeaturedStickers : Update { } + public partial class UpdateReadFeaturedStickers : Update { } [TLDef(0x9A422C20)] //updateRecentStickers#9a422c20 = Update - public class UpdateRecentStickers : Update { } + public partial class UpdateRecentStickers : Update { } [TLDef(0xA229DD06)] //updateConfig#a229dd06 = Update - public class UpdateConfig : Update { } + public partial class UpdateConfig : Update { } [TLDef(0x3354678F)] //updatePtsChanged#3354678f = Update - public class UpdatePtsChanged : Update { } + public partial class UpdatePtsChanged : Update { } [TLDef(0x40771900)] //updateChannelWebPage#40771900 channel_id:int webpage:WebPage pts:int pts_count:int = Update - public class UpdateChannelWebPage : Update + public partial class UpdateChannelWebPage : Update { public int channel_id; public WebPageBase webpage; @@ -1509,7 +1509,7 @@ namespace TL public int pts_count; } [TLDef(0x6E6FE51C)] //updateDialogPinned#6e6fe51c flags:# pinned:flags.0?true folder_id:flags.1?int peer:DialogPeer = Update - public class UpdateDialogPinned : Update + public partial class UpdateDialogPinned : Update { [Flags] public enum Flags { pinned = 0x1, has_folder_id = 0x2 } public Flags flags; @@ -1517,7 +1517,7 @@ namespace TL public DialogPeerBase peer; } [TLDef(0xFA0F3CA2)] //updatePinnedDialogs#fa0f3ca2 flags:# folder_id:flags.1?int order:flags.0?Vector = Update - public class UpdatePinnedDialogs : Update + public partial class UpdatePinnedDialogs : Update { [Flags] public enum Flags { has_order = 0x1, has_folder_id = 0x2 } public Flags flags; @@ -1525,16 +1525,16 @@ namespace TL [IfFlag(0)] public DialogPeerBase[] order; } [TLDef(0x8317C0C3)] //updateBotWebhookJSON#8317c0c3 data:DataJSON = Update - public class UpdateBotWebhookJSON : Update { public DataJSON data; } + public partial class UpdateBotWebhookJSON : Update { public DataJSON data; } [TLDef(0x9B9240A6)] //updateBotWebhookJSONQuery#9b9240a6 query_id:long data:DataJSON timeout:int = Update - public class UpdateBotWebhookJSONQuery : Update + public partial class UpdateBotWebhookJSONQuery : Update { public long query_id; public DataJSON data; public int timeout; } [TLDef(0xE0CDC940)] //updateBotShippingQuery#e0cdc940 query_id:long user_id:int payload:bytes shipping_address:PostAddress = Update - public class UpdateBotShippingQuery : Update + public partial class UpdateBotShippingQuery : Update { public long query_id; public int user_id; @@ -1542,7 +1542,7 @@ namespace TL public PostAddress shipping_address; } [TLDef(0x5D2F3AA9)] //updateBotPrecheckoutQuery#5d2f3aa9 flags:# query_id:long user_id:int payload:bytes info:flags.0?PaymentRequestedInfo shipping_option_id:flags.1?string currency:string total_amount:long = Update - public class UpdateBotPrecheckoutQuery : Update + public partial class UpdateBotPrecheckoutQuery : Update { [Flags] public enum Flags { has_info = 0x1, has_shipping_option_id = 0x2 } public Flags flags; @@ -1555,36 +1555,36 @@ namespace TL public long total_amount; } [TLDef(0xAB0F6B1E)] //updatePhoneCall#ab0f6b1e phone_call:PhoneCall = Update - public class UpdatePhoneCall : Update { public PhoneCallBase phone_call; } + public partial class UpdatePhoneCall : Update { public PhoneCallBase phone_call; } [TLDef(0x46560264)] //updateLangPackTooLong#46560264 lang_code:string = Update - public class UpdateLangPackTooLong : Update { public string lang_code; } + public partial class UpdateLangPackTooLong : Update { public string lang_code; } [TLDef(0x56022F4D)] //updateLangPack#56022f4d difference:LangPackDifference = Update - public class UpdateLangPack : Update { public LangPackDifference difference; } + public partial class UpdateLangPack : Update { public LangPackDifference difference; } [TLDef(0xE511996D)] //updateFavedStickers#e511996d = Update - public class UpdateFavedStickers : Update { } + public partial class UpdateFavedStickers : Update { } [TLDef(0x89893B45)] //updateChannelReadMessagesContents#89893b45 channel_id:int messages:Vector = Update - public class UpdateChannelReadMessagesContents : Update + public partial class UpdateChannelReadMessagesContents : Update { public int channel_id; public int[] messages; } [TLDef(0x7084A7BE)] //updateContactsReset#7084a7be = Update - public class UpdateContactsReset : Update { } + public partial class UpdateContactsReset : Update { } [TLDef(0x70DB6837)] //updateChannelAvailableMessages#70db6837 channel_id:int available_min_id:int = Update - public class UpdateChannelAvailableMessages : Update + public partial class UpdateChannelAvailableMessages : Update { public int channel_id; public int available_min_id; } [TLDef(0xE16459C3)] //updateDialogUnreadMark#e16459c3 flags:# unread:flags.0?true peer:DialogPeer = Update - public class UpdateDialogUnreadMark : Update + public partial class UpdateDialogUnreadMark : Update { [Flags] public enum Flags { unread = 0x1 } public Flags flags; public DialogPeerBase peer; } [TLDef(0xACA1657B)] //updateMessagePoll#aca1657b flags:# poll_id:long poll:flags.0?Poll results:PollResults = Update - public class UpdateMessagePoll : Update + public partial class UpdateMessagePoll : Update { [Flags] public enum Flags { has_poll = 0x1 } public Flags flags; @@ -1593,54 +1593,54 @@ namespace TL public PollResults results; } [TLDef(0x54C01850)] //updateChatDefaultBannedRights#54c01850 peer:Peer default_banned_rights:ChatBannedRights version:int = Update - public class UpdateChatDefaultBannedRights : Update + public partial class UpdateChatDefaultBannedRights : Update { public Peer peer; public ChatBannedRights default_banned_rights; public int version; } [TLDef(0x19360DC0)] //updateFolderPeers#19360dc0 folder_peers:Vector pts:int pts_count:int = Update - public class UpdateFolderPeers : Update + public partial class UpdateFolderPeers : Update { public FolderPeer[] folder_peers; public int pts; public int pts_count; } [TLDef(0x6A7E7366)] //updatePeerSettings#6a7e7366 peer:Peer settings:PeerSettings = Update - public class UpdatePeerSettings : Update + public partial class UpdatePeerSettings : Update { public Peer peer; public PeerSettings settings; } [TLDef(0xB4AFCFB0)] //updatePeerLocated#b4afcfb0 peers:Vector = Update - public class UpdatePeerLocated : Update { public PeerLocatedBase[] peers; } + public partial class UpdatePeerLocated : Update { public PeerLocatedBase[] peers; } [TLDef(0x39A51DFB)] //updateNewScheduledMessage#39a51dfb message:Message = Update - public class UpdateNewScheduledMessage : Update { public MessageBase message; } + public partial class UpdateNewScheduledMessage : Update { public MessageBase message; } [TLDef(0x90866CEE)] //updateDeleteScheduledMessages#90866cee peer:Peer messages:Vector = Update - public class UpdateDeleteScheduledMessages : Update + public partial class UpdateDeleteScheduledMessages : Update { public Peer peer; public int[] messages; } [TLDef(0x8216FBA3)] //updateTheme#8216fba3 theme:Theme = Update - public class UpdateTheme : Update { public Theme theme; } + public partial class UpdateTheme : Update { public Theme theme; } [TLDef(0x871FB939)] //updateGeoLiveViewed#871fb939 peer:Peer msg_id:int = Update - public class UpdateGeoLiveViewed : Update + public partial class UpdateGeoLiveViewed : Update { public Peer peer; public int msg_id; } [TLDef(0x564FE691)] //updateLoginToken#564fe691 = Update - public class UpdateLoginToken : Update { } + public partial class UpdateLoginToken : Update { } [TLDef(0x42F88F2C)] //updateMessagePollVote#42f88f2c poll_id:long user_id:int options:Vector = Update - public class UpdateMessagePollVote : Update + public partial class UpdateMessagePollVote : Update { public long poll_id; public int user_id; public byte[][] options; } [TLDef(0x26FFDE7D)] //updateDialogFilter#26ffde7d flags:# id:int filter:flags.0?DialogFilter = Update - public class UpdateDialogFilter : Update + public partial class UpdateDialogFilter : Update { [Flags] public enum Flags { has_filter = 0x1 } public Flags flags; @@ -1648,24 +1648,24 @@ namespace TL [IfFlag(0)] public DialogFilter filter; } [TLDef(0xA5D72105)] //updateDialogFilterOrder#a5d72105 order:Vector = Update - public class UpdateDialogFilterOrder : Update { public int[] order; } + public partial class UpdateDialogFilterOrder : Update { public int[] order; } [TLDef(0x3504914F)] //updateDialogFilters#3504914f = Update - public class UpdateDialogFilters : Update { } + public partial class UpdateDialogFilters : Update { } [TLDef(0x2661BF09)] //updatePhoneCallSignalingData#2661bf09 phone_call_id:long data:bytes = Update - public class UpdatePhoneCallSignalingData : Update + public partial class UpdatePhoneCallSignalingData : Update { public long phone_call_id; public byte[] data; } [TLDef(0x6E8A84DF)] //updateChannelMessageForwards#6e8a84df channel_id:int id:int forwards:int = Update - public class UpdateChannelMessageForwards : Update + public partial class UpdateChannelMessageForwards : Update { public int channel_id; public int id; public int forwards; } [TLDef(0x1CC7DE54)] //updateReadChannelDiscussionInbox#1cc7de54 flags:# channel_id:int top_msg_id:int read_max_id:int broadcast_id:flags.0?int broadcast_post:flags.0?int = Update - public class UpdateReadChannelDiscussionInbox : Update + public partial class UpdateReadChannelDiscussionInbox : Update { [Flags] public enum Flags { has_broadcast_id = 0x1 } public Flags flags; @@ -1676,20 +1676,20 @@ namespace TL [IfFlag(0)] public int broadcast_post; } [TLDef(0x4638A26C)] //updateReadChannelDiscussionOutbox#4638a26c channel_id:int top_msg_id:int read_max_id:int = Update - public class UpdateReadChannelDiscussionOutbox : Update + public partial class UpdateReadChannelDiscussionOutbox : Update { public int channel_id; public int top_msg_id; public int read_max_id; } [TLDef(0x246A4B22)] //updatePeerBlocked#246a4b22 peer_id:Peer blocked:Bool = Update - public class UpdatePeerBlocked : Update + public partial class UpdatePeerBlocked : Update { public Peer peer_id; public bool blocked; } [TLDef(0xFF2ABE9F)] //updateChannelUserTyping#ff2abe9f flags:# channel_id:int top_msg_id:flags.0?int user_id:int action:SendMessageAction = Update - public class UpdateChannelUserTyping : Update + public partial class UpdateChannelUserTyping : Update { [Flags] public enum Flags { has_top_msg_id = 0x1 } public Flags flags; @@ -1699,7 +1699,7 @@ namespace TL public SendMessageAction action; } [TLDef(0xED85EAB5)] //updatePinnedMessages#ed85eab5 flags:# pinned:flags.0?true peer:Peer messages:Vector pts:int pts_count:int = Update - public class UpdatePinnedMessages : Update + public partial class UpdatePinnedMessages : Update { [Flags] public enum Flags { pinned = 0x1 } public Flags flags; @@ -1709,7 +1709,7 @@ namespace TL public int pts_count; } [TLDef(0x8588878B)] //updatePinnedChannelMessages#8588878b flags:# pinned:flags.0?true channel_id:int messages:Vector pts:int pts_count:int = Update - public class UpdatePinnedChannelMessages : Update + public partial class UpdatePinnedChannelMessages : Update { [Flags] public enum Flags { pinned = 0x1 } public Flags flags; @@ -1720,7 +1720,7 @@ namespace TL } [TLDef(0xA56C2A3E)] //updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State - public class Updates_State : ITLObject + public partial class Updates_State : ITLObject { public int pts; public int qts; @@ -1729,15 +1729,15 @@ namespace TL public int unread_count; } - public abstract class Updates_DifferenceBase : ITLObject { } + public abstract partial class Updates_DifferenceBase : ITLObject { } [TLDef(0x5D75A138)] //updates.differenceEmpty#5d75a138 date:int seq:int = updates.Difference - public class Updates_DifferenceEmpty : Updates_DifferenceBase + public partial class Updates_DifferenceEmpty : Updates_DifferenceBase { public DateTime date; public int seq; } [TLDef(0x00F49CA0)] //updates.difference#00f49ca0 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector state:updates.State = updates.Difference - public class Updates_Difference : Updates_DifferenceBase + public partial class Updates_Difference : Updates_DifferenceBase { public MessageBase[] new_messages; public EncryptedMessageBase[] new_encrypted_messages; @@ -1747,7 +1747,7 @@ namespace TL public Updates_State state; } [TLDef(0xA8FB1981)] //updates.differenceSlice#a8fb1981 new_messages:Vector new_encrypted_messages:Vector other_updates:Vector chats:Vector users:Vector intermediate_state:updates.State = updates.Difference - public class Updates_DifferenceSlice : Updates_DifferenceBase + public partial class Updates_DifferenceSlice : Updates_DifferenceBase { public MessageBase[] new_messages; public EncryptedMessageBase[] new_encrypted_messages; @@ -1757,13 +1757,13 @@ namespace TL public Updates_State intermediate_state; } [TLDef(0x4AFE8F6D)] //updates.differenceTooLong#4afe8f6d pts:int = updates.Difference - public class Updates_DifferenceTooLong : Updates_DifferenceBase { public int pts; } + public partial class Updates_DifferenceTooLong : Updates_DifferenceBase { public int pts; } - public abstract class UpdatesBase : ITLObject { } + public abstract partial class UpdatesBase : ITLObject { } [TLDef(0xE317AF7E)] //updatesTooLong#e317af7e = Updates - public class UpdatesTooLong : UpdatesBase { } + public partial class UpdatesTooLong : UpdatesBase { } [TLDef(0x2296D2C8)] //updateShortMessage#2296d2c8 flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int user_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector = Updates - public class UpdateShortMessage : UpdatesBase + public partial class UpdateShortMessage : UpdatesBase { [Flags] public enum Flags { out_ = 0x2, has_fwd_from = 0x4, has_reply_to = 0x8, mentioned = 0x10, media_unread = 0x20, has_entities = 0x80, has_via_bot_id = 0x800, silent = 0x2000 } @@ -1780,7 +1780,7 @@ namespace TL [IfFlag(7)] public MessageEntity[] entities; } [TLDef(0x402D5DBB)] //updateShortChatMessage#402d5dbb flags:# out:flags.1?true mentioned:flags.4?true media_unread:flags.5?true silent:flags.13?true id:int from_id:int chat_id:int message:string pts:int pts_count:int date:int fwd_from:flags.2?MessageFwdHeader via_bot_id:flags.11?int reply_to:flags.3?MessageReplyHeader entities:flags.7?Vector = Updates - public class UpdateShortChatMessage : UpdatesBase + public partial class UpdateShortChatMessage : UpdatesBase { [Flags] public enum Flags { out_ = 0x2, has_fwd_from = 0x4, has_reply_to = 0x8, mentioned = 0x10, media_unread = 0x20, has_entities = 0x80, has_via_bot_id = 0x800, silent = 0x2000 } @@ -1798,13 +1798,13 @@ namespace TL [IfFlag(7)] public MessageEntity[] entities; } [TLDef(0x78D4DEC1)] //updateShort#78d4dec1 update:Update date:int = Updates - public class UpdateShort : UpdatesBase + public partial class UpdateShort : UpdatesBase { public Update update; public DateTime date; } [TLDef(0x725B04C3)] //updatesCombined#725b04c3 updates:Vector users:Vector chats:Vector date:int seq_start:int seq:int = Updates - public class UpdatesCombined : UpdatesBase + public partial class UpdatesCombined : UpdatesBase { public Update[] updates; public UserBase[] users; @@ -1814,7 +1814,7 @@ namespace TL public int seq; } [TLDef(0x74AE4240)] //updates#74ae4240 updates:Vector users:Vector chats:Vector date:int seq:int = Updates - public class Updates : UpdatesBase + public partial class Updates : UpdatesBase { public Update[] updates; public UserBase[] users; @@ -1823,7 +1823,7 @@ namespace TL public int seq; } [TLDef(0x11F1331C)] //updateShortSentMessage#11f1331c flags:# out:flags.1?true id:int pts:int pts_count:int date:int media:flags.9?MessageMedia entities:flags.7?Vector = Updates - public class UpdateShortSentMessage : UpdatesBase + public partial class UpdateShortSentMessage : UpdatesBase { [Flags] public enum Flags { out_ = 0x2, has_entities = 0x80, has_media = 0x200 } public Flags flags; @@ -1835,15 +1835,15 @@ namespace TL [IfFlag(7)] public MessageEntity[] entities; } - public abstract class Photos_PhotosBase : ITLObject { } + public abstract partial class Photos_PhotosBase : ITLObject { } [TLDef(0x8DCA6AA5)] //photos.photos#8dca6aa5 photos:Vector users:Vector = photos.Photos - public class Photos_Photos : Photos_PhotosBase + public partial class Photos_Photos : Photos_PhotosBase { public PhotoBase[] photos; public UserBase[] users; } [TLDef(0x15051F54)] //photos.photosSlice#15051f54 count:int photos:Vector users:Vector = photos.Photos - public class Photos_PhotosSlice : Photos_PhotosBase + public partial class Photos_PhotosSlice : Photos_PhotosBase { public int count; public PhotoBase[] photos; @@ -1851,22 +1851,22 @@ namespace TL } [TLDef(0x20212CA8)] //photos.photo#20212ca8 photo:Photo users:Vector = photos.Photo - public class Photos_Photo : ITLObject + public partial class Photos_Photo : ITLObject { public PhotoBase photo; public UserBase[] users; } - public abstract class Upload_FileBase : ITLObject { } + public abstract partial class Upload_FileBase : ITLObject { } [TLDef(0x096A18D5)] //upload.file#096a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File - public class Upload_File : Upload_FileBase + public partial class Upload_File : Upload_FileBase { public Storage_FileType type; public int mtime; public byte[] bytes; } [TLDef(0xF18CDA44)] //upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector = upload.File - public class Upload_FileCdnRedirect : Upload_FileBase + public partial class Upload_FileCdnRedirect : Upload_FileBase { public int dc_id; public byte[] file_token; @@ -1876,7 +1876,7 @@ namespace TL } [TLDef(0x18B7A10D)] //dcOption#18b7a10d flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int secret:flags.10?bytes = DcOption - public class DcOption : ITLObject + public partial class DcOption : ITLObject { [Flags] public enum Flags { ipv6 = 0x1, media_only = 0x2, tcpo_only = 0x4, cdn = 0x8, static_ = 0x10, has_secret = 0x400 } public Flags flags; @@ -1887,7 +1887,7 @@ namespace TL } [TLDef(0x330B4067)] //config#330b4067 flags:# phonecalls_enabled:flags.1?true default_p2p_contacts:flags.3?true preload_featured_stickers:flags.4?true ignore_phone_entities:flags.5?true revoke_pm_inbox:flags.6?true blocked_mode:flags.8?true pfs_enabled:flags.13?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector dc_txt_domain_name:string chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int revoke_time_limit:int revoke_pm_time_limit:int rating_e_decay:int stickers_recent_limit:int stickers_faved_limit:int channels_read_media_period:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int pinned_infolder_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string autoupdate_url_prefix:flags.7?string gif_search_username:flags.9?string venue_search_username:flags.10?string img_search_username:flags.11?string static_maps_provider:flags.12?string caption_length_max:int message_length_max:int webfile_dc_id:int suggested_lang_code:flags.2?string lang_pack_version:flags.2?int base_lang_pack_version:flags.2?int = Config - public class Config : ITLObject + public partial class Config : ITLObject { [Flags] public enum Flags { has_tmp_sessions = 0x1, phonecalls_enabled = 0x2, has_suggested_lang_code = 0x4, default_p2p_contacts = 0x8, preload_featured_stickers = 0x10, ignore_phone_entities = 0x20, revoke_pm_inbox = 0x40, @@ -1941,16 +1941,16 @@ namespace TL } [TLDef(0x8E1A1775)] //nearestDc#8e1a1775 country:string this_dc:int nearest_dc:int = NearestDc - public class NearestDc : ITLObject + public partial class NearestDc : ITLObject { public string country; public int this_dc; public int nearest_dc; } - public abstract class Help_AppUpdateBase : ITLObject { } + public abstract partial class Help_AppUpdateBase : ITLObject { } [TLDef(0x1DA7158F)] //help.appUpdate#1da7158f flags:# can_not_skip:flags.0?true id:int version:string text:string entities:Vector document:flags.1?Document url:flags.2?string = help.AppUpdate - public class Help_AppUpdate : Help_AppUpdateBase + public partial class Help_AppUpdate : Help_AppUpdateBase { [Flags] public enum Flags { can_not_skip = 0x1, has_document = 0x2, has_url = 0x4 } public Flags flags; @@ -1962,16 +1962,16 @@ namespace TL [IfFlag(2)] public string url; } [TLDef(0xC45A6536)] //help.noAppUpdate#c45a6536 = help.AppUpdate - public class Help_NoAppUpdate : Help_AppUpdateBase { } + public partial class Help_NoAppUpdate : Help_AppUpdateBase { } [TLDef(0x18CB9F78)] //help.inviteText#18cb9f78 message:string = help.InviteText - public class Help_InviteText : ITLObject { public string message; } + public partial class Help_InviteText : ITLObject { public string message; } - public abstract class EncryptedChatBase : ITLObject { } + public abstract partial class EncryptedChatBase : ITLObject { } [TLDef(0xAB7EC0A0)] //encryptedChatEmpty#ab7ec0a0 id:int = EncryptedChat - public class EncryptedChatEmpty : EncryptedChatBase { public int id; } + public partial class EncryptedChatEmpty : EncryptedChatBase { public int id; } [TLDef(0x3BF703DC)] //encryptedChatWaiting#3bf703dc id:int access_hash:long date:int admin_id:int participant_id:int = EncryptedChat - public class EncryptedChatWaiting : EncryptedChatBase + public partial class EncryptedChatWaiting : EncryptedChatBase { public int id; public long access_hash; @@ -1980,7 +1980,7 @@ namespace TL public int participant_id; } [TLDef(0x62718A82)] //encryptedChatRequested#62718a82 flags:# folder_id:flags.0?int id:int access_hash:long date:int admin_id:int participant_id:int g_a:bytes = EncryptedChat - public class EncryptedChatRequested : EncryptedChatBase + public partial class EncryptedChatRequested : EncryptedChatBase { [Flags] public enum Flags { has_folder_id = 0x1 } public Flags flags; @@ -1993,7 +1993,7 @@ namespace TL public byte[] g_a; } [TLDef(0xFA56CE36)] //encryptedChat#fa56ce36 id:int access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long = EncryptedChat - public class EncryptedChat : EncryptedChatBase + public partial class EncryptedChat : EncryptedChatBase { public int id; public long access_hash; @@ -2004,20 +2004,20 @@ namespace TL public long key_fingerprint; } [TLDef(0x13D6DD27)] //encryptedChatDiscarded#13d6dd27 id:int = EncryptedChat - public class EncryptedChatDiscarded : EncryptedChatBase { public int id; } + public partial class EncryptedChatDiscarded : EncryptedChatBase { public int id; } [TLDef(0xF141B5E1)] //inputEncryptedChat#f141b5e1 chat_id:int access_hash:long = InputEncryptedChat - public class InputEncryptedChat : ITLObject + public partial class InputEncryptedChat : ITLObject { public int chat_id; public long access_hash; } - public abstract class EncryptedFileBase : ITLObject { } + public abstract partial class EncryptedFileBase : ITLObject { } [TLDef(0xC21F497E)] //encryptedFileEmpty#c21f497e = EncryptedFile - public class EncryptedFileEmpty : EncryptedFileBase { } + public partial class EncryptedFileEmpty : EncryptedFileBase { } [TLDef(0x4A70994C)] //encryptedFile#4a70994c id:long access_hash:long size:int dc_id:int key_fingerprint:int = EncryptedFile - public class EncryptedFile : EncryptedFileBase + public partial class EncryptedFile : EncryptedFileBase { public long id; public long access_hash; @@ -2026,11 +2026,11 @@ namespace TL public int key_fingerprint; } - public abstract class InputEncryptedFileBase : ITLObject { } + public abstract partial class InputEncryptedFileBase : ITLObject { } [TLDef(0x1837C364)] //inputEncryptedFileEmpty#1837c364 = InputEncryptedFile - public class InputEncryptedFileEmpty : InputEncryptedFileBase { } + public partial class InputEncryptedFileEmpty : InputEncryptedFileBase { } [TLDef(0x64BD0306)] //inputEncryptedFileUploaded#64bd0306 id:long parts:int md5_checksum:string key_fingerprint:int = InputEncryptedFile - public class InputEncryptedFileUploaded : InputEncryptedFileBase + public partial class InputEncryptedFileUploaded : InputEncryptedFileBase { public long id; public int parts; @@ -2038,22 +2038,22 @@ namespace TL public int key_fingerprint; } [TLDef(0x5A17B5E5)] //inputEncryptedFile#5a17b5e5 id:long access_hash:long = InputEncryptedFile - public class InputEncryptedFile : InputEncryptedFileBase + public partial class InputEncryptedFile : InputEncryptedFileBase { public long id; public long access_hash; } [TLDef(0x2DC173C8)] //inputEncryptedFileBigUploaded#2dc173c8 id:long parts:int key_fingerprint:int = InputEncryptedFile - public class InputEncryptedFileBigUploaded : InputEncryptedFileBase + public partial class InputEncryptedFileBigUploaded : InputEncryptedFileBase { public long id; public int parts; public int key_fingerprint; } - public abstract class EncryptedMessageBase : ITLObject { } + public abstract partial class EncryptedMessageBase : ITLObject { } [TLDef(0xED18C118)] //encryptedMessage#ed18c118 random_id:long chat_id:int date:int bytes:bytes file:EncryptedFile = EncryptedMessage - public class EncryptedMessage : EncryptedMessageBase + public partial class EncryptedMessage : EncryptedMessageBase { public long random_id; public int chat_id; @@ -2062,7 +2062,7 @@ namespace TL public EncryptedFileBase file; } [TLDef(0x23734B06)] //encryptedMessageService#23734b06 random_id:long chat_id:int date:int bytes:bytes = EncryptedMessage - public class EncryptedMessageService : EncryptedMessageBase + public partial class EncryptedMessageService : EncryptedMessageBase { public long random_id; public int chat_id; @@ -2070,11 +2070,11 @@ namespace TL public byte[] bytes; } - public abstract class Messages_DhConfigBase : ITLObject { } + public abstract partial class Messages_DhConfigBase : ITLObject { } [TLDef(0xC0E24635)] //messages.dhConfigNotModified#c0e24635 random:bytes = messages.DhConfig - public class Messages_DhConfigNotModified : Messages_DhConfigBase { public byte[] random; } + public partial class Messages_DhConfigNotModified : Messages_DhConfigBase { public byte[] random; } [TLDef(0x2C221EDD)] //messages.dhConfig#2c221edd g:int p:bytes version:int random:bytes = messages.DhConfig - public class Messages_DhConfig : Messages_DhConfigBase + public partial class Messages_DhConfig : Messages_DhConfigBase { public int g; public byte[] p; @@ -2083,26 +2083,26 @@ namespace TL } [TLDef(0x560F8935)] //messages.sentEncryptedMessage#560f8935 date:int = messages.SentEncryptedMessage - public class Messages_SentEncryptedMessage : ITLObject { public DateTime date; } + public partial class Messages_SentEncryptedMessage : ITLObject { public DateTime date; } [TLDef(0x9493FF32)] //messages.sentEncryptedFile#9493ff32 date:int file:EncryptedFile = messages.SentEncryptedMessage - public class Messages_SentEncryptedFile : Messages_SentEncryptedMessage { public EncryptedFileBase file; } + public partial class Messages_SentEncryptedFile : Messages_SentEncryptedMessage { public EncryptedFileBase file; } - public abstract class InputDocumentBase : ITLObject { } + public abstract partial class InputDocumentBase : ITLObject { } [TLDef(0x72F0EAAE)] //inputDocumentEmpty#72f0eaae = InputDocument - public class InputDocumentEmpty : InputDocumentBase { } + public partial class InputDocumentEmpty : InputDocumentBase { } [TLDef(0x1ABFB575)] //inputDocument#1abfb575 id:long access_hash:long file_reference:bytes = InputDocument - public class InputDocument : InputDocumentBase + public partial class InputDocument : InputDocumentBase { public long id; public long access_hash; public byte[] file_reference; } - public abstract class DocumentBase : ITLObject { } + public abstract partial class DocumentBase : ITLObject { } [TLDef(0x36F8C871)] //documentEmpty#36f8c871 id:long = Document - public class DocumentEmpty : DocumentBase { public long id; } + public partial class DocumentEmpty : DocumentBase { public long id; } [TLDef(0x1E87342B)] //document#1e87342b flags:# id:long access_hash:long file_reference:bytes date:int mime_type:string size:int thumbs:flags.0?Vector video_thumbs:flags.1?Vector dc_id:int attributes:Vector = Document - public class Document : DocumentBase + public partial class Document : DocumentBase { [Flags] public enum Flags { has_thumbs = 0x1, has_video_thumbs = 0x2 } public Flags flags; @@ -2119,52 +2119,52 @@ namespace TL } [TLDef(0x17C6B5F6)] //help.support#17c6b5f6 phone_number:string user:User = help.Support - public class Help_Support : ITLObject + public partial class Help_Support : ITLObject { public string phone_number; public UserBase user; } - public abstract class NotifyPeerBase : ITLObject { } + public abstract partial class NotifyPeerBase : ITLObject { } [TLDef(0x9FD40BD8)] //notifyPeer#9fd40bd8 peer:Peer = NotifyPeer - public class NotifyPeer : NotifyPeerBase { public Peer peer; } + public partial class NotifyPeer : NotifyPeerBase { public Peer peer; } [TLDef(0xB4C83B4C)] //notifyUsers#b4c83b4c = NotifyPeer - public class NotifyUsers : NotifyPeerBase { } + public partial class NotifyUsers : NotifyPeerBase { } [TLDef(0xC007CEC3)] //notifyChats#c007cec3 = NotifyPeer - public class NotifyChats : NotifyPeerBase { } + public partial class NotifyChats : NotifyPeerBase { } [TLDef(0xD612E8EF)] //notifyBroadcasts#d612e8ef = NotifyPeer - public class NotifyBroadcasts : NotifyPeerBase { } + public partial class NotifyBroadcasts : NotifyPeerBase { } - public abstract class SendMessageAction : ITLObject { } + public abstract partial class SendMessageAction : ITLObject { } [TLDef(0x16BF744E)] //sendMessageTypingAction#16bf744e = SendMessageAction - public class SendMessageTypingAction : SendMessageAction { } + public partial class SendMessageTypingAction : SendMessageAction { } [TLDef(0xFD5EC8F5)] //sendMessageCancelAction#fd5ec8f5 = SendMessageAction - public class SendMessageCancelAction : SendMessageAction { } + public partial class SendMessageCancelAction : SendMessageAction { } [TLDef(0xA187D66F)] //sendMessageRecordVideoAction#a187d66f = SendMessageAction - public class SendMessageRecordVideoAction : SendMessageAction { } + public partial class SendMessageRecordVideoAction : SendMessageAction { } [TLDef(0xE9763AEC)] //sendMessageUploadVideoAction#e9763aec progress:int = SendMessageAction - public class SendMessageUploadVideoAction : SendMessageAction { public int progress; } + public partial class SendMessageUploadVideoAction : SendMessageAction { public int progress; } [TLDef(0xD52F73F7)] //sendMessageRecordAudioAction#d52f73f7 = SendMessageAction - public class SendMessageRecordAudioAction : SendMessageAction { } + public partial class SendMessageRecordAudioAction : SendMessageAction { } [TLDef(0xF351D7AB)] //sendMessageUploadAudioAction#f351d7ab progress:int = SendMessageAction - public class SendMessageUploadAudioAction : SendMessageAction { public int progress; } + public partial class SendMessageUploadAudioAction : SendMessageAction { public int progress; } [TLDef(0xD1D34A26)] //sendMessageUploadPhotoAction#d1d34a26 progress:int = SendMessageAction - public class SendMessageUploadPhotoAction : SendMessageAction { public int progress; } + public partial class SendMessageUploadPhotoAction : SendMessageAction { public int progress; } [TLDef(0xAA0CD9E4)] //sendMessageUploadDocumentAction#aa0cd9e4 progress:int = SendMessageAction - public class SendMessageUploadDocumentAction : SendMessageAction { public int progress; } + public partial class SendMessageUploadDocumentAction : SendMessageAction { public int progress; } [TLDef(0x176F8BA1)] //sendMessageGeoLocationAction#176f8ba1 = SendMessageAction - public class SendMessageGeoLocationAction : SendMessageAction { } + public partial class SendMessageGeoLocationAction : SendMessageAction { } [TLDef(0x628CBC6F)] //sendMessageChooseContactAction#628cbc6f = SendMessageAction - public class SendMessageChooseContactAction : SendMessageAction { } + public partial class SendMessageChooseContactAction : SendMessageAction { } [TLDef(0xDD6A8F48)] //sendMessageGamePlayAction#dd6a8f48 = SendMessageAction - public class SendMessageGamePlayAction : SendMessageAction { } + public partial class SendMessageGamePlayAction : SendMessageAction { } [TLDef(0x88F27FBC)] //sendMessageRecordRoundAction#88f27fbc = SendMessageAction - public class SendMessageRecordRoundAction : SendMessageAction { } + public partial class SendMessageRecordRoundAction : SendMessageAction { } [TLDef(0x243E1C66)] //sendMessageUploadRoundAction#243e1c66 progress:int = SendMessageAction - public class SendMessageUploadRoundAction : SendMessageAction { public int progress; } + public partial class SendMessageUploadRoundAction : SendMessageAction { public int progress; } [TLDef(0xB3134D9D)] //contacts.found#b3134d9d my_results:Vector results:Vector chats:Vector users:Vector = contacts.Found - public class Contacts_Found : ITLObject + public partial class Contacts_Found : ITLObject { public Peer[] my_results; public Peer[] results; @@ -2172,80 +2172,80 @@ namespace TL public UserBase[] users; } - public abstract class InputPrivacyKey : ITLObject { } + public abstract partial class InputPrivacyKey : ITLObject { } [TLDef(0x4F96CB18)] //inputPrivacyKeyStatusTimestamp#4f96cb18 = InputPrivacyKey - public class InputPrivacyKeyStatusTimestamp : InputPrivacyKey { } + public partial class InputPrivacyKeyStatusTimestamp : InputPrivacyKey { } [TLDef(0xBDFB0426)] //inputPrivacyKeyChatInvite#bdfb0426 = InputPrivacyKey - public class InputPrivacyKeyChatInvite : InputPrivacyKey { } + public partial class InputPrivacyKeyChatInvite : InputPrivacyKey { } [TLDef(0xFABADC5F)] //inputPrivacyKeyPhoneCall#fabadc5f = InputPrivacyKey - public class InputPrivacyKeyPhoneCall : InputPrivacyKey { } + public partial class InputPrivacyKeyPhoneCall : InputPrivacyKey { } [TLDef(0xDB9E70D2)] //inputPrivacyKeyPhoneP2P#db9e70d2 = InputPrivacyKey - public class InputPrivacyKeyPhoneP2P : InputPrivacyKey { } + public partial class InputPrivacyKeyPhoneP2P : InputPrivacyKey { } [TLDef(0xA4DD4C08)] //inputPrivacyKeyForwards#a4dd4c08 = InputPrivacyKey - public class InputPrivacyKeyForwards : InputPrivacyKey { } + public partial class InputPrivacyKeyForwards : InputPrivacyKey { } [TLDef(0x5719BACC)] //inputPrivacyKeyProfilePhoto#5719bacc = InputPrivacyKey - public class InputPrivacyKeyProfilePhoto : InputPrivacyKey { } + public partial class InputPrivacyKeyProfilePhoto : InputPrivacyKey { } [TLDef(0x0352DAFA)] //inputPrivacyKeyPhoneNumber#0352dafa = InputPrivacyKey - public class InputPrivacyKeyPhoneNumber : InputPrivacyKey { } + public partial class InputPrivacyKeyPhoneNumber : InputPrivacyKey { } [TLDef(0xD1219BDD)] //inputPrivacyKeyAddedByPhone#d1219bdd = InputPrivacyKey - public class InputPrivacyKeyAddedByPhone : InputPrivacyKey { } + public partial class InputPrivacyKeyAddedByPhone : InputPrivacyKey { } - public abstract class PrivacyKey : ITLObject { } + public abstract partial class PrivacyKey : ITLObject { } [TLDef(0xBC2EAB30)] //privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey - public class PrivacyKeyStatusTimestamp : PrivacyKey { } + public partial class PrivacyKeyStatusTimestamp : PrivacyKey { } [TLDef(0x500E6DFA)] //privacyKeyChatInvite#500e6dfa = PrivacyKey - public class PrivacyKeyChatInvite : PrivacyKey { } + public partial class PrivacyKeyChatInvite : PrivacyKey { } [TLDef(0x3D662B7B)] //privacyKeyPhoneCall#3d662b7b = PrivacyKey - public class PrivacyKeyPhoneCall : PrivacyKey { } + public partial class PrivacyKeyPhoneCall : PrivacyKey { } [TLDef(0x39491CC8)] //privacyKeyPhoneP2P#39491cc8 = PrivacyKey - public class PrivacyKeyPhoneP2P : PrivacyKey { } + public partial class PrivacyKeyPhoneP2P : PrivacyKey { } [TLDef(0x69EC56A3)] //privacyKeyForwards#69ec56a3 = PrivacyKey - public class PrivacyKeyForwards : PrivacyKey { } + public partial class PrivacyKeyForwards : PrivacyKey { } [TLDef(0x96151FED)] //privacyKeyProfilePhoto#96151fed = PrivacyKey - public class PrivacyKeyProfilePhoto : PrivacyKey { } + public partial class PrivacyKeyProfilePhoto : PrivacyKey { } [TLDef(0xD19AE46D)] //privacyKeyPhoneNumber#d19ae46d = PrivacyKey - public class PrivacyKeyPhoneNumber : PrivacyKey { } + public partial class PrivacyKeyPhoneNumber : PrivacyKey { } [TLDef(0x42FFD42B)] //privacyKeyAddedByPhone#42ffd42b = PrivacyKey - public class PrivacyKeyAddedByPhone : PrivacyKey { } + public partial class PrivacyKeyAddedByPhone : PrivacyKey { } - public abstract class InputPrivacyRule : ITLObject { } + public abstract partial class InputPrivacyRule : ITLObject { } [TLDef(0x0D09E07B)] //inputPrivacyValueAllowContacts#0d09e07b = InputPrivacyRule - public class InputPrivacyValueAllowContacts : InputPrivacyRule { } + public partial class InputPrivacyValueAllowContacts : InputPrivacyRule { } [TLDef(0x184B35CE)] //inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule - public class InputPrivacyValueAllowAll : InputPrivacyRule { } + public partial class InputPrivacyValueAllowAll : InputPrivacyRule { } [TLDef(0x131CC67F)] //inputPrivacyValueAllowUsers#131cc67f users:Vector = InputPrivacyRule - public class InputPrivacyValueAllowUsers : InputPrivacyRule { public InputUserBase[] users; } + public partial class InputPrivacyValueAllowUsers : InputPrivacyRule { public InputUserBase[] users; } [TLDef(0x0BA52007)] //inputPrivacyValueDisallowContacts#0ba52007 = InputPrivacyRule - public class InputPrivacyValueDisallowContacts : InputPrivacyRule { } + public partial class InputPrivacyValueDisallowContacts : InputPrivacyRule { } [TLDef(0xD66B66C9)] //inputPrivacyValueDisallowAll#d66b66c9 = InputPrivacyRule - public class InputPrivacyValueDisallowAll : InputPrivacyRule { } + public partial class InputPrivacyValueDisallowAll : InputPrivacyRule { } [TLDef(0x90110467)] //inputPrivacyValueDisallowUsers#90110467 users:Vector = InputPrivacyRule - public class InputPrivacyValueDisallowUsers : InputPrivacyRule { public InputUserBase[] users; } + public partial class InputPrivacyValueDisallowUsers : InputPrivacyRule { public InputUserBase[] users; } [TLDef(0x4C81C1BA)] //inputPrivacyValueAllowChatParticipants#4c81c1ba chats:Vector = InputPrivacyRule - public class InputPrivacyValueAllowChatParticipants : InputPrivacyRule { public int[] chats; } + public partial class InputPrivacyValueAllowChatParticipants : InputPrivacyRule { public int[] chats; } [TLDef(0xD82363AF)] //inputPrivacyValueDisallowChatParticipants#d82363af chats:Vector = InputPrivacyRule - public class InputPrivacyValueDisallowChatParticipants : InputPrivacyRule { public int[] chats; } + public partial class InputPrivacyValueDisallowChatParticipants : InputPrivacyRule { public int[] chats; } - public abstract class PrivacyRule : ITLObject { } + public abstract partial class PrivacyRule : ITLObject { } [TLDef(0xFFFE1BAC)] //privacyValueAllowContacts#fffe1bac = PrivacyRule - public class PrivacyValueAllowContacts : PrivacyRule { } + public partial class PrivacyValueAllowContacts : PrivacyRule { } [TLDef(0x65427B82)] //privacyValueAllowAll#65427b82 = PrivacyRule - public class PrivacyValueAllowAll : PrivacyRule { } + public partial class PrivacyValueAllowAll : PrivacyRule { } [TLDef(0x4D5BBE0C)] //privacyValueAllowUsers#4d5bbe0c users:Vector = PrivacyRule - public class PrivacyValueAllowUsers : PrivacyRule { public int[] users; } + public partial class PrivacyValueAllowUsers : PrivacyRule { public int[] users; } [TLDef(0xF888FA1A)] //privacyValueDisallowContacts#f888fa1a = PrivacyRule - public class PrivacyValueDisallowContacts : PrivacyRule { } + public partial class PrivacyValueDisallowContacts : PrivacyRule { } [TLDef(0x8B73E763)] //privacyValueDisallowAll#8b73e763 = PrivacyRule - public class PrivacyValueDisallowAll : PrivacyRule { } + public partial class PrivacyValueDisallowAll : PrivacyRule { } [TLDef(0x0C7F49B7)] //privacyValueDisallowUsers#0c7f49b7 users:Vector = PrivacyRule - public class PrivacyValueDisallowUsers : PrivacyRule { public int[] users; } + public partial class PrivacyValueDisallowUsers : PrivacyRule { public int[] users; } [TLDef(0x18BE796B)] //privacyValueAllowChatParticipants#18be796b chats:Vector = PrivacyRule - public class PrivacyValueAllowChatParticipants : PrivacyRule { public int[] chats; } + public partial class PrivacyValueAllowChatParticipants : PrivacyRule { public int[] chats; } [TLDef(0xACAE0690)] //privacyValueDisallowChatParticipants#acae0690 chats:Vector = PrivacyRule - public class PrivacyValueDisallowChatParticipants : PrivacyRule { public int[] chats; } + public partial class PrivacyValueDisallowChatParticipants : PrivacyRule { public int[] chats; } [TLDef(0x50A04E45)] //account.privacyRules#50a04e45 rules:Vector chats:Vector users:Vector = account.PrivacyRules - public class Account_PrivacyRules : ITLObject + public partial class Account_PrivacyRules : ITLObject { public PrivacyRule[] rules; public ChatBase[] chats; @@ -2253,19 +2253,19 @@ namespace TL } [TLDef(0xB8D0AFDF)] //accountDaysTTL#b8d0afdf days:int = AccountDaysTTL - public class AccountDaysTTL : ITLObject { public int days; } + public partial class AccountDaysTTL : ITLObject { public int days; } - public abstract class DocumentAttribute : ITLObject { } + public abstract partial class DocumentAttribute : ITLObject { } [TLDef(0x6C37C15C)] //documentAttributeImageSize#6c37c15c w:int h:int = DocumentAttribute - public class DocumentAttributeImageSize : DocumentAttribute + public partial class DocumentAttributeImageSize : DocumentAttribute { public int w; public int h; } [TLDef(0x11B58939)] //documentAttributeAnimated#11b58939 = DocumentAttribute - public class DocumentAttributeAnimated : DocumentAttribute { } + public partial class DocumentAttributeAnimated : DocumentAttribute { } [TLDef(0x6319D612)] //documentAttributeSticker#6319d612 flags:# mask:flags.1?true alt:string stickerset:InputStickerSet mask_coords:flags.0?MaskCoords = DocumentAttribute - public class DocumentAttributeSticker : DocumentAttribute + public partial class DocumentAttributeSticker : DocumentAttribute { [Flags] public enum Flags { has_mask_coords = 0x1, mask = 0x2 } public Flags flags; @@ -2274,7 +2274,7 @@ namespace TL [IfFlag(0)] public MaskCoords mask_coords; } [TLDef(0x0EF02CE6)] //documentAttributeVideo#0ef02ce6 flags:# round_message:flags.0?true supports_streaming:flags.1?true duration:int w:int h:int = DocumentAttribute - public class DocumentAttributeVideo : DocumentAttribute + public partial class DocumentAttributeVideo : DocumentAttribute { [Flags] public enum Flags { round_message = 0x1, supports_streaming = 0x2 } public Flags flags; @@ -2283,7 +2283,7 @@ namespace TL public int h; } [TLDef(0x9852F9C6)] //documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute - public class DocumentAttributeAudio : DocumentAttribute + public partial class DocumentAttributeAudio : DocumentAttribute { [Flags] public enum Flags { has_title = 0x1, has_performer = 0x2, has_waveform = 0x4, voice = 0x400 } public Flags flags; @@ -2293,55 +2293,55 @@ namespace TL [IfFlag(2)] public byte[] waveform; } [TLDef(0x15590068)] //documentAttributeFilename#15590068 file_name:string = DocumentAttribute - public class DocumentAttributeFilename : DocumentAttribute { public string file_name; } + public partial class DocumentAttributeFilename : DocumentAttribute { public string file_name; } [TLDef(0x9801D2F7)] //documentAttributeHasStickers#9801d2f7 = DocumentAttribute - public class DocumentAttributeHasStickers : DocumentAttribute { } + public partial class DocumentAttributeHasStickers : DocumentAttribute { } - public abstract class Messages_StickersBase : ITLObject { } + public abstract partial class Messages_StickersBase : ITLObject { } [TLDef(0xF1749A22)] //messages.stickersNotModified#f1749a22 = messages.Stickers - public class Messages_StickersNotModified : Messages_StickersBase { } + public partial class Messages_StickersNotModified : Messages_StickersBase { } [TLDef(0xE4599BBD)] //messages.stickers#e4599bbd hash:int stickers:Vector = messages.Stickers - public class Messages_Stickers : Messages_StickersBase + public partial class Messages_Stickers : Messages_StickersBase { public int hash; public DocumentBase[] stickers; } [TLDef(0x12B299D4)] //stickerPack#12b299d4 emoticon:string documents:Vector = StickerPack - public class StickerPack : ITLObject + public partial class StickerPack : ITLObject { public string emoticon; public long[] documents; } - public abstract class Messages_AllStickersBase : ITLObject { } + public abstract partial class Messages_AllStickersBase : ITLObject { } [TLDef(0xE86602C3)] //messages.allStickersNotModified#e86602c3 = messages.AllStickers - public class Messages_AllStickersNotModified : Messages_AllStickersBase { } + public partial class Messages_AllStickersNotModified : Messages_AllStickersBase { } [TLDef(0xEDFD405F)] //messages.allStickers#edfd405f hash:int sets:Vector = messages.AllStickers - public class Messages_AllStickers : Messages_AllStickersBase + public partial class Messages_AllStickers : Messages_AllStickersBase { public int hash; public StickerSet[] sets; } [TLDef(0x84D19185)] //messages.affectedMessages#84d19185 pts:int pts_count:int = messages.AffectedMessages - public class Messages_AffectedMessages : ITLObject + public partial class Messages_AffectedMessages : ITLObject { public int pts; public int pts_count; } - public abstract class WebPageBase : ITLObject { } + public abstract partial class WebPageBase : ITLObject { } [TLDef(0xEB1477E8)] //webPageEmpty#eb1477e8 id:long = WebPage - public class WebPageEmpty : WebPageBase { public long id; } + public partial class WebPageEmpty : WebPageBase { public long id; } [TLDef(0xC586DA1C)] //webPagePending#c586da1c id:long date:int = WebPage - public class WebPagePending : WebPageBase + public partial class WebPagePending : WebPageBase { public long id; public DateTime date; } [TLDef(0xE89C45B2)] //webPage#e89c45b2 flags:# id:long url:string display_url:string hash:int type:flags.0?string site_name:flags.1?string title:flags.2?string description:flags.3?string photo:flags.4?Photo embed_url:flags.5?string embed_type:flags.5?string embed_width:flags.6?int embed_height:flags.6?int duration:flags.7?int author:flags.8?string document:flags.9?Document cached_page:flags.10?Page attributes:flags.12?Vector = WebPage - public class WebPage : WebPageBase + public partial class WebPage : WebPageBase { [Flags] public enum Flags { has_type = 0x1, has_site_name = 0x2, has_title = 0x4, has_description = 0x8, has_photo = 0x10, has_embed_url = 0x20, has_embed_width = 0x40, has_duration = 0x80, has_author = 0x100, has_document = 0x200, @@ -2367,7 +2367,7 @@ namespace TL [IfFlag(12)] public WebPageAttribute[] attributes; } [TLDef(0x7311CA11)] //webPageNotModified#7311ca11 flags:# cached_page_views:flags.0?int = WebPage - public class WebPageNotModified : WebPageBase + public partial class WebPageNotModified : WebPageBase { [Flags] public enum Flags { has_cached_page_views = 0x1 } public Flags flags; @@ -2375,7 +2375,7 @@ namespace TL } [TLDef(0xAD01D61D)] //authorization#ad01d61d flags:# current:flags.0?true official_app:flags.1?true password_pending:flags.2?true hash:long device_model:string platform:string system_version:string api_id:int app_name:string app_version:string date_created:int date_active:int ip:string country:string region:string = Authorization - public class Authorization : ITLObject + public partial class Authorization : ITLObject { [Flags] public enum Flags { current = 0x1, official_app = 0x2, password_pending = 0x4 } public Flags flags; @@ -2394,10 +2394,10 @@ namespace TL } [TLDef(0x1250ABDE)] //account.authorizations#1250abde authorizations:Vector = account.Authorizations - public class Account_Authorizations : ITLObject { public Authorization[] authorizations; } + public partial class Account_Authorizations : ITLObject { public Authorization[] authorizations; } [TLDef(0xAD2641F8)] //account.password#ad2641f8 flags:# has_recovery:flags.0?true has_secure_values:flags.1?true has_password:flags.2?true current_algo:flags.2?PasswordKdfAlgo srp_B:flags.2?bytes srp_id:flags.2?long hint:flags.3?string email_unconfirmed_pattern:flags.4?string new_algo:PasswordKdfAlgo new_secure_algo:SecurePasswordKdfAlgo secure_random:bytes = account.Password - public class Account_Password : ITLObject + public partial class Account_Password : ITLObject { [Flags] public enum Flags { has_recovery = 0x1, has_secure_values = 0x2, has_password = 0x4, has_hint = 0x8, has_email_unconfirmed_pattern = 0x10 } @@ -2413,7 +2413,7 @@ namespace TL } [TLDef(0x9A5C33E5)] //account.passwordSettings#9a5c33e5 flags:# email:flags.0?string secure_settings:flags.1?SecureSecretSettings = account.PasswordSettings - public class Account_PasswordSettings : ITLObject + public partial class Account_PasswordSettings : ITLObject { [Flags] public enum Flags { has_email = 0x1, has_secure_settings = 0x2 } public Flags flags; @@ -2422,7 +2422,7 @@ namespace TL } [TLDef(0xC23727C9)] //account.passwordInputSettings#c23727c9 flags:# new_algo:flags.0?PasswordKdfAlgo new_password_hash:flags.0?bytes hint:flags.0?string email:flags.1?string new_secure_settings:flags.2?SecureSecretSettings = account.PasswordInputSettings - public class Account_PasswordInputSettings : ITLObject + public partial class Account_PasswordInputSettings : ITLObject { [Flags] public enum Flags { has_new_algo = 0x1, has_email = 0x2, has_new_secure_settings = 0x4 } public Flags flags; @@ -2434,26 +2434,26 @@ namespace TL } [TLDef(0x137948A5)] //auth.passwordRecovery#137948a5 email_pattern:string = auth.PasswordRecovery - public class Auth_PasswordRecovery : ITLObject { public string email_pattern; } + public partial class Auth_PasswordRecovery : ITLObject { public string email_pattern; } [TLDef(0xA384B779)] //receivedNotifyMessage#a384b779 id:int flags:int = ReceivedNotifyMessage - public class ReceivedNotifyMessage : ITLObject + public partial class ReceivedNotifyMessage : ITLObject { public int id; public int flags; } - public abstract class ExportedChatInvite : ITLObject { } + public abstract partial class ExportedChatInvite : ITLObject { } [TLDef(0x69DF3769)] //chatInviteEmpty#69df3769 = ExportedChatInvite - public class ChatInviteEmpty : ExportedChatInvite { } + public partial class ChatInviteEmpty : ExportedChatInvite { } [TLDef(0xFC2E05BC)] //chatInviteExported#fc2e05bc link:string = ExportedChatInvite - public class ChatInviteExported : ExportedChatInvite { public string link; } + public partial class ChatInviteExported : ExportedChatInvite { public string link; } - public abstract class ChatInviteBase : ITLObject { } + public abstract partial class ChatInviteBase : ITLObject { } [TLDef(0x5A686D7C)] //chatInviteAlready#5a686d7c chat:Chat = ChatInvite - public class ChatInviteAlready : ChatInviteBase { public ChatBase chat; } + public partial class ChatInviteAlready : ChatInviteBase { public ChatBase chat; } [TLDef(0xDFC2F58E)] //chatInvite#dfc2f58e flags:# channel:flags.0?true broadcast:flags.1?true public:flags.2?true megagroup:flags.3?true title:string photo:Photo participants_count:int participants:flags.4?Vector = ChatInvite - public class ChatInvite : ChatInviteBase + public partial class ChatInvite : ChatInviteBase { [Flags] public enum Flags { channel = 0x1, broadcast = 0x2, public_ = 0x4, megagroup = 0x8, has_participants = 0x10 } public Flags flags; @@ -2463,30 +2463,30 @@ namespace TL [IfFlag(4)] public UserBase[] participants; } [TLDef(0x61695CB0)] //chatInvitePeek#61695cb0 chat:Chat expires:int = ChatInvite - public class ChatInvitePeek : ChatInviteBase + public partial class ChatInvitePeek : ChatInviteBase { public ChatBase chat; public DateTime expires; } - public abstract class InputStickerSet : ITLObject { } + public abstract partial class InputStickerSet : ITLObject { } [TLDef(0xFFB62B95)] //inputStickerSetEmpty#ffb62b95 = InputStickerSet - public class InputStickerSetEmpty : InputStickerSet { } + public partial class InputStickerSetEmpty : InputStickerSet { } [TLDef(0x9DE7A269)] //inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet - public class InputStickerSetID : InputStickerSet + public partial class InputStickerSetID : InputStickerSet { public long id; public long access_hash; } [TLDef(0x861CC8A0)] //inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet - public class InputStickerSetShortName : InputStickerSet { public string short_name; } + public partial class InputStickerSetShortName : InputStickerSet { public string short_name; } [TLDef(0x028703C8)] //inputStickerSetAnimatedEmoji#028703c8 = InputStickerSet - public class InputStickerSetAnimatedEmoji : InputStickerSet { } + public partial class InputStickerSetAnimatedEmoji : InputStickerSet { } [TLDef(0xE67F520E)] //inputStickerSetDice#e67f520e emoticon:string = InputStickerSet - public class InputStickerSetDice : InputStickerSet { public string emoticon; } + public partial class InputStickerSetDice : InputStickerSet { public string emoticon; } [TLDef(0xEEB46F27)] //stickerSet#eeb46f27 flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumb:flags.4?PhotoSize thumb_dc_id:flags.4?int count:int hash:int = StickerSet - public class StickerSet : ITLObject + public partial class StickerSet : ITLObject { [Flags] public enum Flags { has_installed_date = 0x1, archived = 0x2, official = 0x4, masks = 0x8, has_thumb = 0x10, animated = 0x20 } @@ -2503,7 +2503,7 @@ namespace TL } [TLDef(0xB60A24A6)] //messages.stickerSet#b60a24a6 set:StickerSet packs:Vector documents:Vector = messages.StickerSet - public class Messages_StickerSet : ITLObject + public partial class Messages_StickerSet : ITLObject { public StickerSet set; public StickerPack[] packs; @@ -2511,31 +2511,31 @@ namespace TL } [TLDef(0xC27AC8C7)] //botCommand#c27ac8c7 command:string description:string = BotCommand - public class BotCommand : ITLObject + public partial class BotCommand : ITLObject { public string command; public string description; } [TLDef(0x98E81D3A)] //botInfo#98e81d3a user_id:int description:string commands:Vector = BotInfo - public class BotInfo : ITLObject + public partial class BotInfo : ITLObject { public int user_id; public string description; public BotCommand[] commands; } - public abstract class KeyboardButtonBase : ITLObject { } + public abstract partial class KeyboardButtonBase : ITLObject { } [TLDef(0xA2FA4880)] //keyboardButton#a2fa4880 text:string = KeyboardButton - public class KeyboardButton : KeyboardButtonBase { public string text; } + public partial class KeyboardButton : KeyboardButtonBase { public string text; } [TLDef(0x258AFF05)] //keyboardButtonUrl#258aff05 text:string url:string = KeyboardButton - public class KeyboardButtonUrl : KeyboardButtonBase + public partial class KeyboardButtonUrl : KeyboardButtonBase { public string text; public string url; } [TLDef(0x35BBDB6B)] //keyboardButtonCallback#35bbdb6b flags:# requires_password:flags.0?true text:string data:bytes = KeyboardButton - public class KeyboardButtonCallback : KeyboardButtonBase + public partial class KeyboardButtonCallback : KeyboardButtonBase { [Flags] public enum Flags { requires_password = 0x1 } public Flags flags; @@ -2543,11 +2543,11 @@ namespace TL public byte[] data; } [TLDef(0xB16A6C29)] //keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton - public class KeyboardButtonRequestPhone : KeyboardButtonBase { public string text; } + public partial class KeyboardButtonRequestPhone : KeyboardButtonBase { public string text; } [TLDef(0xFC796B3F)] //keyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton - public class KeyboardButtonRequestGeoLocation : KeyboardButtonBase { public string text; } + public partial class KeyboardButtonRequestGeoLocation : KeyboardButtonBase { public string text; } [TLDef(0x0568A748)] //keyboardButtonSwitchInline#0568a748 flags:# same_peer:flags.0?true text:string query:string = KeyboardButton - public class KeyboardButtonSwitchInline : KeyboardButtonBase + public partial class KeyboardButtonSwitchInline : KeyboardButtonBase { [Flags] public enum Flags { same_peer = 0x1 } public Flags flags; @@ -2555,11 +2555,11 @@ namespace TL public string query; } [TLDef(0x50F41CCF)] //keyboardButtonGame#50f41ccf text:string = KeyboardButton - public class KeyboardButtonGame : KeyboardButtonBase { public string text; } + public partial class KeyboardButtonGame : KeyboardButtonBase { public string text; } [TLDef(0xAFD93FBB)] //keyboardButtonBuy#afd93fbb text:string = KeyboardButton - public class KeyboardButtonBuy : KeyboardButtonBase { public string text; } + public partial class KeyboardButtonBuy : KeyboardButtonBase { public string text; } [TLDef(0x10B78D29)] //keyboardButtonUrlAuth#10b78d29 flags:# text:string fwd_text:flags.0?string url:string button_id:int = KeyboardButton - public class KeyboardButtonUrlAuth : KeyboardButtonBase + public partial class KeyboardButtonUrlAuth : KeyboardButtonBase { [Flags] public enum Flags { has_fwd_text = 0x1 } public Flags flags; @@ -2569,7 +2569,7 @@ namespace TL public int button_id; } [TLDef(0xD02E7FD4)] //inputKeyboardButtonUrlAuth#d02e7fd4 flags:# request_write_access:flags.0?true text:string fwd_text:flags.1?string url:string bot:InputUser = KeyboardButton - public class InputKeyboardButtonUrlAuth : KeyboardButtonBase + public partial class InputKeyboardButtonUrlAuth : KeyboardButtonBase { [Flags] public enum Flags { request_write_access = 0x1, has_fwd_text = 0x2 } public Flags flags; @@ -2579,7 +2579,7 @@ namespace TL public InputUserBase bot; } [TLDef(0xBBC7515D)] //keyboardButtonRequestPoll#bbc7515d flags:# quiz:flags.0?Bool text:string = KeyboardButton - public class KeyboardButtonRequestPoll : KeyboardButtonBase + public partial class KeyboardButtonRequestPoll : KeyboardButtonBase { [Flags] public enum Flags { has_quiz = 0x1 } public Flags flags; @@ -2588,86 +2588,86 @@ namespace TL } [TLDef(0x77608B83)] //keyboardButtonRow#77608b83 buttons:Vector = KeyboardButtonRow - public class KeyboardButtonRow : ITLObject { public KeyboardButtonBase[] buttons; } + public partial class KeyboardButtonRow : ITLObject { public KeyboardButtonBase[] buttons; } - public abstract class ReplyMarkup : ITLObject { } + public abstract partial class ReplyMarkup : ITLObject { } [TLDef(0xA03E5B85)] //replyKeyboardHide#a03e5b85 flags:# selective:flags.2?true = ReplyMarkup - public class ReplyKeyboardHide : ReplyMarkup + public partial class ReplyKeyboardHide : ReplyMarkup { [Flags] public enum Flags { selective = 0x4 } public Flags flags; } [TLDef(0xF4108AA0)] //replyKeyboardForceReply#f4108aa0 flags:# single_use:flags.1?true selective:flags.2?true = ReplyMarkup - public class ReplyKeyboardForceReply : ReplyMarkup + public partial class ReplyKeyboardForceReply : ReplyMarkup { [Flags] public enum Flags { single_use = 0x2, selective = 0x4 } public Flags flags; } [TLDef(0x3502758C)] //replyKeyboardMarkup#3502758c flags:# resize:flags.0?true single_use:flags.1?true selective:flags.2?true rows:Vector = ReplyMarkup - public class ReplyKeyboardMarkup : ReplyMarkup + public partial class ReplyKeyboardMarkup : ReplyMarkup { [Flags] public enum Flags { resize = 0x1, single_use = 0x2, selective = 0x4 } public Flags flags; public KeyboardButtonRow[] rows; } [TLDef(0x48A30254)] //replyInlineMarkup#48a30254 rows:Vector = ReplyMarkup - public class ReplyInlineMarkup : ReplyMarkup { public KeyboardButtonRow[] rows; } + public partial class ReplyInlineMarkup : ReplyMarkup { public KeyboardButtonRow[] rows; } - public abstract class MessageEntity : ITLObject + public abstract partial class MessageEntity : ITLObject { public int offset; public int length; } [TLDef(0xBB92BA95)] //messageEntityUnknown#bb92ba95 offset:int length:int = MessageEntity - public class MessageEntityUnknown : MessageEntity { } + public partial class MessageEntityUnknown : MessageEntity { } [TLDef(0xFA04579D)] //messageEntityMention#fa04579d offset:int length:int = MessageEntity - public class MessageEntityMention : MessageEntity { } + public partial class MessageEntityMention : MessageEntity { } [TLDef(0x6F635B0D)] //messageEntityHashtag#6f635b0d offset:int length:int = MessageEntity - public class MessageEntityHashtag : MessageEntity { } + public partial class MessageEntityHashtag : MessageEntity { } [TLDef(0x6CEF8AC7)] //messageEntityBotCommand#6cef8ac7 offset:int length:int = MessageEntity - public class MessageEntityBotCommand : MessageEntity { } + public partial class MessageEntityBotCommand : MessageEntity { } [TLDef(0x6ED02538)] //messageEntityUrl#6ed02538 offset:int length:int = MessageEntity - public class MessageEntityUrl : MessageEntity { } + public partial class MessageEntityUrl : MessageEntity { } [TLDef(0x64E475C2)] //messageEntityEmail#64e475c2 offset:int length:int = MessageEntity - public class MessageEntityEmail : MessageEntity { } + public partial class MessageEntityEmail : MessageEntity { } [TLDef(0xBD610BC9)] //messageEntityBold#bd610bc9 offset:int length:int = MessageEntity - public class MessageEntityBold : MessageEntity { } + public partial class MessageEntityBold : MessageEntity { } [TLDef(0x826F8B60)] //messageEntityItalic#826f8b60 offset:int length:int = MessageEntity - public class MessageEntityItalic : MessageEntity { } + public partial class MessageEntityItalic : MessageEntity { } [TLDef(0x28A20571)] //messageEntityCode#28a20571 offset:int length:int = MessageEntity - public class MessageEntityCode : MessageEntity { } + public partial class MessageEntityCode : MessageEntity { } [TLDef(0x73924BE0)] //messageEntityPre#73924be0 offset:int length:int language:string = MessageEntity - public class MessageEntityPre : MessageEntity { public string language; } + public partial class MessageEntityPre : MessageEntity { public string language; } [TLDef(0x76A6D327)] //messageEntityTextUrl#76a6d327 offset:int length:int url:string = MessageEntity - public class MessageEntityTextUrl : MessageEntity { public string url; } + public partial class MessageEntityTextUrl : MessageEntity { public string url; } [TLDef(0x352DCA58)] //messageEntityMentionName#352dca58 offset:int length:int user_id:int = MessageEntity - public class MessageEntityMentionName : MessageEntity { public int user_id; } + public partial class MessageEntityMentionName : MessageEntity { public int user_id; } [TLDef(0x208E68C9)] //inputMessageEntityMentionName#208e68c9 offset:int length:int user_id:InputUser = MessageEntity - public class InputMessageEntityMentionName : MessageEntity { public InputUserBase user_id; } + public partial class InputMessageEntityMentionName : MessageEntity { public InputUserBase user_id; } [TLDef(0x9B69E34B)] //messageEntityPhone#9b69e34b offset:int length:int = MessageEntity - public class MessageEntityPhone : MessageEntity { } + public partial class MessageEntityPhone : MessageEntity { } [TLDef(0x4C4E743F)] //messageEntityCashtag#4c4e743f offset:int length:int = MessageEntity - public class MessageEntityCashtag : MessageEntity { } + public partial class MessageEntityCashtag : MessageEntity { } [TLDef(0x9C4E7E8B)] //messageEntityUnderline#9c4e7e8b offset:int length:int = MessageEntity - public class MessageEntityUnderline : MessageEntity { } + public partial class MessageEntityUnderline : MessageEntity { } [TLDef(0xBF0693D4)] //messageEntityStrike#bf0693d4 offset:int length:int = MessageEntity - public class MessageEntityStrike : MessageEntity { } + public partial class MessageEntityStrike : MessageEntity { } [TLDef(0x020DF5D0)] //messageEntityBlockquote#020df5d0 offset:int length:int = MessageEntity - public class MessageEntityBlockquote : MessageEntity { } + public partial class MessageEntityBlockquote : MessageEntity { } [TLDef(0x761E6AF4)] //messageEntityBankCard#761e6af4 offset:int length:int = MessageEntity - public class MessageEntityBankCard : MessageEntity { } + public partial class MessageEntityBankCard : MessageEntity { } - public abstract class InputChannelBase : ITLObject { } + public abstract partial class InputChannelBase : ITLObject { } [TLDef(0xEE8C1E86)] //inputChannelEmpty#ee8c1e86 = InputChannel - public class InputChannelEmpty : InputChannelBase { } + public partial class InputChannelEmpty : InputChannelBase { } [TLDef(0xAFEB712E)] //inputChannel#afeb712e channel_id:int access_hash:long = InputChannel - public class InputChannel : InputChannelBase + public partial class InputChannel : InputChannelBase { public int channel_id; public long access_hash; } [TLDef(0x2A286531)] //inputChannelFromMessage#2a286531 peer:InputPeer msg_id:int channel_id:int = InputChannel - public class InputChannelFromMessage : InputChannelBase + public partial class InputChannelFromMessage : InputChannelBase { public InputPeer peer; public int msg_id; @@ -2675,7 +2675,7 @@ namespace TL } [TLDef(0x7F077AD9)] //contacts.resolvedPeer#7f077ad9 peer:Peer chats:Vector users:Vector = contacts.ResolvedPeer - public class Contacts_ResolvedPeer : ITLObject + public partial class Contacts_ResolvedPeer : ITLObject { public Peer peer; public ChatBase[] chats; @@ -2683,15 +2683,15 @@ namespace TL } [TLDef(0x0AE30253)] //messageRange#0ae30253 min_id:int max_id:int = MessageRange - public class MessageRange : ITLObject + public partial class MessageRange : ITLObject { public int min_id; public int max_id; } - public abstract class Updates_ChannelDifferenceBase : ITLObject { } + public abstract partial class Updates_ChannelDifferenceBase : ITLObject { } [TLDef(0x3E11AFFB)] //updates.channelDifferenceEmpty#3e11affb flags:# final:flags.0?true pts:int timeout:flags.1?int = updates.ChannelDifference - public class Updates_ChannelDifferenceEmpty : Updates_ChannelDifferenceBase + public partial class Updates_ChannelDifferenceEmpty : Updates_ChannelDifferenceBase { [Flags] public enum Flags { final = 0x1, has_timeout = 0x2 } public Flags flags; @@ -2699,7 +2699,7 @@ namespace TL [IfFlag(1)] public int timeout; } [TLDef(0xA4BCC6FE)] //updates.channelDifferenceTooLong#a4bcc6fe flags:# final:flags.0?true timeout:flags.1?int dialog:Dialog messages:Vector chats:Vector users:Vector = updates.ChannelDifference - public class Updates_ChannelDifferenceTooLong : Updates_ChannelDifferenceBase + public partial class Updates_ChannelDifferenceTooLong : Updates_ChannelDifferenceBase { [Flags] public enum Flags { final = 0x1, has_timeout = 0x2 } public Flags flags; @@ -2710,7 +2710,7 @@ namespace TL public UserBase[] users; } [TLDef(0x2064674E)] //updates.channelDifference#2064674e flags:# final:flags.0?true pts:int timeout:flags.1?int new_messages:Vector other_updates:Vector chats:Vector users:Vector = updates.ChannelDifference - public class Updates_ChannelDifference : Updates_ChannelDifferenceBase + public partial class Updates_ChannelDifference : Updates_ChannelDifferenceBase { [Flags] public enum Flags { final = 0x1, has_timeout = 0x2 } public Flags flags; @@ -2722,33 +2722,33 @@ namespace TL public UserBase[] users; } - public abstract class ChannelMessagesFilterBase : ITLObject { } + public abstract partial class ChannelMessagesFilterBase : ITLObject { } [TLDef(0x94D42EE7)] //channelMessagesFilterEmpty#94d42ee7 = ChannelMessagesFilter - public class ChannelMessagesFilterEmpty : ChannelMessagesFilterBase { } + public partial class ChannelMessagesFilterEmpty : ChannelMessagesFilterBase { } [TLDef(0xCD77D957)] //channelMessagesFilter#cd77d957 flags:# exclude_new_messages:flags.1?true ranges:Vector = ChannelMessagesFilter - public class ChannelMessagesFilter : ChannelMessagesFilterBase + public partial class ChannelMessagesFilter : ChannelMessagesFilterBase { [Flags] public enum Flags { exclude_new_messages = 0x2 } public Flags flags; public MessageRange[] ranges; } - public abstract class ChannelParticipantBase : ITLObject { } + public abstract partial class ChannelParticipantBase : ITLObject { } [TLDef(0x15EBAC1D)] //channelParticipant#15ebac1d user_id:int date:int = ChannelParticipant - public class ChannelParticipant : ChannelParticipantBase + public partial class ChannelParticipant : ChannelParticipantBase { public int user_id; public DateTime date; } [TLDef(0xA3289A6D)] //channelParticipantSelf#a3289a6d user_id:int inviter_id:int date:int = ChannelParticipant - public class ChannelParticipantSelf : ChannelParticipantBase + public partial class ChannelParticipantSelf : ChannelParticipantBase { public int user_id; public int inviter_id; public DateTime date; } [TLDef(0x447DCA4B)] //channelParticipantCreator#447dca4b flags:# user_id:int admin_rights:ChatAdminRights rank:flags.0?string = ChannelParticipant - public class ChannelParticipantCreator : ChannelParticipantBase + public partial class ChannelParticipantCreator : ChannelParticipantBase { [Flags] public enum Flags { has_rank = 0x1 } public Flags flags; @@ -2757,7 +2757,7 @@ namespace TL [IfFlag(0)] public string rank; } [TLDef(0xCCBEBBAF)] //channelParticipantAdmin#ccbebbaf flags:# can_edit:flags.0?true self:flags.1?true user_id:int inviter_id:flags.1?int promoted_by:int date:int admin_rights:ChatAdminRights rank:flags.2?string = ChannelParticipant - public class ChannelParticipantAdmin : ChannelParticipantBase + public partial class ChannelParticipantAdmin : ChannelParticipantBase { [Flags] public enum Flags { can_edit = 0x1, self = 0x2, has_rank = 0x4 } public Flags flags; @@ -2769,7 +2769,7 @@ namespace TL [IfFlag(2)] public string rank; } [TLDef(0x1C0FACAF)] //channelParticipantBanned#1c0facaf flags:# left:flags.0?true user_id:int kicked_by:int date:int banned_rights:ChatBannedRights = ChannelParticipant - public class ChannelParticipantBanned : ChannelParticipantBase + public partial class ChannelParticipantBanned : ChannelParticipantBase { [Flags] public enum Flags { left = 0x1 } public Flags flags; @@ -2779,25 +2779,25 @@ namespace TL public ChatBannedRights banned_rights; } [TLDef(0xC3C6796B)] //channelParticipantLeft#c3c6796b user_id:int = ChannelParticipant - public class ChannelParticipantLeft : ChannelParticipantBase { public int user_id; } + public partial class ChannelParticipantLeft : ChannelParticipantBase { public int user_id; } - public abstract class ChannelParticipantsFilter : ITLObject { } + public abstract partial class ChannelParticipantsFilter : ITLObject { } [TLDef(0xDE3F3C79)] //channelParticipantsRecent#de3f3c79 = ChannelParticipantsFilter - public class ChannelParticipantsRecent : ChannelParticipantsFilter { } + public partial class ChannelParticipantsRecent : ChannelParticipantsFilter { } [TLDef(0xB4608969)] //channelParticipantsAdmins#b4608969 = ChannelParticipantsFilter - public class ChannelParticipantsAdmins : ChannelParticipantsFilter { } + public partial class ChannelParticipantsAdmins : ChannelParticipantsFilter { } [TLDef(0xA3B54985)] //channelParticipantsKicked#a3b54985 q:string = ChannelParticipantsFilter - public class ChannelParticipantsKicked : ChannelParticipantsFilter { public string q; } + public partial class ChannelParticipantsKicked : ChannelParticipantsFilter { public string q; } [TLDef(0xB0D1865B)] //channelParticipantsBots#b0d1865b = ChannelParticipantsFilter - public class ChannelParticipantsBots : ChannelParticipantsFilter { } + public partial class ChannelParticipantsBots : ChannelParticipantsFilter { } [TLDef(0x1427A5E1)] //channelParticipantsBanned#1427a5e1 q:string = ChannelParticipantsFilter - public class ChannelParticipantsBanned : ChannelParticipantsFilter { public string q; } + public partial class ChannelParticipantsBanned : ChannelParticipantsFilter { public string q; } [TLDef(0x0656AC4B)] //channelParticipantsSearch#0656ac4b q:string = ChannelParticipantsFilter - public class ChannelParticipantsSearch : ChannelParticipantsFilter { public string q; } + public partial class ChannelParticipantsSearch : ChannelParticipantsFilter { public string q; } [TLDef(0xBB6AE88D)] //channelParticipantsContacts#bb6ae88d q:string = ChannelParticipantsFilter - public class ChannelParticipantsContacts : ChannelParticipantsFilter { public string q; } + public partial class ChannelParticipantsContacts : ChannelParticipantsFilter { public string q; } [TLDef(0xE04B5CEB)] //channelParticipantsMentions#e04b5ceb flags:# q:flags.0?string top_msg_id:flags.1?int = ChannelParticipantsFilter - public class ChannelParticipantsMentions : ChannelParticipantsFilter + public partial class ChannelParticipantsMentions : ChannelParticipantsFilter { [Flags] public enum Flags { has_q = 0x1, has_top_msg_id = 0x2 } public Flags flags; @@ -2805,26 +2805,26 @@ namespace TL [IfFlag(1)] public int top_msg_id; } - public abstract class Channels_ChannelParticipantsBase : ITLObject { } + public abstract partial class Channels_ChannelParticipantsBase : ITLObject { } [TLDef(0xF56EE2A8)] //channels.channelParticipants#f56ee2a8 count:int participants:Vector users:Vector = channels.ChannelParticipants - public class Channels_ChannelParticipants : Channels_ChannelParticipantsBase + public partial class Channels_ChannelParticipants : Channels_ChannelParticipantsBase { public int count; public ChannelParticipantBase[] participants; public UserBase[] users; } [TLDef(0xF0173FE9)] //channels.channelParticipantsNotModified#f0173fe9 = channels.ChannelParticipants - public class Channels_ChannelParticipantsNotModified : Channels_ChannelParticipantsBase { } + public partial class Channels_ChannelParticipantsNotModified : Channels_ChannelParticipantsBase { } [TLDef(0xD0D9B163)] //channels.channelParticipant#d0d9b163 participant:ChannelParticipant users:Vector = channels.ChannelParticipant - public class Channels_ChannelParticipant : ITLObject + public partial class Channels_ChannelParticipant : ITLObject { public ChannelParticipantBase participant; public UserBase[] users; } [TLDef(0x780A0310)] //help.termsOfService#780a0310 flags:# popup:flags.0?true id:DataJSON text:string entities:Vector min_age_confirm:flags.1?int = help.TermsOfService - public class Help_TermsOfService : ITLObject + public partial class Help_TermsOfService : ITLObject { [Flags] public enum Flags { popup = 0x1, has_min_age_confirm = 0x2 } public Flags flags; @@ -2834,19 +2834,19 @@ namespace TL [IfFlag(1)] public int min_age_confirm; } - public abstract class Messages_SavedGifsBase : ITLObject { } + public abstract partial class Messages_SavedGifsBase : ITLObject { } [TLDef(0xE8025CA2)] //messages.savedGifsNotModified#e8025ca2 = messages.SavedGifs - public class Messages_SavedGifsNotModified : Messages_SavedGifsBase { } + public partial class Messages_SavedGifsNotModified : Messages_SavedGifsBase { } [TLDef(0x2E0709A5)] //messages.savedGifs#2e0709a5 hash:int gifs:Vector = messages.SavedGifs - public class Messages_SavedGifs : Messages_SavedGifsBase + public partial class Messages_SavedGifs : Messages_SavedGifsBase { public int hash; public DocumentBase[] gifs; } - public abstract class InputBotInlineMessage : ITLObject { public int flags; } + public abstract partial class InputBotInlineMessage : ITLObject { public int flags; } [TLDef(0x3380C786)] //inputBotInlineMessageMediaAuto#3380c786 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage - public class InputBotInlineMessageMediaAuto : InputBotInlineMessage + public partial class InputBotInlineMessageMediaAuto : InputBotInlineMessage { [Flags] public enum Flags { has_entities = 0x2, has_reply_markup = 0x4 } public string message; @@ -2854,7 +2854,7 @@ namespace TL [IfFlag(2)] public ReplyMarkup reply_markup; } [TLDef(0x3DCD7A87)] //inputBotInlineMessageText#3dcd7a87 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage - public class InputBotInlineMessageText : InputBotInlineMessage + public partial class InputBotInlineMessageText : InputBotInlineMessage { [Flags] public enum Flags { no_webpage = 0x1, has_entities = 0x2, has_reply_markup = 0x4 } public string message; @@ -2862,7 +2862,7 @@ namespace TL [IfFlag(2)] public ReplyMarkup reply_markup; } [TLDef(0x96929A85)] //inputBotInlineMessageMediaGeo#96929a85 flags:# geo_point:InputGeoPoint heading:flags.0?int period:flags.1?int proximity_notification_radius:flags.3?int reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage - public class InputBotInlineMessageMediaGeo : InputBotInlineMessage + public partial class InputBotInlineMessageMediaGeo : InputBotInlineMessage { [Flags] public enum Flags { has_heading = 0x1, has_period = 0x2, has_reply_markup = 0x4, has_proximity_notification_radius = 0x8 } @@ -2873,7 +2873,7 @@ namespace TL [IfFlag(2)] public ReplyMarkup reply_markup; } [TLDef(0x417BBF11)] //inputBotInlineMessageMediaVenue#417bbf11 flags:# geo_point:InputGeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage - public class InputBotInlineMessageMediaVenue : InputBotInlineMessage + public partial class InputBotInlineMessageMediaVenue : InputBotInlineMessage { [Flags] public enum Flags { has_reply_markup = 0x4 } public InputGeoPointBase geo_point; @@ -2885,7 +2885,7 @@ namespace TL [IfFlag(2)] public ReplyMarkup reply_markup; } [TLDef(0xA6EDBFFD)] //inputBotInlineMessageMediaContact#a6edbffd flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage - public class InputBotInlineMessageMediaContact : InputBotInlineMessage + public partial class InputBotInlineMessageMediaContact : InputBotInlineMessage { [Flags] public enum Flags { has_reply_markup = 0x4 } public string phone_number; @@ -2895,15 +2895,15 @@ namespace TL [IfFlag(2)] public ReplyMarkup reply_markup; } [TLDef(0x4B425864)] //inputBotInlineMessageGame#4b425864 flags:# reply_markup:flags.2?ReplyMarkup = InputBotInlineMessage - public class InputBotInlineMessageGame : InputBotInlineMessage + public partial class InputBotInlineMessageGame : InputBotInlineMessage { [Flags] public enum Flags { has_reply_markup = 0x4 } [IfFlag(2)] public ReplyMarkup reply_markup; } - public abstract class InputBotInlineResultBase : ITLObject { } + public abstract partial class InputBotInlineResultBase : ITLObject { } [TLDef(0x88BF9319)] //inputBotInlineResult#88bf9319 flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?InputWebDocument content:flags.5?InputWebDocument send_message:InputBotInlineMessage = InputBotInlineResult - public class InputBotInlineResult : InputBotInlineResultBase + public partial class InputBotInlineResult : InputBotInlineResultBase { [Flags] public enum Flags { has_title = 0x2, has_description = 0x4, has_url = 0x8, has_thumb = 0x10, has_content = 0x20 } public Flags flags; @@ -2917,7 +2917,7 @@ namespace TL public InputBotInlineMessage send_message; } [TLDef(0xA8D864A7)] //inputBotInlineResultPhoto#a8d864a7 id:string type:string photo:InputPhoto send_message:InputBotInlineMessage = InputBotInlineResult - public class InputBotInlineResultPhoto : InputBotInlineResultBase + public partial class InputBotInlineResultPhoto : InputBotInlineResultBase { public string id; public string type; @@ -2925,7 +2925,7 @@ namespace TL public InputBotInlineMessage send_message; } [TLDef(0xFFF8FDC4)] //inputBotInlineResultDocument#fff8fdc4 flags:# id:string type:string title:flags.1?string description:flags.2?string document:InputDocument send_message:InputBotInlineMessage = InputBotInlineResult - public class InputBotInlineResultDocument : InputBotInlineResultBase + public partial class InputBotInlineResultDocument : InputBotInlineResultBase { [Flags] public enum Flags { has_title = 0x2, has_description = 0x4 } public Flags flags; @@ -2937,16 +2937,16 @@ namespace TL public InputBotInlineMessage send_message; } [TLDef(0x4FA417F2)] //inputBotInlineResultGame#4fa417f2 id:string short_name:string send_message:InputBotInlineMessage = InputBotInlineResult - public class InputBotInlineResultGame : InputBotInlineResultBase + public partial class InputBotInlineResultGame : InputBotInlineResultBase { public string id; public string short_name; public InputBotInlineMessage send_message; } - public abstract class BotInlineMessage : ITLObject { public int flags; } + public abstract partial class BotInlineMessage : ITLObject { public int flags; } [TLDef(0x764CF810)] //botInlineMessageMediaAuto#764cf810 flags:# message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage - public class BotInlineMessageMediaAuto : BotInlineMessage + public partial class BotInlineMessageMediaAuto : BotInlineMessage { [Flags] public enum Flags { has_entities = 0x2, has_reply_markup = 0x4 } public string message; @@ -2954,7 +2954,7 @@ namespace TL [IfFlag(2)] public ReplyMarkup reply_markup; } [TLDef(0x8C7F65E2)] //botInlineMessageText#8c7f65e2 flags:# no_webpage:flags.0?true message:string entities:flags.1?Vector reply_markup:flags.2?ReplyMarkup = BotInlineMessage - public class BotInlineMessageText : BotInlineMessage + public partial class BotInlineMessageText : BotInlineMessage { [Flags] public enum Flags { no_webpage = 0x1, has_entities = 0x2, has_reply_markup = 0x4 } public string message; @@ -2962,7 +2962,7 @@ namespace TL [IfFlag(2)] public ReplyMarkup reply_markup; } [TLDef(0x051846FD)] //botInlineMessageMediaGeo#051846fd flags:# geo:GeoPoint heading:flags.0?int period:flags.1?int proximity_notification_radius:flags.3?int reply_markup:flags.2?ReplyMarkup = BotInlineMessage - public class BotInlineMessageMediaGeo : BotInlineMessage + public partial class BotInlineMessageMediaGeo : BotInlineMessage { [Flags] public enum Flags { has_heading = 0x1, has_period = 0x2, has_reply_markup = 0x4, has_proximity_notification_radius = 0x8 } @@ -2973,7 +2973,7 @@ namespace TL [IfFlag(2)] public ReplyMarkup reply_markup; } [TLDef(0x8A86659C)] //botInlineMessageMediaVenue#8a86659c flags:# geo:GeoPoint title:string address:string provider:string venue_id:string venue_type:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage - public class BotInlineMessageMediaVenue : BotInlineMessage + public partial class BotInlineMessageMediaVenue : BotInlineMessage { [Flags] public enum Flags { has_reply_markup = 0x4 } public GeoPointBase geo; @@ -2985,7 +2985,7 @@ namespace TL [IfFlag(2)] public ReplyMarkup reply_markup; } [TLDef(0x18D1CDC2)] //botInlineMessageMediaContact#18d1cdc2 flags:# phone_number:string first_name:string last_name:string vcard:string reply_markup:flags.2?ReplyMarkup = BotInlineMessage - public class BotInlineMessageMediaContact : BotInlineMessage + public partial class BotInlineMessageMediaContact : BotInlineMessage { [Flags] public enum Flags { has_reply_markup = 0x4 } public string phone_number; @@ -2995,9 +2995,9 @@ namespace TL [IfFlag(2)] public ReplyMarkup reply_markup; } - public abstract class BotInlineResultBase : ITLObject { } + public abstract partial class BotInlineResultBase : ITLObject { } [TLDef(0x11965F3A)] //botInlineResult#11965f3a flags:# id:string type:string title:flags.1?string description:flags.2?string url:flags.3?string thumb:flags.4?WebDocument content:flags.5?WebDocument send_message:BotInlineMessage = BotInlineResult - public class BotInlineResult : BotInlineResultBase + public partial class BotInlineResult : BotInlineResultBase { [Flags] public enum Flags { has_title = 0x2, has_description = 0x4, has_url = 0x8, has_thumb = 0x10, has_content = 0x20 } public Flags flags; @@ -3011,7 +3011,7 @@ namespace TL public BotInlineMessage send_message; } [TLDef(0x17DB940B)] //botInlineMediaResult#17db940b flags:# id:string type:string photo:flags.0?Photo document:flags.1?Document title:flags.2?string description:flags.3?string send_message:BotInlineMessage = BotInlineResult - public class BotInlineMediaResult : BotInlineResultBase + public partial class BotInlineMediaResult : BotInlineResultBase { [Flags] public enum Flags { has_photo = 0x1, has_document = 0x2, has_title = 0x4, has_description = 0x8 } public Flags flags; @@ -3025,7 +3025,7 @@ namespace TL } [TLDef(0x947CA848)] //messages.botResults#947ca848 flags:# gallery:flags.0?true query_id:long next_offset:flags.1?string switch_pm:flags.2?InlineBotSwitchPM results:Vector cache_time:int users:Vector = messages.BotResults - public class Messages_BotResults : ITLObject + public partial class Messages_BotResults : ITLObject { [Flags] public enum Flags { gallery = 0x1, has_next_offset = 0x2, has_switch_pm = 0x4 } public Flags flags; @@ -3038,14 +3038,14 @@ namespace TL } [TLDef(0x5DAB1AF4)] //exportedMessageLink#5dab1af4 link:string html:string = ExportedMessageLink - public class ExportedMessageLink : ITLObject + public partial class ExportedMessageLink : ITLObject { public string link; public string html; } [TLDef(0x5F777DCE)] //messageFwdHeader#5f777dce flags:# imported:flags.7?true from_id:flags.0?Peer from_name:flags.5?string date:int channel_post:flags.2?int post_author:flags.3?string saved_from_peer:flags.4?Peer saved_from_msg_id:flags.4?int psa_type:flags.6?string = MessageFwdHeader - public class MessageFwdHeader : ITLObject + public partial class MessageFwdHeader : ITLObject { [Flags] public enum Flags { has_from_id = 0x1, has_channel_post = 0x4, has_post_author = 0x8, has_saved_from_peer = 0x10, has_from_name = 0x20, has_psa_type = 0x40, imported = 0x80 } @@ -3060,26 +3060,26 @@ namespace TL [IfFlag(6)] public string psa_type; } - public abstract class Auth_CodeType : ITLObject { } + public abstract partial class Auth_CodeType : ITLObject { } [TLDef(0x72A3158C)] //auth.codeTypeSms#72a3158c = auth.CodeType - public class Auth_CodeTypeSms : Auth_CodeType { } + public partial class Auth_CodeTypeSms : Auth_CodeType { } [TLDef(0x741CD3E3)] //auth.codeTypeCall#741cd3e3 = auth.CodeType - public class Auth_CodeTypeCall : Auth_CodeType { } + public partial class Auth_CodeTypeCall : Auth_CodeType { } [TLDef(0x226CCEFB)] //auth.codeTypeFlashCall#226ccefb = auth.CodeType - public class Auth_CodeTypeFlashCall : Auth_CodeType { } + public partial class Auth_CodeTypeFlashCall : Auth_CodeType { } - public abstract class Auth_SentCodeType : ITLObject { } + public abstract partial class Auth_SentCodeType : ITLObject { } [TLDef(0x3DBB5986)] //auth.sentCodeTypeApp#3dbb5986 length:int = auth.SentCodeType - public class Auth_SentCodeTypeApp : Auth_SentCodeType { public int length; } + public partial class Auth_SentCodeTypeApp : Auth_SentCodeType { public int length; } [TLDef(0xC000BBA2)] //auth.sentCodeTypeSms#c000bba2 length:int = auth.SentCodeType - public class Auth_SentCodeTypeSms : Auth_SentCodeType { public int length; } + public partial class Auth_SentCodeTypeSms : Auth_SentCodeType { public int length; } [TLDef(0x5353E5A7)] //auth.sentCodeTypeCall#5353e5a7 length:int = auth.SentCodeType - public class Auth_SentCodeTypeCall : Auth_SentCodeType { public int length; } + public partial class Auth_SentCodeTypeCall : Auth_SentCodeType { public int length; } [TLDef(0xAB03C6D9)] //auth.sentCodeTypeFlashCall#ab03c6d9 pattern:string = auth.SentCodeType - public class Auth_SentCodeTypeFlashCall : Auth_SentCodeType { public string pattern; } + public partial class Auth_SentCodeTypeFlashCall : Auth_SentCodeType { public string pattern; } [TLDef(0x36585EA4)] //messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer - public class Messages_BotCallbackAnswer : ITLObject + public partial class Messages_BotCallbackAnswer : ITLObject { [Flags] public enum Flags { has_message = 0x1, alert = 0x2, has_url_field = 0x4, has_url = 0x8, native_ui = 0x10 } public Flags flags; @@ -3089,14 +3089,14 @@ namespace TL } [TLDef(0x26B5DDE6)] //messages.messageEditData#26b5dde6 flags:# caption:flags.0?true = messages.MessageEditData - public class Messages_MessageEditData : ITLObject + public partial class Messages_MessageEditData : ITLObject { [Flags] public enum Flags { caption = 0x1 } public Flags flags; } [TLDef(0x890C3D89)] //inputBotInlineMessageID#890c3d89 dc_id:int id:long access_hash:long = InputBotInlineMessageID - public class InputBotInlineMessageID : ITLObject + public partial class InputBotInlineMessageID : ITLObject { public int dc_id; public long id; @@ -3104,14 +3104,14 @@ namespace TL } [TLDef(0x3C20629F)] //inlineBotSwitchPM#3c20629f text:string start_param:string = InlineBotSwitchPM - public class InlineBotSwitchPM : ITLObject + public partial class InlineBotSwitchPM : ITLObject { public string text; public string start_param; } [TLDef(0x3371C354)] //messages.peerDialogs#3371c354 dialogs:Vector messages:Vector chats:Vector users:Vector state:updates.State = messages.PeerDialogs - public class Messages_PeerDialogs : ITLObject + public partial class Messages_PeerDialogs : ITLObject { public DialogBase[] dialogs; public MessageBase[] messages; @@ -3121,61 +3121,61 @@ namespace TL } [TLDef(0xEDCDC05B)] //topPeer#edcdc05b peer:Peer rating:double = TopPeer - public class TopPeer : ITLObject + public partial class TopPeer : ITLObject { public Peer peer; public double rating; } - public abstract class TopPeerCategory : ITLObject { } + public abstract partial class TopPeerCategory : ITLObject { } [TLDef(0xAB661B5B)] //topPeerCategoryBotsPM#ab661b5b = TopPeerCategory - public class TopPeerCategoryBotsPM : TopPeerCategory { } + public partial class TopPeerCategoryBotsPM : TopPeerCategory { } [TLDef(0x148677E2)] //topPeerCategoryBotsInline#148677e2 = TopPeerCategory - public class TopPeerCategoryBotsInline : TopPeerCategory { } + public partial class TopPeerCategoryBotsInline : TopPeerCategory { } [TLDef(0x0637B7ED)] //topPeerCategoryCorrespondents#0637b7ed = TopPeerCategory - public class TopPeerCategoryCorrespondents : TopPeerCategory { } + public partial class TopPeerCategoryCorrespondents : TopPeerCategory { } [TLDef(0xBD17A14A)] //topPeerCategoryGroups#bd17a14a = TopPeerCategory - public class TopPeerCategoryGroups : TopPeerCategory { } + public partial class TopPeerCategoryGroups : TopPeerCategory { } [TLDef(0x161D9628)] //topPeerCategoryChannels#161d9628 = TopPeerCategory - public class TopPeerCategoryChannels : TopPeerCategory { } + public partial class TopPeerCategoryChannels : TopPeerCategory { } [TLDef(0x1E76A78C)] //topPeerCategoryPhoneCalls#1e76a78c = TopPeerCategory - public class TopPeerCategoryPhoneCalls : TopPeerCategory { } + public partial class TopPeerCategoryPhoneCalls : TopPeerCategory { } [TLDef(0xA8406CA9)] //topPeerCategoryForwardUsers#a8406ca9 = TopPeerCategory - public class TopPeerCategoryForwardUsers : TopPeerCategory { } + public partial class TopPeerCategoryForwardUsers : TopPeerCategory { } [TLDef(0xFBEEC0F0)] //topPeerCategoryForwardChats#fbeec0f0 = TopPeerCategory - public class TopPeerCategoryForwardChats : TopPeerCategory { } + public partial class TopPeerCategoryForwardChats : TopPeerCategory { } [TLDef(0xFB834291)] //topPeerCategoryPeers#fb834291 category:TopPeerCategory count:int peers:Vector = TopPeerCategoryPeers - public class TopPeerCategoryPeers : ITLObject + public partial class TopPeerCategoryPeers : ITLObject { public TopPeerCategory category; public int count; public TopPeer[] peers; } - public abstract class Contacts_TopPeersBase : ITLObject { } + public abstract partial class Contacts_TopPeersBase : ITLObject { } [TLDef(0xDE266EF5)] //contacts.topPeersNotModified#de266ef5 = contacts.TopPeers - public class Contacts_TopPeersNotModified : Contacts_TopPeersBase { } + public partial class Contacts_TopPeersNotModified : Contacts_TopPeersBase { } [TLDef(0x70B772A8)] //contacts.topPeers#70b772a8 categories:Vector chats:Vector users:Vector = contacts.TopPeers - public class Contacts_TopPeers : Contacts_TopPeersBase + public partial class Contacts_TopPeers : Contacts_TopPeersBase { public TopPeerCategoryPeers[] categories; public ChatBase[] chats; public UserBase[] users; } [TLDef(0xB52C939D)] //contacts.topPeersDisabled#b52c939d = contacts.TopPeers - public class Contacts_TopPeersDisabled : Contacts_TopPeersBase { } + public partial class Contacts_TopPeersDisabled : Contacts_TopPeersBase { } - public abstract class DraftMessageBase : ITLObject { } + public abstract partial class DraftMessageBase : ITLObject { } [TLDef(0x1B0C841A)] //draftMessageEmpty#1b0c841a flags:# date:flags.0?int = DraftMessage - public class DraftMessageEmpty : DraftMessageBase + public partial class DraftMessageEmpty : DraftMessageBase { [Flags] public enum Flags { has_date = 0x1 } public Flags flags; [IfFlag(0)] public DateTime date; } [TLDef(0xFD8E711F)] //draftMessage#fd8e711f flags:# no_webpage:flags.1?true reply_to_msg_id:flags.0?int message:string entities:flags.3?Vector date:int = DraftMessage - public class DraftMessage : DraftMessageBase + public partial class DraftMessage : DraftMessageBase { [Flags] public enum Flags { has_reply_to_msg_id = 0x1, no_webpage = 0x2, has_entities = 0x8 } public Flags flags; @@ -3185,11 +3185,11 @@ namespace TL public DateTime date; } - public abstract class Messages_FeaturedStickersBase : ITLObject { } + public abstract partial class Messages_FeaturedStickersBase : ITLObject { } [TLDef(0xC6DC0C66)] //messages.featuredStickersNotModified#c6dc0c66 count:int = messages.FeaturedStickers - public class Messages_FeaturedStickersNotModified : Messages_FeaturedStickersBase { public int count; } + public partial class Messages_FeaturedStickersNotModified : Messages_FeaturedStickersBase { public int count; } [TLDef(0xB6ABC341)] //messages.featuredStickers#b6abc341 hash:int count:int sets:Vector unread:Vector = messages.FeaturedStickers - public class Messages_FeaturedStickers : Messages_FeaturedStickersBase + public partial class Messages_FeaturedStickers : Messages_FeaturedStickersBase { public int hash; public int count; @@ -3197,11 +3197,11 @@ namespace TL public long[] unread; } - public abstract class Messages_RecentStickersBase : ITLObject { } + public abstract partial class Messages_RecentStickersBase : ITLObject { } [TLDef(0x0B17F890)] //messages.recentStickersNotModified#0b17f890 = messages.RecentStickers - public class Messages_RecentStickersNotModified : Messages_RecentStickersBase { } + public partial class Messages_RecentStickersNotModified : Messages_RecentStickersBase { } [TLDef(0x22F3AFB3)] //messages.recentStickers#22f3afb3 hash:int packs:Vector stickers:Vector dates:Vector = messages.RecentStickers - public class Messages_RecentStickers : Messages_RecentStickersBase + public partial class Messages_RecentStickers : Messages_RecentStickersBase { public int hash; public StickerPack[] packs; @@ -3210,34 +3210,34 @@ namespace TL } [TLDef(0x4FCBA9C8)] //messages.archivedStickers#4fcba9c8 count:int sets:Vector = messages.ArchivedStickers - public class Messages_ArchivedStickers : ITLObject + public partial class Messages_ArchivedStickers : ITLObject { public int count; public StickerSetCoveredBase[] sets; } - public abstract class Messages_StickerSetInstallResult : ITLObject { } + public abstract partial class Messages_StickerSetInstallResult : ITLObject { } [TLDef(0x38641628)] //messages.stickerSetInstallResultSuccess#38641628 = messages.StickerSetInstallResult - public class Messages_StickerSetInstallResultSuccess : Messages_StickerSetInstallResult { } + public partial class Messages_StickerSetInstallResultSuccess : Messages_StickerSetInstallResult { } [TLDef(0x35E410A8)] //messages.stickerSetInstallResultArchive#35e410a8 sets:Vector = messages.StickerSetInstallResult - public class Messages_StickerSetInstallResultArchive : Messages_StickerSetInstallResult { public StickerSetCoveredBase[] sets; } + public partial class Messages_StickerSetInstallResultArchive : Messages_StickerSetInstallResult { public StickerSetCoveredBase[] sets; } - public abstract class StickerSetCoveredBase : ITLObject { } + public abstract partial class StickerSetCoveredBase : ITLObject { } [TLDef(0x6410A5D2)] //stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered - public class StickerSetCovered : StickerSetCoveredBase + public partial class StickerSetCovered : StickerSetCoveredBase { public StickerSet set; public DocumentBase cover; } [TLDef(0x3407E51B)] //stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector = StickerSetCovered - public class StickerSetMultiCovered : StickerSetCoveredBase + public partial class StickerSetMultiCovered : StickerSetCoveredBase { public StickerSet set; public DocumentBase[] covers; } [TLDef(0xAED6DBB2)] //maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords - public class MaskCoords : ITLObject + public partial class MaskCoords : ITLObject { public int n; public double x; @@ -3245,14 +3245,14 @@ namespace TL public double zoom; } - public abstract class InputStickeredMedia : ITLObject { } + public abstract partial class InputStickeredMedia : ITLObject { } [TLDef(0x4A992157)] //inputStickeredMediaPhoto#4a992157 id:InputPhoto = InputStickeredMedia - public class InputStickeredMediaPhoto : InputStickeredMedia { public InputPhotoBase id; } + public partial class InputStickeredMediaPhoto : InputStickeredMedia { public InputPhotoBase id; } [TLDef(0x0438865B)] //inputStickeredMediaDocument#0438865b id:InputDocument = InputStickeredMedia - public class InputStickeredMediaDocument : InputStickeredMedia { public InputDocumentBase id; } + public partial class InputStickeredMediaDocument : InputStickeredMedia { public InputDocumentBase id; } [TLDef(0xBDF9653B)] //game#bdf9653b flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document = Game - public class Game : ITLObject + public partial class Game : ITLObject { [Flags] public enum Flags { has_document = 0x1 } public Flags flags; @@ -3265,22 +3265,22 @@ namespace TL [IfFlag(0)] public DocumentBase document; } - public abstract class InputGame : ITLObject { } + public abstract partial class InputGame : ITLObject { } [TLDef(0x032C3E77)] //inputGameID#032c3e77 id:long access_hash:long = InputGame - public class InputGameID : InputGame + public partial class InputGameID : InputGame { public long id; public long access_hash; } [TLDef(0xC331E80A)] //inputGameShortName#c331e80a bot_id:InputUser short_name:string = InputGame - public class InputGameShortName : InputGame + public partial class InputGameShortName : InputGame { public InputUserBase bot_id; public string short_name; } [TLDef(0x58FFFCD0)] //highScore#58fffcd0 pos:int user_id:int score:int = HighScore - public class HighScore : ITLObject + public partial class HighScore : ITLObject { public int pos; public int user_id; @@ -3288,115 +3288,115 @@ namespace TL } [TLDef(0x9A3BFD99)] //messages.highScores#9a3bfd99 scores:Vector users:Vector = messages.HighScores - public class Messages_HighScores : ITLObject + public partial class Messages_HighScores : ITLObject { public HighScore[] scores; public UserBase[] users; } - public abstract class RichText : ITLObject { } + public abstract partial class RichText : ITLObject { } [TLDef(0xDC3D824F)] //textEmpty#dc3d824f = RichText - public class TextEmpty : RichText { } + public partial class TextEmpty : RichText { } [TLDef(0x744694E0)] //textPlain#744694e0 text:string = RichText - public class TextPlain : RichText { public string text; } + public partial class TextPlain : RichText { public string text; } [TLDef(0x6724ABC4)] //textBold#6724abc4 text:RichText = RichText - public class TextBold : RichText { public RichText text; } + public partial class TextBold : RichText { public RichText text; } [TLDef(0xD912A59C)] //textItalic#d912a59c text:RichText = RichText - public class TextItalic : RichText { public RichText text; } + public partial class TextItalic : RichText { public RichText text; } [TLDef(0xC12622C4)] //textUnderline#c12622c4 text:RichText = RichText - public class TextUnderline : RichText { public RichText text; } + public partial class TextUnderline : RichText { public RichText text; } [TLDef(0x9BF8BB95)] //textStrike#9bf8bb95 text:RichText = RichText - public class TextStrike : RichText { public RichText text; } + public partial class TextStrike : RichText { public RichText text; } [TLDef(0x6C3F19B9)] //textFixed#6c3f19b9 text:RichText = RichText - public class TextFixed : RichText { public RichText text; } + public partial class TextFixed : RichText { public RichText text; } [TLDef(0x3C2884C1)] //textUrl#3c2884c1 text:RichText url:string webpage_id:long = RichText - public class TextUrl : RichText + public partial class TextUrl : RichText { public RichText text; public string url; public long webpage_id; } [TLDef(0xDE5A0DD6)] //textEmail#de5a0dd6 text:RichText email:string = RichText - public class TextEmail : RichText + public partial class TextEmail : RichText { public RichText text; public string email; } [TLDef(0x7E6260D7)] //textConcat#7e6260d7 texts:Vector = RichText - public class TextConcat : RichText { public RichText[] texts; } + public partial class TextConcat : RichText { public RichText[] texts; } [TLDef(0xED6A8504)] //textSubscript#ed6a8504 text:RichText = RichText - public class TextSubscript : RichText { public RichText text; } + public partial class TextSubscript : RichText { public RichText text; } [TLDef(0xC7FB5E01)] //textSuperscript#c7fb5e01 text:RichText = RichText - public class TextSuperscript : RichText { public RichText text; } + public partial class TextSuperscript : RichText { public RichText text; } [TLDef(0x034B8621)] //textMarked#034b8621 text:RichText = RichText - public class TextMarked : RichText { public RichText text; } + public partial class TextMarked : RichText { public RichText text; } [TLDef(0x1CCB966A)] //textPhone#1ccb966a text:RichText phone:string = RichText - public class TextPhone : RichText + public partial class TextPhone : RichText { public RichText text; public string phone; } [TLDef(0x081CCF4F)] //textImage#081ccf4f document_id:long w:int h:int = RichText - public class TextImage : RichText + public partial class TextImage : RichText { public long document_id; public int w; public int h; } [TLDef(0x35553762)] //textAnchor#35553762 text:RichText name:string = RichText - public class TextAnchor : RichText + public partial class TextAnchor : RichText { public RichText text; public string name; } - public abstract class PageBlock : ITLObject { } + public abstract partial class PageBlock : ITLObject { } [TLDef(0x13567E8A)] //pageBlockUnsupported#13567e8a = PageBlock - public class PageBlockUnsupported : PageBlock { } + public partial class PageBlockUnsupported : PageBlock { } [TLDef(0x70ABC3FD)] //pageBlockTitle#70abc3fd text:RichText = PageBlock - public class PageBlockTitle : PageBlock { public RichText text; } + public partial class PageBlockTitle : PageBlock { public RichText text; } [TLDef(0x8FFA9A1F)] //pageBlockSubtitle#8ffa9a1f text:RichText = PageBlock - public class PageBlockSubtitle : PageBlock { public RichText text; } + public partial class PageBlockSubtitle : PageBlock { public RichText text; } [TLDef(0xBAAFE5E0)] //pageBlockAuthorDate#baafe5e0 author:RichText published_date:int = PageBlock - public class PageBlockAuthorDate : PageBlock + public partial class PageBlockAuthorDate : PageBlock { public RichText author; public DateTime published_date; } [TLDef(0xBFD064EC)] //pageBlockHeader#bfd064ec text:RichText = PageBlock - public class PageBlockHeader : PageBlock { public RichText text; } + public partial class PageBlockHeader : PageBlock { public RichText text; } [TLDef(0xF12BB6E1)] //pageBlockSubheader#f12bb6e1 text:RichText = PageBlock - public class PageBlockSubheader : PageBlock { public RichText text; } + public partial class PageBlockSubheader : PageBlock { public RichText text; } [TLDef(0x467A0766)] //pageBlockParagraph#467a0766 text:RichText = PageBlock - public class PageBlockParagraph : PageBlock { public RichText text; } + public partial class PageBlockParagraph : PageBlock { public RichText text; } [TLDef(0xC070D93E)] //pageBlockPreformatted#c070d93e text:RichText language:string = PageBlock - public class PageBlockPreformatted : PageBlock + public partial class PageBlockPreformatted : PageBlock { public RichText text; public string language; } [TLDef(0x48870999)] //pageBlockFooter#48870999 text:RichText = PageBlock - public class PageBlockFooter : PageBlock { public RichText text; } + public partial class PageBlockFooter : PageBlock { public RichText text; } [TLDef(0xDB20B188)] //pageBlockDivider#db20b188 = PageBlock - public class PageBlockDivider : PageBlock { } + public partial class PageBlockDivider : PageBlock { } [TLDef(0xCE0D37B0)] //pageBlockAnchor#ce0d37b0 name:string = PageBlock - public class PageBlockAnchor : PageBlock { public string name; } + public partial class PageBlockAnchor : PageBlock { public string name; } [TLDef(0xE4E88011)] //pageBlockList#e4e88011 items:Vector = PageBlock - public class PageBlockList : PageBlock { public PageListItem[] items; } + public partial class PageBlockList : PageBlock { public PageListItem[] items; } [TLDef(0x263D7C26)] //pageBlockBlockquote#263d7c26 text:RichText caption:RichText = PageBlock - public class PageBlockBlockquote : PageBlock + public partial class PageBlockBlockquote : PageBlock { public RichText text; public RichText caption; } [TLDef(0x4F4456D3)] //pageBlockPullquote#4f4456d3 text:RichText caption:RichText = PageBlock - public class PageBlockPullquote : PageBlock + public partial class PageBlockPullquote : PageBlock { public RichText text; public RichText caption; } [TLDef(0x1759C560)] //pageBlockPhoto#1759c560 flags:# photo_id:long caption:PageCaption url:flags.0?string webpage_id:flags.0?long = PageBlock - public class PageBlockPhoto : PageBlock + public partial class PageBlockPhoto : PageBlock { [Flags] public enum Flags { has_url = 0x1 } public Flags flags; @@ -3406,7 +3406,7 @@ namespace TL [IfFlag(0)] public long webpage_id; } [TLDef(0x7C8FE7B6)] //pageBlockVideo#7c8fe7b6 flags:# autoplay:flags.0?true loop:flags.1?true video_id:long caption:PageCaption = PageBlock - public class PageBlockVideo : PageBlock + public partial class PageBlockVideo : PageBlock { [Flags] public enum Flags { autoplay = 0x1, loop = 0x2 } public Flags flags; @@ -3414,9 +3414,9 @@ namespace TL public PageCaption caption; } [TLDef(0x39F23300)] //pageBlockCover#39f23300 cover:PageBlock = PageBlock - public class PageBlockCover : PageBlock { public PageBlock cover; } + public partial class PageBlockCover : PageBlock { public PageBlock cover; } [TLDef(0xA8718DC5)] //pageBlockEmbed#a8718dc5 flags:# full_width:flags.0?true allow_scrolling:flags.3?true url:flags.1?string html:flags.2?string poster_photo_id:flags.4?long w:flags.5?int h:flags.5?int caption:PageCaption = PageBlock - public class PageBlockEmbed : PageBlock + public partial class PageBlockEmbed : PageBlock { [Flags] public enum Flags { full_width = 0x1, has_url = 0x2, has_html = 0x4, allow_scrolling = 0x8, has_poster_photo_id = 0x10, has_w = 0x20 } @@ -3429,7 +3429,7 @@ namespace TL public PageCaption caption; } [TLDef(0xF259A80B)] //pageBlockEmbedPost#f259a80b url:string webpage_id:long author_photo_id:long author:string date:int blocks:Vector caption:PageCaption = PageBlock - public class PageBlockEmbedPost : PageBlock + public partial class PageBlockEmbedPost : PageBlock { public string url; public long webpage_id; @@ -3440,29 +3440,29 @@ namespace TL public PageCaption caption; } [TLDef(0x65A0FA4D)] //pageBlockCollage#65a0fa4d items:Vector caption:PageCaption = PageBlock - public class PageBlockCollage : PageBlock + public partial class PageBlockCollage : PageBlock { public PageBlock[] items; public PageCaption caption; } [TLDef(0x031F9590)] //pageBlockSlideshow#031f9590 items:Vector caption:PageCaption = PageBlock - public class PageBlockSlideshow : PageBlock + public partial class PageBlockSlideshow : PageBlock { public PageBlock[] items; public PageCaption caption; } [TLDef(0xEF1751B5)] //pageBlockChannel#ef1751b5 channel:Chat = PageBlock - public class PageBlockChannel : PageBlock { public ChatBase channel; } + public partial class PageBlockChannel : PageBlock { public ChatBase channel; } [TLDef(0x804361EA)] //pageBlockAudio#804361ea audio_id:long caption:PageCaption = PageBlock - public class PageBlockAudio : PageBlock + public partial class PageBlockAudio : PageBlock { public long audio_id; public PageCaption caption; } [TLDef(0x1E148390)] //pageBlockKicker#1e148390 text:RichText = PageBlock - public class PageBlockKicker : PageBlock { public RichText text; } + public partial class PageBlockKicker : PageBlock { public RichText text; } [TLDef(0xBF4DEA82)] //pageBlockTable#bf4dea82 flags:# bordered:flags.0?true striped:flags.1?true title:RichText rows:Vector = PageBlock - public class PageBlockTable : PageBlock + public partial class PageBlockTable : PageBlock { [Flags] public enum Flags { bordered = 0x1, striped = 0x2 } public Flags flags; @@ -3470,9 +3470,9 @@ namespace TL public PageTableRow[] rows; } [TLDef(0x9A8AE1E1)] //pageBlockOrderedList#9a8ae1e1 items:Vector = PageBlock - public class PageBlockOrderedList : PageBlock { public PageListOrderedItem[] items; } + public partial class PageBlockOrderedList : PageBlock { public PageListOrderedItem[] items; } [TLDef(0x76768BED)] //pageBlockDetails#76768bed flags:# open:flags.0?true blocks:Vector title:RichText = PageBlock - public class PageBlockDetails : PageBlock + public partial class PageBlockDetails : PageBlock { [Flags] public enum Flags { open = 0x1 } public Flags flags; @@ -3480,13 +3480,13 @@ namespace TL public RichText title; } [TLDef(0x16115A96)] //pageBlockRelatedArticles#16115a96 title:RichText articles:Vector = PageBlock - public class PageBlockRelatedArticles : PageBlock + public partial class PageBlockRelatedArticles : PageBlock { public RichText title; public PageRelatedArticle[] articles; } [TLDef(0xA44F3EF6)] //pageBlockMap#a44f3ef6 geo:GeoPoint zoom:int w:int h:int caption:PageCaption = PageBlock - public class PageBlockMap : PageBlock + public partial class PageBlockMap : PageBlock { public GeoPointBase geo; public int zoom; @@ -3495,28 +3495,28 @@ namespace TL public PageCaption caption; } - public abstract class PhoneCallDiscardReason : ITLObject { } + public abstract partial class PhoneCallDiscardReason : ITLObject { } [TLDef(0x85E42301)] //phoneCallDiscardReasonMissed#85e42301 = PhoneCallDiscardReason - public class PhoneCallDiscardReasonMissed : PhoneCallDiscardReason { } + public partial class PhoneCallDiscardReasonMissed : PhoneCallDiscardReason { } [TLDef(0xE095C1A0)] //phoneCallDiscardReasonDisconnect#e095c1a0 = PhoneCallDiscardReason - public class PhoneCallDiscardReasonDisconnect : PhoneCallDiscardReason { } + public partial class PhoneCallDiscardReasonDisconnect : PhoneCallDiscardReason { } [TLDef(0x57ADC690)] //phoneCallDiscardReasonHangup#57adc690 = PhoneCallDiscardReason - public class PhoneCallDiscardReasonHangup : PhoneCallDiscardReason { } + public partial class PhoneCallDiscardReasonHangup : PhoneCallDiscardReason { } [TLDef(0xFAF7E8C9)] //phoneCallDiscardReasonBusy#faf7e8c9 = PhoneCallDiscardReason - public class PhoneCallDiscardReasonBusy : PhoneCallDiscardReason { } + public partial class PhoneCallDiscardReasonBusy : PhoneCallDiscardReason { } [TLDef(0x7D748D04)] //dataJSON#7d748d04 data:string = DataJSON - public class DataJSON : ITLObject { public string data; } + public partial class DataJSON : ITLObject { public string data; } [TLDef(0xCB296BF8)] //labeledPrice#cb296bf8 label:string amount:long = LabeledPrice - public class LabeledPrice : ITLObject + public partial class LabeledPrice : ITLObject { public string label; public long amount; } [TLDef(0xC30AA358)] //invoice#c30aa358 flags:# test:flags.0?true name_requested:flags.1?true phone_requested:flags.2?true email_requested:flags.3?true shipping_address_requested:flags.4?true flexible:flags.5?true phone_to_provider:flags.6?true email_to_provider:flags.7?true currency:string prices:Vector = Invoice - public class Invoice : ITLObject + public partial class Invoice : ITLObject { [Flags] public enum Flags { test = 0x1, name_requested = 0x2, phone_requested = 0x4, email_requested = 0x8, shipping_address_requested = 0x10, flexible = 0x20, phone_to_provider = 0x40, email_to_provider = 0x80 } @@ -3526,14 +3526,14 @@ namespace TL } [TLDef(0xEA02C27E)] //paymentCharge#ea02c27e id:string provider_charge_id:string = PaymentCharge - public class PaymentCharge : ITLObject + public partial class PaymentCharge : ITLObject { public string id; public string provider_charge_id; } [TLDef(0x1E8CAAEB)] //postAddress#1e8caaeb street_line1:string street_line2:string city:string state:string country_iso2:string post_code:string = PostAddress - public class PostAddress : ITLObject + public partial class PostAddress : ITLObject { public string street_line1; public string street_line2; @@ -3544,7 +3544,7 @@ namespace TL } [TLDef(0x909C3F94)] //paymentRequestedInfo#909c3f94 flags:# name:flags.0?string phone:flags.1?string email:flags.2?string shipping_address:flags.3?PostAddress = PaymentRequestedInfo - public class PaymentRequestedInfo : ITLObject + public partial class PaymentRequestedInfo : ITLObject { [Flags] public enum Flags { has_name = 0x1, has_phone = 0x2, has_email = 0x4, has_shipping_address = 0x8 } public Flags flags; @@ -3554,17 +3554,17 @@ namespace TL [IfFlag(3)] public PostAddress shipping_address; } - public abstract class PaymentSavedCredentials : ITLObject { } + public abstract partial class PaymentSavedCredentials : ITLObject { } [TLDef(0xCDC27A1F)] //paymentSavedCredentialsCard#cdc27a1f id:string title:string = PaymentSavedCredentials - public class PaymentSavedCredentialsCard : PaymentSavedCredentials + public partial class PaymentSavedCredentialsCard : PaymentSavedCredentials { public string id; public string title; } - public abstract class WebDocumentBase : ITLObject { } + public abstract partial class WebDocumentBase : ITLObject { } [TLDef(0x1C570ED1)] //webDocument#1c570ed1 url:string access_hash:long size:int mime_type:string attributes:Vector = WebDocument - public class WebDocument : WebDocumentBase + public partial class WebDocument : WebDocumentBase { public string url; public long access_hash; @@ -3573,7 +3573,7 @@ namespace TL public DocumentAttribute[] attributes; } [TLDef(0xF9C8BCC6)] //webDocumentNoProxy#f9c8bcc6 url:string size:int mime_type:string attributes:Vector = WebDocument - public class WebDocumentNoProxy : WebDocumentBase + public partial class WebDocumentNoProxy : WebDocumentBase { public string url; public int size; @@ -3582,7 +3582,7 @@ namespace TL } [TLDef(0x9BED434D)] //inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector = InputWebDocument - public class InputWebDocument : ITLObject + public partial class InputWebDocument : ITLObject { public string url; public int size; @@ -3590,15 +3590,15 @@ namespace TL public DocumentAttribute[] attributes; } - public abstract class InputWebFileLocationBase : ITLObject { } + public abstract partial class InputWebFileLocationBase : ITLObject { } [TLDef(0xC239D686)] //inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation - public class InputWebFileLocation : InputWebFileLocationBase + public partial class InputWebFileLocation : InputWebFileLocationBase { public string url; public long access_hash; } [TLDef(0x9F2221C9)] //inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation - public class InputWebFileGeoPointLocation : InputWebFileLocationBase + public partial class InputWebFileGeoPointLocation : InputWebFileLocationBase { public InputGeoPointBase geo_point; public long access_hash; @@ -3609,7 +3609,7 @@ namespace TL } [TLDef(0x21E753BC)] //upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile - public class Upload_WebFile : ITLObject + public partial class Upload_WebFile : ITLObject { public int size; public string mime_type; @@ -3619,7 +3619,7 @@ namespace TL } [TLDef(0x3F56AEA3)] //payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector = payments.PaymentForm - public class Payments_PaymentForm : ITLObject + public partial class Payments_PaymentForm : ITLObject { [Flags] public enum Flags { has_saved_info = 0x1, has_saved_credentials = 0x2, can_save_credentials = 0x4, password_missing = 0x8, has_native_provider = 0x10 } @@ -3636,7 +3636,7 @@ namespace TL } [TLDef(0xD1451883)] //payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo - public class Payments_ValidatedRequestedInfo : ITLObject + public partial class Payments_ValidatedRequestedInfo : ITLObject { [Flags] public enum Flags { has_id = 0x1, has_shipping_options = 0x2 } public Flags flags; @@ -3644,14 +3644,14 @@ namespace TL [IfFlag(1)] public ShippingOption[] shipping_options; } - public abstract class Payments_PaymentResultBase : ITLObject { } + public abstract partial class Payments_PaymentResultBase : ITLObject { } [TLDef(0x4E5F810D)] //payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult - public class Payments_PaymentResult : Payments_PaymentResultBase { public UpdatesBase updates; } + public partial class Payments_PaymentResult : Payments_PaymentResultBase { public UpdatesBase updates; } [TLDef(0xD8411139)] //payments.paymentVerificationNeeded#d8411139 url:string = payments.PaymentResult - public class Payments_PaymentVerificationNeeded : Payments_PaymentResultBase { public string url; } + public partial class Payments_PaymentVerificationNeeded : Payments_PaymentResultBase { public string url; } [TLDef(0x500911E1)] //payments.paymentReceipt#500911e1 flags:# date:int bot_id:int invoice:Invoice provider_id:int info:flags.0?PaymentRequestedInfo shipping:flags.1?ShippingOption currency:string total_amount:long credentials_title:string users:Vector = payments.PaymentReceipt - public class Payments_PaymentReceipt : ITLObject + public partial class Payments_PaymentReceipt : ITLObject { [Flags] public enum Flags { has_info = 0x1, has_shipping = 0x2 } public Flags flags; @@ -3668,45 +3668,45 @@ namespace TL } [TLDef(0xFB8FE43C)] //payments.savedInfo#fb8fe43c flags:# has_saved_credentials:flags.1?true saved_info:flags.0?PaymentRequestedInfo = payments.SavedInfo - public class Payments_SavedInfo : ITLObject + public partial class Payments_SavedInfo : ITLObject { [Flags] public enum Flags { has_saved_info = 0x1, has_saved_credentials = 0x2 } public Flags flags; [IfFlag(0)] public PaymentRequestedInfo saved_info; } - public abstract class InputPaymentCredentialsBase : ITLObject { } + public abstract partial class InputPaymentCredentialsBase : ITLObject { } [TLDef(0xC10EB2CF)] //inputPaymentCredentialsSaved#c10eb2cf id:string tmp_password:bytes = InputPaymentCredentials - public class InputPaymentCredentialsSaved : InputPaymentCredentialsBase + public partial class InputPaymentCredentialsSaved : InputPaymentCredentialsBase { public string id; public byte[] tmp_password; } [TLDef(0x3417D728)] //inputPaymentCredentials#3417d728 flags:# save:flags.0?true data:DataJSON = InputPaymentCredentials - public class InputPaymentCredentials : InputPaymentCredentialsBase + public partial class InputPaymentCredentials : InputPaymentCredentialsBase { [Flags] public enum Flags { save = 0x1 } public Flags flags; public DataJSON data; } [TLDef(0x0AA1C39F)] //inputPaymentCredentialsApplePay#0aa1c39f payment_data:DataJSON = InputPaymentCredentials - public class InputPaymentCredentialsApplePay : InputPaymentCredentialsBase { public DataJSON payment_data; } + public partial class InputPaymentCredentialsApplePay : InputPaymentCredentialsBase { public DataJSON payment_data; } [TLDef(0xCA05D50E)] //inputPaymentCredentialsAndroidPay#ca05d50e payment_token:DataJSON google_transaction_id:string = InputPaymentCredentials - public class InputPaymentCredentialsAndroidPay : InputPaymentCredentialsBase + public partial class InputPaymentCredentialsAndroidPay : InputPaymentCredentialsBase { public DataJSON payment_token; public string google_transaction_id; } [TLDef(0xDB64FD34)] //account.tmpPassword#db64fd34 tmp_password:bytes valid_until:int = account.TmpPassword - public class Account_TmpPassword : ITLObject + public partial class Account_TmpPassword : ITLObject { public byte[] tmp_password; public DateTime valid_until; } [TLDef(0xB6213CDF)] //shippingOption#b6213cdf id:string title:string prices:Vector = ShippingOption - public class ShippingOption : ITLObject + public partial class ShippingOption : ITLObject { public string id; public string title; @@ -3714,7 +3714,7 @@ namespace TL } [TLDef(0xFFA0A496)] //inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem - public class InputStickerSetItem : ITLObject + public partial class InputStickerSetItem : ITLObject { [Flags] public enum Flags { has_mask_coords = 0x1 } public Flags flags; @@ -3724,17 +3724,17 @@ namespace TL } [TLDef(0x1E36FDED)] //inputPhoneCall#1e36fded id:long access_hash:long = InputPhoneCall - public class InputPhoneCall : ITLObject + public partial class InputPhoneCall : ITLObject { public long id; public long access_hash; } - public abstract class PhoneCallBase : ITLObject { } + public abstract partial class PhoneCallBase : ITLObject { } [TLDef(0x5366C915)] //phoneCallEmpty#5366c915 id:long = PhoneCall - public class PhoneCallEmpty : PhoneCallBase { public long id; } + public partial class PhoneCallEmpty : PhoneCallBase { public long id; } [TLDef(0x1B8F4AD1)] //phoneCallWaiting#1b8f4ad1 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int protocol:PhoneCallProtocol receive_date:flags.0?int = PhoneCall - public class PhoneCallWaiting : PhoneCallBase + public partial class PhoneCallWaiting : PhoneCallBase { [Flags] public enum Flags { has_receive_date = 0x1, video = 0x40 } public Flags flags; @@ -3747,7 +3747,7 @@ namespace TL [IfFlag(0)] public DateTime receive_date; } [TLDef(0x87EABB53)] //phoneCallRequested#87eabb53 flags:# video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int g_a_hash:bytes protocol:PhoneCallProtocol = PhoneCall - public class PhoneCallRequested : PhoneCallBase + public partial class PhoneCallRequested : PhoneCallBase { [Flags] public enum Flags { video = 0x40 } public Flags flags; @@ -3760,7 +3760,7 @@ namespace TL public PhoneCallProtocol protocol; } [TLDef(0x997C454A)] //phoneCallAccepted#997c454a flags:# video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int g_b:bytes protocol:PhoneCallProtocol = PhoneCall - public class PhoneCallAccepted : PhoneCallBase + public partial class PhoneCallAccepted : PhoneCallBase { [Flags] public enum Flags { video = 0x40 } public Flags flags; @@ -3773,7 +3773,7 @@ namespace TL public PhoneCallProtocol protocol; } [TLDef(0x8742AE7F)] //phoneCall#8742ae7f flags:# p2p_allowed:flags.5?true video:flags.6?true id:long access_hash:long date:int admin_id:int participant_id:int g_a_or_b:bytes key_fingerprint:long protocol:PhoneCallProtocol connections:Vector start_date:int = PhoneCall - public class PhoneCall : PhoneCallBase + public partial class PhoneCall : PhoneCallBase { [Flags] public enum Flags { p2p_allowed = 0x20, video = 0x40 } public Flags flags; @@ -3789,7 +3789,7 @@ namespace TL public DateTime start_date; } [TLDef(0x50CA4DE1)] //phoneCallDiscarded#50ca4de1 flags:# need_rating:flags.2?true need_debug:flags.3?true video:flags.6?true id:long reason:flags.0?PhoneCallDiscardReason duration:flags.1?int = PhoneCall - public class PhoneCallDiscarded : PhoneCallBase + public partial class PhoneCallDiscarded : PhoneCallBase { [Flags] public enum Flags { has_reason = 0x1, has_duration = 0x2, need_rating = 0x4, need_debug = 0x8, video = 0x40 } public Flags flags; @@ -3798,9 +3798,9 @@ namespace TL [IfFlag(1)] public int duration; } - public abstract class PhoneConnectionBase : ITLObject { } + public abstract partial class PhoneConnectionBase : ITLObject { } [TLDef(0x9D4C17C0)] //phoneConnection#9d4c17c0 id:long ip:string ipv6:string port:int peer_tag:bytes = PhoneConnection - public class PhoneConnection : PhoneConnectionBase + public partial class PhoneConnection : PhoneConnectionBase { public long id; public string ip; @@ -3809,7 +3809,7 @@ namespace TL public byte[] peer_tag; } [TLDef(0x635FE375)] //phoneConnectionWebrtc#635fe375 flags:# turn:flags.0?true stun:flags.1?true id:long ip:string ipv6:string port:int username:string password:string = PhoneConnection - public class PhoneConnectionWebrtc : PhoneConnectionBase + public partial class PhoneConnectionWebrtc : PhoneConnectionBase { [Flags] public enum Flags { turn = 0x1, stun = 0x2 } public Flags flags; @@ -3822,7 +3822,7 @@ namespace TL } [TLDef(0xFC878FC8)] //phoneCallProtocol#fc878fc8 flags:# udp_p2p:flags.0?true udp_reflector:flags.1?true min_layer:int max_layer:int library_versions:Vector = PhoneCallProtocol - public class PhoneCallProtocol : ITLObject + public partial class PhoneCallProtocol : ITLObject { [Flags] public enum Flags { udp_p2p = 0x1, udp_reflector = 0x2 } public Flags flags; @@ -3832,37 +3832,37 @@ namespace TL } [TLDef(0xEC82E140)] //phone.phoneCall#ec82e140 phone_call:PhoneCall users:Vector = phone.PhoneCall - public class Phone_PhoneCall : ITLObject + public partial class Phone_PhoneCall : ITLObject { public PhoneCallBase phone_call; public UserBase[] users; } - public abstract class Upload_CdnFileBase : ITLObject { } + public abstract partial class Upload_CdnFileBase : ITLObject { } [TLDef(0xEEA8E46E)] //upload.cdnFileReuploadNeeded#eea8e46e request_token:bytes = upload.CdnFile - public class Upload_CdnFileReuploadNeeded : Upload_CdnFileBase { public byte[] request_token; } + public partial class Upload_CdnFileReuploadNeeded : Upload_CdnFileBase { public byte[] request_token; } [TLDef(0xA99FCA4F)] //upload.cdnFile#a99fca4f bytes:bytes = upload.CdnFile - public class Upload_CdnFile : Upload_CdnFileBase { public byte[] bytes; } + public partial class Upload_CdnFile : Upload_CdnFileBase { public byte[] bytes; } [TLDef(0xC982EABA)] //cdnPublicKey#c982eaba dc_id:int public_key:string = CdnPublicKey - public class CdnPublicKey : ITLObject + public partial class CdnPublicKey : ITLObject { public int dc_id; public string public_key; } [TLDef(0x5725E40A)] //cdnConfig#5725e40a public_keys:Vector = CdnConfig - public class CdnConfig : ITLObject { public CdnPublicKey[] public_keys; } + public partial class CdnConfig : ITLObject { public CdnPublicKey[] public_keys; } - public abstract class LangPackStringBase : ITLObject { } + public abstract partial class LangPackStringBase : ITLObject { } [TLDef(0xCAD181F6)] //langPackString#cad181f6 key:string value:string = LangPackString - public class LangPackString : LangPackStringBase + public partial class LangPackString : LangPackStringBase { public string key; public string value; } [TLDef(0x6C47AC9F)] //langPackStringPluralized#6c47ac9f flags:# key:string zero_value:flags.0?string one_value:flags.1?string two_value:flags.2?string few_value:flags.3?string many_value:flags.4?string other_value:string = LangPackString - public class LangPackStringPluralized : LangPackStringBase + public partial class LangPackStringPluralized : LangPackStringBase { [Flags] public enum Flags { has_zero_value = 0x1, has_one_value = 0x2, has_two_value = 0x4, has_few_value = 0x8, has_many_value = 0x10 } @@ -3876,10 +3876,10 @@ namespace TL public string other_value; } [TLDef(0x2979EEB2)] //langPackStringDeleted#2979eeb2 key:string = LangPackString - public class LangPackStringDeleted : LangPackStringBase { public string key; } + public partial class LangPackStringDeleted : LangPackStringBase { public string key; } [TLDef(0xF385C1F6)] //langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector = LangPackDifference - public class LangPackDifference : ITLObject + public partial class LangPackDifference : ITLObject { public string lang_code; public int from_version; @@ -3888,7 +3888,7 @@ namespace TL } [TLDef(0xEECA5CE3)] //langPackLanguage#eeca5ce3 flags:# official:flags.0?true rtl:flags.2?true beta:flags.3?true name:string native_name:string lang_code:string base_lang_code:flags.1?string plural_code:string strings_count:int translated_count:int translations_url:string = LangPackLanguage - public class LangPackLanguage : ITLObject + public partial class LangPackLanguage : ITLObject { [Flags] public enum Flags { official = 0x1, has_base_lang_code = 0x2, rtl = 0x4, beta = 0x8 } public Flags flags; @@ -3902,100 +3902,100 @@ namespace TL public string translations_url; } - public abstract class ChannelAdminLogEventAction : ITLObject { } + public abstract partial class ChannelAdminLogEventAction : ITLObject { } [TLDef(0xE6DFB825)] //channelAdminLogEventActionChangeTitle#e6dfb825 prev_value:string new_value:string = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionChangeTitle : ChannelAdminLogEventAction + public partial class ChannelAdminLogEventActionChangeTitle : ChannelAdminLogEventAction { public string prev_value; public string new_value; } [TLDef(0x55188A2E)] //channelAdminLogEventActionChangeAbout#55188a2e prev_value:string new_value:string = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionChangeAbout : ChannelAdminLogEventAction + public partial class ChannelAdminLogEventActionChangeAbout : ChannelAdminLogEventAction { public string prev_value; public string new_value; } [TLDef(0x6A4AFC38)] //channelAdminLogEventActionChangeUsername#6a4afc38 prev_value:string new_value:string = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionChangeUsername : ChannelAdminLogEventAction + public partial class ChannelAdminLogEventActionChangeUsername : ChannelAdminLogEventAction { public string prev_value; public string new_value; } [TLDef(0x434BD2AF)] //channelAdminLogEventActionChangePhoto#434bd2af prev_photo:Photo new_photo:Photo = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionChangePhoto : ChannelAdminLogEventAction + public partial class ChannelAdminLogEventActionChangePhoto : ChannelAdminLogEventAction { public PhotoBase prev_photo; public PhotoBase new_photo; } [TLDef(0x1B7907AE)] //channelAdminLogEventActionToggleInvites#1b7907ae new_value:Bool = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionToggleInvites : ChannelAdminLogEventAction { public bool new_value; } + public partial class ChannelAdminLogEventActionToggleInvites : ChannelAdminLogEventAction { public bool new_value; } [TLDef(0x26AE0971)] //channelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionToggleSignatures : ChannelAdminLogEventAction { public bool new_value; } + public partial class ChannelAdminLogEventActionToggleSignatures : ChannelAdminLogEventAction { public bool new_value; } [TLDef(0xE9E82C18)] //channelAdminLogEventActionUpdatePinned#e9e82c18 message:Message = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionUpdatePinned : ChannelAdminLogEventAction { public MessageBase message; } + public partial class ChannelAdminLogEventActionUpdatePinned : ChannelAdminLogEventAction { public MessageBase message; } [TLDef(0x709B2405)] //channelAdminLogEventActionEditMessage#709b2405 prev_message:Message new_message:Message = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionEditMessage : ChannelAdminLogEventAction + public partial class ChannelAdminLogEventActionEditMessage : ChannelAdminLogEventAction { public MessageBase prev_message; public MessageBase new_message; } [TLDef(0x42E047BB)] //channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionDeleteMessage : ChannelAdminLogEventAction { public MessageBase message; } + public partial class ChannelAdminLogEventActionDeleteMessage : ChannelAdminLogEventAction { public MessageBase message; } [TLDef(0x183040D3)] //channelAdminLogEventActionParticipantJoin#183040d3 = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionParticipantJoin : ChannelAdminLogEventAction { } + public partial class ChannelAdminLogEventActionParticipantJoin : ChannelAdminLogEventAction { } [TLDef(0xF89777F2)] //channelAdminLogEventActionParticipantLeave#f89777f2 = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionParticipantLeave : ChannelAdminLogEventAction { } + public partial class ChannelAdminLogEventActionParticipantLeave : ChannelAdminLogEventAction { } [TLDef(0xE31C34D8)] //channelAdminLogEventActionParticipantInvite#e31c34d8 participant:ChannelParticipant = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionParticipantInvite : ChannelAdminLogEventAction { public ChannelParticipantBase participant; } + public partial class ChannelAdminLogEventActionParticipantInvite : ChannelAdminLogEventAction { public ChannelParticipantBase participant; } [TLDef(0xE6D83D7E)] //channelAdminLogEventActionParticipantToggleBan#e6d83d7e prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionParticipantToggleBan : ChannelAdminLogEventAction + public partial class ChannelAdminLogEventActionParticipantToggleBan : ChannelAdminLogEventAction { public ChannelParticipantBase prev_participant; public ChannelParticipantBase new_participant; } [TLDef(0xD5676710)] //channelAdminLogEventActionParticipantToggleAdmin#d5676710 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionParticipantToggleAdmin : ChannelAdminLogEventAction + public partial class ChannelAdminLogEventActionParticipantToggleAdmin : ChannelAdminLogEventAction { public ChannelParticipantBase prev_participant; public ChannelParticipantBase new_participant; } [TLDef(0xB1C3CAA7)] //channelAdminLogEventActionChangeStickerSet#b1c3caa7 prev_stickerset:InputStickerSet new_stickerset:InputStickerSet = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionChangeStickerSet : ChannelAdminLogEventAction + public partial class ChannelAdminLogEventActionChangeStickerSet : ChannelAdminLogEventAction { public InputStickerSet prev_stickerset; public InputStickerSet new_stickerset; } [TLDef(0x5F5C95F1)] //channelAdminLogEventActionTogglePreHistoryHidden#5f5c95f1 new_value:Bool = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionTogglePreHistoryHidden : ChannelAdminLogEventAction { public bool new_value; } + public partial class ChannelAdminLogEventActionTogglePreHistoryHidden : ChannelAdminLogEventAction { public bool new_value; } [TLDef(0x2DF5FC0A)] //channelAdminLogEventActionDefaultBannedRights#2df5fc0a prev_banned_rights:ChatBannedRights new_banned_rights:ChatBannedRights = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionDefaultBannedRights : ChannelAdminLogEventAction + public partial class ChannelAdminLogEventActionDefaultBannedRights : ChannelAdminLogEventAction { public ChatBannedRights prev_banned_rights; public ChatBannedRights new_banned_rights; } [TLDef(0x8F079643)] //channelAdminLogEventActionStopPoll#8f079643 message:Message = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionStopPoll : ChannelAdminLogEventAction { public MessageBase message; } + public partial class ChannelAdminLogEventActionStopPoll : ChannelAdminLogEventAction { public MessageBase message; } [TLDef(0xA26F881B)] //channelAdminLogEventActionChangeLinkedChat#a26f881b prev_value:int new_value:int = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionChangeLinkedChat : ChannelAdminLogEventAction + public partial class ChannelAdminLogEventActionChangeLinkedChat : ChannelAdminLogEventAction { public int prev_value; public int new_value; } [TLDef(0x0E6B76AE)] //channelAdminLogEventActionChangeLocation#0e6b76ae prev_value:ChannelLocation new_value:ChannelLocation = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionChangeLocation : ChannelAdminLogEventAction + public partial class ChannelAdminLogEventActionChangeLocation : ChannelAdminLogEventAction { public ChannelLocationBase prev_value; public ChannelLocationBase new_value; } [TLDef(0x53909779)] //channelAdminLogEventActionToggleSlowMode#53909779 prev_value:int new_value:int = ChannelAdminLogEventAction - public class ChannelAdminLogEventActionToggleSlowMode : ChannelAdminLogEventAction + public partial class ChannelAdminLogEventActionToggleSlowMode : ChannelAdminLogEventAction { public int prev_value; public int new_value; } [TLDef(0x3B5A3E40)] //channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent - public class ChannelAdminLogEvent : ITLObject + public partial class ChannelAdminLogEvent : ITLObject { public long id; public DateTime date; @@ -4004,7 +4004,7 @@ namespace TL } [TLDef(0xED8AF74D)] //channels.adminLogResults#ed8af74d events:Vector chats:Vector users:Vector = channels.AdminLogResults - public class Channels_AdminLogResults : ITLObject + public partial class Channels_AdminLogResults : ITLObject { public ChannelAdminLogEvent[] events; public ChatBase[] chats; @@ -4012,7 +4012,7 @@ namespace TL } [TLDef(0xEA107AE4)] //channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true group_call:flags.14?true invites:flags.15?true = ChannelAdminLogEventsFilter - public class ChannelAdminLogEventsFilter : ITLObject + public partial class ChannelAdminLogEventsFilter : ITLObject { [Flags] public enum Flags { join = 0x1, leave = 0x2, invite = 0x4, ban = 0x8, unban = 0x10, kick = 0x20, unkick = 0x40, promote = 0x80, demote = 0x100, info = 0x200, settings = 0x400, pinned = 0x800, edit = 0x1000, delete = 0x2000, @@ -4021,37 +4021,37 @@ namespace TL } [TLDef(0x5CE14175)] //popularContact#5ce14175 client_id:long importers:int = PopularContact - public class PopularContact : ITLObject + public partial class PopularContact : ITLObject { public long client_id; public int importers; } - public abstract class Messages_FavedStickersBase : ITLObject { } + public abstract partial class Messages_FavedStickersBase : ITLObject { } [TLDef(0x9E8FA6D3)] //messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers - public class Messages_FavedStickersNotModified : Messages_FavedStickersBase { } + public partial class Messages_FavedStickersNotModified : Messages_FavedStickersBase { } [TLDef(0xF37F2F16)] //messages.favedStickers#f37f2f16 hash:int packs:Vector stickers:Vector = messages.FavedStickers - public class Messages_FavedStickers : Messages_FavedStickersBase + public partial class Messages_FavedStickers : Messages_FavedStickersBase { public int hash; public StickerPack[] packs; public DocumentBase[] stickers; } - public abstract class RecentMeUrl : ITLObject { public string url; } + public abstract partial class RecentMeUrl : ITLObject { public string url; } [TLDef(0x46E1D13D)] //recentMeUrlUnknown#46e1d13d url:string = RecentMeUrl - public class RecentMeUrlUnknown : RecentMeUrl { } + public partial class RecentMeUrlUnknown : RecentMeUrl { } [TLDef(0x8DBC3336)] //recentMeUrlUser#8dbc3336 url:string user_id:int = RecentMeUrl - public class RecentMeUrlUser : RecentMeUrl { public int user_id; } + public partial class RecentMeUrlUser : RecentMeUrl { public int user_id; } [TLDef(0xA01B22F9)] //recentMeUrlChat#a01b22f9 url:string chat_id:int = RecentMeUrl - public class RecentMeUrlChat : RecentMeUrl { public int chat_id; } + public partial class RecentMeUrlChat : RecentMeUrl { public int chat_id; } [TLDef(0xEB49081D)] //recentMeUrlChatInvite#eb49081d url:string chat_invite:ChatInvite = RecentMeUrl - public class RecentMeUrlChatInvite : RecentMeUrl { public ChatInviteBase chat_invite; } + public partial class RecentMeUrlChatInvite : RecentMeUrl { public ChatInviteBase chat_invite; } [TLDef(0xBC0A57DC)] //recentMeUrlStickerSet#bc0a57dc url:string set:StickerSetCovered = RecentMeUrl - public class RecentMeUrlStickerSet : RecentMeUrl { public StickerSetCoveredBase set; } + public partial class RecentMeUrlStickerSet : RecentMeUrl { public StickerSetCoveredBase set; } [TLDef(0x0E0310D7)] //help.recentMeUrls#0e0310d7 urls:Vector chats:Vector users:Vector = help.RecentMeUrls - public class Help_RecentMeUrls : ITLObject + public partial class Help_RecentMeUrls : ITLObject { public RecentMeUrl[] urls; public ChatBase[] chats; @@ -4059,7 +4059,7 @@ namespace TL } [TLDef(0x1CC6E91F)] //inputSingleMedia#1cc6e91f flags:# media:InputMedia random_id:long message:string entities:flags.0?Vector = InputSingleMedia - public class InputSingleMedia : ITLObject + public partial class InputSingleMedia : ITLObject { [Flags] public enum Flags { has_entities = 0x1 } public Flags flags; @@ -4070,7 +4070,7 @@ namespace TL } [TLDef(0xCAC943F2)] //webAuthorization#cac943f2 hash:long bot_id:int domain:string browser:string platform:string date_created:int date_active:int ip:string region:string = WebAuthorization - public class WebAuthorization : ITLObject + public partial class WebAuthorization : ITLObject { public long hash; public int bot_id; @@ -4084,50 +4084,50 @@ namespace TL } [TLDef(0xED56C9FC)] //account.webAuthorizations#ed56c9fc authorizations:Vector users:Vector = account.WebAuthorizations - public class Account_WebAuthorizations : ITLObject + public partial class Account_WebAuthorizations : ITLObject { public WebAuthorization[] authorizations; public UserBase[] users; } - public abstract class InputMessage : ITLObject { } + public abstract partial class InputMessage : ITLObject { } [TLDef(0xA676A322)] //inputMessageID#a676a322 id:int = InputMessage - public class InputMessageID : InputMessage { public int id; } + public partial class InputMessageID : InputMessage { public int id; } [TLDef(0xBAD88395)] //inputMessageReplyTo#bad88395 id:int = InputMessage - public class InputMessageReplyTo : InputMessage { public int id; } + public partial class InputMessageReplyTo : InputMessage { public int id; } [TLDef(0x86872538)] //inputMessagePinned#86872538 = InputMessage - public class InputMessagePinned : InputMessage { } + public partial class InputMessagePinned : InputMessage { } [TLDef(0xACFA1A7E)] //inputMessageCallbackQuery#acfa1a7e id:int query_id:long = InputMessage - public class InputMessageCallbackQuery : InputMessage + public partial class InputMessageCallbackQuery : InputMessage { public int id; public long query_id; } - public abstract class InputDialogPeerBase : ITLObject { } + public abstract partial class InputDialogPeerBase : ITLObject { } [TLDef(0xFCAAFEB7)] //inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer - public class InputDialogPeer : InputDialogPeerBase { public InputPeer peer; } + public partial class InputDialogPeer : InputDialogPeerBase { public InputPeer peer; } [TLDef(0x64600527)] //inputDialogPeerFolder#64600527 folder_id:int = InputDialogPeer - public class InputDialogPeerFolder : InputDialogPeerBase { public int folder_id; } + public partial class InputDialogPeerFolder : InputDialogPeerBase { public int folder_id; } - public abstract class DialogPeerBase : ITLObject { } + public abstract partial class DialogPeerBase : ITLObject { } [TLDef(0xE56DBF05)] //dialogPeer#e56dbf05 peer:Peer = DialogPeer - public class DialogPeer : DialogPeerBase { public Peer peer; } + public partial class DialogPeer : DialogPeerBase { public Peer peer; } [TLDef(0x514519E2)] //dialogPeerFolder#514519e2 folder_id:int = DialogPeer - public class DialogPeerFolder : DialogPeerBase { public int folder_id; } + public partial class DialogPeerFolder : DialogPeerBase { public int folder_id; } - public abstract class Messages_FoundStickerSetsBase : ITLObject { } + public abstract partial class Messages_FoundStickerSetsBase : ITLObject { } [TLDef(0x0D54B65D)] //messages.foundStickerSetsNotModified#0d54b65d = messages.FoundStickerSets - public class Messages_FoundStickerSetsNotModified : Messages_FoundStickerSetsBase { } + public partial class Messages_FoundStickerSetsNotModified : Messages_FoundStickerSetsBase { } [TLDef(0x5108D648)] //messages.foundStickerSets#5108d648 hash:int sets:Vector = messages.FoundStickerSets - public class Messages_FoundStickerSets : Messages_FoundStickerSetsBase + public partial class Messages_FoundStickerSets : Messages_FoundStickerSetsBase { public int hash; public StickerSetCoveredBase[] sets; } [TLDef(0x6242C773)] //fileHash#6242c773 offset:int limit:int hash:bytes = FileHash - public class FileHash : ITLObject + public partial class FileHash : ITLObject { public int offset; public int limit; @@ -4135,25 +4135,25 @@ namespace TL } [TLDef(0x75588B3F)] //inputClientProxy#75588b3f address:string port:int = InputClientProxy - public class InputClientProxy : ITLObject + public partial class InputClientProxy : ITLObject { public string address; public int port; } - public abstract class Help_TermsOfServiceUpdateBase : ITLObject { } + public abstract partial class Help_TermsOfServiceUpdateBase : ITLObject { } [TLDef(0xE3309F7F)] //help.termsOfServiceUpdateEmpty#e3309f7f expires:int = help.TermsOfServiceUpdate - public class Help_TermsOfServiceUpdateEmpty : Help_TermsOfServiceUpdateBase { public DateTime expires; } + public partial class Help_TermsOfServiceUpdateEmpty : Help_TermsOfServiceUpdateBase { public DateTime expires; } [TLDef(0x28ECF961)] //help.termsOfServiceUpdate#28ecf961 expires:int terms_of_service:help.TermsOfService = help.TermsOfServiceUpdate - public class Help_TermsOfServiceUpdate : Help_TermsOfServiceUpdateBase + public partial class Help_TermsOfServiceUpdate : Help_TermsOfServiceUpdateBase { public DateTime expires; public Help_TermsOfService terms_of_service; } - public abstract class InputSecureFileBase : ITLObject { } + public abstract partial class InputSecureFileBase : ITLObject { } [TLDef(0x3334B0F0)] //inputSecureFileUploaded#3334b0f0 id:long parts:int md5_checksum:string file_hash:bytes secret:bytes = InputSecureFile - public class InputSecureFileUploaded : InputSecureFileBase + public partial class InputSecureFileUploaded : InputSecureFileBase { public long id; public int parts; @@ -4162,17 +4162,17 @@ namespace TL public byte[] secret; } [TLDef(0x5367E5BE)] //inputSecureFile#5367e5be id:long access_hash:long = InputSecureFile - public class InputSecureFile : InputSecureFileBase + public partial class InputSecureFile : InputSecureFileBase { public long id; public long access_hash; } - public abstract class SecureFileBase : ITLObject { } + public abstract partial class SecureFileBase : ITLObject { } [TLDef(0x64199744)] //secureFileEmpty#64199744 = SecureFile - public class SecureFileEmpty : SecureFileBase { } + public partial class SecureFileEmpty : SecureFileBase { } [TLDef(0xE0277A62)] //secureFile#e0277a62 id:long access_hash:long size:int dc_id:int date:int file_hash:bytes secret:bytes = SecureFile - public class SecureFile : SecureFileBase + public partial class SecureFile : SecureFileBase { public long id; public long access_hash; @@ -4184,49 +4184,49 @@ namespace TL } [TLDef(0x8AEABEC3)] //secureData#8aeabec3 data:bytes data_hash:bytes secret:bytes = SecureData - public class SecureData : ITLObject + public partial class SecureData : ITLObject { public byte[] data; public byte[] data_hash; public byte[] secret; } - public abstract class SecurePlainData : ITLObject { } + public abstract partial class SecurePlainData : ITLObject { } [TLDef(0x7D6099DD)] //securePlainPhone#7d6099dd phone:string = SecurePlainData - public class SecurePlainPhone : SecurePlainData { public string phone; } + public partial class SecurePlainPhone : SecurePlainData { public string phone; } [TLDef(0x21EC5A5F)] //securePlainEmail#21ec5a5f email:string = SecurePlainData - public class SecurePlainEmail : SecurePlainData { public string email; } + public partial class SecurePlainEmail : SecurePlainData { public string email; } - public abstract class SecureValueType : ITLObject { } + public abstract partial class SecureValueType : ITLObject { } [TLDef(0x9D2A81E3)] //secureValueTypePersonalDetails#9d2a81e3 = SecureValueType - public class SecureValueTypePersonalDetails : SecureValueType { } + public partial class SecureValueTypePersonalDetails : SecureValueType { } [TLDef(0x3DAC6A00)] //secureValueTypePassport#3dac6a00 = SecureValueType - public class SecureValueTypePassport : SecureValueType { } + public partial class SecureValueTypePassport : SecureValueType { } [TLDef(0x06E425C4)] //secureValueTypeDriverLicense#06e425c4 = SecureValueType - public class SecureValueTypeDriverLicense : SecureValueType { } + public partial class SecureValueTypeDriverLicense : SecureValueType { } [TLDef(0xA0D0744B)] //secureValueTypeIdentityCard#a0d0744b = SecureValueType - public class SecureValueTypeIdentityCard : SecureValueType { } + public partial class SecureValueTypeIdentityCard : SecureValueType { } [TLDef(0x99A48F23)] //secureValueTypeInternalPassport#99a48f23 = SecureValueType - public class SecureValueTypeInternalPassport : SecureValueType { } + public partial class SecureValueTypeInternalPassport : SecureValueType { } [TLDef(0xCBE31E26)] //secureValueTypeAddress#cbe31e26 = SecureValueType - public class SecureValueTypeAddress : SecureValueType { } + public partial class SecureValueTypeAddress : SecureValueType { } [TLDef(0xFC36954E)] //secureValueTypeUtilityBill#fc36954e = SecureValueType - public class SecureValueTypeUtilityBill : SecureValueType { } + public partial class SecureValueTypeUtilityBill : SecureValueType { } [TLDef(0x89137C0D)] //secureValueTypeBankStatement#89137c0d = SecureValueType - public class SecureValueTypeBankStatement : SecureValueType { } + public partial class SecureValueTypeBankStatement : SecureValueType { } [TLDef(0x8B883488)] //secureValueTypeRentalAgreement#8b883488 = SecureValueType - public class SecureValueTypeRentalAgreement : SecureValueType { } + public partial class SecureValueTypeRentalAgreement : SecureValueType { } [TLDef(0x99E3806A)] //secureValueTypePassportRegistration#99e3806a = SecureValueType - public class SecureValueTypePassportRegistration : SecureValueType { } + public partial class SecureValueTypePassportRegistration : SecureValueType { } [TLDef(0xEA02EC33)] //secureValueTypeTemporaryRegistration#ea02ec33 = SecureValueType - public class SecureValueTypeTemporaryRegistration : SecureValueType { } + public partial class SecureValueTypeTemporaryRegistration : SecureValueType { } [TLDef(0xB320AADB)] //secureValueTypePhone#b320aadb = SecureValueType - public class SecureValueTypePhone : SecureValueType { } + public partial class SecureValueTypePhone : SecureValueType { } [TLDef(0x8E3CA7EE)] //secureValueTypeEmail#8e3ca7ee = SecureValueType - public class SecureValueTypeEmail : SecureValueType { } + public partial class SecureValueTypeEmail : SecureValueType { } [TLDef(0x187FA0CA)] //secureValue#187fa0ca flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?SecureFile reverse_side:flags.2?SecureFile selfie:flags.3?SecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData hash:bytes = SecureValue - public class SecureValue : ITLObject + public partial class SecureValue : ITLObject { [Flags] public enum Flags { has_data = 0x1, has_front_side = 0x2, has_reverse_side = 0x4, has_selfie = 0x8, has_files = 0x10, has_plain_data = 0x20, has_translation = 0x40 } @@ -4243,7 +4243,7 @@ namespace TL } [TLDef(0xDB21D0A7)] //inputSecureValue#db21d0a7 flags:# type:SecureValueType data:flags.0?SecureData front_side:flags.1?InputSecureFile reverse_side:flags.2?InputSecureFile selfie:flags.3?InputSecureFile translation:flags.6?Vector files:flags.4?Vector plain_data:flags.5?SecurePlainData = InputSecureValue - public class InputSecureValue : ITLObject + public partial class InputSecureValue : ITLObject { [Flags] public enum Flags { has_data = 0x1, has_front_side = 0x2, has_reverse_side = 0x4, has_selfie = 0x8, has_files = 0x10, has_plain_data = 0x20, has_translation = 0x40 } @@ -4259,15 +4259,15 @@ namespace TL } [TLDef(0xED1ECDB0)] //secureValueHash#ed1ecdb0 type:SecureValueType hash:bytes = SecureValueHash - public class SecureValueHash : ITLObject + public partial class SecureValueHash : ITLObject { public SecureValueType type; public byte[] hash; } - public abstract class SecureValueErrorBase : ITLObject { } + public abstract partial class SecureValueErrorBase : ITLObject { } [TLDef(0xE8A40BD9)] //secureValueErrorData#e8a40bd9 type:SecureValueType data_hash:bytes field:string text:string = SecureValueError - public class SecureValueErrorData : SecureValueErrorBase + public partial class SecureValueErrorData : SecureValueErrorBase { public SecureValueType type; public byte[] data_hash; @@ -4275,56 +4275,56 @@ namespace TL public string text; } [TLDef(0x00BE3DFA)] //secureValueErrorFrontSide#00be3dfa type:SecureValueType file_hash:bytes text:string = SecureValueError - public class SecureValueErrorFrontSide : SecureValueErrorBase + public partial class SecureValueErrorFrontSide : SecureValueErrorBase { public SecureValueType type; public byte[] file_hash; public string text; } [TLDef(0x868A2AA5)] //secureValueErrorReverseSide#868a2aa5 type:SecureValueType file_hash:bytes text:string = SecureValueError - public class SecureValueErrorReverseSide : SecureValueErrorBase + public partial class SecureValueErrorReverseSide : SecureValueErrorBase { public SecureValueType type; public byte[] file_hash; public string text; } [TLDef(0xE537CED6)] //secureValueErrorSelfie#e537ced6 type:SecureValueType file_hash:bytes text:string = SecureValueError - public class SecureValueErrorSelfie : SecureValueErrorBase + public partial class SecureValueErrorSelfie : SecureValueErrorBase { public SecureValueType type; public byte[] file_hash; public string text; } [TLDef(0x7A700873)] //secureValueErrorFile#7a700873 type:SecureValueType file_hash:bytes text:string = SecureValueError - public class SecureValueErrorFile : SecureValueErrorBase + public partial class SecureValueErrorFile : SecureValueErrorBase { public SecureValueType type; public byte[] file_hash; public string text; } [TLDef(0x666220E9)] //secureValueErrorFiles#666220e9 type:SecureValueType file_hash:Vector text:string = SecureValueError - public class SecureValueErrorFiles : SecureValueErrorBase + public partial class SecureValueErrorFiles : SecureValueErrorBase { public SecureValueType type; public byte[][] file_hash; public string text; } [TLDef(0x869D758F)] //secureValueError#869d758f type:SecureValueType hash:bytes text:string = SecureValueError - public class SecureValueError : SecureValueErrorBase + public partial class SecureValueError : SecureValueErrorBase { public SecureValueType type; public byte[] hash; public string text; } [TLDef(0xA1144770)] //secureValueErrorTranslationFile#a1144770 type:SecureValueType file_hash:bytes text:string = SecureValueError - public class SecureValueErrorTranslationFile : SecureValueErrorBase + public partial class SecureValueErrorTranslationFile : SecureValueErrorBase { public SecureValueType type; public byte[] file_hash; public string text; } [TLDef(0x34636DD8)] //secureValueErrorTranslationFiles#34636dd8 type:SecureValueType file_hash:Vector text:string = SecureValueError - public class SecureValueErrorTranslationFiles : SecureValueErrorBase + public partial class SecureValueErrorTranslationFiles : SecureValueErrorBase { public SecureValueType type; public byte[][] file_hash; @@ -4332,7 +4332,7 @@ namespace TL } [TLDef(0x33F0EA47)] //secureCredentialsEncrypted#33f0ea47 data:bytes hash:bytes secret:bytes = SecureCredentialsEncrypted - public class SecureCredentialsEncrypted : ITLObject + public partial class SecureCredentialsEncrypted : ITLObject { public byte[] data; public byte[] hash; @@ -4340,7 +4340,7 @@ namespace TL } [TLDef(0xAD2E1CD8)] //account.authorizationForm#ad2e1cd8 flags:# required_types:Vector values:Vector errors:Vector users:Vector privacy_policy_url:flags.0?string = account.AuthorizationForm - public class Account_AuthorizationForm : ITLObject + public partial class Account_AuthorizationForm : ITLObject { [Flags] public enum Flags { has_privacy_policy_url = 0x1 } public Flags flags; @@ -4352,17 +4352,17 @@ namespace TL } [TLDef(0x811F854F)] //account.sentEmailCode#811f854f email_pattern:string length:int = account.SentEmailCode - public class Account_SentEmailCode : ITLObject + public partial class Account_SentEmailCode : ITLObject { public string email_pattern; public int length; } - public abstract class Help_DeepLinkInfoBase : ITLObject { } + public abstract partial class Help_DeepLinkInfoBase : ITLObject { } [TLDef(0x66AFA166)] //help.deepLinkInfoEmpty#66afa166 = help.DeepLinkInfo - public class Help_DeepLinkInfoEmpty : Help_DeepLinkInfoBase { } + public partial class Help_DeepLinkInfoEmpty : Help_DeepLinkInfoBase { } [TLDef(0x6A4EE832)] //help.deepLinkInfo#6a4ee832 flags:# update_app:flags.0?true message:string entities:flags.1?Vector = help.DeepLinkInfo - public class Help_DeepLinkInfo : Help_DeepLinkInfoBase + public partial class Help_DeepLinkInfo : Help_DeepLinkInfoBase { [Flags] public enum Flags { update_app = 0x1, has_entities = 0x2 } public Flags flags; @@ -4370,9 +4370,9 @@ namespace TL [IfFlag(1)] public MessageEntity[] entities; } - public abstract class SavedContact : ITLObject { } + public abstract partial class SavedContact : ITLObject { } [TLDef(0x1142BD56)] //savedPhoneContact#1142bd56 phone:string first_name:string last_name:string date:int = SavedContact - public class SavedPhoneContact : SavedContact + public partial class SavedPhoneContact : SavedContact { public string phone; public string first_name; @@ -4381,13 +4381,13 @@ namespace TL } [TLDef(0x4DBA4501)] //account.takeout#4dba4501 id:long = account.Takeout - public class Account_Takeout : ITLObject { public long id; } + public partial class Account_Takeout : ITLObject { public long id; } - public abstract class PasswordKdfAlgo : ITLObject { } + public abstract partial class PasswordKdfAlgo : ITLObject { } [TLDef(0xD45AB096)] //passwordKdfAlgoUnknown#d45ab096 = PasswordKdfAlgo - public class PasswordKdfAlgoUnknown : PasswordKdfAlgo { } + public partial class PasswordKdfAlgoUnknown : PasswordKdfAlgo { } [TLDef(0x3A912D4A)] //passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow#3a912d4a salt1:bytes salt2:bytes g:int p:bytes = PasswordKdfAlgo - public class PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : PasswordKdfAlgo + public partial class PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : PasswordKdfAlgo { public byte[] salt1; public byte[] salt2; @@ -4395,56 +4395,56 @@ namespace TL public byte[] p; } - public abstract class SecurePasswordKdfAlgo : ITLObject { } + public abstract partial class SecurePasswordKdfAlgo : ITLObject { } [TLDef(0x004A8537)] //securePasswordKdfAlgoUnknown#004a8537 = SecurePasswordKdfAlgo - public class SecurePasswordKdfAlgoUnknown : SecurePasswordKdfAlgo { } + public partial class SecurePasswordKdfAlgoUnknown : SecurePasswordKdfAlgo { } [TLDef(0xBBF2DDA0)] //securePasswordKdfAlgoPBKDF2HMACSHA512iter100000#bbf2dda0 salt:bytes = SecurePasswordKdfAlgo - public class SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : SecurePasswordKdfAlgo { public byte[] salt; } + public partial class SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : SecurePasswordKdfAlgo { public byte[] salt; } [TLDef(0x86471D92)] //securePasswordKdfAlgoSHA512#86471d92 salt:bytes = SecurePasswordKdfAlgo - public class SecurePasswordKdfAlgoSHA512 : SecurePasswordKdfAlgo { public byte[] salt; } + public partial class SecurePasswordKdfAlgoSHA512 : SecurePasswordKdfAlgo { public byte[] salt; } [TLDef(0x1527BCAC)] //secureSecretSettings#1527bcac secure_algo:SecurePasswordKdfAlgo secure_secret:bytes secure_secret_id:long = SecureSecretSettings - public class SecureSecretSettings : ITLObject + public partial class SecureSecretSettings : ITLObject { public SecurePasswordKdfAlgo secure_algo; public byte[] secure_secret; public long secure_secret_id; } - public abstract class InputCheckPasswordSRPBase : ITLObject { } + public abstract partial class InputCheckPasswordSRPBase : ITLObject { } [TLDef(0x9880F658)] //inputCheckPasswordEmpty#9880f658 = InputCheckPasswordSRP - public class InputCheckPasswordEmpty : InputCheckPasswordSRPBase { } + public partial class InputCheckPasswordEmpty : InputCheckPasswordSRPBase { } [TLDef(0xD27FF082)] //inputCheckPasswordSRP#d27ff082 srp_id:long A:bytes M1:bytes = InputCheckPasswordSRP - public class InputCheckPasswordSRP : InputCheckPasswordSRPBase + public partial class InputCheckPasswordSRP : InputCheckPasswordSRPBase { public long srp_id; public byte[] A; public byte[] M1; } - public abstract class SecureRequiredTypeBase : ITLObject { } + public abstract partial class SecureRequiredTypeBase : ITLObject { } [TLDef(0x829D99DA)] //secureRequiredType#829d99da flags:# native_names:flags.0?true selfie_required:flags.1?true translation_required:flags.2?true type:SecureValueType = SecureRequiredType - public class SecureRequiredType : SecureRequiredTypeBase + public partial class SecureRequiredType : SecureRequiredTypeBase { [Flags] public enum Flags { native_names = 0x1, selfie_required = 0x2, translation_required = 0x4 } public Flags flags; public SecureValueType type; } [TLDef(0x027477B4)] //secureRequiredTypeOneOf#027477b4 types:Vector = SecureRequiredType - public class SecureRequiredTypeOneOf : SecureRequiredTypeBase { public SecureRequiredTypeBase[] types; } + public partial class SecureRequiredTypeOneOf : SecureRequiredTypeBase { public SecureRequiredTypeBase[] types; } - public abstract class Help_PassportConfigBase : ITLObject { } + public abstract partial class Help_PassportConfigBase : ITLObject { } [TLDef(0xBFB9F457)] //help.passportConfigNotModified#bfb9f457 = help.PassportConfig - public class Help_PassportConfigNotModified : Help_PassportConfigBase { } + public partial class Help_PassportConfigNotModified : Help_PassportConfigBase { } [TLDef(0xA098D6AF)] //help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig - public class Help_PassportConfig : Help_PassportConfigBase + public partial class Help_PassportConfig : Help_PassportConfigBase { public int hash; public DataJSON countries_langs; } [TLDef(0x1D1B1245)] //inputAppEvent#1d1b1245 time:double type:string peer:long data:JSONValue = InputAppEvent - public class InputAppEvent : ITLObject + public partial class InputAppEvent : ITLObject { public double time; public string type; @@ -4452,30 +4452,30 @@ namespace TL public JSONValue data; } - public abstract class JSONObjectValue : ITLObject { } + public abstract partial class JSONObjectValue : ITLObject { } [TLDef(0xC0DE1BD9)] //jsonObjectValue#c0de1bd9 key:string value:JSONValue = JSONObjectValue - public class JsonObjectValue : JSONObjectValue + public partial class JsonObjectValue : JSONObjectValue { public string key; public JSONValue value; } - public abstract class JSONValue : ITLObject { } + public abstract partial class JSONValue : ITLObject { } [TLDef(0x3F6D7B68)] //jsonNull#3f6d7b68 = JSONValue - public class JsonNull : JSONValue { } + public partial class JsonNull : JSONValue { } [TLDef(0xC7345E6A)] //jsonBool#c7345e6a value:Bool = JSONValue - public class JsonBool : JSONValue { public bool value; } + public partial class JsonBool : JSONValue { public bool value; } [TLDef(0x2BE0DFA4)] //jsonNumber#2be0dfa4 value:double = JSONValue - public class JsonNumber : JSONValue { public double value; } + public partial class JsonNumber : JSONValue { public double value; } [TLDef(0xB71E767A)] //jsonString#b71e767a value:string = JSONValue - public class JsonString : JSONValue { public string value; } + public partial class JsonString : JSONValue { public string value; } [TLDef(0xF7444763)] //jsonArray#f7444763 value:Vector = JSONValue - public class JsonArray : JSONValue { public JSONValue[] value; } + public partial class JsonArray : JSONValue { public JSONValue[] value; } [TLDef(0x99C1D49D)] //jsonObject#99c1d49d value:Vector = JSONValue - public class JsonObject : JSONValue { public JSONObjectValue[] value; } + public partial class JsonObject : JSONValue { public JSONObjectValue[] value; } [TLDef(0x34566B6A)] //pageTableCell#34566b6a flags:# header:flags.0?true align_center:flags.3?true align_right:flags.4?true valign_middle:flags.5?true valign_bottom:flags.6?true text:flags.7?RichText colspan:flags.1?int rowspan:flags.2?int = PageTableCell - public class PageTableCell : ITLObject + public partial class PageTableCell : ITLObject { [Flags] public enum Flags { header = 0x1, has_colspan = 0x2, has_rowspan = 0x4, align_center = 0x8, align_right = 0x10, valign_middle = 0x20, valign_bottom = 0x40, has_text = 0x80 } @@ -4486,29 +4486,29 @@ namespace TL } [TLDef(0xE0C0C5E5)] //pageTableRow#e0c0c5e5 cells:Vector = PageTableRow - public class PageTableRow : ITLObject { public PageTableCell[] cells; } + public partial class PageTableRow : ITLObject { public PageTableCell[] cells; } [TLDef(0x6F747657)] //pageCaption#6f747657 text:RichText credit:RichText = PageCaption - public class PageCaption : ITLObject + public partial class PageCaption : ITLObject { public RichText text; public RichText credit; } - public abstract class PageListItem : ITLObject { } + public abstract partial class PageListItem : ITLObject { } [TLDef(0xB92FB6CD)] //pageListItemText#b92fb6cd text:RichText = PageListItem - public class PageListItemText : PageListItem { public RichText text; } + public partial class PageListItemText : PageListItem { public RichText text; } [TLDef(0x25E073FC)] //pageListItemBlocks#25e073fc blocks:Vector = PageListItem - public class PageListItemBlocks : PageListItem { public PageBlock[] blocks; } + public partial class PageListItemBlocks : PageListItem { public PageBlock[] blocks; } - public abstract class PageListOrderedItem : ITLObject { public string num; } + public abstract partial class PageListOrderedItem : ITLObject { public string num; } [TLDef(0x5E068047)] //pageListOrderedItemText#5e068047 num:string text:RichText = PageListOrderedItem - public class PageListOrderedItemText : PageListOrderedItem { public RichText text; } + public partial class PageListOrderedItemText : PageListOrderedItem { public RichText text; } [TLDef(0x98DD8936)] //pageListOrderedItemBlocks#98dd8936 num:string blocks:Vector = PageListOrderedItem - public class PageListOrderedItemBlocks : PageListOrderedItem { public PageBlock[] blocks; } + public partial class PageListOrderedItemBlocks : PageListOrderedItem { public PageBlock[] blocks; } [TLDef(0xB390DC08)] //pageRelatedArticle#b390dc08 flags:# url:string webpage_id:long title:flags.0?string description:flags.1?string photo_id:flags.2?long author:flags.3?string published_date:flags.4?int = PageRelatedArticle - public class PageRelatedArticle : ITLObject + public partial class PageRelatedArticle : ITLObject { [Flags] public enum Flags { has_title = 0x1, has_description = 0x2, has_photo_id = 0x4, has_author = 0x8, has_published_date = 0x10 } @@ -4523,7 +4523,7 @@ namespace TL } [TLDef(0x98657F0D)] //page#98657f0d flags:# part:flags.0?true rtl:flags.1?true v2:flags.2?true url:string blocks:Vector photos:Vector documents:Vector views:flags.3?int = Page - public class Page : ITLObject + public partial class Page : ITLObject { [Flags] public enum Flags { part = 0x1, rtl = 0x2, v2 = 0x4, has_views = 0x8 } public Flags flags; @@ -4535,13 +4535,13 @@ namespace TL } [TLDef(0x8C05F1C9)] //help.supportName#8c05f1c9 name:string = help.SupportName - public class Help_SupportName : ITLObject { public string name; } + public partial class Help_SupportName : ITLObject { public string name; } - public abstract class Help_UserInfoBase : ITLObject { } + public abstract partial class Help_UserInfoBase : ITLObject { } [TLDef(0xF3AE2EED)] //help.userInfoEmpty#f3ae2eed = help.UserInfo - public class Help_UserInfoEmpty : Help_UserInfoBase { } + public partial class Help_UserInfoEmpty : Help_UserInfoBase { } [TLDef(0x01EB3758)] //help.userInfo#01eb3758 message:string entities:Vector author:string date:int = help.UserInfo - public class Help_UserInfo : Help_UserInfoBase + public partial class Help_UserInfo : Help_UserInfoBase { public string message; public MessageEntity[] entities; @@ -4550,14 +4550,14 @@ namespace TL } [TLDef(0x6CA9C2E9)] //pollAnswer#6ca9c2e9 text:string option:bytes = PollAnswer - public class PollAnswer : ITLObject + public partial class PollAnswer : ITLObject { public string text; public byte[] option; } [TLDef(0x86E18161)] //poll#86e18161 id:long flags:# closed:flags.0?true public_voters:flags.1?true multiple_choice:flags.2?true quiz:flags.3?true question:string answers:Vector close_period:flags.4?int close_date:flags.5?int = Poll - public class Poll : ITLObject + public partial class Poll : ITLObject { [Flags] public enum Flags { closed = 0x1, public_voters = 0x2, multiple_choice = 0x4, quiz = 0x8, has_close_period = 0x10, has_close_date = 0x20 } @@ -4570,7 +4570,7 @@ namespace TL } [TLDef(0x3B6DDAD2)] //pollAnswerVoters#3b6ddad2 flags:# chosen:flags.0?true correct:flags.1?true option:bytes voters:int = PollAnswerVoters - public class PollAnswerVoters : ITLObject + public partial class PollAnswerVoters : ITLObject { [Flags] public enum Flags { chosen = 0x1, correct = 0x2 } public Flags flags; @@ -4579,7 +4579,7 @@ namespace TL } [TLDef(0xBADCC1A3)] //pollResults#badcc1a3 flags:# min:flags.0?true results:flags.1?Vector total_voters:flags.2?int recent_voters:flags.3?Vector solution:flags.4?string solution_entities:flags.4?Vector = PollResults - public class PollResults : ITLObject + public partial class PollResults : ITLObject { [Flags] public enum Flags { min = 0x1, has_results = 0x2, has_total_voters = 0x4, has_recent_voters = 0x8, has_solution = 0x10 } public Flags flags; @@ -4591,13 +4591,13 @@ namespace TL } [TLDef(0xF041E250)] //chatOnlines#f041e250 onlines:int = ChatOnlines - public class ChatOnlines : ITLObject { public int onlines; } + public partial class ChatOnlines : ITLObject { public int onlines; } [TLDef(0x47A971E0)] //statsURL#47a971e0 url:string = StatsURL - public class StatsURL : ITLObject { public string url; } + public partial class StatsURL : ITLObject { public string url; } [TLDef(0x5FB224D5)] //chatAdminRights#5fb224d5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true pin_messages:flags.7?true add_admins:flags.9?true anonymous:flags.10?true manage_call:flags.11?true other:flags.12?true = ChatAdminRights - public class ChatAdminRights : ITLObject + public partial class ChatAdminRights : ITLObject { [Flags] public enum Flags { change_info = 0x1, post_messages = 0x2, edit_messages = 0x4, delete_messages = 0x8, ban_users = 0x10, invite_users = 0x20, pin_messages = 0x80, add_admins = 0x200, anonymous = 0x400, manage_call = 0x800, @@ -4606,7 +4606,7 @@ namespace TL } [TLDef(0x9F120418)] //chatBannedRights#9f120418 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true send_polls:flags.8?true change_info:flags.10?true invite_users:flags.15?true pin_messages:flags.17?true until_date:int = ChatBannedRights - public class ChatBannedRights : ITLObject + public partial class ChatBannedRights : ITLObject { [Flags] public enum Flags { view_messages = 0x1, send_messages = 0x2, send_media = 0x4, send_stickers = 0x8, send_gifs = 0x10, send_games = 0x20, send_inline = 0x40, embed_links = 0x80, send_polls = 0x100, change_info = 0x400, invite_users = 0x8000, @@ -4615,37 +4615,37 @@ namespace TL public DateTime until_date; } - public abstract class InputWallPaperBase : ITLObject { } + public abstract partial class InputWallPaperBase : ITLObject { } [TLDef(0xE630B979)] //inputWallPaper#e630b979 id:long access_hash:long = InputWallPaper - public class InputWallPaper : InputWallPaperBase + public partial class InputWallPaper : InputWallPaperBase { public long id; public long access_hash; } [TLDef(0x72091C80)] //inputWallPaperSlug#72091c80 slug:string = InputWallPaper - public class InputWallPaperSlug : InputWallPaperBase { public string slug; } + public partial class InputWallPaperSlug : InputWallPaperBase { public string slug; } [TLDef(0x8427BBAC)] //inputWallPaperNoFile#8427bbac = InputWallPaper - public class InputWallPaperNoFile : InputWallPaperBase { } + public partial class InputWallPaperNoFile : InputWallPaperBase { } - public abstract class Account_WallPapersBase : ITLObject { } + public abstract partial class Account_WallPapersBase : ITLObject { } [TLDef(0x1C199183)] //account.wallPapersNotModified#1c199183 = account.WallPapers - public class Account_WallPapersNotModified : Account_WallPapersBase { } + public partial class Account_WallPapersNotModified : Account_WallPapersBase { } [TLDef(0x702B65A9)] //account.wallPapers#702b65a9 hash:int wallpapers:Vector = account.WallPapers - public class Account_WallPapers : Account_WallPapersBase + public partial class Account_WallPapers : Account_WallPapersBase { public int hash; public WallPaperBase[] wallpapers; } [TLDef(0xDEBEBE83)] //codeSettings#debebe83 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true = CodeSettings - public class CodeSettings : ITLObject + public partial class CodeSettings : ITLObject { [Flags] public enum Flags { allow_flashcall = 0x1, current_number = 0x2, allow_app_hash = 0x10 } public Flags flags; } [TLDef(0x05086CF8)] //wallPaperSettings#05086cf8 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int intensity:flags.3?int rotation:flags.4?int = WallPaperSettings - public class WallPaperSettings : ITLObject + public partial class WallPaperSettings : ITLObject { [Flags] public enum Flags { has_background_color = 0x1, blur = 0x2, motion = 0x4, has_intensity = 0x8, has_second_background_color = 0x10 } @@ -4657,7 +4657,7 @@ namespace TL } [TLDef(0xE04232F3)] //autoDownloadSettings#e04232f3 flags:# disabled:flags.0?true video_preload_large:flags.1?true audio_preload_next:flags.2?true phonecalls_less_data:flags.3?true photo_size_max:int video_size_max:int file_size_max:int video_upload_maxbitrate:int = AutoDownloadSettings - public class AutoDownloadSettings : ITLObject + public partial class AutoDownloadSettings : ITLObject { [Flags] public enum Flags { disabled = 0x1, video_preload_large = 0x2, audio_preload_next = 0x4, phonecalls_less_data = 0x8 } public Flags flags; @@ -4668,7 +4668,7 @@ namespace TL } [TLDef(0x63CACF26)] //account.autoDownloadSettings#63cacf26 low:AutoDownloadSettings medium:AutoDownloadSettings high:AutoDownloadSettings = account.AutoDownloadSettings - public class Account_AutoDownloadSettings : ITLObject + public partial class Account_AutoDownloadSettings : ITLObject { public AutoDownloadSettings low; public AutoDownloadSettings medium; @@ -4676,16 +4676,16 @@ namespace TL } [TLDef(0xD5B3B9F9)] //emojiKeyword#d5b3b9f9 keyword:string emoticons:Vector = EmojiKeyword - public class EmojiKeyword : ITLObject + public partial class EmojiKeyword : ITLObject { public string keyword; public string[] emoticons; } [TLDef(0x236DF622)] //emojiKeywordDeleted#236df622 keyword:string emoticons:Vector = EmojiKeyword - public class EmojiKeywordDeleted : EmojiKeyword { } + public partial class EmojiKeywordDeleted : EmojiKeyword { } [TLDef(0x5CC761BD)] //emojiKeywordsDifference#5cc761bd lang_code:string from_version:int version:int keywords:Vector = EmojiKeywordsDifference - public class EmojiKeywordsDifference : ITLObject + public partial class EmojiKeywordsDifference : ITLObject { public string lang_code; public int from_version; @@ -4694,21 +4694,21 @@ namespace TL } [TLDef(0xA575739D)] //emojiURL#a575739d url:string = EmojiURL - public class EmojiURL : ITLObject { public string url; } + public partial class EmojiURL : ITLObject { public string url; } [TLDef(0xB3FB5361)] //emojiLanguage#b3fb5361 lang_code:string = EmojiLanguage - public class EmojiLanguage : ITLObject { public string lang_code; } + public partial class EmojiLanguage : ITLObject { public string lang_code; } - public abstract class FileLocation : ITLObject { } + public abstract partial class FileLocation : ITLObject { } [TLDef(0xBC7FC6CD)] //fileLocationToBeDeprecated#bc7fc6cd volume_id:long local_id:int = FileLocation - public class FileLocationToBeDeprecated : FileLocation + public partial class FileLocationToBeDeprecated : FileLocation { public long volume_id; public int local_id; } [TLDef(0xFF544E65)] //folder#ff544e65 flags:# autofill_new_broadcasts:flags.0?true autofill_public_groups:flags.1?true autofill_new_correspondents:flags.2?true id:int title:string photo:flags.3?ChatPhoto = Folder - public class Folder : ITLObject + public partial class Folder : ITLObject { [Flags] public enum Flags { autofill_new_broadcasts = 0x1, autofill_public_groups = 0x2, autofill_new_correspondents = 0x4, has_photo = 0x8 } @@ -4719,21 +4719,21 @@ namespace TL } [TLDef(0xFBD2C296)] //inputFolderPeer#fbd2c296 peer:InputPeer folder_id:int = InputFolderPeer - public class InputFolderPeer : ITLObject + public partial class InputFolderPeer : ITLObject { public InputPeer peer; public int folder_id; } [TLDef(0xE9BAA668)] //folderPeer#e9baa668 peer:Peer folder_id:int = FolderPeer - public class FolderPeer : ITLObject + public partial class FolderPeer : ITLObject { public Peer peer; public int folder_id; } [TLDef(0xE844EBFF)] //messages.searchCounter#e844ebff flags:# inexact:flags.1?true filter:MessagesFilter count:int = messages.SearchCounter - public class Messages_SearchCounter : ITLObject + public partial class Messages_SearchCounter : ITLObject { [Flags] public enum Flags { inexact = 0x2 } public Flags flags; @@ -4741,9 +4741,9 @@ namespace TL public int count; } - public abstract class UrlAuthResult : ITLObject { } + public abstract partial class UrlAuthResult : ITLObject { } [TLDef(0x92D33A0E)] //urlAuthResultRequest#92d33a0e flags:# request_write_access:flags.0?true bot:User domain:string = UrlAuthResult - public class UrlAuthResultRequest : UrlAuthResult + public partial class UrlAuthResultRequest : UrlAuthResult { [Flags] public enum Flags { request_write_access = 0x1 } public Flags flags; @@ -4751,51 +4751,51 @@ namespace TL public string domain; } [TLDef(0x8F8C0E4E)] //urlAuthResultAccepted#8f8c0e4e url:string = UrlAuthResult - public class UrlAuthResultAccepted : UrlAuthResult { public string url; } + public partial class UrlAuthResultAccepted : UrlAuthResult { public string url; } [TLDef(0xA9D6DB1F)] //urlAuthResultDefault#a9d6db1f = UrlAuthResult - public class UrlAuthResultDefault : UrlAuthResult { } + public partial class UrlAuthResultDefault : UrlAuthResult { } - public abstract class ChannelLocationBase : ITLObject { } + public abstract partial class ChannelLocationBase : ITLObject { } [TLDef(0xBFB5AD8B)] //channelLocationEmpty#bfb5ad8b = ChannelLocation - public class ChannelLocationEmpty : ChannelLocationBase { } + public partial class ChannelLocationEmpty : ChannelLocationBase { } [TLDef(0x209B82DB)] //channelLocation#209b82db geo_point:GeoPoint address:string = ChannelLocation - public class ChannelLocation : ChannelLocationBase + public partial class ChannelLocation : ChannelLocationBase { public GeoPointBase geo_point; public string address; } - public abstract class PeerLocatedBase : ITLObject { } + public abstract partial class PeerLocatedBase : ITLObject { } [TLDef(0xCA461B5D)] //peerLocated#ca461b5d peer:Peer expires:int distance:int = PeerLocated - public class PeerLocated : PeerLocatedBase + public partial class PeerLocated : PeerLocatedBase { public Peer peer; public DateTime expires; public int distance; } [TLDef(0xF8EC284B)] //peerSelfLocated#f8ec284b expires:int = PeerLocated - public class PeerSelfLocated : PeerLocatedBase { public DateTime expires; } + public partial class PeerSelfLocated : PeerLocatedBase { public DateTime expires; } [TLDef(0xD072ACB4)] //restrictionReason#d072acb4 platform:string reason:string text:string = RestrictionReason - public class RestrictionReason : ITLObject + public partial class RestrictionReason : ITLObject { public string platform; public string reason; public string text; } - public abstract class InputThemeBase : ITLObject { } + public abstract partial class InputThemeBase : ITLObject { } [TLDef(0x3C5693E9)] //inputTheme#3c5693e9 id:long access_hash:long = InputTheme - public class InputTheme : InputThemeBase + public partial class InputTheme : InputThemeBase { public long id; public long access_hash; } [TLDef(0xF5890DF1)] //inputThemeSlug#f5890df1 slug:string = InputTheme - public class InputThemeSlug : InputThemeBase { public string slug; } + public partial class InputThemeSlug : InputThemeBase { public string slug; } [TLDef(0x028F1114)] //theme#028f1114 flags:# creator:flags.0?true default:flags.1?true id:long access_hash:long slug:string title:string document:flags.2?Document settings:flags.3?ThemeSettings installs_count:int = Theme - public class Theme : ITLObject + public partial class Theme : ITLObject { [Flags] public enum Flags { creator = 0x1, default_ = 0x2, has_document = 0x4, has_settings = 0x8 } public Flags flags; @@ -4808,61 +4808,61 @@ namespace TL public int installs_count; } - public abstract class Account_ThemesBase : ITLObject { } + public abstract partial class Account_ThemesBase : ITLObject { } [TLDef(0xF41EB622)] //account.themesNotModified#f41eb622 = account.Themes - public class Account_ThemesNotModified : Account_ThemesBase { } + public partial class Account_ThemesNotModified : Account_ThemesBase { } [TLDef(0x7F676421)] //account.themes#7f676421 hash:int themes:Vector = account.Themes - public class Account_Themes : Account_ThemesBase + public partial class Account_Themes : Account_ThemesBase { public int hash; public Theme[] themes; } - public abstract class Auth_LoginTokenBase : ITLObject { } + public abstract partial class Auth_LoginTokenBase : ITLObject { } [TLDef(0x629F1980)] //auth.loginToken#629f1980 expires:int token:bytes = auth.LoginToken - public class Auth_LoginToken : Auth_LoginTokenBase + public partial class Auth_LoginToken : Auth_LoginTokenBase { public DateTime expires; public byte[] token; } [TLDef(0x068E9916)] //auth.loginTokenMigrateTo#068e9916 dc_id:int token:bytes = auth.LoginToken - public class Auth_LoginTokenMigrateTo : Auth_LoginTokenBase + public partial class Auth_LoginTokenMigrateTo : Auth_LoginTokenBase { public int dc_id; public byte[] token; } [TLDef(0x390D5C5E)] //auth.loginTokenSuccess#390d5c5e authorization:auth.Authorization = auth.LoginToken - public class Auth_LoginTokenSuccess : Auth_LoginTokenBase { public Auth_AuthorizationBase authorization; } + public partial class Auth_LoginTokenSuccess : Auth_LoginTokenBase { public Auth_AuthorizationBase authorization; } [TLDef(0x57E28221)] //account.contentSettings#57e28221 flags:# sensitive_enabled:flags.0?true sensitive_can_change:flags.1?true = account.ContentSettings - public class Account_ContentSettings : ITLObject + public partial class Account_ContentSettings : ITLObject { [Flags] public enum Flags { sensitive_enabled = 0x1, sensitive_can_change = 0x2 } public Flags flags; } [TLDef(0xA927FEC5)] //messages.inactiveChats#a927fec5 dates:Vector chats:Vector users:Vector = messages.InactiveChats - public class Messages_InactiveChats : ITLObject + public partial class Messages_InactiveChats : ITLObject { public int[] dates; public ChatBase[] chats; public UserBase[] users; } - public abstract class BaseTheme : ITLObject { } + public abstract partial class BaseTheme : ITLObject { } [TLDef(0xC3A12462)] //baseThemeClassic#c3a12462 = BaseTheme - public class BaseThemeClassic : BaseTheme { } + public partial class BaseThemeClassic : BaseTheme { } [TLDef(0xFBD81688)] //baseThemeDay#fbd81688 = BaseTheme - public class BaseThemeDay : BaseTheme { } + public partial class BaseThemeDay : BaseTheme { } [TLDef(0xB7B31EA8)] //baseThemeNight#b7b31ea8 = BaseTheme - public class BaseThemeNight : BaseTheme { } + public partial class BaseThemeNight : BaseTheme { } [TLDef(0x6D5F77EE)] //baseThemeTinted#6d5f77ee = BaseTheme - public class BaseThemeTinted : BaseTheme { } + public partial class BaseThemeTinted : BaseTheme { } [TLDef(0x5B11125A)] //baseThemeArctic#5b11125a = BaseTheme - public class BaseThemeArctic : BaseTheme { } + public partial class BaseThemeArctic : BaseTheme { } [TLDef(0xBD507CD1)] //inputThemeSettings#bd507cd1 flags:# base_theme:BaseTheme accent_color:int message_top_color:flags.0?int message_bottom_color:flags.0?int wallpaper:flags.1?InputWallPaper wallpaper_settings:flags.1?WallPaperSettings = InputThemeSettings - public class InputThemeSettings : ITLObject + public partial class InputThemeSettings : ITLObject { [Flags] public enum Flags { has_message_top_color = 0x1, has_wallpaper = 0x2 } public Flags flags; @@ -4875,7 +4875,7 @@ namespace TL } [TLDef(0x9C14984A)] //themeSettings#9c14984a flags:# base_theme:BaseTheme accent_color:int message_top_color:flags.0?int message_bottom_color:flags.0?int wallpaper:flags.1?WallPaper = ThemeSettings - public class ThemeSettings : ITLObject + public partial class ThemeSettings : ITLObject { [Flags] public enum Flags { has_message_top_color = 0x1, has_wallpaper = 0x2 } public Flags flags; @@ -4886,9 +4886,9 @@ namespace TL [IfFlag(1)] public WallPaperBase wallpaper; } - public abstract class WebPageAttribute : ITLObject { } + public abstract partial class WebPageAttribute : ITLObject { } [TLDef(0x54B56617)] //webPageAttributeTheme#54b56617 flags:# documents:flags.0?Vector settings:flags.1?ThemeSettings = WebPageAttribute - public class WebPageAttributeTheme : WebPageAttribute + public partial class WebPageAttributeTheme : WebPageAttribute { [Flags] public enum Flags { has_documents = 0x1, has_settings = 0x2 } public Flags flags; @@ -4896,22 +4896,22 @@ namespace TL [IfFlag(1)] public ThemeSettings settings; } - public abstract class MessageUserVoteBase : ITLObject { } + public abstract partial class MessageUserVoteBase : ITLObject { } [TLDef(0xA28E5559)] //messageUserVote#a28e5559 user_id:int option:bytes date:int = MessageUserVote - public class MessageUserVote : MessageUserVoteBase + public partial class MessageUserVote : MessageUserVoteBase { public int user_id; public byte[] option; public DateTime date; } [TLDef(0x36377430)] //messageUserVoteInputOption#36377430 user_id:int date:int = MessageUserVote - public class MessageUserVoteInputOption : MessageUserVoteBase + public partial class MessageUserVoteInputOption : MessageUserVoteBase { public int user_id; public DateTime date; } [TLDef(0x0E8FE0DE)] //messageUserVoteMultiple#0e8fe0de user_id:int options:Vector date:int = MessageUserVote - public class MessageUserVoteMultiple : MessageUserVoteBase + public partial class MessageUserVoteMultiple : MessageUserVoteBase { public int user_id; public byte[][] options; @@ -4919,7 +4919,7 @@ namespace TL } [TLDef(0x0823F649)] //messages.votesList#0823f649 flags:# count:int votes:Vector users:Vector next_offset:flags.0?string = messages.VotesList - public class Messages_VotesList : ITLObject + public partial class Messages_VotesList : ITLObject { [Flags] public enum Flags { has_next_offset = 0x1 } public Flags flags; @@ -4930,21 +4930,21 @@ namespace TL } [TLDef(0xF568028A)] //bankCardOpenUrl#f568028a url:string name:string = BankCardOpenUrl - public class BankCardOpenUrl : ITLObject + public partial class BankCardOpenUrl : ITLObject { public string url; public string name; } [TLDef(0x3E24E573)] //payments.bankCardData#3e24e573 title:string open_urls:Vector = payments.BankCardData - public class Payments_BankCardData : ITLObject + public partial class Payments_BankCardData : ITLObject { public string title; public BankCardOpenUrl[] open_urls; } [TLDef(0x7438F7E8)] //dialogFilter#7438f7e8 flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string pinned_peers:Vector include_peers:Vector exclude_peers:Vector = DialogFilter - public class DialogFilter : ITLObject + public partial class DialogFilter : ITLObject { [Flags] public enum Flags { contacts = 0x1, non_contacts = 0x2, groups = 0x4, broadcasts = 0x8, bots = 0x10, exclude_muted = 0x800, exclude_read = 0x1000, exclude_archived = 0x2000, has_emoticon = 0x2000000 } @@ -4958,40 +4958,40 @@ namespace TL } [TLDef(0x77744D4A)] //dialogFilterSuggested#77744d4a filter:DialogFilter description:string = DialogFilterSuggested - public class DialogFilterSuggested : ITLObject + public partial class DialogFilterSuggested : ITLObject { public DialogFilter filter; public string description; } [TLDef(0xB637EDAF)] //statsDateRangeDays#b637edaf min_date:int max_date:int = StatsDateRangeDays - public class StatsDateRangeDays : ITLObject + public partial class StatsDateRangeDays : ITLObject { public DateTime min_date; public DateTime max_date; } [TLDef(0xCB43ACDE)] //statsAbsValueAndPrev#cb43acde current:double previous:double = StatsAbsValueAndPrev - public class StatsAbsValueAndPrev : ITLObject + public partial class StatsAbsValueAndPrev : ITLObject { public double current; public double previous; } [TLDef(0xCBCE2FE0)] //statsPercentValue#cbce2fe0 part:double total:double = StatsPercentValue - public class StatsPercentValue : ITLObject + public partial class StatsPercentValue : ITLObject { public double part; public double total; } - public abstract class StatsGraphBase : ITLObject { } + public abstract partial class StatsGraphBase : ITLObject { } [TLDef(0x4A27EB2D)] //statsGraphAsync#4a27eb2d token:string = StatsGraph - public class StatsGraphAsync : StatsGraphBase { public string token; } + public partial class StatsGraphAsync : StatsGraphBase { public string token; } [TLDef(0xBEDC9822)] //statsGraphError#bedc9822 error:string = StatsGraph - public class StatsGraphError : StatsGraphBase { public string error; } + public partial class StatsGraphError : StatsGraphBase { public string error; } [TLDef(0x8EA464B6)] //statsGraph#8ea464b6 flags:# json:DataJSON zoom_token:flags.0?string = StatsGraph - public class StatsGraph : StatsGraphBase + public partial class StatsGraph : StatsGraphBase { [Flags] public enum Flags { has_zoom_token = 0x1 } public Flags flags; @@ -5000,7 +5000,7 @@ namespace TL } [TLDef(0xAD4FC9BD)] //messageInteractionCounters#ad4fc9bd msg_id:int views:int forwards:int = MessageInteractionCounters - public class MessageInteractionCounters : ITLObject + public partial class MessageInteractionCounters : ITLObject { public int msg_id; public int views; @@ -5008,7 +5008,7 @@ namespace TL } [TLDef(0xBDF78394)] //stats.broadcastStats#bdf78394 period:StatsDateRangeDays followers:StatsAbsValueAndPrev views_per_post:StatsAbsValueAndPrev shares_per_post:StatsAbsValueAndPrev enabled_notifications:StatsPercentValue growth_graph:StatsGraph followers_graph:StatsGraph mute_graph:StatsGraph top_hours_graph:StatsGraph interactions_graph:StatsGraph iv_interactions_graph:StatsGraph views_by_source_graph:StatsGraph new_followers_by_source_graph:StatsGraph languages_graph:StatsGraph recent_message_interactions:Vector = stats.BroadcastStats - public class Stats_BroadcastStats : ITLObject + public partial class Stats_BroadcastStats : ITLObject { public StatsDateRangeDays period; public StatsAbsValueAndPrev followers; @@ -5027,11 +5027,11 @@ namespace TL public MessageInteractionCounters[] recent_message_interactions; } - public abstract class Help_PromoDataBase : ITLObject { } + public abstract partial class Help_PromoDataBase : ITLObject { } [TLDef(0x98F6AC75)] //help.promoDataEmpty#98f6ac75 expires:int = help.PromoData - public class Help_PromoDataEmpty : Help_PromoDataBase { public DateTime expires; } + public partial class Help_PromoDataEmpty : Help_PromoDataBase { public DateTime expires; } [TLDef(0x8C39793F)] //help.promoData#8c39793f flags:# proxy:flags.0?true expires:int peer:Peer chats:Vector users:Vector psa_type:flags.1?string psa_message:flags.2?string = help.PromoData - public class Help_PromoData : Help_PromoDataBase + public partial class Help_PromoData : Help_PromoDataBase { [Flags] public enum Flags { proxy = 0x1, has_psa_type = 0x2, has_psa_message = 0x4 } public Flags flags; @@ -5044,7 +5044,7 @@ namespace TL } [TLDef(0xE831C556)] //videoSize#e831c556 flags:# type:string location:FileLocation w:int h:int size:int video_start_ts:flags.0?double = VideoSize - public class VideoSize : ITLObject + public partial class VideoSize : ITLObject { [Flags] public enum Flags { has_video_start_ts = 0x1 } public Flags flags; @@ -5057,7 +5057,7 @@ namespace TL } [TLDef(0x18F3D0F7)] //statsGroupTopPoster#18f3d0f7 user_id:int messages:int avg_chars:int = StatsGroupTopPoster - public class StatsGroupTopPoster : ITLObject + public partial class StatsGroupTopPoster : ITLObject { public int user_id; public int messages; @@ -5065,7 +5065,7 @@ namespace TL } [TLDef(0x6014F412)] //statsGroupTopAdmin#6014f412 user_id:int deleted:int kicked:int banned:int = StatsGroupTopAdmin - public class StatsGroupTopAdmin : ITLObject + public partial class StatsGroupTopAdmin : ITLObject { public int user_id; public int deleted; @@ -5074,14 +5074,14 @@ namespace TL } [TLDef(0x31962A4C)] //statsGroupTopInviter#31962a4c user_id:int invitations:int = StatsGroupTopInviter - public class StatsGroupTopInviter : ITLObject + public partial class StatsGroupTopInviter : ITLObject { public int user_id; public int invitations; } [TLDef(0xEF7FF916)] //stats.megagroupStats#ef7ff916 period:StatsDateRangeDays members:StatsAbsValueAndPrev messages:StatsAbsValueAndPrev viewers:StatsAbsValueAndPrev posters:StatsAbsValueAndPrev growth_graph:StatsGraph members_graph:StatsGraph new_members_by_source_graph:StatsGraph languages_graph:StatsGraph messages_graph:StatsGraph actions_graph:StatsGraph top_hours_graph:StatsGraph weekdays_graph:StatsGraph top_posters:Vector top_admins:Vector top_inviters:Vector users:Vector = stats.MegagroupStats - public class Stats_MegagroupStats : ITLObject + public partial class Stats_MegagroupStats : ITLObject { public StatsDateRangeDays period; public StatsAbsValueAndPrev members; @@ -5103,7 +5103,7 @@ namespace TL } [TLDef(0xBEA2F424)] //globalPrivacySettings#bea2f424 flags:# archive_and_mute_new_noncontact_peers:flags.0?Bool = GlobalPrivacySettings - public class GlobalPrivacySettings : ITLObject + public partial class GlobalPrivacySettings : ITLObject { [Flags] public enum Flags { has_archive_and_mute_new_noncontact_peers = 0x1 } public Flags flags; @@ -5111,7 +5111,7 @@ namespace TL } [TLDef(0x4203C5EF)] //help.countryCode#4203c5ef flags:# country_code:string prefixes:flags.0?Vector patterns:flags.1?Vector = help.CountryCode - public class Help_CountryCode : ITLObject + public partial class Help_CountryCode : ITLObject { [Flags] public enum Flags { has_prefixes = 0x1, has_patterns = 0x2 } public Flags flags; @@ -5121,7 +5121,7 @@ namespace TL } [TLDef(0xC3878E23)] //help.country#c3878e23 flags:# hidden:flags.0?true iso2:string default_name:string name:flags.1?string country_codes:Vector = help.Country - public class Help_Country : ITLObject + public partial class Help_Country : ITLObject { [Flags] public enum Flags { hidden = 0x1, has_name = 0x2 } public Flags flags; @@ -5131,18 +5131,18 @@ namespace TL public Help_CountryCode[] country_codes; } - public abstract class Help_CountriesListBase : ITLObject { } + public abstract partial class Help_CountriesListBase : ITLObject { } [TLDef(0x93CC1F32)] //help.countriesListNotModified#93cc1f32 = help.CountriesList - public class Help_CountriesListNotModified : Help_CountriesListBase { } + public partial class Help_CountriesListNotModified : Help_CountriesListBase { } [TLDef(0x87D0759E)] //help.countriesList#87d0759e countries:Vector hash:int = help.CountriesList - public class Help_CountriesList : Help_CountriesListBase + public partial class Help_CountriesList : Help_CountriesListBase { public Help_Country[] countries; public int hash; } [TLDef(0x455B853D)] //messageViews#455b853d flags:# views:flags.0?int forwards:flags.1?int replies:flags.2?MessageReplies = MessageViews - public class MessageViews : ITLObject + public partial class MessageViews : ITLObject { [Flags] public enum Flags { has_views = 0x1, has_forwards = 0x2, has_replies = 0x4 } public Flags flags; @@ -5152,7 +5152,7 @@ namespace TL } [TLDef(0xB6C4F543)] //messages.messageViews#b6c4f543 views:Vector chats:Vector users:Vector = messages.MessageViews - public class Messages_MessageViews : ITLObject + public partial class Messages_MessageViews : ITLObject { public MessageViews[] views; public ChatBase[] chats; @@ -5160,7 +5160,7 @@ namespace TL } [TLDef(0xF5DD8F9D)] //messages.discussionMessage#f5dd8f9d flags:# messages:Vector max_id:flags.0?int read_inbox_max_id:flags.1?int read_outbox_max_id:flags.2?int chats:Vector users:Vector = messages.DiscussionMessage - public class Messages_DiscussionMessage : ITLObject + public partial class Messages_DiscussionMessage : ITLObject { [Flags] public enum Flags { has_max_id = 0x1, has_read_inbox_max_id = 0x2, has_read_outbox_max_id = 0x4 } public Flags flags; @@ -5173,7 +5173,7 @@ namespace TL } [TLDef(0xA6D57763)] //messageReplyHeader#a6d57763 flags:# reply_to_msg_id:int reply_to_peer_id:flags.0?Peer reply_to_top_id:flags.1?int = MessageReplyHeader - public class MessageReplyHeader : ITLObject + public partial class MessageReplyHeader : ITLObject { [Flags] public enum Flags { has_reply_to_peer_id = 0x1, has_reply_to_top_id = 0x2 } public Flags flags; @@ -5183,7 +5183,7 @@ namespace TL } [TLDef(0x4128FAAC)] //messageReplies#4128faac flags:# comments:flags.0?true replies:int replies_pts:int recent_repliers:flags.1?Vector channel_id:flags.0?int max_id:flags.2?int read_max_id:flags.3?int = MessageReplies - public class MessageReplies : ITLObject + public partial class MessageReplies : ITLObject { [Flags] public enum Flags { comments = 0x1, has_recent_repliers = 0x2, has_max_id = 0x4, has_read_max_id = 0x8 } public Flags flags; @@ -5196,14 +5196,14 @@ namespace TL } [TLDef(0xE8FD8014)] //peerBlocked#e8fd8014 peer_id:Peer date:int = PeerBlocked - public class PeerBlocked : ITLObject + public partial class PeerBlocked : ITLObject { public Peer peer_id; public DateTime date; } [TLDef(0x8999F295)] //stats.messageStats#8999f295 views_graph:StatsGraph = stats.MessageStats - public class Stats_MessageStats : ITLObject { public StatsGraphBase views_graph; } + public partial class Stats_MessageStats : ITLObject { public StatsGraphBase views_graph; } } namespace WTelegram // ---functions--- diff --git a/src/TL.Secret.cs b/src/TL.Secret.cs index 018066d..df0f405 100644 --- a/src/TL.Secret.cs +++ b/src/TL.Secret.cs @@ -5,9 +5,9 @@ namespace TL { namespace Layer8 { - public abstract class DecryptedMessageBase : ITLObject { } + public abstract partial class DecryptedMessageBase : ITLObject { } [TLDef(0x1F814F1F)] //decryptedMessage#1f814f1f random_id:long random_bytes:bytes message:string media:DecryptedMessageMedia = DecryptedMessage - public class DecryptedMessage : DecryptedMessageBase + public partial class DecryptedMessage : DecryptedMessageBase { public long random_id; public byte[] random_bytes; @@ -15,18 +15,18 @@ namespace TL public DecryptedMessageMedia media; } [TLDef(0xAA48327D)] //decryptedMessageService#aa48327d random_id:long random_bytes:bytes action:DecryptedMessageAction = DecryptedMessage - public class DecryptedMessageService : DecryptedMessageBase + public partial class DecryptedMessageService : DecryptedMessageBase { public long random_id; public byte[] random_bytes; public DecryptedMessageAction action; } - public abstract class DecryptedMessageMedia : ITLObject { } + public abstract partial class DecryptedMessageMedia : ITLObject { } [TLDef(0x089F5C4A)] //decryptedMessageMediaEmpty#089f5c4a = DecryptedMessageMedia - public class DecryptedMessageMediaEmpty : DecryptedMessageMedia { } + public partial class DecryptedMessageMediaEmpty : DecryptedMessageMedia { } [TLDef(0x32798A8C)] //decryptedMessageMediaPhoto#32798a8c thumb:bytes thumb_w:int thumb_h:int w:int h:int size:int key:bytes iv:bytes = DecryptedMessageMedia - public class DecryptedMessageMediaPhoto : DecryptedMessageMedia + public partial class DecryptedMessageMediaPhoto : DecryptedMessageMedia { public byte[] thumb; public int thumb_w; @@ -38,7 +38,7 @@ namespace TL public byte[] iv; } [TLDef(0x4CEE6EF3)] //decryptedMessageMediaVideo#4cee6ef3 thumb:bytes thumb_w:int thumb_h:int duration:int w:int h:int size:int key:bytes iv:bytes = DecryptedMessageMedia - public class DecryptedMessageMediaVideo : DecryptedMessageMedia + public partial class DecryptedMessageMediaVideo : DecryptedMessageMedia { public byte[] thumb; public int thumb_w; @@ -51,13 +51,13 @@ namespace TL public byte[] iv; } [TLDef(0x35480A59)] //decryptedMessageMediaGeoPoint#35480a59 lat:double long:double = DecryptedMessageMedia - public class DecryptedMessageMediaGeoPoint : DecryptedMessageMedia + public partial class DecryptedMessageMediaGeoPoint : DecryptedMessageMedia { public double lat; public double long_; } [TLDef(0x588A0A97)] //decryptedMessageMediaContact#588a0a97 phone_number:string first_name:string last_name:string user_id:int = DecryptedMessageMedia - public class DecryptedMessageMediaContact : DecryptedMessageMedia + public partial class DecryptedMessageMediaContact : DecryptedMessageMedia { public string phone_number; public string first_name; @@ -65,7 +65,7 @@ namespace TL public int user_id; } [TLDef(0xB095434B)] //decryptedMessageMediaDocument#b095434b thumb:bytes thumb_w:int thumb_h:int file_name:string mime_type:string size:int key:bytes iv:bytes = DecryptedMessageMedia - public class DecryptedMessageMediaDocument : DecryptedMessageMedia + public partial class DecryptedMessageMediaDocument : DecryptedMessageMedia { public byte[] thumb; public int thumb_w; @@ -77,7 +77,7 @@ namespace TL public byte[] iv; } [TLDef(0x6080758F)] //decryptedMessageMediaAudio#6080758f duration:int size:int key:bytes iv:bytes = DecryptedMessageMedia - public class DecryptedMessageMediaAudio : DecryptedMessageMedia + public partial class DecryptedMessageMediaAudio : DecryptedMessageMedia { public int duration; public int size; @@ -85,24 +85,24 @@ namespace TL public byte[] iv; } - public abstract class DecryptedMessageAction : ITLObject { } + public abstract partial class DecryptedMessageAction : ITLObject { } [TLDef(0xA1733AEC)] //decryptedMessageActionSetMessageTTL#a1733aec ttl_seconds:int = DecryptedMessageAction - public class DecryptedMessageActionSetMessageTTL : DecryptedMessageAction { public int ttl_seconds; } + public partial class DecryptedMessageActionSetMessageTTL : DecryptedMessageAction { public int ttl_seconds; } [TLDef(0x0C4F40BE)] //decryptedMessageActionReadMessages#0c4f40be random_ids:Vector = DecryptedMessageAction - public class DecryptedMessageActionReadMessages : DecryptedMessageAction { public long[] random_ids; } + public partial class DecryptedMessageActionReadMessages : DecryptedMessageAction { public long[] random_ids; } [TLDef(0x65614304)] //decryptedMessageActionDeleteMessages#65614304 random_ids:Vector = DecryptedMessageAction - public class DecryptedMessageActionDeleteMessages : DecryptedMessageAction { public long[] random_ids; } + public partial class DecryptedMessageActionDeleteMessages : DecryptedMessageAction { public long[] random_ids; } [TLDef(0x8AC1F475)] //decryptedMessageActionScreenshotMessages#8ac1f475 random_ids:Vector = DecryptedMessageAction - public class DecryptedMessageActionScreenshotMessages : DecryptedMessageAction { public long[] random_ids; } + public partial class DecryptedMessageActionScreenshotMessages : DecryptedMessageAction { public long[] random_ids; } [TLDef(0x6719E45C)] //decryptedMessageActionFlushHistory#6719e45c = DecryptedMessageAction - public class DecryptedMessageActionFlushHistory : DecryptedMessageAction { } + public partial class DecryptedMessageActionFlushHistory : DecryptedMessageAction { } } namespace Layer17 { - public abstract class DecryptedMessageBase : ITLObject { } + public abstract partial class DecryptedMessageBase : ITLObject { } [TLDef(0x204D3878)] //decryptedMessage#204d3878 random_id:long ttl:int message:string media:DecryptedMessageMedia = DecryptedMessage - public class DecryptedMessage : DecryptedMessageBase + public partial class DecryptedMessage : DecryptedMessageBase { public long random_id; public int ttl; @@ -110,15 +110,15 @@ namespace TL public DecryptedMessageMedia media; } [TLDef(0x73164160)] //decryptedMessageService#73164160 random_id:long action:DecryptedMessageAction = DecryptedMessage - public class DecryptedMessageService : DecryptedMessageBase + public partial class DecryptedMessageService : DecryptedMessageBase { public long random_id; public DecryptedMessageAction action; } - public abstract class DecryptedMessageMedia : ITLObject { } + public abstract partial class DecryptedMessageMedia : ITLObject { } [TLDef(0x524A415D)] //decryptedMessageMediaVideo#524a415d thumb:bytes thumb_w:int thumb_h:int duration:int mime_type:string w:int h:int size:int key:bytes iv:bytes = DecryptedMessageMedia - public class DecryptedMessageMediaVideo : DecryptedMessageMedia + public partial class DecryptedMessageMediaVideo : DecryptedMessageMedia { public byte[] thumb; public int thumb_w; @@ -132,7 +132,7 @@ namespace TL public byte[] iv; } [TLDef(0x57E0A9CB)] //decryptedMessageMediaAudio#57e0a9cb duration:int mime_type:string size:int key:bytes iv:bytes = DecryptedMessageMedia - public class DecryptedMessageMediaAudio : DecryptedMessageMedia + public partial class DecryptedMessageMediaAudio : DecryptedMessageMedia { public int duration; public string mime_type; @@ -142,7 +142,7 @@ namespace TL } [TLDef(0x1BE31789)] //decryptedMessageLayer#1be31789 random_bytes:bytes layer:int in_seq_no:int out_seq_no:int message:DecryptedMessage = DecryptedMessageLayer - public class DecryptedMessageLayer : ITLObject + public partial class DecryptedMessageLayer : ITLObject { public byte[] random_bytes; public int layer; @@ -152,78 +152,78 @@ namespace TL } [TLDef(0x92042FF7)] //sendMessageUploadVideoAction#92042ff7 = SendMessageAction - public class SendMessageUploadVideoAction : SendMessageAction { } + public partial class SendMessageUploadVideoAction : SendMessageAction { } [TLDef(0xE6AC8A6F)] //sendMessageUploadAudioAction#e6ac8a6f = SendMessageAction - public class SendMessageUploadAudioAction : SendMessageAction { } + public partial class SendMessageUploadAudioAction : SendMessageAction { } [TLDef(0x990A3C1A)] //sendMessageUploadPhotoAction#990a3c1a = SendMessageAction - public class SendMessageUploadPhotoAction : SendMessageAction { } + public partial class SendMessageUploadPhotoAction : SendMessageAction { } [TLDef(0x8FAEE98E)] //sendMessageUploadDocumentAction#8faee98e = SendMessageAction - public class SendMessageUploadDocumentAction : SendMessageAction { } + public partial class SendMessageUploadDocumentAction : SendMessageAction { } - public abstract class DecryptedMessageAction : ITLObject { } + public abstract partial class DecryptedMessageAction : ITLObject { } [TLDef(0x511110B0)] //decryptedMessageActionResend#511110b0 start_seq_no:int end_seq_no:int = DecryptedMessageAction - public class DecryptedMessageActionResend : DecryptedMessageAction + public partial class DecryptedMessageActionResend : DecryptedMessageAction { public int start_seq_no; public int end_seq_no; } [TLDef(0xF3048883)] //decryptedMessageActionNotifyLayer#f3048883 layer:int = DecryptedMessageAction - public class DecryptedMessageActionNotifyLayer : DecryptedMessageAction { public int layer; } + public partial class DecryptedMessageActionNotifyLayer : DecryptedMessageAction { public int layer; } [TLDef(0xCCB27641)] //decryptedMessageActionTyping#ccb27641 action:SendMessageAction = DecryptedMessageAction - public class DecryptedMessageActionTyping : DecryptedMessageAction { public SendMessageAction action; } + public partial class DecryptedMessageActionTyping : DecryptedMessageAction { public SendMessageAction action; } } namespace Layer20 { - public abstract class DecryptedMessageAction : ITLObject { } + public abstract partial class DecryptedMessageAction : ITLObject { } [TLDef(0xF3C9611B)] //decryptedMessageActionRequestKey#f3c9611b exchange_id:long g_a:bytes = DecryptedMessageAction - public class DecryptedMessageActionRequestKey : DecryptedMessageAction + public partial class DecryptedMessageActionRequestKey : DecryptedMessageAction { public long exchange_id; public byte[] g_a; } [TLDef(0x6FE1735B)] //decryptedMessageActionAcceptKey#6fe1735b exchange_id:long g_b:bytes key_fingerprint:long = DecryptedMessageAction - public class DecryptedMessageActionAcceptKey : DecryptedMessageAction + public partial class DecryptedMessageActionAcceptKey : DecryptedMessageAction { public long exchange_id; public byte[] g_b; public long key_fingerprint; } [TLDef(0xDD05EC6B)] //decryptedMessageActionAbortKey#dd05ec6b exchange_id:long = DecryptedMessageAction - public class DecryptedMessageActionAbortKey : DecryptedMessageAction { public long exchange_id; } + public partial class DecryptedMessageActionAbortKey : DecryptedMessageAction { public long exchange_id; } [TLDef(0xEC2E0B9B)] //decryptedMessageActionCommitKey#ec2e0b9b exchange_id:long key_fingerprint:long = DecryptedMessageAction - public class DecryptedMessageActionCommitKey : DecryptedMessageAction + public partial class DecryptedMessageActionCommitKey : DecryptedMessageAction { public long exchange_id; public long key_fingerprint; } [TLDef(0xA82FDD63)] //decryptedMessageActionNoop#a82fdd63 = DecryptedMessageAction - public class DecryptedMessageActionNoop : DecryptedMessageAction { } + public partial class DecryptedMessageActionNoop : DecryptedMessageAction { } } namespace Layer23 { [TLDef(0xFB0A5727)] //documentAttributeSticker#fb0a5727 = DocumentAttribute - public class DocumentAttributeSticker : DocumentAttribute { } + public partial class DocumentAttributeSticker : DocumentAttribute { } [TLDef(0x5910CCCB)] //documentAttributeVideo#5910cccb duration:int w:int h:int = DocumentAttribute - public class DocumentAttributeVideo : DocumentAttribute + public partial class DocumentAttributeVideo : DocumentAttribute { public int duration; public int w; public int h; } [TLDef(0x051448E5)] //documentAttributeAudio#051448e5 duration:int = DocumentAttribute - public class DocumentAttributeAudio : DocumentAttribute { public int duration; } + public partial class DocumentAttributeAudio : DocumentAttribute { public int duration; } [TLDef(0x7C596B46)] //fileLocationUnavailable#7c596b46 volume_id:long local_id:int secret:long = FileLocation - public class FileLocationUnavailable : FileLocation + public partial class FileLocationUnavailable : FileLocation { public long volume_id; public int local_id; public long secret; } [TLDef(0x53D69076)] //fileLocation#53d69076 dc_id:int volume_id:long local_id:int secret:long = FileLocation - public class FileLocation_ : FileLocation + public partial class FileLocation_ : FileLocation { public int dc_id; public long volume_id; @@ -231,9 +231,9 @@ namespace TL public long secret; } - public abstract class DecryptedMessageMedia : ITLObject { } + public abstract partial class DecryptedMessageMedia : ITLObject { } [TLDef(0xFA95B0DD)] //decryptedMessageMediaExternalDocument#fa95b0dd id:long access_hash:long date:int mime_type:string size:int thumb:PhotoSize dc_id:int attributes:Vector = DecryptedMessageMedia - public class DecryptedMessageMediaExternalDocument : DecryptedMessageMedia + public partial class DecryptedMessageMediaExternalDocument : DecryptedMessageMedia { public long id; public long access_hash; @@ -249,7 +249,7 @@ namespace TL namespace Layer45 { [TLDef(0x36B091DE)] //decryptedMessage#36b091de flags:# random_id:long ttl:int message:string media:flags.9?DecryptedMessageMedia entities:flags.7?Vector via_bot_name:flags.11?string reply_to_random_id:flags.3?long = DecryptedMessage - public class DecryptedMessage : ITLObject + public partial class DecryptedMessage : ITLObject { [Flags] public enum Flags { has_reply_to_random_id = 0x8, has_entities = 0x80, has_media = 0x200, has_via_bot_name = 0x800 } public Flags flags; @@ -262,9 +262,9 @@ namespace TL [IfFlag(3)] public long reply_to_random_id; } - public abstract class DecryptedMessageMedia : ITLObject { } + public abstract partial class DecryptedMessageMedia : ITLObject { } [TLDef(0xF1FA8D78)] //decryptedMessageMediaPhoto#f1fa8d78 thumb:bytes thumb_w:int thumb_h:int w:int h:int size:int key:bytes iv:bytes caption:string = DecryptedMessageMedia - public class DecryptedMessageMediaPhoto : DecryptedMessageMedia + public partial class DecryptedMessageMediaPhoto : DecryptedMessageMedia { public byte[] thumb; public int thumb_w; @@ -277,7 +277,7 @@ namespace TL public string caption; } [TLDef(0x970C8C0E)] //decryptedMessageMediaVideo#970c8c0e thumb:bytes thumb_w:int thumb_h:int duration:int mime_type:string w:int h:int size:int key:bytes iv:bytes caption:string = DecryptedMessageMedia - public class DecryptedMessageMediaVideo : DecryptedMessageMedia + public partial class DecryptedMessageMediaVideo : DecryptedMessageMedia { public byte[] thumb; public int thumb_w; @@ -292,7 +292,7 @@ namespace TL public string caption; } [TLDef(0x7AFE8AE2)] //decryptedMessageMediaDocument#7afe8ae2 thumb:bytes thumb_w:int thumb_h:int mime_type:string size:int key:bytes iv:bytes attributes:Vector caption:string = DecryptedMessageMedia - public class DecryptedMessageMediaDocument : DecryptedMessageMedia + public partial class DecryptedMessageMediaDocument : DecryptedMessageMedia { public byte[] thumb; public int thumb_w; @@ -305,7 +305,7 @@ namespace TL public string caption; } [TLDef(0x8A0DF56F)] //decryptedMessageMediaVenue#8a0df56f lat:double long:double title:string address:string provider:string venue_id:string = DecryptedMessageMedia - public class DecryptedMessageMediaVenue : DecryptedMessageMedia + public partial class DecryptedMessageMediaVenue : DecryptedMessageMedia { public double lat; public double long_; @@ -315,16 +315,16 @@ namespace TL public string venue_id; } [TLDef(0xE50511D8)] //decryptedMessageMediaWebPage#e50511d8 url:string = DecryptedMessageMedia - public class DecryptedMessageMediaWebPage : DecryptedMessageMedia { public string url; } + public partial class DecryptedMessageMediaWebPage : DecryptedMessageMedia { public string url; } [TLDef(0x3A556302)] //documentAttributeSticker#3a556302 alt:string stickerset:InputStickerSet = DocumentAttribute - public class DocumentAttributeSticker : DocumentAttribute + public partial class DocumentAttributeSticker : DocumentAttribute { public string alt; public InputStickerSet stickerset; } [TLDef(0xDED218E0)] //documentAttributeAudio#ded218e0 duration:int title:string performer:string = DocumentAttribute - public class DocumentAttributeAudio : DocumentAttribute + public partial class DocumentAttributeAudio : DocumentAttribute { public int duration; public string title; @@ -338,13 +338,13 @@ namespace TL namespace Layer66 { [TLDef(0xBB718624)] //sendMessageUploadRoundAction#bb718624 = SendMessageAction - public class SendMessageUploadRoundAction : SendMessageAction { } + public partial class SendMessageUploadRoundAction : SendMessageAction { } } namespace Layer73 { [TLDef(0x91CC4674)] //decryptedMessage#91cc4674 flags:# random_id:long ttl:int message:string media:flags.9?DecryptedMessageMedia entities:flags.7?Vector via_bot_name:flags.11?string reply_to_random_id:flags.3?long grouped_id:flags.17?long = DecryptedMessage - public class DecryptedMessage : ITLObject + public partial class DecryptedMessage : ITLObject { [Flags] public enum Flags { has_reply_to_random_id = 0x8, has_entities = 0x80, has_media = 0x200, has_via_bot_name = 0x800, has_grouped_id = 0x20000 } diff --git a/src/TL.Table.cs b/src/TL.Table.cs index 2d0683b..80104cd 100644 --- a/src/TL.Table.cs +++ b/src/TL.Table.cs @@ -6,7 +6,7 @@ namespace TL { static partial class Schema { - public const int Layer = 121; // fetched 07/08/2021 01:34:33 + public const int Layer = 121; // fetched 09/08/2021 22:59:12 public const int VectorCtor = 0x1CB5C415; public const int NullCtor = 0x56730BCC; @@ -14,8 +14,10 @@ namespace TL { // from TL.MTProto: [0x05162463] = typeof(ResPQ), + [0x83C95AEC] = typeof(PQInnerData), [0xA9F55F95] = typeof(PQInnerDataDC), [0x56FDDF88] = typeof(PQInnerDataTempDC), + [0x79CB045D] = typeof(ServerDHParamsFail), [0xD0E8075C] = typeof(ServerDHParamsOk), [0xB5890DBA] = typeof(ServerDHInnerData), [0x6643B654] = typeof(ClientDHInnerData), @@ -47,6 +49,7 @@ namespace TL [0x8CC0D131] = typeof(MsgsAllInfo), [0x276D3EC6] = typeof(MsgDetailedInfo), [0x809DB6DF] = typeof(MsgNewDetailedInfo), + [0x7A19CB76] = typeof(RSAPublicKey), [0xF660E1D4] = typeof(DestroyAuthKeyOk), [0x0A9F2259] = typeof(DestroyAuthKeyNone), [0xEA109B13] = typeof(DestroyAuthKeyFail),