From 9fe11966066f76f7bddab7666eafb5b9f11c4900 Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Tue, 26 Mar 2024 02:30:16 +0100 Subject: [PATCH] Mark most classes as sealed & partial --- .github/dev.yml | 2 +- .github/release.yml | 2 +- .gitignore | 2 + src/Client.cs | 2 +- src/Encryption.cs | 4 +- src/SecretChats.cs | 2 +- src/Session.cs | 8 +- src/TL.Extensions.cs | 2 +- src/TL.MTProto.cs | 106 +- src/TL.Schema.cs | 2398 ++++++++++++++++++++--------------------- src/TL.SchemaFuncs.cs | 1198 ++++++++++---------- src/TL.Secret.cs | 110 +- src/TL.Table.cs | 5 +- src/TL.cs | 22 +- src/TlsStream.cs | 2 +- 15 files changed, 1933 insertions(+), 1932 deletions(-) diff --git a/.github/dev.yml b/.github/dev.yml index 7ca15b3..c9a88ef 100644 --- a/.github/dev.yml +++ b/.github/dev.yml @@ -1,7 +1,7 @@ pr: none trigger: [ master ] -name: 3.7.2-dev.$(Rev:r) +name: 4.0.0-dev.$(Rev:r) pool: vmImage: ubuntu-latest diff --git a/.github/release.yml b/.github/release.yml index c9cfd5a..aa20ed8 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -1,7 +1,7 @@ pr: none trigger: none -name: 3.7.$(Rev:r) +name: 4.0.0 pool: vmImage: ubuntu-latest diff --git a/.gitignore b/.gitignore index 9491a2f..0c768ca 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ ## ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore +launchSettings.json + # User-specific files *.rsuser *.suo diff --git a/src/Client.cs b/src/Client.cs index 9fa42bb..046ddd4 100644 --- a/src/Client.cs +++ b/src/Client.cs @@ -625,7 +625,7 @@ namespace WTelegram return new RpcResult { req_msg_id = msgId, result = result }; } - class Rpc + private sealed class Rpc { internal Type type; internal TaskCompletionSource tcs = new(TaskCreationOptions.RunContinuationsAsynchronously); diff --git a/src/Encryption.cs b/src/Encryption.cs index d88a260..4c49f5e 100644 --- a/src/Encryption.cs +++ b/src/Encryption.cs @@ -319,7 +319,7 @@ j4WcDuXc2CTHgH8gFTNhp/Y8/SpDOhvn9QIDAQAB } #if OBFUSCATION - internal class AesCtr(byte[] key, byte[] ivec) : IDisposable + internal sealed class AesCtr(byte[] key, byte[] ivec) : IDisposable { readonly ICryptoTransform _encryptor = AesECB.CreateEncryptor(key, null); readonly byte[] _ecount = new byte[16]; @@ -518,7 +518,7 @@ j4WcDuXc2CTHgH8gFTNhp/Y8/SpDOhvn9QIDAQAB #endif } - internal class AES_IGE_Stream : Helpers.IndirectStream + internal sealed class AES_IGE_Stream : Helpers.IndirectStream { private readonly ICryptoTransform _aesCrypto; private readonly byte[] _prevBytes; diff --git a/src/SecretChats.cs b/src/SecretChats.cs index 3898b8c..7b1cfbe 100644 --- a/src/SecretChats.cs +++ b/src/SecretChats.cs @@ -37,7 +37,7 @@ namespace WTelegram private const int ThresholdPFS = 100; [TLDef(0xFEFEFEFE)] - internal class SecretChat : IObject, ISecretChat + internal sealed class SecretChat : IObject, ISecretChat { [Flags] public enum Flags : uint { requestChat = 1, renewKey = 2, acceptKey = 4, originator = 8, commitKey = 16 } public Flags flags; diff --git a/src/Session.cs b/src/Session.cs index 70c88ac..ed184e2 100644 --- a/src/Session.cs +++ b/src/Session.cs @@ -11,7 +11,7 @@ using System.Text.Json; namespace WTelegram { - internal class Session : IDisposable + internal sealed partial class Session : IDisposable { public int ApiId; public long UserId; @@ -19,7 +19,7 @@ namespace WTelegram public Dictionary DCSessions = []; public TL.DcOption[] DcOptions; - public class DCSession + public sealed class DCSession { public long Id; public long AuthKeyID; @@ -158,7 +158,7 @@ namespace WTelegram } } - internal class SessionStore : FileStream // This class is designed to be high-performance and failure-resilient with Writes (but when you're Andrei, you can't understand that) + internal sealed class SessionStore : FileStream // This class is designed to be high-performance and failure-resilient with Writes (but when you're Andrei, you can't understand that) { public override long Length { get; } public override long Position { get => base.Position; set { } } @@ -192,7 +192,7 @@ namespace WTelegram } } - internal class ActionStore(byte[] initial, Action save) : MemoryStream(initial ?? []) + internal sealed class ActionStore(byte[] initial, Action save) : MemoryStream(initial ?? []) { public override void Write(byte[] buffer, int offset, int count) => save(buffer[offset..(offset + count)]); public override void SetLength(long value) { } diff --git a/src/TL.Extensions.cs b/src/TL.Extensions.cs index 1cc5a95..428f243 100644 --- a/src/TL.Extensions.cs +++ b/src/TL.Extensions.cs @@ -11,7 +11,7 @@ namespace TL { public static class Extensions { - internal class CollectorPeer : Peer + internal sealed partial class CollectorPeer : Peer { public override long ID => 0; internal IDictionary _users; diff --git a/src/TL.MTProto.cs b/src/TL.MTProto.cs index fa8754c..8d9bd50 100644 --- a/src/TL.MTProto.cs +++ b/src/TL.MTProto.cs @@ -7,7 +7,7 @@ namespace TL { #pragma warning disable IDE1006 [TLDef(0x05162463)] //resPQ#05162463 nonce:int128 server_nonce:int128 pq:bytes server_public_key_fingerprints:Vector = ResPQ - public class ResPQ : IObject + public sealed partial class ResPQ : IObject { public Int128 nonce; public Int128 server_nonce; @@ -16,7 +16,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 : IObject + public partial class PQInnerData : IObject { public byte[] pq; public byte[] p; @@ -26,24 +26,24 @@ namespace TL public Int256 new_nonce; } [TLDef(0xA9F55F95, inheritBefore = true)] //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 sealed partial class PQInnerDataDc : PQInnerData { public int dc; } [TLDef(0x3C6A84D4, inheritBefore = true)] //p_q_inner_data_temp#3c6a84d4 pq:bytes p:bytes q:bytes nonce:int128 server_nonce:int128 new_nonce:int256 expires_in:int = P_Q_inner_data - public class PQInnerDataTemp : PQInnerData + public sealed partial class PQInnerDataTemp : PQInnerData { public int expires_in; } [TLDef(0x56FDDF88, inheritBefore = true)] //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 sealed partial class PQInnerDataTempDc : PQInnerData { public int dc; public int expires_in; } [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 : IObject + public sealed partial class BindAuthKeyInner : IObject { public long nonce; public long temp_auth_key_id; @@ -52,24 +52,24 @@ namespace TL public DateTime expires_at; } - public abstract class ServerDHParams : IObject + public abstract partial class ServerDHParams : IObject { public Int128 nonce; public Int128 server_nonce; } [TLDef(0x79CB045D, inheritBefore = true)] //server_DH_params_fail#79cb045d nonce:int128 server_nonce:int128 new_nonce_hash:int128 = Server_DH_Params - public class ServerDHParamsFail : ServerDHParams + public sealed partial class ServerDHParamsFail : ServerDHParams { public Int128 new_nonce_hash; } [TLDef(0xD0E8075C, inheritBefore = true)] //server_DH_params_ok#d0e8075c nonce:int128 server_nonce:int128 encrypted_answer:bytes = Server_DH_Params - public class ServerDHParamsOk : ServerDHParams + public sealed 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 : IObject + public sealed partial class ServerDHInnerData : IObject { public Int128 nonce; public Int128 server_nonce; @@ -80,7 +80,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 : IObject + public sealed partial class ClientDHInnerData : IObject { public Int128 nonce; public Int128 server_nonce; @@ -88,23 +88,23 @@ namespace TL public byte[] g_b; } - public abstract class SetClientDHParamsAnswer : IObject + public abstract partial class SetClientDHParamsAnswer : IObject { public Int128 nonce; public Int128 server_nonce; } [TLDef(0x3BCBF734, inheritBefore = true)] //dh_gen_ok#3bcbf734 nonce:int128 server_nonce:int128 new_nonce_hash1:int128 = Set_client_DH_params_answer - public class DhGenOk : SetClientDHParamsAnswer + public sealed partial class DhGenOk : SetClientDHParamsAnswer { public Int128 new_nonce_hash1; } [TLDef(0x46DC1FB9, inheritBefore = true)] //dh_gen_retry#46dc1fb9 nonce:int128 server_nonce:int128 new_nonce_hash2:int128 = Set_client_DH_params_answer - public class DhGenRetry : SetClientDHParamsAnswer + public sealed partial class DhGenRetry : SetClientDHParamsAnswer { public Int128 new_nonce_hash2; } [TLDef(0xA69DAE02, inheritBefore = true)] //dh_gen_fail#a69dae02 nonce:int128 server_nonce:int128 new_nonce_hash3:int128 = Set_client_DH_params_answer - public class DhGenFail : SetClientDHParamsAnswer + public sealed partial class DhGenFail : SetClientDHParamsAnswer { public Int128 new_nonce_hash3; } @@ -120,52 +120,52 @@ namespace TL } [TLDef(0x62D6B459)] //msgs_ack#62d6b459 msg_ids:Vector = MsgsAck - public class MsgsAck : IObject + public sealed partial class MsgsAck : IObject { 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 : IObject + public partial class BadMsgNotification : IObject { public long bad_msg_id; public int bad_msg_seqno; public int error_code; } [TLDef(0xEDAB447B, inheritBefore = true)] //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 sealed partial class BadServerSalt : BadMsgNotification { public long new_server_salt; } [TLDef(0xDA69FB52)] //msgs_state_req#da69fb52 msg_ids:Vector = MsgsStateReq - public class MsgsStateReq : IObject + public sealed partial class MsgsStateReq : IObject { public long[] msg_ids; } [TLDef(0x04DEB57D)] //msgs_state_info#04deb57d req_msg_id:long info:bytes = MsgsStateInfo - public class MsgsStateInfo : IObject + public sealed partial class MsgsStateInfo : IObject { public long req_msg_id; public byte[] info; } [TLDef(0x8CC0D131)] //msgs_all_info#8cc0d131 msg_ids:Vector info:bytes = MsgsAllInfo - public class MsgsAllInfo : IObject + public sealed partial class MsgsAllInfo : IObject { public long[] msg_ids; public byte[] info; } - public abstract class MsgDetailedInfoBase : IObject + public abstract partial class MsgDetailedInfoBase : IObject { public virtual long AnswerMsgId => default; public virtual int Bytes => default; public virtual int Status => default; } [TLDef(0x276D3EC6)] //msg_detailed_info#276d3ec6 msg_id:long answer_msg_id:long bytes:int status:int = MsgDetailedInfo - public class MsgDetailedInfo : MsgDetailedInfoBase + public sealed partial class MsgDetailedInfo : MsgDetailedInfoBase { public long msg_id; public long answer_msg_id; @@ -177,7 +177,7 @@ namespace TL public override int Status => status; } [TLDef(0x809DB6DF)] //msg_new_detailed_info#809db6df answer_msg_id:long bytes:int status:int = MsgDetailedInfo - public class MsgNewDetailedInfo : MsgDetailedInfoBase + public sealed partial class MsgNewDetailedInfo : MsgDetailedInfoBase { public long answer_msg_id; public int bytes; @@ -189,25 +189,25 @@ namespace TL } [TLDef(0x7D861A08)] //msg_resend_req#7d861a08 msg_ids:Vector = MsgResendReq - public class MsgResendReq : IObject + public sealed partial class MsgResendReq : IObject { public long[] msg_ids; } [TLDef(0x2144CA19)] //rpc_error#2144ca19 error_code:int error_message:string = RpcError - public class RpcError : IObject + public sealed partial class RpcError : IObject { public int error_code; public string error_message; } - public abstract class RpcDropAnswer : IObject { } + public abstract partial class RpcDropAnswer : IObject { } [TLDef(0x5E2AD36E)] //rpc_answer_unknown#5e2ad36e = RpcDropAnswer - public class RpcAnswerUnknown : RpcDropAnswer { } + public sealed partial class RpcAnswerUnknown : RpcDropAnswer { } [TLDef(0xCD78E586)] //rpc_answer_dropped_running#cd78e586 = RpcDropAnswer - public class RpcAnswerDroppedRunning : RpcDropAnswer { } + public sealed partial class RpcAnswerDroppedRunning : RpcDropAnswer { } [TLDef(0xA43AD8B7)] //rpc_answer_dropped#a43ad8b7 msg_id:long seq_no:int bytes:int = RpcDropAnswer - public class RpcAnswerDropped : RpcDropAnswer + public sealed partial class RpcAnswerDropped : RpcDropAnswer { public long msg_id; public int seq_no; @@ -215,7 +215,7 @@ namespace TL } [TLDef(0x0949D9DC)] //future_salt#0949d9dc valid_since:int valid_until:int salt:long = FutureSalt - public class FutureSalt : IObject + public sealed partial class FutureSalt : IObject { public DateTime valid_since; public DateTime valid_until; @@ -223,7 +223,7 @@ namespace TL } [TLDef(0xAE500895)] //future_salts#ae500895 req_msg_id:long now:int salts:vector = FutureSalts - public class FutureSalts : IObject + public sealed partial class FutureSalts : IObject { public long req_msg_id; public DateTime now; @@ -231,24 +231,24 @@ namespace TL } [TLDef(0x347773C5)] //pong#347773c5 msg_id:long ping_id:long = Pong - public class Pong : IObject + public sealed partial class Pong : IObject { public long msg_id; public long ping_id; } - public abstract class DestroySessionRes : IObject + public abstract partial class DestroySessionRes : IObject { public long session_id; } [TLDef(0xE22045FC)] //destroy_session_ok#e22045fc session_id:long = DestroySessionRes - public class DestroySessionOk : DestroySessionRes { } + public sealed partial class DestroySessionOk : DestroySessionRes { } [TLDef(0x62D350C9)] //destroy_session_none#62d350c9 session_id:long = DestroySessionRes - public class DestroySessionNone : DestroySessionRes { } + public sealed partial class DestroySessionNone : DestroySessionRes { } - public abstract class NewSession : IObject { } + public abstract partial class NewSession : IObject { } [TLDef(0x9EC20908)] //new_session_created#9ec20908 first_msg_id:long unique_id:long server_salt:long = NewSession - public class NewSessionCreated : NewSession + public sealed partial class NewSessionCreated : NewSession { public long first_msg_id; public long unique_id; @@ -256,7 +256,7 @@ namespace TL } [TLDef(0x9299359F)] //http_wait#9299359f max_delay:int wait_after:int max_wait:int = HttpWait - public class HttpWait : IObject + public sealed partial class HttpWait : IObject { public int max_delay; public int wait_after; @@ -264,19 +264,19 @@ namespace TL } [TLDef(0xD433AD73)] //ipPort#d433ad73 ipv4:int port:int = IpPort - public class IpPort : IObject + public partial class IpPort : IObject { public int ipv4; public int port; } [TLDef(0x37982646, inheritBefore = true)] //ipPortSecret#37982646 ipv4:int port:int secret:bytes = IpPort - public class IpPortSecret : IpPort + public sealed partial class IpPortSecret : IpPort { public byte[] secret; } [TLDef(0x4679B65F)] //accessPointRule#4679b65f phone_prefix_rules:bytes dc_id:int ips:vector = AccessPointRule - public class AccessPointRule : IObject + public sealed partial class AccessPointRule : IObject { public byte[] phone_prefix_rules; public int dc_id; @@ -284,7 +284,7 @@ namespace TL } [TLDef(0x5A592A6C)] //help.configSimple#5a592a6c date:int expires:int rules:vector = help.ConfigSimple - public class Help_ConfigSimple : IObject + public sealed partial class Help_ConfigSimple : IObject { public DateTime date; public DateTime expires; @@ -368,19 +368,19 @@ namespace TL.Methods { #pragma warning disable IDE1006 [TLDef(0x60469778)] //req_pq#60469778 nonce:int128 = ResPQ - public class ReqPq : IMethod + public sealed partial class ReqPq : IMethod { public Int128 nonce; } [TLDef(0xBE7E8EF1)] //req_pq_multi#be7e8ef1 nonce:int128 = ResPQ - public class ReqPqMulti : IMethod + public sealed partial class ReqPqMulti : IMethod { public Int128 nonce; } [TLDef(0xD712E4BE)] //req_DH_params#d712e4be nonce:int128 server_nonce:int128 p:bytes q:bytes public_key_fingerprint:long encrypted_data:bytes = Server_DH_Params - public class ReqDHParams : IMethod + public sealed partial class ReqDHParams : IMethod { public Int128 nonce; public Int128 server_nonce; @@ -391,7 +391,7 @@ namespace TL.Methods } [TLDef(0xF5045F1F)] //set_client_DH_params#f5045f1f nonce:int128 server_nonce:int128 encrypted_data:bytes = Set_client_DH_params_answer - public class SetClientDHParams : IMethod + public sealed partial class SetClientDHParams : IMethod { public Int128 nonce; public Int128 server_nonce; @@ -399,35 +399,35 @@ namespace TL.Methods } [TLDef(0xD1435160)] //destroy_auth_key#d1435160 = DestroyAuthKeyRes - public class DestroyAuthKey : IMethod { } + public sealed partial class DestroyAuthKey : IMethod { } [TLDef(0x58E4A740)] //rpc_drop_answer#58e4a740 req_msg_id:long = RpcDropAnswer - public class RpcDropAnswer : IMethod + public sealed partial class RpcDropAnswer : IMethod { public long req_msg_id; } [TLDef(0xB921BD04)] //get_future_salts#b921bd04 num:int = FutureSalts - public class GetFutureSalts : IMethod + public sealed partial class GetFutureSalts : IMethod { public int num; } [TLDef(0x7ABE77EC)] //ping#7abe77ec ping_id:long = Pong - public class Ping : IMethod + public sealed partial class Ping : IMethod { public long ping_id; } [TLDef(0xF3427B8C)] //ping_delay_disconnect#f3427b8c ping_id:long disconnect_delay:int = Pong - public class PingDelayDisconnect : IMethod + public sealed partial class PingDelayDisconnect : IMethod { public long ping_id; public int disconnect_delay; } [TLDef(0xE7512126)] //destroy_session#e7512126 session_id:long = DestroySessionRes - public class DestroySession : IMethod + public sealed partial class DestroySession : IMethod { public long session_id; } diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs index 60f58b6..984dc17 100644 --- a/src/TL.Schema.cs +++ b/src/TL.Schema.cs @@ -15,11 +15,11 @@ namespace TL /// See predefined identifiers. See [TLDef(0x3FEDD339)] - public class True : IObject { } + public sealed partial class True : IObject { } /// Error. See [TLDef(0xC4B9F9BB)] - public class Error : IObject + public sealed partial class Error : IObject { /// Error code public int code; @@ -30,24 +30,24 @@ namespace TL /// Corresponds to an arbitrary empty object. See /// a value means null [TLDef(0x56730BCC)] - public class Null : IObject { } + public sealed partial class Null : IObject { } /// Peer See Derived classes: , , , , , /// a value means inputPeerEmpty public abstract partial class InputPeer : IObject { } /// Defines the current user. See [TLDef(0x7DA07EC9)] - public partial class InputPeerSelf : InputPeer { } + public sealed partial class InputPeerSelf : InputPeer { } /// Defines a chat for further interaction. See [TLDef(0x35A95CB9)] - public partial class InputPeerChat : InputPeer + public sealed partial class InputPeerChat : InputPeer { /// Chat identifier public long chat_id; } /// Defines a user for further interaction. See [TLDef(0xDDE8A54C)] - public partial class InputPeerUser : InputPeer + public sealed partial class InputPeerUser : InputPeer { /// User identifier public long user_id; @@ -56,7 +56,7 @@ namespace TL } /// Defines a channel for further interaction. See [TLDef(0x27BCBBFC)] - public partial class InputPeerChannel : InputPeer + public sealed partial class InputPeerChannel : InputPeer { /// Channel identifier public long channel_id; @@ -65,7 +65,7 @@ namespace TL } /// Defines a min user that was seen in a certain message of a certain chat. See [TLDef(0xA87B0A1C)] - public partial class InputPeerUserFromMessage : InputPeer + public sealed partial class InputPeerUserFromMessage : InputPeer { /// The chat where the user was seen public InputPeer peer; @@ -76,7 +76,7 @@ namespace TL } /// Defines a min channel that was seen in a certain message of a certain chat. See [TLDef(0xBD2A0840)] - public partial class InputPeerChannelFromMessage : InputPeer + public sealed partial class InputPeerChannelFromMessage : InputPeer { /// The chat where the channel's message was seen public InputPeer peer; @@ -91,10 +91,10 @@ namespace TL public abstract partial class InputUserBase : IObject { } /// Defines the current user. See [TLDef(0xF7C1B13F)] - public partial class InputUserSelf : InputUserBase { } + public sealed partial class InputUserSelf : InputUserBase { } /// Defines a user for further interaction. See [TLDef(0xF21158C6)] - public partial class InputUser : InputUserBase + public sealed partial class InputUser : InputUserBase { /// User identifier public long user_id; @@ -103,7 +103,7 @@ namespace TL } /// Defines a min user that was seen in a certain message of a certain chat. See [TLDef(0x1DA448E2)] - public partial class InputUserFromMessage : InputUserBase + public sealed partial class InputUserFromMessage : InputUserBase { /// The chat where the user was seen public InputPeer peer; @@ -114,10 +114,10 @@ namespace TL } /// Object defines a contact from the user's phone book. See Derived classes: - public abstract class InputContact : IObject { } + public abstract partial class InputContact : IObject { } /// Phone contact. See [TLDef(0xF392B7F4)] - public class InputPhoneContact : InputContact + public sealed partial class InputPhoneContact : InputContact { /// An arbitrary 64-bit integer: it should be set, for example, to an incremental number when using Contacts_ImportContacts, in order to retry importing only the contacts that weren't imported successfully, according to the client_ids returned in .retry_contacts. public long client_id; @@ -141,7 +141,7 @@ namespace TL } /// Defines a file saved in parts using the method Upload_SaveFilePart. See [TLDef(0xF52FF27F)] - public partial class InputFile : InputFileBase + public sealed partial class InputFile : InputFileBase { /// Random file identifier created by the client public long id; @@ -161,7 +161,7 @@ namespace TL } /// Assigns a big file (over 10 MB in size), saved in part using the method Upload_SaveBigFilePart. See [TLDef(0xFA4F0BB5)] - public partial class InputFileBig : InputFileBase + public sealed partial class InputFileBig : InputFileBase { /// Random file id, created by the client public long id; @@ -180,10 +180,10 @@ namespace TL /// Defines media content of a message. See Derived classes: , , , , , , , , , , , , , , , /// a value means inputMediaEmpty - public abstract class InputMedia : IObject { } + public abstract partial class InputMedia : IObject { } /// Photo See [TLDef(0x1E287D04)] - public class InputMediaUploadedPhoto : InputMedia + public sealed partial class InputMediaUploadedPhoto : InputMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -206,7 +206,7 @@ namespace TL } /// Forwarded photo See [TLDef(0xB3BA0635)] - public class InputMediaPhoto : InputMedia + public sealed partial class InputMediaPhoto : InputMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -225,14 +225,14 @@ namespace TL } /// Map. See [TLDef(0xF9C44144)] - public class InputMediaGeoPoint : InputMedia + public sealed partial class InputMediaGeoPoint : InputMedia { /// GeoPoint public InputGeoPoint geo_point; } /// Phone book contact See [TLDef(0xF8AB7DFB)] - public class InputMediaContact : InputMedia + public sealed partial class InputMediaContact : InputMedia { /// Phone number public string phone_number; @@ -245,7 +245,7 @@ namespace TL } /// New document See [TLDef(0x5B38C6C1)] - public partial class InputMediaUploadedDocument : InputMedia + public sealed partial class InputMediaUploadedDocument : InputMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -280,7 +280,7 @@ namespace TL } /// Forwarded document See [TLDef(0x33473058)] - public class InputMediaDocument : InputMedia + public sealed partial class InputMediaDocument : InputMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -303,7 +303,7 @@ namespace TL } /// Can be used to send a venue geolocation. See [TLDef(0xC13D1C11)] - public class InputMediaVenue : InputMedia + public sealed partial class InputMediaVenue : InputMedia { /// Geolocation public InputGeoPoint geo_point; @@ -320,7 +320,7 @@ namespace TL } /// New photo that will be uploaded by the server using the specified URL See [TLDef(0xE5BBFE1A)] - public class InputMediaPhotoExternal : InputMedia + public sealed partial class InputMediaPhotoExternal : InputMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -339,7 +339,7 @@ namespace TL } /// Document that will be downloaded by the telegram servers See [TLDef(0xFB52DC99)] - public class InputMediaDocumentExternal : InputMedia + public sealed partial class InputMediaDocumentExternal : InputMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -358,14 +358,14 @@ namespace TL } /// A game See [TLDef(0xD33F43F3)] - public class InputMediaGame : InputMedia + public sealed partial class InputMediaGame : InputMedia { /// The game to forward public InputGame id; } /// Generated invoice of a bot payment See [TLDef(0x8EB5A6D5)] - public class InputMediaInvoice : InputMedia + public sealed partial class InputMediaInvoice : InputMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -400,7 +400,7 @@ namespace TL } /// Live geolocation See [TLDef(0x971FA843)] - public class InputMediaGeoLive : InputMedia + public sealed partial class InputMediaGeoLive : InputMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -427,7 +427,7 @@ namespace TL } /// A poll See [TLDef(0x0F94E5F1)] - public class InputMediaPoll : InputMedia + public sealed partial class InputMediaPoll : InputMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -450,14 +450,14 @@ namespace TL } /// Send a dice-based animated sticker See [TLDef(0xE66FBF7B)] - public class InputMediaDice : InputMedia + public sealed partial class InputMediaDice : InputMedia { /// The emoji, for now 🏀, 🎲 and 🎯 are supported public string emoticon; } /// Forwarded story See [TLDef(0x89FDD778)] - public class InputMediaStory : InputMedia + public sealed partial class InputMediaStory : InputMedia { /// Peer where the story was posted public InputPeer peer; @@ -466,7 +466,7 @@ namespace TL } /// Specifies options that will be used to generate the link preview for the caption, or even a standalone link preview without an attached message. See [TLDef(0xC21B8849)] - public class InputMediaWebPage : InputMedia + public sealed partial class InputMediaWebPage : InputMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -486,10 +486,10 @@ namespace TL /// Defines a new group profile photo. See Derived classes: , /// a value means inputChatPhotoEmpty - public abstract class InputChatPhotoBase : IObject { } + public abstract partial class InputChatPhotoBase : IObject { } /// New photo to be set as group profile photo. See [TLDef(0xBDCDAEC0)] - public class InputChatUploadedPhoto : InputChatPhotoBase + public sealed partial class InputChatUploadedPhoto : InputChatPhotoBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -516,7 +516,7 @@ namespace TL } /// Existing photo to be set as a chat profile photo. See [TLDef(0x8953AD37)] - public class InputChatPhoto : InputChatPhotoBase + public sealed partial class InputChatPhoto : InputChatPhotoBase { /// Existing photo public InputPhoto id; @@ -525,7 +525,7 @@ namespace TL /// Defines a GeoPoint by its coordinates. See /// a value means inputGeoPointEmpty [TLDef(0x48222FAF)] - public class InputGeoPoint : IObject + public sealed partial class InputGeoPoint : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -546,7 +546,7 @@ namespace TL /// Defines a photo for further interaction. See /// a value means inputPhotoEmpty [TLDef(0x3BB3B94A)] - public partial class InputPhoto : IObject + public sealed partial class InputPhoto : IObject { /// Photo identifier public long id; @@ -557,10 +557,10 @@ namespace TL } /// Defines the location of a file for download. See Derived classes: , , , , , , , , , - public abstract class InputFileLocationBase : IObject { } + public abstract partial class InputFileLocationBase : IObject { } /// DEPRECATED location of a photo See [TLDef(0xDFDAABE1)] - public class InputFileLocation : InputFileLocationBase + public sealed partial class InputFileLocation : InputFileLocationBase { /// Server volume public long volume_id; @@ -573,7 +573,7 @@ namespace TL } /// Location of encrypted secret chat file. See [TLDef(0xF5235D55)] - public class InputEncryptedFileLocation : InputFileLocationBase + public sealed partial class InputEncryptedFileLocation : InputFileLocationBase { /// File ID, id parameter value from public long id; @@ -582,7 +582,7 @@ namespace TL } /// Document location (video, voice, audio, basically every type except photo) See [TLDef(0xBAD07584)] - public class InputDocumentFileLocation : InputFileLocationBase + public sealed partial class InputDocumentFileLocation : InputFileLocationBase { /// Document ID public long id; @@ -595,7 +595,7 @@ namespace TL } /// Location of encrypted telegram passport file. See [TLDef(0xCBC7EE28)] - public class InputSecureFileLocation : InputFileLocationBase + public sealed partial class InputSecureFileLocation : InputFileLocationBase { /// File ID, id parameter value from public long id; @@ -604,10 +604,10 @@ namespace TL } /// Used to download a JSON file that will contain all personal data related to features that do not have a specialized takeout method yet, see here » for more info on the takeout API. See [TLDef(0x29BE5899)] - public class InputTakeoutFileLocation : InputFileLocationBase { } + public sealed partial class InputTakeoutFileLocation : InputFileLocationBase { } /// Use this object to download a photo with Upload_GetFile method See [TLDef(0x40181FFE)] - public class InputPhotoFileLocation : InputFileLocationBase + public sealed partial class InputPhotoFileLocation : InputFileLocationBase { /// Photo ID, obtained from the object public long id; @@ -620,7 +620,7 @@ namespace TL } /// DEPRECATED legacy photo file location See [TLDef(0xD83466F3)] - public class InputPhotoLegacyFileLocation : InputFileLocationBase + public sealed partial class InputPhotoLegacyFileLocation : InputFileLocationBase { /// Photo ID public long id; @@ -637,7 +637,7 @@ namespace TL } /// Location of profile photo of channel/group/supergroup/user See [TLDef(0x37257E99)] - public class InputPeerPhotoFileLocation : InputFileLocationBase + public sealed partial class InputPeerPhotoFileLocation : InputFileLocationBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -654,7 +654,7 @@ namespace TL } /// Location of stickerset thumbnail (see files) See [TLDef(0x9D84F3DB)] - public class InputStickerSetThumb : InputFileLocationBase + public sealed partial class InputStickerSetThumb : InputFileLocationBase { /// Sticker set public InputStickerSet stickerset; @@ -663,7 +663,7 @@ namespace TL } /// Chunk of a livestream See [TLDef(0x0598A92A)] - public class InputGroupCallStream : InputFileLocationBase + public sealed partial class InputGroupCallStream : InputFileLocationBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -689,21 +689,21 @@ namespace TL public abstract partial class Peer : IObject { } /// Chat partner See [TLDef(0x59511722)] - public partial class PeerUser : Peer + public sealed partial class PeerUser : Peer { /// User identifier public long user_id; } /// Group. See [TLDef(0x36C6019A)] - public partial class PeerChat : Peer + public sealed partial class PeerChat : Peer { /// Group identifier public long chat_id; } /// Channel/supergroup See [TLDef(0xA2A5371E)] - public partial class PeerChannel : Peer + public sealed partial class PeerChannel : Peer { /// Channel ID public long channel_id; @@ -738,14 +738,14 @@ namespace TL public abstract partial class UserBase : IObject { } /// Empty constructor, non-existent user. See [TLDef(0xD3BC4B7A)] - public partial class UserEmpty : UserBase + public sealed partial class UserEmpty : UserBase { /// User identifier or 0 public long id; } /// Indicates info about a certain user See [TLDef(0x215C4438)] - public partial class User : UserBase + public sealed partial class User : UserBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -871,7 +871,7 @@ namespace TL /// User profile photo. See /// a value means userProfilePhotoEmpty [TLDef(0x82D1F706)] - public class UserProfilePhoto : IObject + public sealed partial class UserProfilePhoto : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -898,21 +898,21 @@ namespace TL public abstract partial class UserStatus : IObject { } /// Online status of the user. See [TLDef(0xEDB93949)] - public partial class UserStatusOnline : UserStatus + public sealed partial class UserStatusOnline : UserStatus { /// Time to expiration of the current online status public DateTime expires; } /// The user's offline status. See [TLDef(0x008C703F)] - public partial class UserStatusOffline : UserStatus + public sealed partial class UserStatusOffline : UserStatus { /// Time the user was last seen online public int was_online; } /// Online status: last seen recently See [TLDef(0x7B197DC8)] - public partial class UserStatusRecently : UserStatus + public sealed partial class UserStatusRecently : UserStatus { public Flags flags; @@ -923,7 +923,7 @@ namespace TL } /// Online status: last seen last week See [TLDef(0x541A1D1A)] - public partial class UserStatusLastWeek : UserStatus + public sealed partial class UserStatusLastWeek : UserStatus { public Flags flags; @@ -934,7 +934,7 @@ namespace TL } /// Online status: last seen last month See [TLDef(0x65899777)] - public partial class UserStatusLastMonth : UserStatus + public sealed partial class UserStatusLastMonth : UserStatus { public Flags flags; @@ -954,7 +954,7 @@ namespace TL } /// Empty constructor, group doesn't exist See [TLDef(0x29562865)] - public partial class ChatEmpty : ChatBase + public sealed partial class ChatEmpty : ChatBase { /// Group identifier public long id; @@ -964,7 +964,7 @@ namespace TL } /// Info about a group See [TLDef(0x41CBF256)] - public partial class Chat : ChatBase + public sealed partial class Chat : ChatBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -1016,7 +1016,7 @@ namespace TL } /// A group to which the user has no access. E.g., because the user was kicked from the group. See [TLDef(0x6592A1A7)] - public partial class ChatForbidden : ChatBase + public sealed partial class ChatForbidden : ChatBase { /// User identifier public long id; @@ -1030,7 +1030,7 @@ namespace TL } /// Channel/supergroup info See [TLDef(0x0AADFC8F)] - public partial class Channel : ChatBase + public sealed partial class Channel : ChatBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -1156,7 +1156,7 @@ namespace TL } /// Indicates a channel/supergroup we can't access because we were banned, or for some other reason. See [TLDef(0x17D493D5)] - public partial class ChannelForbidden : ChatBase + public sealed partial class ChannelForbidden : ChatBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -1221,7 +1221,7 @@ namespace TL } /// Full info about a basic group. See [TLDef(0xC9D31138)] - public partial class ChatFull : ChatFullBase + public sealed partial class ChatFull : ChatFullBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -1323,7 +1323,7 @@ namespace TL } /// Full info about a channel, supergroup or gigagroup. See [TLDef(0x44C054A7)] - public partial class ChannelFull : ChatFullBase + public sealed partial class ChannelFull : ChatFullBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -1553,7 +1553,7 @@ namespace TL } /// Represents the creator of the group See [TLDef(0xE46BCEE4)] - public partial class ChatParticipantCreator : ChatParticipantBase + public sealed partial class ChatParticipantCreator : ChatParticipantBase { /// ID of the user that created the group public long user_id; @@ -1563,7 +1563,7 @@ namespace TL } /// Chat admin See [TLDef(0xA0933F5B)] - public partial class ChatParticipantAdmin : ChatParticipant + public sealed partial class ChatParticipantAdmin : ChatParticipant { } @@ -1575,7 +1575,7 @@ namespace TL } /// Info on members is unavailable See [TLDef(0x8763D3E1)] - public partial class ChatParticipantsForbidden : ChatParticipantsBase + public sealed partial class ChatParticipantsForbidden : ChatParticipantsBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -1595,7 +1595,7 @@ namespace TL } /// Group members. See [TLDef(0x3CBC93F8)] - public partial class ChatParticipants : ChatParticipantsBase + public sealed partial class ChatParticipants : ChatParticipantsBase { /// Group identifier public long chat_id; @@ -1611,7 +1611,7 @@ namespace TL /// Group profile photo. See /// a value means chatPhotoEmpty [TLDef(0x1C6E1C11)] - public class ChatPhoto : IObject + public sealed partial class ChatPhoto : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -1632,7 +1632,7 @@ namespace TL } /// Object describing a message. See Derived classes: , , - public abstract class MessageBase : IObject + public abstract partial class MessageBase : IObject { /// ID of the message public virtual int ID => default; @@ -1649,7 +1649,7 @@ namespace TL } /// Empty constructor, non-existent message. See [TLDef(0x90A6CA84)] - public partial class MessageEmpty : MessageBase + public sealed partial class MessageEmpty : MessageBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -1671,7 +1671,7 @@ namespace TL } /// A message See [TLDef(0xA66C7EFC)] - public partial class Message : MessageBase + public sealed partial class Message : MessageBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -1797,7 +1797,7 @@ namespace TL } /// Indicates a service message See [TLDef(0x2B085862)] - public partial class MessageService : MessageBase + public sealed partial class MessageService : MessageBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -1857,7 +1857,7 @@ namespace TL public abstract partial class MessageMedia : IObject { } /// Attached photo. See [TLDef(0x695150D7)] - public partial class MessageMediaPhoto : MessageMedia + public sealed partial class MessageMediaPhoto : MessageMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -1878,14 +1878,14 @@ namespace TL } /// Attached map. See [TLDef(0x56E0D474)] - public partial class MessageMediaGeo : MessageMedia + public sealed partial class MessageMediaGeo : MessageMedia { /// GeoPoint public GeoPoint geo; } /// Attached contact. See [TLDef(0x70322949)] - public partial class MessageMediaContact : MessageMedia + public sealed partial class MessageMediaContact : MessageMedia { /// Phone number public string phone_number; @@ -1900,10 +1900,10 @@ namespace TL } /// Current version of the client does not support this media type. See [TLDef(0x9F84F49E)] - public class MessageMediaUnsupported : MessageMedia { } + public sealed partial class MessageMediaUnsupported : MessageMedia { } /// Document (video, audio, voice, sticker, any media type except photo) See [TLDef(0x4CF4D72D)] - public partial class MessageMediaDocument : MessageMedia + public sealed partial class MessageMediaDocument : MessageMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -1936,7 +1936,7 @@ namespace TL } /// Preview of webpage See [TLDef(0xDDF10C3B)] - public partial class MessageMediaWebPage : MessageMedia + public sealed partial class MessageMediaWebPage : MessageMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -1957,7 +1957,7 @@ namespace TL } /// Venue See [TLDef(0x2EC0533F)] - public partial class MessageMediaVenue : MessageMedia + public sealed partial class MessageMediaVenue : MessageMedia { /// Geolocation of venue public GeoPoint geo; @@ -1974,14 +1974,14 @@ namespace TL } /// Telegram game See [TLDef(0xFDB19008)] - public partial class MessageMediaGame : MessageMedia + public sealed partial class MessageMediaGame : MessageMedia { /// Game public Game game; } /// Invoice See [TLDef(0xF6A548D3)] - public class MessageMediaInvoice : MessageMedia + public sealed partial class MessageMediaInvoice : MessageMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2018,7 +2018,7 @@ namespace TL } /// Indicates a live geolocation See [TLDef(0xB940C666)] - public partial class MessageMediaGeoLive : MessageMedia + public sealed partial class MessageMediaGeoLive : MessageMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2041,7 +2041,7 @@ namespace TL } /// Poll See [TLDef(0x4BD6E798)] - public partial class MessageMediaPoll : MessageMedia + public sealed partial class MessageMediaPoll : MessageMedia { /// The poll public Poll poll; @@ -2050,7 +2050,7 @@ namespace TL } /// Dice-based animated sticker See [TLDef(0x3F7EE58B)] - public partial class MessageMediaDice : MessageMedia + public sealed partial class MessageMediaDice : MessageMedia { /// Dice value public int value; @@ -2059,7 +2059,7 @@ namespace TL } /// Represents a forwarded story or a story mention. See [TLDef(0x68CB6283)] - public class MessageMediaStory : MessageMedia + public sealed partial class MessageMediaStory : MessageMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2080,7 +2080,7 @@ namespace TL } /// Contains info about a giveaway, see here » for more info. See [TLDef(0xDAAD85B0)] - public class MessageMediaGiveaway : MessageMedia + public sealed partial class MessageMediaGiveaway : MessageMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2111,7 +2111,7 @@ namespace TL } /// A giveaway with public winners has finished, this constructor contains info about the winners. See [TLDef(0xC6991068)] - public class MessageMediaGiveawayResults : MessageMedia + public sealed partial class MessageMediaGiveawayResults : MessageMedia { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2149,10 +2149,10 @@ namespace TL /// Object describing actions connected to a service message. See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , /// a value means messageActionEmpty - public abstract class MessageAction : IObject { } + public abstract partial class MessageAction : IObject { } /// Group created See [TLDef(0xBD47CBAD)] - public class MessageActionChatCreate : MessageAction + public sealed partial class MessageActionChatCreate : MessageAction { /// Group name public string title; @@ -2161,59 +2161,59 @@ namespace TL } /// Group name changed. See [TLDef(0xB5A1CE5A)] - public class MessageActionChatEditTitle : MessageAction + public sealed partial class MessageActionChatEditTitle : MessageAction { /// New group name public string title; } /// Group profile changed See [TLDef(0x7FCB13A8)] - public class MessageActionChatEditPhoto : MessageAction + public sealed partial class MessageActionChatEditPhoto : MessageAction { /// New group profile photo public PhotoBase photo; } /// Group profile photo removed. See [TLDef(0x95E3FBEF)] - public class MessageActionChatDeletePhoto : MessageAction { } + public sealed partial class MessageActionChatDeletePhoto : MessageAction { } /// New member in the group See [TLDef(0x15CEFD00)] - public class MessageActionChatAddUser : MessageAction + public sealed partial class MessageActionChatAddUser : MessageAction { /// Users that were invited to the chat public long[] users; } /// User left the group. See [TLDef(0xA43F30CC)] - public class MessageActionChatDeleteUser : MessageAction + public sealed partial class MessageActionChatDeleteUser : MessageAction { /// Leaving user ID public long user_id; } /// A user joined the chat via an invite link See [TLDef(0x031224C3)] - public class MessageActionChatJoinedByLink : MessageAction + public sealed partial class MessageActionChatJoinedByLink : MessageAction { /// ID of the user that created the invite link public long inviter_id; } /// The channel was created See [TLDef(0x95D2AC92)] - public class MessageActionChannelCreate : MessageAction + public sealed partial class MessageActionChannelCreate : MessageAction { /// Original channel/supergroup title public string title; } /// Indicates the chat was migrated to the specified supergroup See [TLDef(0xE1037F92)] - public class MessageActionChatMigrateTo : MessageAction + public sealed partial class MessageActionChatMigrateTo : MessageAction { /// The supergroup it was migrated to public long channel_id; } /// Indicates the channel was migrated from the specified chat See [TLDef(0xEA3948E9)] - public class MessageActionChannelMigrateFrom : MessageAction + public sealed partial class MessageActionChannelMigrateFrom : MessageAction { /// The old chat title public string title; @@ -2222,13 +2222,13 @@ namespace TL } /// A message was pinned See [TLDef(0x94BD38ED)] - public class MessageActionPinMessage : MessageAction { } + public sealed partial class MessageActionPinMessage : MessageAction { } /// Chat history was cleared See [TLDef(0x9FBAB604)] - public class MessageActionHistoryClear : MessageAction { } + public sealed partial class MessageActionHistoryClear : MessageAction { } /// Someone scored in a game See [TLDef(0x92A72876)] - public class MessageActionGameScore : MessageAction + public sealed partial class MessageActionGameScore : MessageAction { /// Game ID public long game_id; @@ -2237,7 +2237,7 @@ namespace TL } /// A user just sent a payment to me (a bot) See [TLDef(0x8F31B327)] - public class MessageActionPaymentSentMe : MessageAction + public sealed partial class MessageActionPaymentSentMe : MessageAction { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2268,7 +2268,7 @@ namespace TL } /// A payment was sent See [TLDef(0x96163F56)] - public class MessageActionPaymentSent : MessageAction + public sealed partial class MessageActionPaymentSent : MessageAction { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2291,7 +2291,7 @@ namespace TL } /// A phone call See [TLDef(0x80E11A7F)] - public class MessageActionPhoneCall : MessageAction + public sealed partial class MessageActionPhoneCall : MessageAction { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2314,17 +2314,17 @@ namespace TL } /// A screenshot of the chat was taken See [TLDef(0x4792929B)] - public class MessageActionScreenshotTaken : MessageAction { } + public sealed partial class MessageActionScreenshotTaken : MessageAction { } /// Custom action (most likely not supported by the current layer, an upgrade might be needed) See [TLDef(0xFAE69F56)] - public class MessageActionCustomAction : MessageAction + public sealed partial class MessageActionCustomAction : MessageAction { /// Action message public string message; } /// We have given the bot permission to send us direct messages. See [TLDef(0xC516D679)] - public class MessageActionBotAllowed : MessageAction + public sealed partial class MessageActionBotAllowed : MessageAction { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2347,7 +2347,7 @@ namespace TL } /// Secure telegram passport values were received See [TLDef(0x1B287353)] - public class MessageActionSecureValuesSentMe : MessageAction + public sealed partial class MessageActionSecureValuesSentMe : MessageAction { /// Vector with information about documents and other Telegram Passport elements that were shared with the bot public SecureValue[] values; @@ -2356,17 +2356,17 @@ namespace TL } /// Request for secure telegram passport values was sent See [TLDef(0xD95C6154)] - public class MessageActionSecureValuesSent : MessageAction + public sealed partial class MessageActionSecureValuesSent : MessageAction { /// Secure value types public SecureValueType[] types; } /// A contact just signed up to telegram See [TLDef(0xF3F25F76)] - public class MessageActionContactSignUp : MessageAction { } + public sealed partial class MessageActionContactSignUp : MessageAction { } /// A user of the chat is now in proximity of another user See [TLDef(0x98E0D697)] - public class MessageActionGeoProximityReached : MessageAction + public sealed partial class MessageActionGeoProximityReached : MessageAction { /// The user or chat that is now in proximity of to_id public Peer from_id; @@ -2377,7 +2377,7 @@ namespace TL } /// The group call has ended See [TLDef(0x7A0D7F42)] - public class MessageActionGroupCall : MessageAction + public sealed partial class MessageActionGroupCall : MessageAction { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2394,7 +2394,7 @@ namespace TL } /// A set of users was invited to the group call See [TLDef(0x502F92F7)] - public class MessageActionInviteToGroupCall : MessageAction + public sealed partial class MessageActionInviteToGroupCall : MessageAction { /// The group call public InputGroupCall call; @@ -2403,7 +2403,7 @@ namespace TL } /// The Time-To-Live of messages in this chat was changed. See [TLDef(0x3C134D7B)] - public class MessageActionSetMessagesTTL : MessageAction + public sealed partial class MessageActionSetMessagesTTL : MessageAction { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2420,7 +2420,7 @@ namespace TL } /// A group call was scheduled See [TLDef(0xB3A07661)] - public class MessageActionGroupCallScheduled : MessageAction + public sealed partial class MessageActionGroupCallScheduled : MessageAction { /// The group call public InputGroupCall call; @@ -2429,31 +2429,31 @@ namespace TL } /// The chat theme was changed See [TLDef(0xAA786345)] - public class MessageActionSetChatTheme : MessageAction + public sealed partial class MessageActionSetChatTheme : MessageAction { /// The emoji that identifies a chat theme public string emoticon; } /// A user was accepted into the group by an admin See [TLDef(0xEBBCA3CB)] - public class MessageActionChatJoinedByRequest : MessageAction { } + public sealed partial class MessageActionChatJoinedByRequest : MessageAction { } /// Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (bot side service message). See [TLDef(0x47DD8079, inheritBefore = true)] - public class MessageActionWebViewDataSentMe : MessageActionWebViewDataSent + public sealed partial class MessageActionWebViewDataSentMe : MessageActionWebViewDataSent { /// Relayed data. public string data; } /// Data from an opened reply keyboard bot mini app was relayed to the bot that owns it (user side service message). See [TLDef(0xB4C38CB5)] - public class MessageActionWebViewDataSent : MessageAction + public partial class MessageActionWebViewDataSent : MessageAction { /// Text of the that was pressed to open the web app. public string text; } /// Info about a gifted Telegram Premium subscription See [TLDef(0xC83D6AEC)] - public class MessageActionGiftPremium : MessageAction + public sealed partial class MessageActionGiftPremium : MessageAction { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2476,7 +2476,7 @@ namespace TL } /// A forum topic was created. See [TLDef(0x0D999256)] - public class MessageActionTopicCreate : MessageAction + public sealed partial class MessageActionTopicCreate : MessageAction { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2495,7 +2495,7 @@ namespace TL } /// Forum topic information was edited. See [TLDef(0xC0944820)] - public class MessageActionTopicEdit : MessageAction + public sealed partial class MessageActionTopicEdit : MessageAction { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2522,14 +2522,14 @@ namespace TL } /// A new profile picture was suggested using Photos_UploadContactProfilePhoto. See [TLDef(0x57DE635E)] - public class MessageActionSuggestProfilePhoto : MessageAction + public sealed partial class MessageActionSuggestProfilePhoto : MessageAction { /// The photo that the user suggested we set as profile picture. public PhotoBase photo; } /// Contains info about one or more peers that the user shared with the bot after clicking on a button. See [TLDef(0x31518E9B)] - public class MessageActionRequestedPeer : MessageAction + public sealed partial class MessageActionRequestedPeer : MessageAction { /// button_id contained in the public int button_id; @@ -2538,7 +2538,7 @@ namespace TL } /// The wallpaper » of the current chat was changed. See [TLDef(0x5060A3F4)] - public class MessageActionSetChatWallPaper : MessageAction + public sealed partial class MessageActionSetChatWallPaper : MessageAction { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2555,7 +2555,7 @@ namespace TL } /// Contains a Telegram Premium giftcode link. See [TLDef(0x678C2E09)] - public class MessageActionGiftCode : MessageAction + public sealed partial class MessageActionGiftCode : MessageAction { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2588,10 +2588,10 @@ namespace TL } /// A giveaway was started. See [TLDef(0x332BA9ED)] - public class MessageActionGiveawayLaunch : MessageAction { } + public sealed partial class MessageActionGiveawayLaunch : MessageAction { } /// A giveaway has ended. See [TLDef(0x2A9FADC5)] - public class MessageActionGiveawayResults : MessageAction + public sealed partial class MessageActionGiveawayResults : MessageAction { /// Number of winners in the giveaway public int winners_count; @@ -2600,13 +2600,13 @@ namespace TL } /// See [TLDef(0xCC02AA6D)] - public class MessageActionBoostApply : MessageAction + public sealed partial class MessageActionBoostApply : MessageAction { public int boosts; } /// Chat info. See Derived classes: , - public abstract class DialogBase : IObject + public abstract partial class DialogBase : IObject { /// The chat public virtual Peer Peer => default; @@ -2615,7 +2615,7 @@ namespace TL } /// Chat See [TLDef(0xD58A08C6)] - public class Dialog : DialogBase + public sealed partial class Dialog : DialogBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2669,7 +2669,7 @@ namespace TL } /// Dialog in folder See [TLDef(0x71BD134C)] - public class DialogFolder : DialogBase + public sealed partial class DialogFolder : DialogBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2704,14 +2704,14 @@ namespace TL public abstract partial class PhotoBase : IObject { } /// Empty constructor, non-existent photo See [TLDef(0x2331B22D)] - public partial class PhotoEmpty : PhotoBase + public sealed partial class PhotoEmpty : PhotoBase { /// Photo identifier public long id; } /// Photo See [TLDef(0xFB197A65)] - public partial class Photo : PhotoBase + public sealed partial class Photo : PhotoBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2747,7 +2747,7 @@ namespace TL } /// Empty constructor. Image with this thumbnail is unavailable. See [TLDef(0x0E17E23C)] - public partial class PhotoSizeEmpty : PhotoSizeBase + public sealed partial class PhotoSizeEmpty : PhotoSizeBase { /// Thumbnail type » public string type; @@ -2757,7 +2757,7 @@ namespace TL } /// Image description. See [TLDef(0x75C78E60)] - public partial class PhotoSize : PhotoSizeBase + public sealed partial class PhotoSize : PhotoSizeBase { /// Thumbnail type » public string type; @@ -2773,7 +2773,7 @@ namespace TL } /// Description of an image and its content. See [TLDef(0x021E1AD6)] - public partial class PhotoCachedSize : PhotoSizeBase + public sealed partial class PhotoCachedSize : PhotoSizeBase { /// Thumbnail type public string type; @@ -2789,7 +2789,7 @@ namespace TL } /// A low-resolution compressed JPG payload See [TLDef(0xE0B0BC2E)] - public partial class PhotoStrippedSize : PhotoSizeBase + public sealed partial class PhotoStrippedSize : PhotoSizeBase { /// Thumbnail type public string type; @@ -2801,7 +2801,7 @@ namespace TL } /// Progressively encoded photosize See [TLDef(0xFA3EFB95)] - public partial class PhotoSizeProgressive : PhotoSizeBase + public sealed partial class PhotoSizeProgressive : PhotoSizeBase { /// Photosize type » public string type; @@ -2817,7 +2817,7 @@ namespace TL } /// Messages with animated stickers can have a compressed svg (< 300 bytes) to show the outline of the sticker before fetching the actual lottie animation. See [TLDef(0xD8214D41)] - public partial class PhotoPathSize : PhotoSizeBase + public sealed partial class PhotoPathSize : PhotoSizeBase { /// Always j public string type; @@ -2831,7 +2831,7 @@ namespace TL /// GeoPoint. See /// a value means geoPointEmpty [TLDef(0xB2A2F663)] - public partial class GeoPoint : IObject + public sealed partial class GeoPoint : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2852,10 +2852,10 @@ namespace TL } /// Contains info on a confirmation code message sent via SMS, phone call or Telegram. See Derived classes: , - public abstract class Auth_SentCodeBase : IObject { } + public abstract partial class Auth_SentCodeBase : IObject { } /// Contains info about a sent verification code. See [TLDef(0x5E002502)] - public class Auth_SentCode : Auth_SentCodeBase + public sealed partial class Auth_SentCode : Auth_SentCodeBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2878,17 +2878,17 @@ namespace TL } /// The user successfully authorized using future auth tokens See [TLDef(0x2390FE44)] - public class Auth_SentCodeSuccess : Auth_SentCodeBase + public sealed partial class Auth_SentCodeSuccess : Auth_SentCodeBase { /// Authorization info public Auth_AuthorizationBase authorization; } /// Object contains info on user authorization. See Derived classes: , - public abstract class Auth_AuthorizationBase : IObject { } + public abstract partial class Auth_AuthorizationBase : IObject { } /// Contains user authorization info. See [TLDef(0x2EA2C0D4)] - public class Auth_Authorization : Auth_AuthorizationBase + public sealed partial class Auth_Authorization : Auth_AuthorizationBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2913,7 +2913,7 @@ namespace TL } /// An account with this phone number doesn't exist on telegram: the user has to enter basic information and sign up See [TLDef(0x44747E9A)] - public class Auth_AuthorizationSignUpRequired : Auth_AuthorizationBase + public sealed partial class Auth_AuthorizationSignUpRequired : Auth_AuthorizationBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -2929,7 +2929,7 @@ namespace TL /// Data for copying of authorization between data centers. See [TLDef(0xB434E2B8)] - public class Auth_ExportedAuthorization : IObject + public sealed partial class Auth_ExportedAuthorization : IObject { /// current user identifier public long id; @@ -2941,23 +2941,23 @@ namespace TL public abstract partial class InputNotifyPeerBase : IObject { } /// Notifications generated by a certain user or group. See [TLDef(0xB8BC5B0C)] - public class InputNotifyPeer : InputNotifyPeerBase + public sealed partial class InputNotifyPeer : InputNotifyPeerBase { /// User or group public InputPeer peer; } /// Notifications generated by all users. See [TLDef(0x193B4417)] - public class InputNotifyUsers : InputNotifyPeerBase { } + public sealed partial class InputNotifyUsers : InputNotifyPeerBase { } /// Notifications generated by all groups. See [TLDef(0x4A95E84E)] - public class InputNotifyChats : InputNotifyPeerBase { } + public sealed partial class InputNotifyChats : InputNotifyPeerBase { } /// All channels See [TLDef(0xB1DB7C7E)] - public class InputNotifyBroadcasts : InputNotifyPeerBase { } + public sealed partial class InputNotifyBroadcasts : InputNotifyPeerBase { } /// Notifications generated by a topic in a forum. See [TLDef(0x5C467992)] - public class InputNotifyForumTopic : InputNotifyPeerBase + public sealed partial class InputNotifyForumTopic : InputNotifyPeerBase { /// Forum ID public InputPeer peer; @@ -2967,7 +2967,7 @@ namespace TL /// Notification settings. See [TLDef(0xCACB6AE2)] - public class InputPeerNotifySettings : IObject + public sealed partial class InputPeerNotifySettings : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -3007,7 +3007,7 @@ namespace TL /// Notification settings. See [TLDef(0x99622C0C)] - public class PeerNotifySettings : IObject + public sealed partial class PeerNotifySettings : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -3063,7 +3063,7 @@ namespace TL /// List of actions that are possible when interacting with this user, to be shown as suggested actions in the chat action bar », see here » for more info. See [TLDef(0xA518110D)] - public class PeerSettings : IObject + public sealed partial class PeerSettings : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -3111,7 +3111,7 @@ namespace TL } /// Represents a wallpaper based on an image. See [TLDef(0xA437C3ED)] - public partial class WallPaper : WallPaperBase + public sealed partial class WallPaper : WallPaperBase { /// Identifier public long id; @@ -3147,7 +3147,7 @@ namespace TL } /// Represents a wallpaper only based on colors/gradients. See [TLDef(0xE0804116)] - public partial class WallPaperNoFile : WallPaperBase + public sealed partial class WallPaperNoFile : WallPaperBase { /// Wallpaper ID public long id; @@ -3199,7 +3199,7 @@ namespace TL /// Extended user info See [TLDef(0x22FF3E85)] - public class UserFull : IObject + public sealed partial class UserFull : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -3320,7 +3320,7 @@ namespace TL /// A contact of the current user that is registered in the system. See [TLDef(0x145ADE0B)] - public class Contact : IObject + public sealed partial class Contact : IObject { /// User identifier public long user_id; @@ -3330,7 +3330,7 @@ namespace TL /// Successfully imported contact. See [TLDef(0xC13E3C50)] - public class ImportedContact : IObject + public sealed partial class ImportedContact : IObject { /// User identifier public long user_id; @@ -3340,7 +3340,7 @@ namespace TL /// Contact status: online / offline. See [TLDef(0x16D9703B)] - public class ContactStatus : IObject + public sealed partial class ContactStatus : IObject { /// User identifier public long user_id; @@ -3351,7 +3351,7 @@ namespace TL /// The current user's contact list and info on users. See /// a value means contacts.contactsNotModified [TLDef(0xEAE87E42)] - public class Contacts_Contacts : IObject + public sealed partial class Contacts_Contacts : IObject { /// Contact list public Contact[] contacts; @@ -3363,7 +3363,7 @@ namespace TL /// Info on successfully imported contacts. See [TLDef(0x77D01C3B)] - public class Contacts_ImportedContacts : IObject + public sealed partial class Contacts_ImportedContacts : IObject { /// List of successfully imported contacts public ImportedContact[] imported; @@ -3390,7 +3390,7 @@ namespace TL } /// Incomplete list of blocked users. See [TLDef(0xE1664194)] - public class Contacts_BlockedSlice : Contacts_Blocked + public sealed partial class Contacts_BlockedSlice : Contacts_Blocked { /// Total number of elements in the list public int count; @@ -3428,14 +3428,14 @@ namespace TL } /// Incomplete list of dialogs with messages and auxiliary data. See [TLDef(0x71E094F3)] - public partial class Messages_DialogsSlice : Messages_Dialogs, IPeerResolver + public sealed partial class Messages_DialogsSlice : Messages_Dialogs, IPeerResolver { /// Total number of dialogs public int count; } /// Dialogs haven't changed See [TLDef(0xF0E3E596)] - public partial class Messages_DialogsNotModified : Messages_DialogsBase, IPeerResolver + public sealed partial class Messages_DialogsNotModified : Messages_DialogsBase, IPeerResolver { /// Number of dialogs found server-side by the query public int count; @@ -3469,7 +3469,7 @@ namespace TL } /// Incomplete list of messages and auxiliary data. See [TLDef(0x3A54685E)] - public partial class Messages_MessagesSlice : Messages_Messages, IPeerResolver + public sealed partial class Messages_MessagesSlice : Messages_Messages, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -3492,7 +3492,7 @@ namespace TL } /// Channel messages See [TLDef(0xC776BA4E)] - public partial class Messages_ChannelMessages : Messages_MessagesBase, IPeerResolver + public sealed partial class Messages_ChannelMessages : Messages_MessagesBase, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -3526,7 +3526,7 @@ namespace TL } /// No new messages matching the query were found See [TLDef(0x74535F21)] - public partial class Messages_MessagesNotModified : Messages_MessagesBase, IPeerResolver + public sealed partial class Messages_MessagesNotModified : Messages_MessagesBase, IPeerResolver { /// Number of results found server-side by the given query public int count; @@ -3536,14 +3536,14 @@ namespace TL /// List of chats with auxiliary data. See [TLDef(0x64FF9FD5)] - public class Messages_Chats : IObject + public partial class Messages_Chats : IObject { /// List of chats public Dictionary chats; } /// Partial list of chats, more would have to be fetched with pagination See [TLDef(0x9CD81144)] - public class Messages_ChatsSlice : Messages_Chats + public sealed partial class Messages_ChatsSlice : Messages_Chats { /// Total number of results that were found server-side (not all are included in chats) public int count; @@ -3551,7 +3551,7 @@ namespace TL /// Full info about a channel, supergroup, gigagroup or basic group. See [TLDef(0xE5D7D19C)] - public class Messages_ChatFull : IObject, IPeerResolver + public sealed partial class Messages_ChatFull : IObject, IPeerResolver { /// Full info public ChatFullBase full_chat; @@ -3565,7 +3565,7 @@ namespace TL /// Affected part of communication history with the user or in a chat. See [TLDef(0xB45C69D1, inheritBefore = true)] - public class Messages_AffectedHistory : Messages_AffectedMessages + public partial class Messages_AffectedHistory : Messages_AffectedMessages { /// If a parameter contains positive value, it is necessary to repeat the method call using the given value; during the proceeding of all the history the value itself shall gradually decrease public int offset; @@ -3573,37 +3573,37 @@ namespace TL /// Object describes message filter. See Derived classes: , , , , , , , , , , , , , , , /// a value means inputMessagesFilterEmpty - public abstract class MessagesFilter : IObject { } + public abstract partial class MessagesFilter : IObject { } /// Filter for messages containing photos. See [TLDef(0x9609A51C)] - public class InputMessagesFilterPhotos : MessagesFilter { } + public sealed partial class InputMessagesFilterPhotos : MessagesFilter { } /// Filter for messages containing videos. See [TLDef(0x9FC00E65)] - public class InputMessagesFilterVideo : MessagesFilter { } + public sealed partial class InputMessagesFilterVideo : MessagesFilter { } /// Filter for messages containing photos or videos. See [TLDef(0x56E9F0E4)] - public class InputMessagesFilterPhotoVideo : MessagesFilter { } + public sealed partial class InputMessagesFilterPhotoVideo : MessagesFilter { } /// Filter for messages containing documents. See [TLDef(0x9EDDF188)] - public class InputMessagesFilterDocument : MessagesFilter { } + public sealed partial class InputMessagesFilterDocument : MessagesFilter { } /// Return only messages containing URLs See [TLDef(0x7EF0DD87)] - public class InputMessagesFilterUrl : MessagesFilter { } + public sealed partial class InputMessagesFilterUrl : MessagesFilter { } /// Return only messages containing gifs See [TLDef(0xFFC86587)] - public class InputMessagesFilterGif : MessagesFilter { } + public sealed partial class InputMessagesFilterGif : MessagesFilter { } /// Return only messages containing voice notes See [TLDef(0x50F5C392)] - public class InputMessagesFilterVoice : MessagesFilter { } + public sealed partial class InputMessagesFilterVoice : MessagesFilter { } /// Return only messages containing audio files See [TLDef(0x3751B49E)] - public class InputMessagesFilterMusic : MessagesFilter { } + public sealed partial class InputMessagesFilterMusic : MessagesFilter { } /// Return only chat photo changes See [TLDef(0x3A20ECB8)] - public class InputMessagesFilterChatPhotos : MessagesFilter { } + public sealed partial class InputMessagesFilterChatPhotos : MessagesFilter { } /// Return only phone calls See [TLDef(0x80C99768)] - public class InputMessagesFilterPhoneCalls : MessagesFilter + public sealed partial class InputMessagesFilterPhoneCalls : MessagesFilter { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -3616,31 +3616,31 @@ namespace TL } /// Return only round videos and voice notes See [TLDef(0x7A7C17A4)] - public class InputMessagesFilterRoundVoice : MessagesFilter { } + public sealed partial class InputMessagesFilterRoundVoice : MessagesFilter { } /// Return only round videos See [TLDef(0xB549DA53)] - public class InputMessagesFilterRoundVideo : MessagesFilter { } + public sealed partial class InputMessagesFilterRoundVideo : MessagesFilter { } /// Return only messages where the current user was mentioned. See [TLDef(0xC1F8E69A)] - public class InputMessagesFilterMyMentions : MessagesFilter { } + public sealed partial class InputMessagesFilterMyMentions : MessagesFilter { } /// Return only messages containing geolocations See [TLDef(0xE7026D0D)] - public class InputMessagesFilterGeo : MessagesFilter { } + public sealed partial class InputMessagesFilterGeo : MessagesFilter { } /// Return only messages containing contacts See [TLDef(0xE062DB83)] - public class InputMessagesFilterContacts : MessagesFilter { } + public sealed partial class InputMessagesFilterContacts : MessagesFilter { } /// Fetch only pinned messages See [TLDef(0x1BB00451)] - public class InputMessagesFilterPinned : MessagesFilter { } + public sealed partial class InputMessagesFilterPinned : MessagesFilter { } /// Object contains info on events occurred. See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , - public abstract class Update : IObject + public abstract partial class Update : IObject { public virtual (long mbox_id, int pts, int pts_count) GetMBox() => default; } /// New message in a private chat or in a basic group. See [TLDef(0x1F2B0AFD)] - public class UpdateNewMessage : Update + public partial class UpdateNewMessage : Update { /// Message public MessageBase message; @@ -3653,7 +3653,7 @@ namespace TL } /// Sent message with random_id client identifier was assigned an identifier. See [TLDef(0x4E90BFD6)] - public class UpdateMessageID : Update + public sealed partial class UpdateMessageID : Update { /// id identifier of a respective public int id; @@ -3662,7 +3662,7 @@ namespace TL } /// Messages were deleted. See [TLDef(0xA20DB0E5)] - public class UpdateDeleteMessages : Update + public partial class UpdateDeleteMessages : Update { /// List of identifiers of deleted messages public int[] messages; @@ -3675,14 +3675,14 @@ namespace TL } /// The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing See [TLDef(0xC01E857F, inheritBefore = true)] - public class UpdateUserTyping : UpdateUser + public sealed partial class UpdateUserTyping : UpdateUser { /// Action type public SendMessageAction action; } /// The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no further updates of this kind are received after 6 seconds, it should be considered that the user stopped doing whatever they were doing See [TLDef(0x83487AF0, inheritBefore = true)] - public class UpdateChatUserTyping : UpdateChat + public sealed partial class UpdateChatUserTyping : UpdateChat { /// Peer that started typing (can be the chat itself, in case of anonymous admins). public Peer from_id; @@ -3691,21 +3691,21 @@ namespace TL } /// Composition of chat participants changed. See [TLDef(0x07761198)] - public class UpdateChatParticipants : Update + public sealed partial class UpdateChatParticipants : Update { /// Updated chat participants public ChatParticipantsBase participants; } /// Contact status update. See [TLDef(0xE5BDF8DE, inheritBefore = true)] - public class UpdateUserStatus : UpdateUser + public sealed partial class UpdateUserStatus : UpdateUser { /// New status public UserStatus status; } /// Changes the user's first name, last name and username. See [TLDef(0xA7848924, inheritBefore = true)] - public class UpdateUserName : UpdateUser + public sealed partial class UpdateUserName : UpdateUser { /// New first name. Corresponds to the new value of real_first_name field of the . public string first_name; @@ -3716,7 +3716,7 @@ namespace TL } /// A new session logged into the current user's account through an unknown device. See [TLDef(0x8951ABEF)] - public class UpdateNewAuthorization : Update + public sealed partial class UpdateNewAuthorization : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -3737,7 +3737,7 @@ namespace TL } /// New encrypted message. See [TLDef(0x12BCBD9A)] - public class UpdateNewEncryptedMessage : Update + public sealed partial class UpdateNewEncryptedMessage : Update { /// Message public EncryptedMessageBase message; @@ -3748,14 +3748,14 @@ namespace TL } /// Interlocutor is typing a message in an encrypted chat. Update period is 6 second. If upon this time there is no repeated update, it shall be considered that the interlocutor stopped typing. See [TLDef(0x1710F156)] - public class UpdateEncryptedChatTyping : Update + public sealed partial class UpdateEncryptedChatTyping : Update { /// Chat ID public int chat_id; } /// Change of state in an encrypted chat. See [TLDef(0xB4A2E88D)] - public class UpdateEncryption : Update + public sealed partial class UpdateEncryption : Update { /// Encrypted chat public EncryptedChatBase chat; @@ -3764,7 +3764,7 @@ namespace TL } /// Communication history in an encrypted chat was marked as read. See [TLDef(0x38FE25B7)] - public class UpdateEncryptedMessagesRead : Update + public sealed partial class UpdateEncryptedMessagesRead : Update { /// Chat ID public int chat_id; @@ -3775,7 +3775,7 @@ namespace TL } /// New group member. See [TLDef(0x3DDA5451, inheritBefore = true)] - public class UpdateChatParticipantAdd : UpdateChat + public sealed partial class UpdateChatParticipantAdd : UpdateChat { /// ID of the new member public long user_id; @@ -3788,7 +3788,7 @@ namespace TL } /// A member has left the group. See [TLDef(0xE32F3D77, inheritBefore = true)] - public class UpdateChatParticipantDelete : UpdateChat + public sealed partial class UpdateChatParticipantDelete : UpdateChat { /// ID of the user public long user_id; @@ -3797,14 +3797,14 @@ namespace TL } /// Changes in the data center configuration options. See [TLDef(0x8E5E9873)] - public class UpdateDcOptions : Update + public sealed partial class UpdateDcOptions : Update { /// New connection options public DcOption[] dc_options; } /// Changes in notification settings. See [TLDef(0xBEC268EF)] - public class UpdateNotifySettings : Update + public sealed partial class UpdateNotifySettings : Update { /// Notification source public NotifyPeerBase peer; @@ -3813,7 +3813,7 @@ namespace TL } /// A service message for the user. See [TLDef(0xEBE46819)] - public class UpdateServiceNotification : Update + public sealed partial class UpdateServiceNotification : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -3840,7 +3840,7 @@ namespace TL } /// Privacy rules were changed See [TLDef(0xEE3B272A)] - public class UpdatePrivacy : Update + public sealed partial class UpdatePrivacy : Update { /// Peers to which the privacy rules apply public PrivacyKey key; @@ -3849,14 +3849,14 @@ namespace TL } /// A user's phone number was changed See [TLDef(0x05492A13, inheritBefore = true)] - public class UpdateUserPhone : UpdateUser + public sealed partial class UpdateUserPhone : UpdateUser { /// New phone number public string phone; } /// Incoming messages were read See [TLDef(0x9C974FDF)] - public class UpdateReadHistoryInbox : Update + public sealed partial class UpdateReadHistoryInbox : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -3883,7 +3883,7 @@ namespace TL } /// Outgoing messages were read See [TLDef(0x2F2F21BF)] - public class UpdateReadHistoryOutbox : Update + public sealed partial class UpdateReadHistoryOutbox : Update { /// Peer public Peer peer; @@ -3898,7 +3898,7 @@ namespace TL } /// An instant view webpage preview was generated See [TLDef(0x7F891213)] - public class UpdateWebPage : Update + public partial class UpdateWebPage : Update { /// Webpage preview public WebPageBase webpage; @@ -3911,7 +3911,7 @@ namespace TL } /// Contents of messages in the common message box were read See [TLDef(0xF8227181)] - public class UpdateReadMessagesContents : Update + public sealed partial class UpdateReadMessagesContents : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -3934,7 +3934,7 @@ namespace TL } /// There are new updates in the specified channel, the client must fetch them.
If the difference is too long or if the channel isn't currently in the states, start fetching from the specified pts. See
[TLDef(0x108D941F)] - public class UpdateChannelTooLong : Update + public sealed partial class UpdateChannelTooLong : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -3953,20 +3953,20 @@ namespace TL } /// A new channel or supergroup is available, or info about an existing channel has changed and must be refeteched. See [TLDef(0x635B4C09)] - public class UpdateChannel : Update + public partial class UpdateChannel : Update { /// Channel ID public long channel_id; } /// A new message was sent in a channel/supergroup See [TLDef(0x62BA04D9)] - public class UpdateNewChannelMessage : UpdateNewMessage + public sealed partial class UpdateNewChannelMessage : UpdateNewMessage { public override (long, int, int) GetMBox() => (message.Peer is PeerChannel pc ? pc.channel_id : 0, pts, pts_count); } /// Incoming messages in a channel/supergroup were read See [TLDef(0x922E6E10)] - public class UpdateReadChannelInbox : Update + public sealed partial class UpdateReadChannelInbox : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -3991,7 +3991,7 @@ namespace TL } /// Some messages in a supergroup/channel were deleted See [TLDef(0xC32D5B12)] - public class UpdateDeleteChannelMessages : UpdateDeleteMessages + public sealed partial class UpdateDeleteChannelMessages : UpdateDeleteMessages { /// Channel ID public long channel_id; @@ -4000,7 +4000,7 @@ namespace TL } /// The view counter of a message in a channel has changed See [TLDef(0xF226AC08, inheritBefore = true)] - public class UpdateChannelMessageViews : UpdateChannel + public sealed partial class UpdateChannelMessageViews : UpdateChannel { /// ID of the message public int id; @@ -4009,7 +4009,7 @@ namespace TL } /// Admin permissions of a user in a basic group were changed See [TLDef(0xD7CA61A2, inheritBefore = true)] - public class UpdateChatParticipantAdmin : UpdateChat + public sealed partial class UpdateChatParticipantAdmin : UpdateChat { /// ID of the (de)admined user public long user_id; @@ -4020,21 +4020,21 @@ namespace TL } /// A new stickerset was installed See [TLDef(0x688A30AA)] - public class UpdateNewStickerSet : Update + public sealed partial class UpdateNewStickerSet : Update { /// The installed stickerset public Messages_StickerSet stickerset; } /// The order of stickersets was changed See [TLDef(0x0BB2D201, inheritBefore = true)] - public class UpdateStickerSetsOrder : UpdateStickerSets + public sealed partial class UpdateStickerSetsOrder : UpdateStickerSets { /// New sticker order by sticker ID public long[] order; } /// Installed stickersets have changed, the client should refetch them as described in the docs. See [TLDef(0x31C24808)] - public class UpdateStickerSets : Update + public partial class UpdateStickerSets : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4049,10 +4049,10 @@ namespace TL } /// The saved gif list has changed, the client should refetch it using Messages_GetSavedGifs See [TLDef(0x9375341E)] - public class UpdateSavedGifs : Update { } + public sealed partial class UpdateSavedGifs : Update { } /// An incoming inline query See [TLDef(0x496F379C)] - public class UpdateBotInlineQuery : Update + public sealed partial class UpdateBotInlineQuery : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4079,7 +4079,7 @@ namespace TL } /// The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot. See [TLDef(0x12F12A07)] - public class UpdateBotInlineSend : Update + public sealed partial class UpdateBotInlineSend : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4104,13 +4104,13 @@ namespace TL } /// A message was edited in a channel/supergroup See [TLDef(0x1B3F4DF7)] - public class UpdateEditChannelMessage : UpdateEditMessage + public sealed partial class UpdateEditChannelMessage : UpdateEditMessage { public override (long, int, int) GetMBox() => (message.Peer is PeerChannel pc ? pc.channel_id : 0, pts, pts_count); } /// A callback button was pressed, and the button data was sent to the bot that created the button See [TLDef(0xB9CFC48D)] - public class UpdateBotCallbackQuery : Update + public sealed partial class UpdateBotCallbackQuery : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4139,7 +4139,7 @@ namespace TL } /// A message was edited See [TLDef(0xE40370A3)] - public class UpdateEditMessage : Update + public partial class UpdateEditMessage : Update { /// The new edited message public MessageBase message; @@ -4152,7 +4152,7 @@ namespace TL } /// This notification is received by bots when a button is pressed See [TLDef(0x691E9052)] - public class UpdateInlineBotCallbackQuery : Update + public sealed partial class UpdateInlineBotCallbackQuery : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4179,7 +4179,7 @@ namespace TL } /// Outgoing messages in a channel/supergroup were read See [TLDef(0xB75F99A9)] - public class UpdateReadChannelOutbox : Update + public sealed partial class UpdateReadChannelOutbox : Update { /// Channel/supergroup ID public long channel_id; @@ -4188,7 +4188,7 @@ namespace TL } /// Notifies a change of a message draft. See [TLDef(0x1B49EC6D)] - public class UpdateDraftMessage : Update + public sealed partial class UpdateDraftMessage : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4207,19 +4207,19 @@ namespace TL } /// Some featured stickers were marked as read See [TLDef(0x571D2742)] - public class UpdateReadFeaturedStickers : Update { } + public sealed partial class UpdateReadFeaturedStickers : Update { } /// The recent sticker list was updated See [TLDef(0x9A422C20)] - public class UpdateRecentStickers : Update { } + public sealed partial class UpdateRecentStickers : Update { } /// The server-side configuration has changed; the client should re-fetch the config using Help_GetConfig See [TLDef(0xA229DD06)] - public class UpdateConfig : Update { } + public sealed partial class UpdateConfig : Update { } /// Common message box sequence PTS has changed, state has to be refetched using updates.getState See [TLDef(0x3354678F)] - public class UpdatePtsChanged : Update { } + public sealed partial class UpdatePtsChanged : Update { } /// A webpage preview of a link in a channel/supergroup message was generated See [TLDef(0x2F2BA99F)] - public class UpdateChannelWebPage : UpdateWebPage + public sealed partial class UpdateChannelWebPage : UpdateWebPage { /// Channel/supergroup ID public long channel_id; @@ -4228,7 +4228,7 @@ namespace TL } /// A dialog was pinned/unpinned See [TLDef(0x6E6FE51C)] - public class UpdateDialogPinned : Update + public sealed partial class UpdateDialogPinned : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4247,7 +4247,7 @@ namespace TL } /// Pinned dialogs were updated See [TLDef(0xFA0F3CA2)] - public class UpdatePinnedDialogs : Update + public sealed partial class UpdatePinnedDialogs : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4266,14 +4266,14 @@ namespace TL } /// A new incoming event; for bots only See [TLDef(0x8317C0C3)] - public class UpdateBotWebhookJSON : Update + public sealed partial class UpdateBotWebhookJSON : Update { /// The event public DataJSON data; } /// A new incoming query; for bots only See [TLDef(0x9B9240A6)] - public class UpdateBotWebhookJSONQuery : Update + public sealed partial class UpdateBotWebhookJSONQuery : Update { /// Query identifier public long query_id; @@ -4284,7 +4284,7 @@ namespace TL } /// This object contains information about an incoming shipping query. See [TLDef(0xB5AEFD7D)] - public class UpdateBotShippingQuery : Update + public sealed partial class UpdateBotShippingQuery : Update { /// Unique query identifier public long query_id; @@ -4297,7 +4297,7 @@ namespace TL } /// This object contains information about an incoming pre-checkout query. See [TLDef(0x8CAA9A96)] - public class UpdateBotPrecheckoutQuery : Update + public sealed partial class UpdateBotPrecheckoutQuery : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4326,31 +4326,31 @@ namespace TL } /// An incoming phone call See [TLDef(0xAB0F6B1E)] - public class UpdatePhoneCall : Update + public sealed partial class UpdatePhoneCall : Update { /// Phone call public PhoneCallBase phone_call; } /// A language pack has changed, the client should manually fetch the changed strings using Langpack_GetDifference See [TLDef(0x46560264)] - public class UpdateLangPackTooLong : Update + public sealed partial class UpdateLangPackTooLong : Update { /// Language code public string lang_code; } /// Language pack updated See [TLDef(0x56022F4D)] - public class UpdateLangPack : Update + public sealed partial class UpdateLangPack : Update { /// Changed strings public LangPackDifference difference; } /// The list of favorited stickers was changed, the client should call Messages_GetFavedStickers to refetch the new list See [TLDef(0xE511996D)] - public class UpdateFavedStickers : Update { } + public sealed partial class UpdateFavedStickers : Update { } /// The specified channel/supergroup messages were read See [TLDef(0xEA29055D)] - public class UpdateChannelReadMessagesContents : Update + public sealed partial class UpdateChannelReadMessagesContents : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4369,17 +4369,17 @@ namespace TL } /// All contacts were deleted See [TLDef(0x7084A7BE)] - public class UpdateContactsReset : Update { } + public sealed partial class UpdateContactsReset : Update { } /// The history of a channel/supergroup was hidden. See [TLDef(0xB23FC698, inheritBefore = true)] - public class UpdateChannelAvailableMessages : UpdateChannel + public sealed partial class UpdateChannelAvailableMessages : UpdateChannel { /// Identifier of a maximum unavailable message in a channel due to hidden history. public int available_min_id; } /// The manual unread mark of a chat was changed See [TLDef(0xE16459C3)] - public class UpdateDialogUnreadMark : Update + public sealed partial class UpdateDialogUnreadMark : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4394,7 +4394,7 @@ namespace TL } /// The results of a poll have changed See [TLDef(0xACA1657B)] - public class UpdateMessagePoll : Update + public sealed partial class UpdateMessagePoll : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4413,7 +4413,7 @@ namespace TL } /// Default banned rights in a normal chat were updated See [TLDef(0x54C01850)] - public class UpdateChatDefaultBannedRights : Update + public sealed partial class UpdateChatDefaultBannedRights : Update { /// The chat public Peer peer; @@ -4424,7 +4424,7 @@ namespace TL } /// The peer list of a peer folder was updated See [TLDef(0x19360DC0)] - public class UpdateFolderPeers : Update + public sealed partial class UpdateFolderPeers : Update { /// New peer list public FolderPeer[] folder_peers; @@ -4437,7 +4437,7 @@ namespace TL } /// Settings of a certain peer have changed See [TLDef(0x6A7E7366)] - public class UpdatePeerSettings : Update + public sealed partial class UpdatePeerSettings : Update { /// The peer public Peer peer; @@ -4446,21 +4446,21 @@ namespace TL } /// List of peers near you was updated See [TLDef(0xB4AFCFB0)] - public class UpdatePeerLocated : Update + public sealed partial class UpdatePeerLocated : Update { /// Geolocated peer list update public PeerLocatedBase[] peers; } /// A message was added to the schedule queue of a chat See [TLDef(0x39A51DFB)] - public class UpdateNewScheduledMessage : Update + public sealed partial class UpdateNewScheduledMessage : Update { /// Message public MessageBase message; } /// Some scheduled messages were deleted from the schedule queue of a chat See [TLDef(0x90866CEE)] - public class UpdateDeleteScheduledMessages : Update + public sealed partial class UpdateDeleteScheduledMessages : Update { /// Peer public Peer peer; @@ -4469,14 +4469,14 @@ namespace TL } /// A cloud theme was updated See [TLDef(0x8216FBA3)] - public class UpdateTheme : Update + public sealed partial class UpdateTheme : Update { /// Theme public Theme theme; } /// Live geoposition message was viewed See [TLDef(0x871FB939)] - public class UpdateGeoLiveViewed : Update + public sealed partial class UpdateGeoLiveViewed : Update { /// The user that viewed the live geoposition public Peer peer; @@ -4485,10 +4485,10 @@ namespace TL } /// A login token (for login via QR code) was accepted. See [TLDef(0x564FE691)] - public class UpdateLoginToken : Update { } + public sealed partial class UpdateLoginToken : Update { } /// A specific peer has voted in a poll See [TLDef(0x24F40E77)] - public class UpdateMessagePollVote : Update + public sealed partial class UpdateMessagePollVote : Update { /// Poll ID public long poll_id; @@ -4503,7 +4503,7 @@ namespace TL } /// A new folder was added See [TLDef(0x26FFDE7D)] - public class UpdateDialogFilter : Update + public sealed partial class UpdateDialogFilter : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4520,17 +4520,17 @@ namespace TL } /// New folder order See [TLDef(0xA5D72105)] - public class UpdateDialogFilterOrder : Update + public sealed partial class UpdateDialogFilterOrder : Update { /// Ordered folder IDs public int[] order; } /// Clients should update folder info See [TLDef(0x3504914F)] - public class UpdateDialogFilters : Update { } + public sealed partial class UpdateDialogFilters : Update { } /// Incoming phone call signaling payload See [TLDef(0x2661BF09)] - public class UpdatePhoneCallSignalingData : Update + public sealed partial class UpdatePhoneCallSignalingData : Update { /// Phone call ID public long phone_call_id; @@ -4539,7 +4539,7 @@ namespace TL } /// The forward counter of a message in a channel has changed See [TLDef(0xD29A27F4, inheritBefore = true)] - public class UpdateChannelMessageForwards : UpdateChannel + public sealed partial class UpdateChannelMessageForwards : UpdateChannel { /// ID of the message public int id; @@ -4548,7 +4548,7 @@ namespace TL } /// Incoming comments in a discussion thread were marked as read See [TLDef(0xD6B19546)] - public class UpdateReadChannelDiscussionInbox : Update + public sealed partial class UpdateReadChannelDiscussionInbox : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4571,7 +4571,7 @@ namespace TL } /// Outgoing comments in a discussion thread were marked as read See [TLDef(0x695C9E7C)] - public class UpdateReadChannelDiscussionOutbox : Update + public sealed partial class UpdateReadChannelDiscussionOutbox : Update { /// Supergroup ID public long channel_id; @@ -4582,7 +4582,7 @@ namespace TL } /// We blocked a peer, see here » for more info on blocklists. See [TLDef(0xEBE07752)] - public class UpdatePeerBlocked : Update + public sealed partial class UpdatePeerBlocked : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4599,7 +4599,7 @@ namespace TL } /// A user is typing in a supergroup, channel or message thread See [TLDef(0x8C88C923)] - public class UpdateChannelUserTyping : Update + public sealed partial class UpdateChannelUserTyping : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4620,7 +4620,7 @@ namespace TL } /// Some messages were pinned in a chat See [TLDef(0xED85EAB5)] - public class UpdatePinnedMessages : Update + public sealed partial class UpdatePinnedMessages : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4643,7 +4643,7 @@ namespace TL } /// Messages were pinned/unpinned in a channel/supergroup See [TLDef(0x5BB98608)] - public class UpdatePinnedChannelMessages : Update + public sealed partial class UpdatePinnedChannelMessages : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4666,14 +4666,14 @@ namespace TL } /// A new chat is available See [TLDef(0xF89A6A4E)] - public class UpdateChat : Update + public partial class UpdateChat : Update { /// Chat ID public long chat_id; } /// The participant list of a certain group call has changed See [TLDef(0xF2EBDB4E)] - public class UpdateGroupCallParticipants : Update + public sealed partial class UpdateGroupCallParticipants : Update { /// Group call public InputGroupCall call; @@ -4684,7 +4684,7 @@ namespace TL } /// A new groupcall was started See [TLDef(0x14B24500)] - public class UpdateGroupCall : Update + public sealed partial class UpdateGroupCall : Update { /// The channel/supergroup where this group call or livestream takes place public long chat_id; @@ -4693,7 +4693,7 @@ namespace TL } /// The Time-To-Live for messages sent by the current user in a specific chat has changed See [TLDef(0xBB9BB9A5)] - public class UpdatePeerHistoryTTL : Update + public sealed partial class UpdatePeerHistoryTTL : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4710,7 +4710,7 @@ namespace TL } /// A user has joined or left a specific chat See [TLDef(0xD087663A)] - public class UpdateChatParticipant : Update + public sealed partial class UpdateChatParticipant : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4745,7 +4745,7 @@ namespace TL } /// A participant has left, joined, was banned or admined in a channel or supergroup. See [TLDef(0x985D3ABB)] - public class UpdateChannelParticipant : Update + public sealed partial class UpdateChannelParticipant : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4782,7 +4782,7 @@ namespace TL } /// A bot was stopped or re-started. See [TLDef(0xC4870A49)] - public class UpdateBotStopped : Update + public sealed partial class UpdateBotStopped : Update { /// The user ID public long user_id; @@ -4797,7 +4797,7 @@ namespace TL } /// New WebRTC parameters See [TLDef(0x0B783982)] - public class UpdateGroupCallConnection : Update + public sealed partial class UpdateGroupCallConnection : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4812,7 +4812,7 @@ namespace TL } /// The command set of a certain bot in a certain chat has changed. See [TLDef(0x4D712F2E)] - public class UpdateBotCommands : Update + public sealed partial class UpdateBotCommands : Update { /// The affected chat public Peer peer; @@ -4823,7 +4823,7 @@ namespace TL } /// Someone has requested to join a chat or channel See [TLDef(0x7063C3DB)] - public class UpdatePendingJoinRequests : Update + public sealed partial class UpdatePendingJoinRequests : Update { /// Chat or channel public Peer peer; @@ -4834,7 +4834,7 @@ namespace TL } /// Someone has requested to join a chat or channel (bots only, users will receive an , instead) See [TLDef(0x11DFA986)] - public class UpdateBotChatInviteRequester : Update + public sealed partial class UpdateBotChatInviteRequester : Update { /// The chat or channel in question public Peer peer; @@ -4853,7 +4853,7 @@ namespace TL } /// New message reactions » are available See [TLDef(0x5E1B3CB8)] - public class UpdateMessageReactions : Update + public sealed partial class UpdateMessageReactions : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4874,17 +4874,17 @@ namespace TL } /// The list of installed attachment menu entries » has changed, use Messages_GetAttachMenuBots to fetch the updated list. See [TLDef(0x17B7A20B)] - public class UpdateAttachMenuBots : Update { } + public sealed partial class UpdateAttachMenuBots : Update { } /// Indicates to a bot that a webview was closed and an inline message was sent on behalf of the user using Messages_SendWebViewResultMessage See [TLDef(0x1592B79D)] - public class UpdateWebViewResultSent : Update + public sealed partial class UpdateWebViewResultSent : Update { /// Web app interaction ID public long query_id; } /// The menu button behavior for the specified bot has changed See [TLDef(0x14B85813)] - public class UpdateBotMenuButton : Update + public sealed partial class UpdateBotMenuButton : Update { /// Bot ID public long bot_id; @@ -4893,10 +4893,10 @@ namespace TL } /// The list of saved notification sounds has changed, use Account_GetSavedRingtones to fetch the new list. See [TLDef(0x74D8BE99)] - public class UpdateSavedRingtones : Update { } + public sealed partial class UpdateSavedRingtones : Update { } /// A pending voice message transcription » initiated with Messages_TranscribeAudio was updated. See [TLDef(0x0084CD5A)] - public class UpdateTranscribedAudio : Update + public sealed partial class UpdateTranscribedAudio : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4917,23 +4917,23 @@ namespace TL } /// Some featured custom emoji stickers were marked as read See [TLDef(0xFB4C496C)] - public class UpdateReadFeaturedEmojiStickers : Update { } + public sealed partial class UpdateReadFeaturedEmojiStickers : Update { } /// The emoji status of a certain user has changed See [TLDef(0x28373599, inheritBefore = true)] - public class UpdateUserEmojiStatus : UpdateUser + public sealed partial class UpdateUserEmojiStatus : UpdateUser { /// New emoji status public EmojiStatus emoji_status; } /// The list of recent emoji statuses has changed See [TLDef(0x30F443DB)] - public class UpdateRecentEmojiStatuses : Update { } + public sealed partial class UpdateRecentEmojiStatuses : Update { } /// The list of recent message reactions has changed See [TLDef(0x6F7863F4)] - public class UpdateRecentReactions : Update { } + public sealed partial class UpdateRecentReactions : Update { } /// A stickerset was just moved to top, see here for more info » See [TLDef(0x86FCCF85)] - public class UpdateMoveStickerSetToTop : Update + public sealed partial class UpdateMoveStickerSetToTop : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4950,7 +4950,7 @@ namespace TL } /// Extended media update See [TLDef(0x5A73A98C)] - public class UpdateMessageExtendedMedia : Update + public sealed partial class UpdateMessageExtendedMedia : Update { /// Peer public Peer peer; @@ -4961,7 +4961,7 @@ namespace TL } /// A forum topic » was pinned or unpinned. See [TLDef(0x192EFBE3)] - public class UpdateChannelPinnedTopic : Update + public sealed partial class UpdateChannelPinnedTopic : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4978,7 +4978,7 @@ namespace TL } /// The pinned topics of a forum have changed. See [TLDef(0xFE198602)] - public class UpdateChannelPinnedTopics : Update + public sealed partial class UpdateChannelPinnedTopics : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -4995,24 +4995,24 @@ namespace TL } /// User information was updated, it must be refetched using Users_GetFullUser. See [TLDef(0x20529438)] - public class UpdateUser : Update + public partial class UpdateUser : Update { /// User ID public long user_id; } /// Media autosave settings have changed and must be refetched using Account_GetAutoSaveSettings. See [TLDef(0xEC05B097)] - public class UpdateAutoSaveSettings : Update { } + public sealed partial class UpdateAutoSaveSettings : Update { } /// 0-N updates of this type may be returned only when invoking Messages_AddChatUser, Channels_InviteToChannel or Messages_CreateChat: it indicates we couldn't add a user to a chat because of their privacy settings; if required, an invite link can be shared with the user, instead. See [TLDef(0xCCF08AD6)] - public class UpdateGroupInvitePrivacyForbidden : Update + public sealed partial class UpdateGroupInvitePrivacyForbidden : Update { /// ID of the user we couldn't add. public long user_id; } /// A new story was posted. See [TLDef(0x75B3B798)] - public class UpdateStory : Update + public sealed partial class UpdateStory : Update { /// ID of the poster. public Peer peer; @@ -5021,7 +5021,7 @@ namespace TL } /// Stories of a specific peer were marked as read. See [TLDef(0xF74E932B)] - public class UpdateReadStories : Update + public sealed partial class UpdateReadStories : Update { /// The peer public Peer peer; @@ -5030,7 +5030,7 @@ namespace TL } /// A story was successfully uploaded. See [TLDef(0x1BF335B9)] - public class UpdateStoryID : Update + public sealed partial class UpdateStoryID : Update { /// The id that was attributed to the story. public int id; @@ -5039,14 +5039,14 @@ namespace TL } /// Indicates that stories stealth mode was activated. See [TLDef(0x2C084DC1)] - public class UpdateStoriesStealthMode : Update + public sealed partial class UpdateStoriesStealthMode : Update { /// Information about the current stealth mode session. public StoriesStealthMode stealth_mode; } /// Indicates we reacted to a story ». See [TLDef(0x7D627683)] - public class UpdateSentStoryReaction : Update + public sealed partial class UpdateSentStoryReaction : Update { /// The peer that sent the story public Peer peer; @@ -5057,7 +5057,7 @@ namespace TL } /// A channel boost has changed (bots only) See [TLDef(0x904DD49C)] - public class UpdateBotChatBoost : Update + public sealed partial class UpdateBotChatBoost : Update { /// Channel public Peer peer; @@ -5070,14 +5070,14 @@ namespace TL } /// Users may also choose to display messages from all topics as if they were sent to a normal group, using a "View as messages" setting in the local client.
This setting only affects the current account, and is synced to other logged in sessions using the Channels_ToggleViewForumAsMessages method; invoking this method will update the value of the view_forum_as_messages flag of or and emit an . See
[TLDef(0x07B68920, inheritBefore = true)] - public class UpdateChannelViewForumAsMessages : UpdateChannel + public sealed partial class UpdateChannelViewForumAsMessages : UpdateChannel { /// The new value of the toggle. public bool enabled; } /// The wallpaper » of a given peer has changed. See [TLDef(0xAE3F101D)] - public class UpdatePeerWallpaper : Update + public sealed partial class UpdatePeerWallpaper : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -5096,7 +5096,7 @@ namespace TL } /// Bots only: a user has changed their reactions on a message with public reactions. See [TLDef(0xAC21D3CE)] - public class UpdateBotMessageReaction : Update + public sealed partial class UpdateBotMessageReaction : Update { /// Peer of the reacted-to message. public Peer peer; @@ -5117,7 +5117,7 @@ namespace TL } /// Bots only: the number of reactions on a message with anonymous reactions has changed. See [TLDef(0x09CB7759)] - public class UpdateBotMessageReactions : Update + public sealed partial class UpdateBotMessageReactions : Update { /// Peer of the reacted-to message. public Peer peer; @@ -5134,7 +5134,7 @@ namespace TL } /// A saved message dialog was pinned/unpinned See [TLDef(0xAEAF9E74)] - public class UpdateSavedDialogPinned : Update + public sealed partial class UpdateSavedDialogPinned : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -5149,7 +5149,7 @@ namespace TL } /// Pinned saved dialogs » were updated See [TLDef(0x686C85A6)] - public class UpdatePinnedSavedDialogs : Update + public sealed partial class UpdatePinnedSavedDialogs : Update { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -5164,47 +5164,47 @@ namespace TL } /// See [TLDef(0x39C67432)] - public class UpdateSavedReactionTags : Update { } + public sealed partial class UpdateSavedReactionTags : Update { } /// See [TLDef(0xF16269D4)] - public class UpdateSmsJob : Update + public sealed partial class UpdateSmsJob : Update { public string job_id; } /// See [TLDef(0xF9470AB2)] - public class UpdateQuickReplies : Update + public sealed partial class UpdateQuickReplies : Update { public QuickReply[] quick_replies; } /// See [TLDef(0xF53DA717)] - public class UpdateNewQuickReply : Update + public sealed partial class UpdateNewQuickReply : Update { public QuickReply quick_reply; } /// See [TLDef(0x53E6F1EC)] - public class UpdateDeleteQuickReply : Update + public partial class UpdateDeleteQuickReply : Update { public int shortcut_id; } /// See [TLDef(0x3E050D0F)] - public class UpdateQuickReplyMessage : Update + public sealed partial class UpdateQuickReplyMessage : Update { public MessageBase message; } /// See [TLDef(0x566FE7CD, inheritBefore = true)] - public class UpdateDeleteQuickReplyMessages : UpdateDeleteQuickReply + public sealed partial class UpdateDeleteQuickReplyMessages : UpdateDeleteQuickReply { public int[] messages; } /// Updates state. See [TLDef(0xA56C2A3E)] - public class Updates_State : IObject + public sealed partial class Updates_State : IObject { /// Number of events occurred in a text box public int pts; @@ -5232,7 +5232,7 @@ namespace TL } /// No events. See [TLDef(0x5D75A138)] - public partial class Updates_DifferenceEmpty : Updates_DifferenceBase, IPeerResolver + public sealed partial class Updates_DifferenceEmpty : Updates_DifferenceBase, IPeerResolver { /// Current date public DateTime date; @@ -5247,7 +5247,7 @@ namespace TL } /// Full list of occurred events. See [TLDef(0x00F49CA0)] - public partial class Updates_Difference : Updates_DifferenceBase, IPeerResolver + public sealed partial class Updates_Difference : Updates_DifferenceBase, IPeerResolver { /// List of new messages public MessageBase[] new_messages; @@ -5273,7 +5273,7 @@ namespace TL } /// Incomplete list of occurred events. See [TLDef(0xA8FB1981)] - public partial class Updates_DifferenceSlice : Updates_DifferenceBase, IPeerResolver + public sealed partial class Updates_DifferenceSlice : Updates_DifferenceBase, IPeerResolver { /// List of new messages public MessageBase[] new_messages; @@ -5299,7 +5299,7 @@ namespace TL } /// The difference is too long, and the specified state must be used to refetch updates. See [TLDef(0x4AFE8F6D)] - public partial class Updates_DifferenceTooLong : Updates_DifferenceBase, IPeerResolver + public sealed partial class Updates_DifferenceTooLong : Updates_DifferenceBase, IPeerResolver { /// The new state to use. public int pts; @@ -5317,14 +5317,14 @@ namespace TL } /// Too many updates, it is necessary to execute Updates_GetDifference. See [TLDef(0xE317AF7E)] - public partial class UpdatesTooLong : UpdatesBase, IPeerResolver + public sealed partial class UpdatesTooLong : UpdatesBase, IPeerResolver { /// returns a or for the given Peer public override IPeerInfo UserOrChat(Peer peer) => null; } /// Info about a message sent to (received from) another user See [TLDef(0x313BC7F8)] - public partial class UpdateShortMessage : UpdatesBase, IPeerResolver + public sealed partial class UpdateShortMessage : UpdatesBase, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -5380,7 +5380,7 @@ namespace TL } /// Shortened constructor containing info on one new incoming text message from a chat See [TLDef(0x4D6DEEA5)] - public partial class UpdateShortChatMessage : UpdatesBase, IPeerResolver + public sealed partial class UpdateShortChatMessage : UpdatesBase, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -5438,7 +5438,7 @@ namespace TL } /// Shortened constructor containing info on one update not requiring auxiliary data See [TLDef(0x78D4DEC1)] - public partial class UpdateShort : UpdatesBase, IPeerResolver + public sealed partial class UpdateShort : UpdatesBase, IPeerResolver { /// Update public Update update; @@ -5452,7 +5452,7 @@ namespace TL } /// Constructor for a group of updates. See [TLDef(0x725B04C3)] - public partial class UpdatesCombined : UpdatesBase, IPeerResolver + public sealed partial class UpdatesCombined : UpdatesBase, IPeerResolver { /// List of updates public Update[] updates; @@ -5474,7 +5474,7 @@ namespace TL } /// Full constructor of updates See [TLDef(0x74AE4240)] - public partial class Updates : UpdatesBase, IPeerResolver + public sealed partial class Updates : UpdatesBase, IPeerResolver { /// List of updates public Update[] updates; @@ -5494,7 +5494,7 @@ namespace TL } /// Shortened constructor containing info on one outgoing message to a contact (the destination chat has to be extracted from the method call that returned this object). See [TLDef(0x9015E101)] - public partial class UpdateShortSentMessage : UpdatesBase, IPeerResolver + public sealed partial class UpdateShortSentMessage : UpdatesBase, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -5533,7 +5533,7 @@ namespace TL /// Full list of photos with auxiliary data. See [TLDef(0x8DCA6AA5)] - public class Photos_Photos : IObject + public partial class Photos_Photos : IObject { /// List of photos public PhotoBase[] photos; @@ -5542,7 +5542,7 @@ namespace TL } /// Incomplete list of photos with auxiliary data. See [TLDef(0x15051F54)] - public class Photos_PhotosSlice : Photos_Photos + public sealed partial class Photos_PhotosSlice : Photos_Photos { /// Total number of photos public int count; @@ -5550,7 +5550,7 @@ namespace TL /// Photo with auxiliary data. See [TLDef(0x20212CA8)] - public class Photos_Photo : IObject + public sealed partial class Photos_Photo : IObject { /// Photo public PhotoBase photo; @@ -5559,10 +5559,10 @@ namespace TL } /// Contains info on file. See Derived classes: , - public abstract class Upload_FileBase : IObject { } + public abstract partial class Upload_FileBase : IObject { } /// File content. See [TLDef(0x096A18D5)] - public class Upload_File : Upload_FileBase + public sealed partial class Upload_File : Upload_FileBase { /// File type public Storage_FileType type; @@ -5573,7 +5573,7 @@ namespace TL } /// The file must be downloaded from a CDN DC. See [TLDef(0xF18CDA44)] - public class Upload_FileCdnRedirect : Upload_FileBase + public sealed partial class Upload_FileCdnRedirect : Upload_FileBase { /// CDN DC ID public int dc_id; @@ -5589,7 +5589,7 @@ namespace TL /// Data center See [TLDef(0x18B7A10D)] - public class DcOption : IObject + public sealed partial class DcOption : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -5623,7 +5623,7 @@ namespace TL /// Current configuration See [TLDef(0xCC1A241E)] - public class Config : IObject + public sealed partial class Config : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -5747,7 +5747,7 @@ namespace TL /// Nearest data center, according to geo-ip. See [TLDef(0x8E1A1775)] - public class NearestDc : IObject + public sealed partial class NearestDc : IObject { /// Country code determined by geo-ip public string country; @@ -5760,7 +5760,7 @@ namespace TL /// An update is available for the application. See /// a value means help.noAppUpdate [TLDef(0xCCBBCE30)] - public class Help_AppUpdate : IObject + public sealed partial class Help_AppUpdate : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -5794,14 +5794,14 @@ namespace TL /// Text of a text message with an invitation to install Telegram. See [TLDef(0x18CB9F78)] - public class Help_InviteText : IObject + public sealed partial class Help_InviteText : IObject { /// Text of the message public string message; } /// Object contains info on an encrypted chat. See Derived classes: , , , , - public abstract class EncryptedChatBase : IObject + public abstract partial class EncryptedChatBase : IObject { /// Chat ID public virtual int ID => default; @@ -5816,7 +5816,7 @@ namespace TL } /// Empty constructor. See [TLDef(0xAB7EC0A0)] - public class EncryptedChatEmpty : EncryptedChatBase + public sealed partial class EncryptedChatEmpty : EncryptedChatBase { /// Chat ID public int id; @@ -5826,7 +5826,7 @@ namespace TL } /// Chat waiting for approval of second participant. See [TLDef(0x66B25953)] - public class EncryptedChatWaiting : EncryptedChatBase + public sealed partial class EncryptedChatWaiting : EncryptedChatBase { /// Chat ID public int id; @@ -5852,7 +5852,7 @@ namespace TL } /// Request to create an encrypted chat. See [TLDef(0x48F1D94C)] - public class EncryptedChatRequested : EncryptedChatBase + public sealed partial class EncryptedChatRequested : EncryptedChatBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -5890,7 +5890,7 @@ namespace TL } /// Encrypted chat See [TLDef(0x61F0D4C7)] - public class EncryptedChat : EncryptedChatBase + public sealed partial class EncryptedChat : EncryptedChatBase { /// Chat ID public int id; @@ -5920,7 +5920,7 @@ namespace TL } /// Discarded or deleted chat. See [TLDef(0x1E1C7C45)] - public class EncryptedChatDiscarded : EncryptedChatBase + public sealed partial class EncryptedChatDiscarded : EncryptedChatBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -5939,7 +5939,7 @@ namespace TL /// Creates an encrypted chat. See [TLDef(0xF141B5E1)] - public partial class InputEncryptedChat : IObject + public sealed partial class InputEncryptedChat : IObject { /// Chat ID public int chat_id; @@ -5950,7 +5950,7 @@ namespace TL /// Encrypted file. See /// a value means encryptedFileEmpty [TLDef(0xA8008CD8)] - public partial class EncryptedFile : IObject + public sealed partial class EncryptedFile : IObject { /// File ID public long id; @@ -5966,14 +5966,14 @@ namespace TL /// Object sets encrypted file for attachment See Derived classes: , , /// a value means inputEncryptedFileEmpty - public abstract class InputEncryptedFileBase : IObject + public abstract partial class InputEncryptedFileBase : IObject { /// Random file ID created by client public abstract long ID { get; set; } } /// Sets new encrypted file saved by parts using upload.saveFilePart method. See [TLDef(0x64BD0306)] - public class InputEncryptedFileUploaded : InputEncryptedFileBase + public sealed partial class InputEncryptedFileUploaded : InputEncryptedFileBase { /// Random file ID created by client public long id; @@ -5989,7 +5989,7 @@ namespace TL } /// Sets forwarded encrypted file for attachment. See [TLDef(0x5A17B5E5)] - public class InputEncryptedFile : InputEncryptedFileBase + public sealed partial class InputEncryptedFile : InputEncryptedFileBase { /// File ID, value of id parameter from public long id; @@ -6001,7 +6001,7 @@ namespace TL } /// Assigns a new big encrypted file (over 10 MB in size), saved in parts using the method Upload_SaveBigFilePart. See [TLDef(0x2DC173C8)] - public class InputEncryptedFileBigUploaded : InputEncryptedFileBase + public sealed partial class InputEncryptedFileBigUploaded : InputEncryptedFileBase { /// Random file id, created by the client public long id; @@ -6015,7 +6015,7 @@ namespace TL } /// Object contains encrypted message. See Derived classes: , - public abstract class EncryptedMessageBase : IObject + public abstract partial class EncryptedMessageBase : IObject { /// Random message ID, assigned by the author of message public virtual long RandomId => default; @@ -6028,7 +6028,7 @@ namespace TL } /// Encrypted message. See [TLDef(0xED18C118)] - public class EncryptedMessage : EncryptedMessageBase + public sealed partial class EncryptedMessage : EncryptedMessageBase { /// Random message ID, assigned by the author of message public long random_id; @@ -6052,7 +6052,7 @@ namespace TL } /// Encrypted service message See [TLDef(0x23734B06)] - public class EncryptedMessageService : EncryptedMessageBase + public sealed partial class EncryptedMessageService : EncryptedMessageBase { /// Random message ID, assigned by the author of message public long random_id; @@ -6074,17 +6074,17 @@ namespace TL } /// Contains Diffie-Hellman key generation protocol parameters. See Derived classes: , - public abstract class Messages_DhConfigBase : IObject { } + public abstract partial class Messages_DhConfigBase : IObject { } /// Configuring parameters did not change. See [TLDef(0xC0E24635)] - public class Messages_DhConfigNotModified : Messages_DhConfigBase + public sealed partial class Messages_DhConfigNotModified : Messages_DhConfigBase { /// Random sequence of bytes of assigned length public byte[] random; } /// New set of configuring parameters. See [TLDef(0x2C221EDD)] - public class Messages_DhConfig : Messages_DhConfigBase + public sealed partial class Messages_DhConfig : Messages_DhConfigBase { /// New value prime, see Wikipedia public int g; @@ -6098,14 +6098,14 @@ namespace TL /// Message without file attachments sent to an encrypted file. See [TLDef(0x560F8935)] - public class Messages_SentEncryptedMessage : IObject + public partial class Messages_SentEncryptedMessage : IObject { /// Date of sending public DateTime date; } /// Message with a file enclosure sent to a protected chat See [TLDef(0x9493FF32, inheritBefore = true)] - public class Messages_SentEncryptedFile : Messages_SentEncryptedMessage + public sealed partial class Messages_SentEncryptedFile : Messages_SentEncryptedMessage { /// Attached file public EncryptedFile file; @@ -6114,7 +6114,7 @@ namespace TL /// Defines a document for subsequent interaction. See /// a value means inputDocumentEmpty [TLDef(0x1ABFB575)] - public partial class InputDocument : IObject + public sealed partial class InputDocument : IObject { /// Document ID public long id; @@ -6128,14 +6128,14 @@ namespace TL public abstract partial class DocumentBase : IObject { } /// Empty constructor, document doesn't exist. See [TLDef(0x36F8C871)] - public partial class DocumentEmpty : DocumentBase + public sealed partial class DocumentEmpty : DocumentBase { /// Document ID or 0 public long id; } /// Document See [TLDef(0x8FD4C4D8)] - public partial class Document : DocumentBase + public sealed partial class Document : DocumentBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -6171,7 +6171,7 @@ namespace TL /// Info on support user. See [TLDef(0x17C6B5F6)] - public class Help_Support : IObject + public sealed partial class Help_Support : IObject { /// Phone number public string phone_number; @@ -6180,26 +6180,26 @@ namespace TL } /// Object defines the set of users and/or groups that generate notifications. See Derived classes: , , , , - public abstract class NotifyPeerBase : IObject { } + public abstract partial class NotifyPeerBase : IObject { } /// Notifications generated by a certain user or group. See [TLDef(0x9FD40BD8)] - public class NotifyPeer : NotifyPeerBase + public sealed partial class NotifyPeer : NotifyPeerBase { /// user or group public Peer peer; } /// Notifications generated by all users. See [TLDef(0xB4C83B4C)] - public class NotifyUsers : NotifyPeerBase { } + public sealed partial class NotifyUsers : NotifyPeerBase { } /// Notifications generated by all groups. See [TLDef(0xC007CEC3)] - public class NotifyChats : NotifyPeerBase { } + public sealed partial class NotifyChats : NotifyPeerBase { } /// Channel notification settings See [TLDef(0xD612E8EF)] - public class NotifyBroadcasts : NotifyPeerBase { } + public sealed partial class NotifyBroadcasts : NotifyPeerBase { } /// Notifications generated by a topic in a forum. See [TLDef(0x226E6308)] - public class NotifyForumTopic : NotifyPeerBase + public sealed partial class NotifyForumTopic : NotifyPeerBase { /// Forum ID public Peer peer; @@ -6211,79 +6211,79 @@ namespace TL public abstract partial class SendMessageAction : IObject { } /// User is typing. See [TLDef(0x16BF744E)] - public partial class SendMessageTypingAction : SendMessageAction { } + public sealed partial class SendMessageTypingAction : SendMessageAction { } /// Invalidate all previous action updates. E.g. when user deletes entered text or aborts a video upload. See [TLDef(0xFD5EC8F5)] - public partial class SendMessageCancelAction : SendMessageAction { } + public sealed partial class SendMessageCancelAction : SendMessageAction { } /// User is recording a video. See [TLDef(0xA187D66F)] - public class SendMessageRecordVideoAction : SendMessageAction { } + public sealed partial class SendMessageRecordVideoAction : SendMessageAction { } /// User is uploading a video. See [TLDef(0xE9763AEC)] - public class SendMessageUploadVideoAction : SendMessageAction + public sealed partial class SendMessageUploadVideoAction : SendMessageAction { /// Progress percentage public int progress; } /// User is recording a voice message. See [TLDef(0xD52F73F7)] - public class SendMessageRecordAudioAction : SendMessageAction { } + public sealed partial class SendMessageRecordAudioAction : SendMessageAction { } /// User is uploading a voice message. See [TLDef(0xF351D7AB)] - public class SendMessageUploadAudioAction : SendMessageAction + public sealed partial class SendMessageUploadAudioAction : SendMessageAction { /// Progress percentage public int progress; } /// User is uploading a photo. See [TLDef(0xD1D34A26)] - public class SendMessageUploadPhotoAction : SendMessageAction + public sealed partial class SendMessageUploadPhotoAction : SendMessageAction { /// Progress percentage public int progress; } /// User is uploading a file. See [TLDef(0xAA0CD9E4)] - public class SendMessageUploadDocumentAction : SendMessageAction + public sealed partial class SendMessageUploadDocumentAction : SendMessageAction { /// Progress percentage public int progress; } /// User is selecting a location to share. See [TLDef(0x176F8BA1)] - public partial class SendMessageGeoLocationAction : SendMessageAction { } + public sealed partial class SendMessageGeoLocationAction : SendMessageAction { } /// User is selecting a contact to share. See [TLDef(0x628CBC6F)] - public class SendMessageChooseContactAction : SendMessageAction { } + public sealed partial class SendMessageChooseContactAction : SendMessageAction { } /// User is playing a game See [TLDef(0xDD6A8F48)] - public partial class SendMessageGamePlayAction : SendMessageAction { } + public sealed partial class SendMessageGamePlayAction : SendMessageAction { } /// User is recording a round video to share See [TLDef(0x88F27FBC)] - public class SendMessageRecordRoundAction : SendMessageAction { } + public sealed partial class SendMessageRecordRoundAction : SendMessageAction { } /// User is uploading a round video See [TLDef(0x243E1C66)] - public class SendMessageUploadRoundAction : SendMessageAction + public sealed partial class SendMessageUploadRoundAction : SendMessageAction { /// Progress percentage public int progress; } /// User is currently speaking in the group call See [TLDef(0xD92C2285)] - public partial class SpeakingInGroupCallAction : SendMessageAction { } + public sealed partial class SpeakingInGroupCallAction : SendMessageAction { } /// Chat history is being imported See [TLDef(0xDBDA9246)] - public partial class SendMessageHistoryImportAction : SendMessageAction + public sealed partial class SendMessageHistoryImportAction : SendMessageAction { /// Progress percentage public int progress; } /// User is choosing a sticker See [TLDef(0xB05AC6B1)] - public class SendMessageChooseStickerAction : SendMessageAction { } + public sealed partial class SendMessageChooseStickerAction : SendMessageAction { } /// User has clicked on an animated emoji triggering a reaction, click here for more info ». See [TLDef(0x25972BCB)] - public partial class SendMessageEmojiInteraction : SendMessageAction + public sealed partial class SendMessageEmojiInteraction : SendMessageAction { /// Emoji public string emoticon; @@ -6294,7 +6294,7 @@ namespace TL } /// User is watching an animated emoji reaction triggered by another user, click here for more info ». See [TLDef(0xB665902E)] - public partial class SendMessageEmojiInteractionSeen : SendMessageAction + public sealed partial class SendMessageEmojiInteractionSeen : SendMessageAction { /// Emoji public string emoticon; @@ -6302,7 +6302,7 @@ namespace TL /// Users found by name substring and auxiliary data. See [TLDef(0xB3134D9D)] - public class Contacts_Found : IObject, IPeerResolver + public sealed partial class Contacts_Found : IObject, IPeerResolver { /// Personalized results public Peer[] my_results; @@ -6367,100 +6367,100 @@ namespace TL } /// Privacy rules indicate who can or can't do something and are specified by a , and its input counterpart . See Derived classes: , , , , , , , , - public abstract class InputPrivacyRule : IObject { } + public abstract partial class InputPrivacyRule : IObject { } /// Allow only contacts See [TLDef(0x0D09E07B)] - public class InputPrivacyValueAllowContacts : InputPrivacyRule { } + public sealed partial class InputPrivacyValueAllowContacts : InputPrivacyRule { } /// Allow all users See [TLDef(0x184B35CE)] - public class InputPrivacyValueAllowAll : InputPrivacyRule { } + public sealed partial class InputPrivacyValueAllowAll : InputPrivacyRule { } /// Allow only certain users See [TLDef(0x131CC67F)] - public class InputPrivacyValueAllowUsers : InputPrivacyRule + public sealed partial class InputPrivacyValueAllowUsers : InputPrivacyRule { /// Allowed users public InputUserBase[] users; } /// Disallow only contacts See [TLDef(0x0BA52007)] - public class InputPrivacyValueDisallowContacts : InputPrivacyRule { } + public sealed partial class InputPrivacyValueDisallowContacts : InputPrivacyRule { } /// Disallow all See [TLDef(0xD66B66C9)] - public class InputPrivacyValueDisallowAll : InputPrivacyRule { } + public sealed partial class InputPrivacyValueDisallowAll : InputPrivacyRule { } /// Disallow only certain users See [TLDef(0x90110467)] - public class InputPrivacyValueDisallowUsers : InputPrivacyRule + public sealed partial class InputPrivacyValueDisallowUsers : InputPrivacyRule { /// Users to disallow public InputUserBase[] users; } /// Allow only participants of certain chats See [TLDef(0x840649CF)] - public class InputPrivacyValueAllowChatParticipants : InputPrivacyRule + public sealed partial class InputPrivacyValueAllowChatParticipants : InputPrivacyRule { /// Allowed chat IDs public long[] chats; } /// Disallow only participants of certain chats See [TLDef(0xE94F0F86)] - public class InputPrivacyValueDisallowChatParticipants : InputPrivacyRule + public sealed partial class InputPrivacyValueDisallowChatParticipants : InputPrivacyRule { /// Disallowed chat IDs public long[] chats; } /// Allow only close friends » See [TLDef(0x2F453E49)] - public class InputPrivacyValueAllowCloseFriends : InputPrivacyRule { } + public sealed partial class InputPrivacyValueAllowCloseFriends : InputPrivacyRule { } /// Privacy rules together with privacy keys indicate what can or can't someone do and are specified by a constructor, and its input counterpart . See Derived classes: , , , , , , , , - public abstract class PrivacyRule : IObject { } + public abstract partial class PrivacyRule : IObject { } /// Allow all contacts See [TLDef(0xFFFE1BAC)] - public class PrivacyValueAllowContacts : PrivacyRule { } + public sealed partial class PrivacyValueAllowContacts : PrivacyRule { } /// Allow all users See [TLDef(0x65427B82)] - public class PrivacyValueAllowAll : PrivacyRule { } + public sealed partial class PrivacyValueAllowAll : PrivacyRule { } /// Allow only certain users See [TLDef(0xB8905FB2)] - public class PrivacyValueAllowUsers : PrivacyRule + public sealed partial class PrivacyValueAllowUsers : PrivacyRule { /// Allowed users public long[] users; } /// Disallow only contacts See [TLDef(0xF888FA1A)] - public class PrivacyValueDisallowContacts : PrivacyRule { } + public sealed partial class PrivacyValueDisallowContacts : PrivacyRule { } /// Disallow all users See [TLDef(0x8B73E763)] - public class PrivacyValueDisallowAll : PrivacyRule { } + public sealed partial class PrivacyValueDisallowAll : PrivacyRule { } /// Disallow only certain users See [TLDef(0xE4621141)] - public class PrivacyValueDisallowUsers : PrivacyRule + public sealed partial class PrivacyValueDisallowUsers : PrivacyRule { /// Disallowed users public long[] users; } /// Allow all participants of certain chats See [TLDef(0x6B134E8E)] - public class PrivacyValueAllowChatParticipants : PrivacyRule + public sealed partial class PrivacyValueAllowChatParticipants : PrivacyRule { /// Allowed chats public long[] chats; } /// Disallow only participants of certain chats See [TLDef(0x41C87565)] - public class PrivacyValueDisallowChatParticipants : PrivacyRule + public sealed partial class PrivacyValueDisallowChatParticipants : PrivacyRule { /// Disallowed chats public long[] chats; } /// Allow only close friends » See [TLDef(0xF7E8D89B)] - public class PrivacyValueAllowCloseFriends : PrivacyRule { } + public sealed partial class PrivacyValueAllowCloseFriends : PrivacyRule { } /// Privacy rules See [TLDef(0x50A04E45)] - public class Account_PrivacyRules : IObject, IPeerResolver + public sealed partial class Account_PrivacyRules : IObject, IPeerResolver { /// Privacy rules public PrivacyRule[] rules; @@ -6474,17 +6474,17 @@ namespace TL /// Time to live in days of the current account See [TLDef(0xB8D0AFDF)] - public class AccountDaysTTL : IObject + public sealed partial class AccountDaysTTL : IObject { /// This account will self-destruct in the specified number of days public int days; } /// Various possible attributes of a document (used to define if it's a sticker, a GIF, a video, a mask sticker, an image, an audio, and so on) See Derived classes: , , , , , , , - public abstract class DocumentAttribute : IObject { } + public abstract partial class DocumentAttribute : IObject { } /// Defines the width and height of an image uploaded as document See [TLDef(0x6C37C15C)] - public class DocumentAttributeImageSize : DocumentAttribute + public sealed partial class DocumentAttributeImageSize : DocumentAttribute { /// Width of image public int w; @@ -6493,10 +6493,10 @@ namespace TL } /// Defines an animated GIF See [TLDef(0x11B58939)] - public class DocumentAttributeAnimated : DocumentAttribute { } + public sealed partial class DocumentAttributeAnimated : DocumentAttribute { } /// Defines a sticker See [TLDef(0x6319D612)] - public class DocumentAttributeSticker : DocumentAttribute + public sealed partial class DocumentAttributeSticker : DocumentAttribute { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -6517,7 +6517,7 @@ namespace TL } /// Defines a video See [TLDef(0xD38FF1C2)] - public class DocumentAttributeVideo : DocumentAttribute + public sealed partial class DocumentAttributeVideo : DocumentAttribute { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -6544,7 +6544,7 @@ namespace TL } /// Represents an audio file See [TLDef(0x9852F9C6)] - public class DocumentAttributeAudio : DocumentAttribute + public sealed partial class DocumentAttributeAudio : DocumentAttribute { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -6571,17 +6571,17 @@ namespace TL } /// A simple document with a file name See [TLDef(0x15590068)] - public class DocumentAttributeFilename : DocumentAttribute + public sealed partial class DocumentAttributeFilename : DocumentAttribute { /// The file name public string file_name; } /// Whether the current document has stickers attached See [TLDef(0x9801D2F7)] - public class DocumentAttributeHasStickers : DocumentAttribute { } + public sealed partial class DocumentAttributeHasStickers : DocumentAttribute { } /// Info about a custom emoji See [TLDef(0xFD149899)] - public class DocumentAttributeCustomEmoji : DocumentAttribute + public sealed partial class DocumentAttributeCustomEmoji : DocumentAttribute { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -6602,7 +6602,7 @@ namespace TL /// Found stickers See /// a value means messages.stickersNotModified [TLDef(0x30A6EC7E)] - public class Messages_Stickers : IObject + public sealed partial class Messages_Stickers : IObject { /// Hash for pagination, for more info click here public long hash; @@ -6612,7 +6612,7 @@ namespace TL /// A stickerpack is a group of stickers associated to the same emoji.
It is not a sticker pack the way it is usually intended, you may be looking for a . See
[TLDef(0x12B299D4)] - public class StickerPack : IObject + public sealed partial class StickerPack : IObject { /// Emoji public string emoticon; @@ -6623,7 +6623,7 @@ namespace TL /// Info about all installed stickers See /// a value means messages.allStickersNotModified [TLDef(0xCDBBCEBB)] - public class Messages_AllStickers : IObject + public sealed partial class Messages_AllStickers : IObject { /// Hash for pagination, for more info click here public long hash; @@ -6633,7 +6633,7 @@ namespace TL /// Events affected by operation See [TLDef(0x84D19185)] - public class Messages_AffectedMessages : IObject + public partial class Messages_AffectedMessages : IObject { /// Event count after generation public int pts; @@ -6642,7 +6642,7 @@ namespace TL } /// Instant View webpage preview See Derived classes: , , , - public abstract class WebPageBase : IObject + public abstract partial class WebPageBase : IObject { /// Preview ID public virtual long ID => default; @@ -6651,7 +6651,7 @@ namespace TL } /// No preview is available for the webpage See [TLDef(0x211A1788)] - public class WebPageEmpty : WebPageBase + public sealed partial class WebPageEmpty : WebPageBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -6673,7 +6673,7 @@ namespace TL } /// A preview of the webpage is currently being generated See [TLDef(0xB0D13E47)] - public class WebPagePending : WebPageBase + public sealed partial class WebPagePending : WebPageBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -6697,7 +6697,7 @@ namespace TL } /// Webpage preview See [TLDef(0xE89C45B2)] - public class WebPage : WebPageBase + public sealed partial class WebPage : WebPageBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -6775,7 +6775,7 @@ namespace TL } /// The preview of the webpage hasn't changed See [TLDef(0x7311CA11)] - public class WebPageNotModified : WebPageBase + public sealed partial class WebPageNotModified : WebPageBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -6791,7 +6791,7 @@ namespace TL /// Logged-in session See [TLDef(0xAD01D61D)] - public class Authorization : IObject + public sealed partial class Authorization : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -6839,7 +6839,7 @@ namespace TL /// Logged-in sessions See [TLDef(0x4BFF8EA0)] - public class Account_Authorizations : IObject + public sealed partial class Account_Authorizations : IObject { /// Time-to-live of session public int authorization_ttl_days; @@ -6849,7 +6849,7 @@ namespace TL /// Configuration for two-factor authorization See [TLDef(0x957B50FB)] - public class Account_Password : IObject + public sealed partial class Account_Password : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -6895,7 +6895,7 @@ namespace TL /// Private info associated to the password info (recovery email, telegram passport info & so on) See [TLDef(0x9A5C33E5)] - public class Account_PasswordSettings : IObject + public sealed partial class Account_PasswordSettings : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -6915,7 +6915,7 @@ namespace TL /// Settings for setting up a new password See [TLDef(0xC23727C9)] - public class Account_PasswordInputSettings : IObject + public sealed partial class Account_PasswordInputSettings : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -6943,7 +6943,7 @@ namespace TL /// Recovery info of a 2FA password, only for accounts with a recovery email configured. See [TLDef(0x137948A5)] - public class Auth_PasswordRecovery : IObject + public sealed partial class Auth_PasswordRecovery : IObject { /// The email to which the recovery code was sent must match this pattern. public string email_pattern; @@ -6951,7 +6951,7 @@ namespace TL /// Message ID, for which PUSH-notifications were cancelled. See [TLDef(0xA384B779)] - public class ReceivedNotifyMessage : IObject + public sealed partial class ReceivedNotifyMessage : IObject { /// Message ID, for which PUSH-notifications were canceled public int id; @@ -6960,10 +6960,10 @@ namespace TL } /// Exported chat invite See Derived classes: , - public abstract class ExportedChatInvite : IObject { } + public abstract partial class ExportedChatInvite : IObject { } /// Exported chat invite See [TLDef(0x0AB4A819)] - public class ChatInviteExported : ExportedChatInvite + public sealed partial class ChatInviteExported : ExportedChatInvite { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7010,20 +7010,20 @@ namespace TL } /// Used in updates and in the channel log to indicate when a user is requesting to join or has joined a discussion group See [TLDef(0xED107AB7)] - public class ChatInvitePublicJoinRequests : ExportedChatInvite { } + public sealed partial class ChatInvitePublicJoinRequests : ExportedChatInvite { } /// Chat invite See Derived classes: , , - public abstract class ChatInviteBase : IObject { } + public abstract partial class ChatInviteBase : IObject { } /// The user has already joined this chat See [TLDef(0x5A686D7C)] - public class ChatInviteAlready : ChatInviteBase + public sealed partial class ChatInviteAlready : ChatInviteBase { /// The chat connected to the invite public ChatBase chat; } /// Chat invite info See [TLDef(0xCDE0EC40)] - public class ChatInvite : ChatInviteBase + public sealed partial class ChatInvite : ChatInviteBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7066,7 +7066,7 @@ namespace TL } /// A chat invitation that also allows peeking into the group to read messages without joining it. See [TLDef(0x61695CB0)] - public class ChatInvitePeek : ChatInviteBase + public sealed partial class ChatInvitePeek : ChatInviteBase { /// Chat information public ChatBase chat; @@ -7079,7 +7079,7 @@ namespace TL public abstract partial class InputStickerSet : IObject { } /// Stickerset by ID See [TLDef(0x9DE7A269)] - public class InputStickerSetID : InputStickerSet + public sealed partial class InputStickerSetID : InputStickerSet { /// ID public long id; @@ -7088,43 +7088,43 @@ namespace TL } /// Stickerset by short name, from a stickerset deep link » See [TLDef(0x861CC8A0)] - public class InputStickerSetShortName : InputStickerSet + public sealed partial class InputStickerSetShortName : InputStickerSet { /// Short name from a stickerset deep link » public string short_name; } /// Animated emojis stickerset See [TLDef(0x028703C8)] - public class InputStickerSetAnimatedEmoji : InputStickerSet { } + public sealed partial class InputStickerSetAnimatedEmoji : InputStickerSet { } /// Used for fetching animated dice stickers See [TLDef(0xE67F520E)] - public class InputStickerSetDice : InputStickerSet + public sealed partial class InputStickerSetDice : InputStickerSet { /// The emoji, for now 🏀, 🎲 and 🎯 are supported public string emoticon; } /// Animated emoji reaction stickerset (contains animations to play when a user clicks on a given animated emoji) See [TLDef(0x0CDE3739)] - public class InputStickerSetAnimatedEmojiAnimations : InputStickerSet { } + public sealed partial class InputStickerSetAnimatedEmojiAnimations : InputStickerSet { } /// Stickers to show when receiving a gifted Telegram Premium subscription See [TLDef(0xC88B3B02)] - public class InputStickerSetPremiumGifts : InputStickerSet { } + public sealed partial class InputStickerSetPremiumGifts : InputStickerSet { } /// Generic animation stickerset containing animations to play when reacting to messages using a normal emoji without a custom animation See [TLDef(0x04C4D4CE)] - public class InputStickerSetEmojiGenericAnimations : InputStickerSet { } + public sealed partial class InputStickerSetEmojiGenericAnimations : InputStickerSet { } /// Default custom emoji status stickerset See [TLDef(0x29D0F5EE)] - public class InputStickerSetEmojiDefaultStatuses : InputStickerSet { } + public sealed partial class InputStickerSetEmojiDefaultStatuses : InputStickerSet { } /// Default custom emoji stickerset for forum topic icons See [TLDef(0x44C1F8E9)] - public class InputStickerSetEmojiDefaultTopicIcons : InputStickerSet { } + public sealed partial class InputStickerSetEmojiDefaultTopicIcons : InputStickerSet { } /// Default custom emoji status stickerset for channel statuses See [TLDef(0x49748553)] - public class InputStickerSetEmojiChannelDefaultStatuses : InputStickerSet { } + public sealed partial class InputStickerSetEmojiChannelDefaultStatuses : InputStickerSet { } /// Represents a stickerset (stickerpack) See [TLDef(0x2DD14EDC)] - public partial class StickerSet : IObject + public sealed partial class StickerSet : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7181,7 +7181,7 @@ namespace TL /// Stickerset and stickers inside it See /// a value means messages.stickerSetNotModified [TLDef(0x6E153F16)] - public class Messages_StickerSet : IObject + public sealed partial class Messages_StickerSet : IObject { /// The stickerset public StickerSet set; @@ -7195,7 +7195,7 @@ namespace TL /// Describes a bot command that can be used in a chat See [TLDef(0xC27AC8C7)] - public class BotCommand : IObject + public sealed partial class BotCommand : IObject { /// /command name public string command; @@ -7205,7 +7205,7 @@ namespace TL /// Info about bots (available bot commands, etc) See [TLDef(0x8F300B57)] - public class BotInfo : IObject + public sealed partial class BotInfo : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7240,14 +7240,14 @@ namespace TL } /// Bot or inline keyboard buttons See Derived classes: , , , , , , , , , , , , , , , - public abstract class KeyboardButtonBase : IObject + public abstract partial class KeyboardButtonBase : IObject { /// Button text public virtual string Text => default; } /// Bot keyboard button See [TLDef(0xA2FA4880)] - public class KeyboardButton : KeyboardButtonBase + public partial class KeyboardButton : KeyboardButtonBase { /// Button text public string text; @@ -7257,14 +7257,14 @@ namespace TL } /// URL button See [TLDef(0x258AFF05, inheritBefore = true)] - public class KeyboardButtonUrl : KeyboardButton + public sealed partial class KeyboardButtonUrl : KeyboardButton { /// URL public string url; } /// Callback button See [TLDef(0x35BBDB6B)] - public class KeyboardButtonCallback : KeyboardButtonBase + public sealed partial class KeyboardButtonCallback : KeyboardButtonBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7284,17 +7284,17 @@ namespace TL } /// Button to request a user's phone number See [TLDef(0xB16A6C29)] - public class KeyboardButtonRequestPhone : KeyboardButton + public sealed partial class KeyboardButtonRequestPhone : KeyboardButton { } /// Button to request a user's geolocation See [TLDef(0xFC796B3F)] - public class KeyboardButtonRequestGeoLocation : KeyboardButton + public sealed partial class KeyboardButtonRequestGeoLocation : KeyboardButton { } /// Button to force a user to switch to inline mode: pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. See [TLDef(0x93B9FBB5)] - public class KeyboardButtonSwitchInline : KeyboardButtonBase + public sealed partial class KeyboardButtonSwitchInline : KeyboardButtonBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7318,17 +7318,17 @@ namespace TL } /// Button to start a game See [TLDef(0x50F41CCF)] - public class KeyboardButtonGame : KeyboardButton + public sealed partial class KeyboardButtonGame : KeyboardButton { } /// Button to buy a product See [TLDef(0xAFD93FBB)] - public class KeyboardButtonBuy : KeyboardButton + public sealed partial class KeyboardButtonBuy : KeyboardButton { } /// Button to request a user to authorize via URL using Seamless Telegram Login. When the user clicks on such a button, Messages_RequestUrlAuth should be called, providing the button_id and the ID of the container message. The returned object will contain more details about the authorization request (request_write_access if the bot would like to send messages to the user along with the username of the bot which will be used for user authorization). Finally, the user can choose to call Messages_AcceptUrlAuth to get a with the URL to open instead of the url of this constructor, or a , in which case the url of this constructor must be opened, instead. If the user refuses the authorization request but still wants to open the link, the url of this constructor must be used. See [TLDef(0x10B78D29)] - public class KeyboardButtonUrlAuth : KeyboardButtonBase + public sealed partial class KeyboardButtonUrlAuth : KeyboardButtonBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7352,7 +7352,7 @@ namespace TL } /// Button to request a user to Messages_AcceptUrlAuth via URL using Seamless Telegram Login. See [TLDef(0xD02E7FD4)] - public class InputKeyboardButtonUrlAuth : KeyboardButtonBase + public sealed partial class InputKeyboardButtonUrlAuth : KeyboardButtonBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7378,7 +7378,7 @@ namespace TL } /// A button that allows the user to create and send a poll when pressed; available only in private See [TLDef(0xBBC7515D)] - public class KeyboardButtonRequestPoll : KeyboardButton + public sealed partial class KeyboardButtonRequestPoll : KeyboardButton { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7393,7 +7393,7 @@ namespace TL } /// Button that links directly to a user profile See [TLDef(0xE988037B)] - public class InputKeyboardButtonUserProfile : KeyboardButtonBase + public sealed partial class InputKeyboardButtonUserProfile : KeyboardButtonBase { /// Button text public string text; @@ -7405,26 +7405,26 @@ namespace TL } /// Button that links directly to a user profile See [TLDef(0x308660C1, inheritBefore = true)] - public class KeyboardButtonUserProfile : KeyboardButton + public sealed partial class KeyboardButtonUserProfile : KeyboardButton { /// User ID public long user_id; } /// Button to open a bot mini app using Messages_RequestWebView, sending over user information after user confirmation. See [TLDef(0x13767230, inheritBefore = true)] - public class KeyboardButtonWebView : KeyboardButton + public partial class KeyboardButtonWebView : KeyboardButton { /// Web app url public string url; } /// Button to open a bot mini app using Messages_RequestSimpleWebView, without sending user information to the web app. See [TLDef(0xA0C0505C)] - public class KeyboardButtonSimpleWebView : KeyboardButtonWebView + public sealed partial class KeyboardButtonSimpleWebView : KeyboardButtonWebView { } /// Prompts the user to select and share one or more peers with the bot using Messages_SendBotRequestedPeer See [TLDef(0x53D7BFD8, inheritBefore = true)] - public class KeyboardButtonRequestPeer : KeyboardButton + public sealed partial class KeyboardButtonRequestPeer : KeyboardButton { /// Button ID, to be passed to Messages_SendBotRequestedPeer. public int button_id; @@ -7436,17 +7436,17 @@ namespace TL /// Inline keyboard row See [TLDef(0x77608B83)] - public class KeyboardButtonRow : IObject + public sealed partial class KeyboardButtonRow : IObject { /// Bot or inline keyboard buttons public KeyboardButtonBase[] buttons; } /// Reply markup for bot and inline keyboards See Derived classes: , , , - public abstract class ReplyMarkup : IObject { } + public abstract partial class ReplyMarkup : IObject { } /// Hide sent bot keyboard See [TLDef(0xA03E5B85)] - public class ReplyKeyboardHide : ReplyMarkup + public sealed partial class ReplyKeyboardHide : ReplyMarkup { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7459,7 +7459,7 @@ namespace TL } /// Force the user to send a reply See [TLDef(0x86B40B08)] - public class ReplyKeyboardForceReply : ReplyMarkup + public sealed partial class ReplyKeyboardForceReply : ReplyMarkup { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7478,7 +7478,7 @@ namespace TL } /// Bot keyboard See [TLDef(0x85DD99D1)] - public class ReplyKeyboardMarkup : ReplyMarkup + public sealed partial class ReplyKeyboardMarkup : ReplyMarkup { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7503,7 +7503,7 @@ namespace TL } /// Bot or inline keyboard See [TLDef(0x48A30254)] - public class ReplyInlineMarkup : ReplyMarkup + public sealed partial class ReplyInlineMarkup : ReplyMarkup { /// Bot or inline keyboard rows public KeyboardButtonRow[] rows; @@ -7519,98 +7519,98 @@ namespace TL } /// Unknown message entity See [TLDef(0xBB92BA95)] - public class MessageEntityUnknown : MessageEntity { } + public sealed partial class MessageEntityUnknown : MessageEntity { } /// Message entity mentioning a user by @username; can also be used to mention users by their ID. See [TLDef(0xFA04579D)] - public class MessageEntityMention : MessageEntity { } + public sealed partial class MessageEntityMention : MessageEntity { } /// #hashtag message entity See [TLDef(0x6F635B0D)] - public class MessageEntityHashtag : MessageEntity { } + public sealed partial class MessageEntityHashtag : MessageEntity { } /// Message entity representing a bot /command See [TLDef(0x6CEF8AC7)] - public class MessageEntityBotCommand : MessageEntity { } + public sealed partial class MessageEntityBotCommand : MessageEntity { } /// Message entity representing an in-text url: https://google.com; for text urls, use . See [TLDef(0x6ED02538)] - public class MessageEntityUrl : MessageEntity { } + public sealed partial class MessageEntityUrl : MessageEntity { } /// Message entity representing an email@example.com. See [TLDef(0x64E475C2)] - public class MessageEntityEmail : MessageEntity { } + public sealed partial class MessageEntityEmail : MessageEntity { } /// Message entity representing bold text. See [TLDef(0xBD610BC9)] - public class MessageEntityBold : MessageEntity { } + public sealed partial class MessageEntityBold : MessageEntity { } /// Message entity representing italic text. See [TLDef(0x826F8B60)] - public class MessageEntityItalic : MessageEntity { } + public sealed partial class MessageEntityItalic : MessageEntity { } /// Message entity representing a codeblock. See [TLDef(0x28A20571)] - public class MessageEntityCode : MessageEntity { } + public sealed partial class MessageEntityCode : MessageEntity { } /// Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock. See [TLDef(0x73924BE0, inheritBefore = true)] - public class MessageEntityPre : MessageEntity + public sealed partial class MessageEntityPre : MessageEntity { /// Programming language of the code public string language; } /// Message entity representing a text url: for in-text urls like https://google.com use . See [TLDef(0x76A6D327, inheritBefore = true)] - public class MessageEntityTextUrl : MessageEntity + public sealed partial class MessageEntityTextUrl : MessageEntity { /// The actual URL public string url; } /// Message entity representing a user mention: for creating a mention use . See [TLDef(0xDC7B1140, inheritBefore = true)] - public class MessageEntityMentionName : MessageEntity + public sealed partial class MessageEntityMentionName : MessageEntity { /// Identifier of the user that was mentioned public long user_id; } /// Message entity that can be used to create a user user mention: received mentions use the , instead. See [TLDef(0x208E68C9, inheritBefore = true)] - public class InputMessageEntityMentionName : MessageEntity + public sealed partial class InputMessageEntityMentionName : MessageEntity { /// Identifier of the user that was mentioned public InputUserBase user_id; } /// Message entity representing a phone number. See [TLDef(0x9B69E34B)] - public class MessageEntityPhone : MessageEntity { } + public sealed partial class MessageEntityPhone : MessageEntity { } /// Message entity representing a $cashtag. See [TLDef(0x4C4E743F)] - public class MessageEntityCashtag : MessageEntity { } + public sealed partial class MessageEntityCashtag : MessageEntity { } /// Message entity representing underlined text. See [TLDef(0x9C4E7E8B)] - public class MessageEntityUnderline : MessageEntity { } + public sealed partial class MessageEntityUnderline : MessageEntity { } /// Message entity representing strikethrough text. See [TLDef(0xBF0693D4)] - public class MessageEntityStrike : MessageEntity { } + public sealed partial class MessageEntityStrike : MessageEntity { } /// Indicates a credit card number See [TLDef(0x761E6AF4)] - public class MessageEntityBankCard : MessageEntity { } + public sealed partial class MessageEntityBankCard : MessageEntity { } /// Message entity representing a spoiler See [TLDef(0x32CA960F)] - public class MessageEntitySpoiler : MessageEntity { } + public sealed partial class MessageEntitySpoiler : MessageEntity { } /// Represents a custom emoji.
Note that this entity must wrap exactly one regular emoji (the one contained in .alt) in the related text, otherwise the server will ignore it. See
[TLDef(0xC8CF05F8, inheritBefore = true)] - public class MessageEntityCustomEmoji : MessageEntity + public sealed partial class MessageEntityCustomEmoji : MessageEntity { /// Document ID of the custom emoji, use Messages_GetCustomEmojiDocuments to fetch the emoji animation and the actual emoji it represents. public long document_id; } /// Message entity representing a block quote. See [TLDef(0x020DF5D0)] - public class MessageEntityBlockquote : MessageEntity { } + public sealed partial class MessageEntityBlockquote : MessageEntity { } /// Represents a channel See Derived classes: , /// a value means inputChannelEmpty - public abstract class InputChannelBase : IObject + public abstract partial class InputChannelBase : IObject { /// Channel ID public abstract long ChannelId { get; set; } } /// Represents a channel See [TLDef(0xF35AEC28)] - public partial class InputChannel : InputChannelBase + public sealed partial class InputChannel : InputChannelBase { /// Channel ID public long channel_id; @@ -7622,7 +7622,7 @@ namespace TL } /// Defines a min channel that was seen in a certain message of a certain chat. See [TLDef(0x5B934F9D)] - public class InputChannelFromMessage : InputChannelBase + public sealed partial class InputChannelFromMessage : InputChannelBase { /// The chat where the channel was seen public InputPeer peer; @@ -7637,7 +7637,7 @@ namespace TL /// Resolved peer See [TLDef(0x7F077AD9)] - public partial class Contacts_ResolvedPeer : IObject + public sealed partial class Contacts_ResolvedPeer : IObject { /// The peer public Peer peer; @@ -7651,7 +7651,7 @@ namespace TL /// Indicates a range of chat messages See [TLDef(0x0AE30253)] - public class MessageRange : IObject + public sealed partial class MessageRange : IObject { /// Start of range (message ID) public int min_id; @@ -7667,7 +7667,7 @@ namespace TL } /// There are no new updates See [TLDef(0x3E11AFFB)] - public partial class Updates_ChannelDifferenceEmpty : Updates_ChannelDifferenceBase, IPeerResolver + public sealed partial class Updates_ChannelDifferenceEmpty : Updates_ChannelDifferenceBase, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7688,7 +7688,7 @@ namespace TL } /// The provided pts + limit < remote pts. Simply, there are too many updates to be fetched (more than limit), the client has to resolve the update gap in one of the following ways (assuming the existence of a persistent database to locally store messages): See [TLDef(0xA4BCC6FE)] - public partial class Updates_ChannelDifferenceTooLong : Updates_ChannelDifferenceBase, IPeerResolver + public sealed partial class Updates_ChannelDifferenceTooLong : Updates_ChannelDifferenceBase, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7715,7 +7715,7 @@ namespace TL } /// The new updates See [TLDef(0x2064674E)] - public partial class Updates_ChannelDifference : Updates_ChannelDifferenceBase, IPeerResolver + public sealed partial class Updates_ChannelDifference : Updates_ChannelDifferenceBase, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7746,7 +7746,7 @@ namespace TL /// Filter for getting only certain types of channel messages See /// a value means channelMessagesFilterEmpty [TLDef(0xCD77D957)] - public class ChannelMessagesFilter : IObject + public sealed partial class ChannelMessagesFilter : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7764,7 +7764,7 @@ namespace TL public abstract partial class ChannelParticipantBase : IObject { } /// Channel/supergroup participant See [TLDef(0xC00C07C0)] - public partial class ChannelParticipant : ChannelParticipantBase + public sealed partial class ChannelParticipant : ChannelParticipantBase { /// Participant user ID public long user_id; @@ -7773,7 +7773,7 @@ namespace TL } /// Myself See [TLDef(0x35A8BFA7)] - public partial class ChannelParticipantSelf : ChannelParticipantBase + public sealed partial class ChannelParticipantSelf : ChannelParticipantBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7792,7 +7792,7 @@ namespace TL } /// Channel/supergroup creator See [TLDef(0x2FE601D3)] - public partial class ChannelParticipantCreator : ChannelParticipantBase + public sealed partial class ChannelParticipantCreator : ChannelParticipantBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7811,7 +7811,7 @@ namespace TL } /// Admin See [TLDef(0x34C3BB53)] - public partial class ChannelParticipantAdmin : ChannelParticipantBase + public sealed partial class ChannelParticipantAdmin : ChannelParticipantBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7840,7 +7840,7 @@ namespace TL } /// Banned/kicked user See [TLDef(0x6DF8014E)] - public partial class ChannelParticipantBanned : ChannelParticipantBase + public sealed partial class ChannelParticipantBanned : ChannelParticipantBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7861,54 +7861,54 @@ namespace TL } /// A participant that left the channel/supergroup See [TLDef(0x1B03F006)] - public partial class ChannelParticipantLeft : ChannelParticipantBase + public sealed partial class ChannelParticipantLeft : ChannelParticipantBase { /// The peer that left public Peer peer; } /// Filter for fetching channel participants See Derived classes: , , , , , , , - public abstract class ChannelParticipantsFilter : IObject { } + public abstract partial class ChannelParticipantsFilter : IObject { } /// Fetch only recent participants See [TLDef(0xDE3F3C79)] - public class ChannelParticipantsRecent : ChannelParticipantsFilter { } + public sealed partial class ChannelParticipantsRecent : ChannelParticipantsFilter { } /// Fetch only admin participants See [TLDef(0xB4608969)] - public class ChannelParticipantsAdmins : ChannelParticipantsFilter { } + public sealed partial class ChannelParticipantsAdmins : ChannelParticipantsFilter { } /// Fetch only kicked participants See [TLDef(0xA3B54985)] - public class ChannelParticipantsKicked : ChannelParticipantsFilter + public sealed partial class ChannelParticipantsKicked : ChannelParticipantsFilter { /// Optional filter for searching kicked participants by name (otherwise empty) public string q; } /// Fetch only bot participants See [TLDef(0xB0D1865B)] - public class ChannelParticipantsBots : ChannelParticipantsFilter { } + public sealed partial class ChannelParticipantsBots : ChannelParticipantsFilter { } /// Fetch only banned participants See [TLDef(0x1427A5E1)] - public class ChannelParticipantsBanned : ChannelParticipantsFilter + public sealed partial class ChannelParticipantsBanned : ChannelParticipantsFilter { /// Optional filter for searching banned participants by name (otherwise empty) public string q; } /// Query participants by name See [TLDef(0x0656AC4B)] - public class ChannelParticipantsSearch : ChannelParticipantsFilter + public sealed partial class ChannelParticipantsSearch : ChannelParticipantsFilter { /// Search query public string q; } /// Fetch only participants that are also contacts See [TLDef(0xBB6AE88D)] - public class ChannelParticipantsContacts : ChannelParticipantsFilter + public sealed partial class ChannelParticipantsContacts : ChannelParticipantsFilter { /// Optional search query for searching contact participants by name public string q; } /// This filter is used when looking for supergroup members to mention.
This filter will automatically remove anonymous admins, and return even non-participant users that replied to a specific
thread through the comment section of a channel. See
[TLDef(0xE04B5CEB)] - public class ChannelParticipantsMentions : ChannelParticipantsFilter + public sealed partial class ChannelParticipantsMentions : ChannelParticipantsFilter { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7929,7 +7929,7 @@ namespace TL /// Represents multiple channel participants See /// a value means channels.channelParticipantsNotModified [TLDef(0x9AB0FEAF)] - public class Channels_ChannelParticipants : IObject, IPeerResolver + public sealed partial class Channels_ChannelParticipants : IObject, IPeerResolver { /// Total number of participants that correspond to the given query public int count; @@ -7945,7 +7945,7 @@ namespace TL /// Represents a channel participant See [TLDef(0xDFB80317)] - public class Channels_ChannelParticipant : IObject, IPeerResolver + public sealed partial class Channels_ChannelParticipant : IObject, IPeerResolver { /// The channel participant public ChannelParticipantBase participant; @@ -7959,7 +7959,7 @@ namespace TL /// Info about the latest telegram Terms Of Service See [TLDef(0x780A0310)] - public class Help_TermsOfService : IObject + public sealed partial class Help_TermsOfService : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -7984,7 +7984,7 @@ namespace TL /// Saved gifs See /// a value means messages.savedGifsNotModified [TLDef(0x84A02A0D)] - public class Messages_SavedGifs : IObject + public sealed partial class Messages_SavedGifs : IObject { /// Hash for pagination, for more info click here public long hash; @@ -7993,10 +7993,10 @@ namespace TL } /// Represents a sent inline message from the perspective of a bot See Derived classes: , , , , , , , - public abstract class InputBotInlineMessage : IObject { } + public abstract partial class InputBotInlineMessage : IObject { } /// A media See [TLDef(0x3380C786)] - public class InputBotInlineMessageMediaAuto : InputBotInlineMessage + public sealed partial class InputBotInlineMessageMediaAuto : InputBotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8019,7 +8019,7 @@ namespace TL } /// Simple text message See [TLDef(0x3DCD7A87)] - public class InputBotInlineMessageText : InputBotInlineMessage + public sealed partial class InputBotInlineMessageText : InputBotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8044,7 +8044,7 @@ namespace TL } /// Geolocation See [TLDef(0x96929A85)] - public class InputBotInlineMessageMediaGeo : InputBotInlineMessage + public sealed partial class InputBotInlineMessageMediaGeo : InputBotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8073,7 +8073,7 @@ namespace TL } /// Venue See [TLDef(0x417BBF11)] - public class InputBotInlineMessageMediaVenue : InputBotInlineMessage + public sealed partial class InputBotInlineMessageMediaVenue : InputBotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8100,7 +8100,7 @@ namespace TL } /// A contact See [TLDef(0xA6EDBFFD)] - public class InputBotInlineMessageMediaContact : InputBotInlineMessage + public sealed partial class InputBotInlineMessageMediaContact : InputBotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8123,7 +8123,7 @@ namespace TL } /// A game See [TLDef(0x4B425864)] - public class InputBotInlineMessageGame : InputBotInlineMessage + public sealed partial class InputBotInlineMessageGame : InputBotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8138,7 +8138,7 @@ namespace TL } /// An invoice See [TLDef(0xD7E78225)] - public class InputBotInlineMessageMediaInvoice : InputBotInlineMessage + public sealed partial class InputBotInlineMessageMediaInvoice : InputBotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8169,7 +8169,7 @@ namespace TL } /// Specifies options that will be used to generate the link preview for the message, or even a standalone link preview without an attached message. See [TLDef(0xBDDCC510)] - public class InputBotInlineMessageMediaWebPage : InputBotInlineMessage + public sealed partial class InputBotInlineMessageMediaWebPage : InputBotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8200,7 +8200,7 @@ namespace TL } /// Inline bot result See Derived classes: , , , - public abstract class InputBotInlineResultBase : IObject + public abstract partial class InputBotInlineResultBase : IObject { /// ID of result public abstract string ID { get; set; } @@ -8209,7 +8209,7 @@ namespace TL } /// An inline bot result See [TLDef(0x88BF9319)] - public class InputBotInlineResult : InputBotInlineResultBase + public sealed partial class InputBotInlineResult : InputBotInlineResultBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8251,7 +8251,7 @@ namespace TL } /// Photo See [TLDef(0xA8D864A7)] - public class InputBotInlineResultPhoto : InputBotInlineResultBase + public sealed partial class InputBotInlineResultPhoto : InputBotInlineResultBase { /// Result ID public string id; @@ -8269,7 +8269,7 @@ namespace TL } /// Document (media of any type except for photos) See [TLDef(0xFFF8FDC4)] - public class InputBotInlineResultDocument : InputBotInlineResultBase + public sealed partial class InputBotInlineResultDocument : InputBotInlineResultBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8301,7 +8301,7 @@ namespace TL } /// Game See [TLDef(0x4FA417F2)] - public class InputBotInlineResultGame : InputBotInlineResultBase + public sealed partial class InputBotInlineResultGame : InputBotInlineResultBase { /// Result ID public string id; @@ -8317,10 +8317,10 @@ namespace TL } /// Inline message See Derived classes: , , , , , , - public abstract class BotInlineMessage : IObject { } + public abstract partial class BotInlineMessage : IObject { } /// Send whatever media is attached to the See [TLDef(0x764CF810)] - public class BotInlineMessageMediaAuto : BotInlineMessage + public sealed partial class BotInlineMessageMediaAuto : BotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8343,7 +8343,7 @@ namespace TL } /// Send a simple text message See [TLDef(0x8C7F65E2)] - public class BotInlineMessageText : BotInlineMessage + public sealed partial class BotInlineMessageText : BotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8368,7 +8368,7 @@ namespace TL } /// Send a geolocation See [TLDef(0x051846FD)] - public class BotInlineMessageMediaGeo : BotInlineMessage + public sealed partial class BotInlineMessageMediaGeo : BotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8397,7 +8397,7 @@ namespace TL } /// Send a venue See [TLDef(0x8A86659C)] - public class BotInlineMessageMediaVenue : BotInlineMessage + public sealed partial class BotInlineMessageMediaVenue : BotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8424,7 +8424,7 @@ namespace TL } /// Send a contact See [TLDef(0x18D1CDC2)] - public class BotInlineMessageMediaContact : BotInlineMessage + public sealed partial class BotInlineMessageMediaContact : BotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8447,7 +8447,7 @@ namespace TL } /// Send an invoice See [TLDef(0x354A9B09)] - public class BotInlineMessageMediaInvoice : BotInlineMessage + public sealed partial class BotInlineMessageMediaInvoice : BotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8478,7 +8478,7 @@ namespace TL } /// Specifies options that must be used to generate the link preview for the message, or even a standalone link preview without an attached message. See [TLDef(0x809AD9A6)] - public class BotInlineMessageMediaWebPage : BotInlineMessage + public sealed partial class BotInlineMessageMediaWebPage : BotInlineMessage { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8511,7 +8511,7 @@ namespace TL } /// Results of an inline query See Derived classes: , - public abstract class BotInlineResultBase : IObject + public abstract partial class BotInlineResultBase : IObject { /// Result ID public virtual string ID => default; @@ -8526,7 +8526,7 @@ namespace TL } /// Generic result See [TLDef(0x11965F3A)] - public class BotInlineResult : BotInlineResultBase + public sealed partial class BotInlineResult : BotInlineResultBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8574,7 +8574,7 @@ namespace TL } /// Media result See [TLDef(0x17DB940B)] - public class BotInlineMediaResult : BotInlineResultBase + public sealed partial class BotInlineMediaResult : BotInlineResultBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8619,7 +8619,7 @@ namespace TL /// Result of a query to an inline bot See [TLDef(0xE021F2F6)] - public class Messages_BotResults : IObject + public sealed partial class Messages_BotResults : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8653,7 +8653,7 @@ namespace TL /// Link to a message in a supergroup/channel See [TLDef(0x5DAB1AF4)] - public class ExportedMessageLink : IObject + public sealed partial class ExportedMessageLink : IObject { /// URL public string link; @@ -8663,7 +8663,7 @@ namespace TL /// Info about a forwarded message See [TLDef(0x4E4DF4BB)] - public class MessageFwdHeader : IObject + public sealed partial class MessageFwdHeader : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8733,45 +8733,45 @@ namespace TL } /// Type of the verification code that was sent See Derived classes: , , , , , , , , - public abstract class Auth_SentCodeType : IObject { } + public abstract partial class Auth_SentCodeType : IObject { } /// The code was sent through the telegram app See [TLDef(0x3DBB5986)] - public class Auth_SentCodeTypeApp : Auth_SentCodeType + public sealed partial class Auth_SentCodeTypeApp : Auth_SentCodeType { /// Length of the code in bytes public int length; } /// The code was sent via SMS See [TLDef(0xC000BBA2)] - public class Auth_SentCodeTypeSms : Auth_SentCodeType + public partial class Auth_SentCodeTypeSms : Auth_SentCodeType { /// Length of the code in bytes public int length; } /// The code will be sent via a phone call: a synthesized voice will tell the user which verification code to input. See [TLDef(0x5353E5A7)] - public class Auth_SentCodeTypeCall : Auth_SentCodeType + public partial class Auth_SentCodeTypeCall : Auth_SentCodeType { /// Length of the verification code public int length; } /// The code will be sent via a flash phone call, that will be closed immediately. The phone code will then be the phone number itself, just make sure that the phone number matches the specified pattern. See [TLDef(0xAB03C6D9)] - public class Auth_SentCodeTypeFlashCall : Auth_SentCodeType + public sealed partial class Auth_SentCodeTypeFlashCall : Auth_SentCodeType { /// pattern to match public string pattern; } /// The code will be sent via a flash phone call, that will be closed immediately. The last digits of the phone number that calls are the code that must be entered manually by the user. See [TLDef(0x82006484)] - public class Auth_SentCodeTypeMissedCall : Auth_SentCodeTypeCall + public sealed partial class Auth_SentCodeTypeMissedCall : Auth_SentCodeTypeCall { /// Prefix of the phone number from which the call will be made public string prefix; } /// The code was sent via the previously configured login email » See [TLDef(0xF450F59B)] - public class Auth_SentCodeTypeEmailCode : Auth_SentCodeType + public sealed partial class Auth_SentCodeTypeEmailCode : Auth_SentCodeType { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8798,7 +8798,7 @@ namespace TL } /// The user should add and verify an email address in order to login as described here ». See [TLDef(0xA5491DEA)] - public class Auth_SentCodeTypeSetUpEmailRequired : Auth_SentCodeType + public sealed partial class Auth_SentCodeTypeSetUpEmailRequired : Auth_SentCodeType { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8813,14 +8813,14 @@ namespace TL } /// The code was delivered via fragment.com. See [TLDef(0xD9565C39)] - public class Auth_SentCodeTypeFragmentSms : Auth_SentCodeTypeSms + public sealed partial class Auth_SentCodeTypeFragmentSms : Auth_SentCodeTypeSms { /// Open the specified URL to log into fragment.com with the wallet that owns the specified phone number and view the code. public string url; } /// An authentication code should be delivered via SMS after Firebase attestation, as described in the auth documentation ». See [TLDef(0xE57B1432)] - public class Auth_SentCodeTypeFirebaseSms : Auth_SentCodeTypeSms + public sealed partial class Auth_SentCodeTypeFirebaseSms : Auth_SentCodeTypeSms { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8842,7 +8842,7 @@ namespace TL /// Callback answer sent by the bot in response to a button press See [TLDef(0x36585EA4)] - public class Messages_BotCallbackAnswer : IObject + public sealed partial class Messages_BotCallbackAnswer : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8870,7 +8870,7 @@ namespace TL /// Message edit data for media See [TLDef(0x26B5DDE6)] - public class Messages_MessageEditData : IObject + public sealed partial class Messages_MessageEditData : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -8883,7 +8883,7 @@ namespace TL } /// Represents a sent inline message from the perspective of a bot See Derived classes: , - public abstract class InputBotInlineMessageIDBase : IObject + public abstract partial class InputBotInlineMessageIDBase : IObject { /// DC ID to use when working with this inline message public abstract int DcId { get; set; } @@ -8892,7 +8892,7 @@ namespace TL } /// Represents a sent inline message from the perspective of a bot (legacy constructor) See [TLDef(0x890C3D89)] - public class InputBotInlineMessageID : InputBotInlineMessageIDBase + public sealed partial class InputBotInlineMessageID : InputBotInlineMessageIDBase { /// DC ID to use when working with this inline message public int dc_id; @@ -8908,7 +8908,7 @@ namespace TL } /// Represents a sent inline message from the perspective of a bot See [TLDef(0xB6D915D7)] - public class InputBotInlineMessageID64 : InputBotInlineMessageIDBase + public sealed partial class InputBotInlineMessageID64 : InputBotInlineMessageIDBase { /// DC ID to use when working with this inline message public int dc_id; @@ -8927,7 +8927,7 @@ namespace TL /// The bot requested the user to message them in private See [TLDef(0x3C20629F)] - public class InlineBotSwitchPM : IObject + public sealed partial class InlineBotSwitchPM : IObject { /// Text for the button that switches the user to a private chat with the bot and sends the bot a start message with the parameter start_parameter (can be empty) public string text; @@ -8937,7 +8937,7 @@ namespace TL /// Dialog info of multiple peers See [TLDef(0x3371C354)] - public partial class Messages_PeerDialogs : IObject, IPeerResolver + public sealed partial class Messages_PeerDialogs : IObject, IPeerResolver { /// Dialog info public DialogBase[] dialogs; @@ -8955,7 +8955,7 @@ namespace TL /// Top peer See [TLDef(0xEDCDC05B)] - public class TopPeer : IObject + public sealed partial class TopPeer : IObject { /// Peer public Peer peer; @@ -8986,7 +8986,7 @@ namespace TL /// Top peer category See [TLDef(0xFB834291)] - public class TopPeerCategoryPeers : IObject + public sealed partial class TopPeerCategoryPeers : IObject { /// Top peer category of peers public TopPeerCategory category; @@ -8998,10 +8998,10 @@ namespace TL /// Top peers See Derived classes: , /// a value means contacts.topPeersNotModified - public abstract class Contacts_TopPeersBase : IObject { } + public abstract partial class Contacts_TopPeersBase : IObject { } /// Top peers See [TLDef(0x70B772A8)] - public class Contacts_TopPeers : Contacts_TopPeersBase, IPeerResolver + public sealed partial class Contacts_TopPeers : Contacts_TopPeersBase, IPeerResolver { /// Top peers by top peer category public TopPeerCategoryPeers[] categories; @@ -9014,13 +9014,13 @@ namespace TL } /// Top peers disabled See [TLDef(0xB52C939D)] - public class Contacts_TopPeersDisabled : Contacts_TopPeersBase { } + public sealed partial class Contacts_TopPeersDisabled : Contacts_TopPeersBase { } /// Represents a message draft. See Derived classes: , - public abstract class DraftMessageBase : IObject { } + public abstract partial class DraftMessageBase : IObject { } /// Empty draft See [TLDef(0x1B0C841A)] - public class DraftMessageEmpty : DraftMessageBase + public sealed partial class DraftMessageEmpty : DraftMessageBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -9035,7 +9035,7 @@ namespace TL } /// Represents a message draft. See [TLDef(0x3FCCF7EF)] - public class DraftMessage : DraftMessageBase + public sealed partial class DraftMessage : DraftMessageBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -9066,17 +9066,17 @@ namespace TL } /// Featured stickers See Derived classes: , - public abstract class Messages_FeaturedStickersBase : IObject { } + public abstract partial class Messages_FeaturedStickersBase : IObject { } /// Featured stickers haven't changed See [TLDef(0xC6DC0C66)] - public class Messages_FeaturedStickersNotModified : Messages_FeaturedStickersBase + public sealed partial class Messages_FeaturedStickersNotModified : Messages_FeaturedStickersBase { /// Total number of featured stickers public int count; } /// Featured stickersets See [TLDef(0xBE382906)] - public class Messages_FeaturedStickers : Messages_FeaturedStickersBase + public sealed partial class Messages_FeaturedStickers : Messages_FeaturedStickersBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -9099,7 +9099,7 @@ namespace TL /// Recently used stickers See /// a value means messages.recentStickersNotModified [TLDef(0x88D37C56)] - public class Messages_RecentStickers : IObject + public sealed partial class Messages_RecentStickers : IObject { /// Hash for pagination, for more info click here public long hash; @@ -9113,7 +9113,7 @@ namespace TL /// Archived stickersets See [TLDef(0x4FCBA9C8)] - public class Messages_ArchivedStickers : IObject + public sealed partial class Messages_ArchivedStickers : IObject { /// Number of archived stickers public int count; @@ -9122,27 +9122,27 @@ namespace TL } /// Result of stickerset installation process See Derived classes: , - public abstract class Messages_StickerSetInstallResult : IObject { } + public abstract partial class Messages_StickerSetInstallResult : IObject { } /// The stickerset was installed successfully See [TLDef(0x38641628)] - public class Messages_StickerSetInstallResultSuccess : Messages_StickerSetInstallResult { } + public sealed partial class Messages_StickerSetInstallResultSuccess : Messages_StickerSetInstallResult { } /// The stickerset was installed, but since there are too many stickersets some were archived See [TLDef(0x35E410A8)] - public class Messages_StickerSetInstallResultArchive : Messages_StickerSetInstallResult + public sealed partial class Messages_StickerSetInstallResultArchive : Messages_StickerSetInstallResult { /// Archived stickersets public StickerSetCoveredBase[] sets; } /// Stickerset preview See Derived classes: , , , - public abstract class StickerSetCoveredBase : IObject + public abstract partial class StickerSetCoveredBase : IObject { /// Stickerset public virtual StickerSet Set => default; } /// Stickerset with a single sticker as preview See [TLDef(0x6410A5D2)] - public class StickerSetCovered : StickerSetCoveredBase + public sealed partial class StickerSetCovered : StickerSetCoveredBase { /// Stickerset public StickerSet set; @@ -9154,7 +9154,7 @@ namespace TL } /// Stickerset, with multiple stickers as preview See [TLDef(0x3407E51B)] - public class StickerSetMultiCovered : StickerSetCoveredBase + public sealed partial class StickerSetMultiCovered : StickerSetCoveredBase { /// Stickerset public StickerSet set; @@ -9166,7 +9166,7 @@ namespace TL } /// Stickerset preview with all stickers of the stickerset included.
Currently used only for
custom emoji stickersets, to avoid a further call to Messages_GetStickerSet. See
[TLDef(0x40D13C0E)] - public class StickerSetFullCovered : StickerSetCoveredBase + public sealed partial class StickerSetFullCovered : StickerSetCoveredBase { /// Stickerset public StickerSet set; @@ -9182,7 +9182,7 @@ namespace TL } /// Just the stickerset information, with no previews. See [TLDef(0x77B15D1C)] - public class StickerSetNoCovered : StickerSetCoveredBase + public sealed partial class StickerSetNoCovered : StickerSetCoveredBase { /// Stickerset information. public StickerSet set; @@ -9193,7 +9193,7 @@ namespace TL /// Position on a photo where a mask should be placed when attaching stickers to media » See [TLDef(0xAED6DBB2)] - public class MaskCoords : IObject + public sealed partial class MaskCoords : IObject { /// Part of the face, relative to which the mask should be placed public int n; @@ -9206,17 +9206,17 @@ namespace TL } /// Represents a media with attached stickers See Derived classes: , - public abstract class InputStickeredMedia : IObject { } + public abstract partial class InputStickeredMedia : IObject { } /// A photo with stickers attached See [TLDef(0x4A992157)] - public class InputStickeredMediaPhoto : InputStickeredMedia + public sealed partial class InputStickeredMediaPhoto : InputStickeredMedia { /// The photo public InputPhoto id; } /// A document with stickers attached See [TLDef(0x0438865B)] - public class InputStickeredMediaDocument : InputStickeredMedia + public sealed partial class InputStickeredMediaDocument : InputStickeredMedia { /// The document public InputDocument id; @@ -9224,7 +9224,7 @@ namespace TL /// Indicates an already sent game See [TLDef(0xBDF9653B)] - public partial class Game : IObject + public sealed partial class Game : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -9251,10 +9251,10 @@ namespace TL } /// A game to send See Derived classes: , - public abstract class InputGame : IObject { } + public abstract partial class InputGame : IObject { } /// Indicates an already sent game See [TLDef(0x032C3E77)] - public class InputGameID : InputGame + public sealed partial class InputGameID : InputGame { /// game ID from constructor public long id; @@ -9263,7 +9263,7 @@ namespace TL } /// Game by short name See [TLDef(0xC331E80A)] - public class InputGameShortName : InputGame + public sealed partial class InputGameShortName : InputGame { /// The bot that provides the game public InputUserBase bot_id; @@ -9273,7 +9273,7 @@ namespace TL /// Game highscore See [TLDef(0x73A379EB)] - public class HighScore : IObject + public sealed partial class HighScore : IObject { /// Position in highscore list public int pos; @@ -9285,7 +9285,7 @@ namespace TL /// Highscores in a game See [TLDef(0x9A3BFD99)] - public class Messages_HighScores : IObject + public sealed partial class Messages_HighScores : IObject { /// Highscores public HighScore[] scores; @@ -9295,52 +9295,52 @@ namespace TL /// Rich text See Derived classes: , , , , , , , , , , , , , , /// a value means textEmpty - public abstract class RichText : IObject { } + public abstract partial class RichText : IObject { } /// Plain text See [TLDef(0x744694E0)] - public class TextPlain : RichText + public sealed partial class TextPlain : RichText { /// Text public string text; } /// Bold text See [TLDef(0x6724ABC4)] - public class TextBold : RichText + public sealed partial class TextBold : RichText { /// Text public RichText text; } /// Italic text See [TLDef(0xD912A59C)] - public class TextItalic : RichText + public sealed partial class TextItalic : RichText { /// Text public RichText text; } /// Underlined text See [TLDef(0xC12622C4)] - public class TextUnderline : RichText + public sealed partial class TextUnderline : RichText { /// Text public RichText text; } /// Strikethrough text See [TLDef(0x9BF8BB95)] - public class TextStrike : RichText + public sealed partial class TextStrike : RichText { /// Text public RichText text; } /// fixed-width rich text See [TLDef(0x6C3F19B9)] - public class TextFixed : RichText + public sealed partial class TextFixed : RichText { /// Text public RichText text; } /// Link See [TLDef(0x3C2884C1)] - public class TextUrl : RichText + public sealed partial class TextUrl : RichText { /// Text of link public RichText text; @@ -9351,7 +9351,7 @@ namespace TL } /// Rich text email link See [TLDef(0xDE5A0DD6)] - public class TextEmail : RichText + public sealed partial class TextEmail : RichText { /// Link text public RichText text; @@ -9360,35 +9360,35 @@ namespace TL } /// Concatenation of rich texts See [TLDef(0x7E6260D7)] - public class TextConcat : RichText + public sealed partial class TextConcat : RichText { /// Concatenated rich texts public RichText[] texts; } /// Subscript text See [TLDef(0xED6A8504)] - public class TextSubscript : RichText + public sealed partial class TextSubscript : RichText { /// Text public RichText text; } /// Superscript text See [TLDef(0xC7FB5E01)] - public class TextSuperscript : RichText + public sealed partial class TextSuperscript : RichText { /// Text public RichText text; } /// Highlighted text See [TLDef(0x034B8621)] - public class TextMarked : RichText + public sealed partial class TextMarked : RichText { /// Text public RichText text; } /// Rich text linked to a phone number See [TLDef(0x1CCB966A)] - public class TextPhone : RichText + public sealed partial class TextPhone : RichText { /// Text public RichText text; @@ -9397,7 +9397,7 @@ namespace TL } /// Inline image See [TLDef(0x081CCF4F)] - public class TextImage : RichText + public sealed partial class TextImage : RichText { /// Document ID public long document_id; @@ -9408,7 +9408,7 @@ namespace TL } /// Text linking to another section of the page See [TLDef(0x35553762)] - public class TextAnchor : RichText + public sealed partial class TextAnchor : RichText { /// Text public RichText text; @@ -9417,27 +9417,27 @@ namespace TL } /// Represents an instant view page element See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , - public abstract class PageBlock : IObject { } + public abstract partial class PageBlock : IObject { } /// Unsupported IV element See [TLDef(0x13567E8A)] - public class PageBlockUnsupported : PageBlock { } + public sealed partial class PageBlockUnsupported : PageBlock { } /// Title See [TLDef(0x70ABC3FD)] - public class PageBlockTitle : PageBlock + public sealed partial class PageBlockTitle : PageBlock { /// Title public RichText text; } /// Subtitle See [TLDef(0x8FFA9A1F)] - public class PageBlockSubtitle : PageBlock + public sealed partial class PageBlockSubtitle : PageBlock { /// Text public RichText text; } /// Author and date of creation of article See [TLDef(0xBAAFE5E0)] - public class PageBlockAuthorDate : PageBlock + public sealed partial class PageBlockAuthorDate : PageBlock { /// Author name public RichText author; @@ -9446,28 +9446,28 @@ namespace TL } /// Page header See [TLDef(0xBFD064EC)] - public class PageBlockHeader : PageBlock + public sealed partial class PageBlockHeader : PageBlock { /// Contents public RichText text; } /// Subheader See [TLDef(0xF12BB6E1)] - public class PageBlockSubheader : PageBlock + public sealed partial class PageBlockSubheader : PageBlock { /// Subheader public RichText text; } /// A paragraph See [TLDef(0x467A0766)] - public class PageBlockParagraph : PageBlock + public sealed partial class PageBlockParagraph : PageBlock { /// Text public RichText text; } /// Preformatted (<pre> text) See [TLDef(0xC070D93E)] - public class PageBlockPreformatted : PageBlock + public sealed partial class PageBlockPreformatted : PageBlock { /// Text public RichText text; @@ -9476,31 +9476,31 @@ namespace TL } /// Page footer See [TLDef(0x48870999)] - public class PageBlockFooter : PageBlock + public sealed partial class PageBlockFooter : PageBlock { /// Contents public RichText text; } /// An empty block separating a page See [TLDef(0xDB20B188)] - public class PageBlockDivider : PageBlock { } + public sealed partial class PageBlockDivider : PageBlock { } /// Link to section within the page itself (like <a href="#target">anchor</a>) See [TLDef(0xCE0D37B0)] - public class PageBlockAnchor : PageBlock + public sealed partial class PageBlockAnchor : PageBlock { /// Name of target section public string name; } /// Unordered list of IV blocks See [TLDef(0xE4E88011)] - public class PageBlockList : PageBlock + public sealed partial class PageBlockList : PageBlock { /// List of blocks in an IV page public PageListItem[] items; } /// Quote (equivalent to the HTML <blockquote>) See [TLDef(0x263D7C26)] - public class PageBlockBlockquote : PageBlock + public sealed partial class PageBlockBlockquote : PageBlock { /// Quote contents public RichText text; @@ -9509,7 +9509,7 @@ namespace TL } /// Pullquote See [TLDef(0x4F4456D3)] - public class PageBlockPullquote : PageBlock + public sealed partial class PageBlockPullquote : PageBlock { /// Text public RichText text; @@ -9518,7 +9518,7 @@ namespace TL } /// A photo See [TLDef(0x1759C560)] - public class PageBlockPhoto : PageBlock + public sealed partial class PageBlockPhoto : PageBlock { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -9539,7 +9539,7 @@ namespace TL } /// Video See [TLDef(0x7C8FE7B6)] - public class PageBlockVideo : PageBlock + public sealed partial class PageBlockVideo : PageBlock { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -9558,14 +9558,14 @@ namespace TL } /// A page cover See [TLDef(0x39F23300)] - public class PageBlockCover : PageBlock + public sealed partial class PageBlockCover : PageBlock { /// Cover public PageBlock cover; } /// An embedded webpage See [TLDef(0xA8718DC5)] - public class PageBlockEmbed : PageBlock + public sealed partial class PageBlockEmbed : PageBlock { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -9600,7 +9600,7 @@ namespace TL } /// An embedded post See [TLDef(0xF259A80B)] - public class PageBlockEmbedPost : PageBlock + public sealed partial class PageBlockEmbedPost : PageBlock { /// Web page URL public string url; @@ -9619,7 +9619,7 @@ namespace TL } /// Collage of media See [TLDef(0x65A0FA4D)] - public class PageBlockCollage : PageBlock + public sealed partial class PageBlockCollage : PageBlock { /// Media elements public PageBlock[] items; @@ -9628,7 +9628,7 @@ namespace TL } /// Slideshow See [TLDef(0x031F9590)] - public class PageBlockSlideshow : PageBlock + public sealed partial class PageBlockSlideshow : PageBlock { /// Slideshow items public PageBlock[] items; @@ -9637,14 +9637,14 @@ namespace TL } /// Reference to a telegram channel See [TLDef(0xEF1751B5)] - public class PageBlockChannel : PageBlock + public sealed partial class PageBlockChannel : PageBlock { /// The channel/supergroup/chat public ChatBase channel; } /// Audio See [TLDef(0x804361EA)] - public class PageBlockAudio : PageBlock + public sealed partial class PageBlockAudio : PageBlock { /// Audio ID (to be fetched from the container public long audio_id; @@ -9653,14 +9653,14 @@ namespace TL } /// Kicker See [TLDef(0x1E148390)] - public class PageBlockKicker : PageBlock + public sealed partial class PageBlockKicker : PageBlock { /// Contents public RichText text; } /// Table See [TLDef(0xBF4DEA82)] - public class PageBlockTable : PageBlock + public sealed partial class PageBlockTable : PageBlock { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -9679,14 +9679,14 @@ namespace TL } /// Ordered list of IV blocks See [TLDef(0x9A8AE1E1)] - public class PageBlockOrderedList : PageBlock + public sealed partial class PageBlockOrderedList : PageBlock { /// List items public PageListOrderedItem[] items; } /// A collapsible details block See [TLDef(0x76768BED)] - public class PageBlockDetails : PageBlock + public sealed partial class PageBlockDetails : PageBlock { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -9703,7 +9703,7 @@ namespace TL } /// Related articles See [TLDef(0x16115A96)] - public class PageBlockRelatedArticles : PageBlock + public sealed partial class PageBlockRelatedArticles : PageBlock { /// Title public RichText title; @@ -9712,7 +9712,7 @@ namespace TL } /// A map See [TLDef(0xA44F3EF6)] - public class PageBlockMap : PageBlock + public sealed partial class PageBlockMap : PageBlock { /// Location of the map center public GeoPoint geo; @@ -9741,7 +9741,7 @@ namespace TL /// Represents a json-encoded object See [TLDef(0x7D748D04)] - public class DataJSON : IObject + public sealed partial class DataJSON : IObject { /// JSON-encoded object public string data; @@ -9749,7 +9749,7 @@ namespace TL /// This object represents a portion of the price for goods or services. See [TLDef(0xCB296BF8)] - public class LabeledPrice : IObject + public sealed partial class LabeledPrice : IObject { /// Portion label public string label; @@ -9759,7 +9759,7 @@ namespace TL /// Invoice See [TLDef(0x5DB95A15)] - public class Invoice : IObject + public sealed partial class Invoice : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -9803,7 +9803,7 @@ namespace TL /// Payment identifier See [TLDef(0xEA02C27E)] - public class PaymentCharge : IObject + public sealed partial class PaymentCharge : IObject { /// Telegram payment identifier public string id; @@ -9813,7 +9813,7 @@ namespace TL /// Shipping address See [TLDef(0x1E8CAAEB)] - public class PostAddress : IObject + public sealed partial class PostAddress : IObject { /// First line for the address public string street_line1; @@ -9831,7 +9831,7 @@ namespace TL /// Order info provided by the user See [TLDef(0x909C3F94)] - public class PaymentRequestedInfo : IObject + public sealed partial class PaymentRequestedInfo : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -9858,10 +9858,10 @@ namespace TL } /// Saved payment credentials See Derived classes: - public abstract class PaymentSavedCredentials : IObject { } + public abstract partial class PaymentSavedCredentials : IObject { } /// Saved credit card See [TLDef(0xCDC27A1F)] - public class PaymentSavedCredentialsCard : PaymentSavedCredentials + public sealed partial class PaymentSavedCredentialsCard : PaymentSavedCredentials { /// Card ID public string id; @@ -9883,7 +9883,7 @@ namespace TL } /// Remote document See [TLDef(0x1C570ED1)] - public partial class WebDocument : WebDocumentBase + public sealed partial class WebDocument : WebDocumentBase { /// Document URL public string url; @@ -9907,7 +9907,7 @@ namespace TL } /// Remote document that can be downloaded without proxying through telegram See [TLDef(0xF9C8BCC6)] - public class WebDocumentNoProxy : WebDocumentBase + public sealed partial class WebDocumentNoProxy : WebDocumentBase { /// Document URL public string url; @@ -9930,7 +9930,7 @@ namespace TL /// The document See [TLDef(0x9BED434D)] - public class InputWebDocument : IObject + public sealed partial class InputWebDocument : IObject { /// Remote document URL to be downloaded using the appropriate method public string url; @@ -9943,10 +9943,10 @@ namespace TL } /// Location of remote file See Derived classes: , , - public abstract class InputWebFileLocationBase : IObject { } + public abstract partial class InputWebFileLocationBase : IObject { } /// Location of a remote HTTP(s) file See [TLDef(0xC239D686)] - public class InputWebFileLocation : InputWebFileLocationBase + public sealed partial class InputWebFileLocation : InputWebFileLocationBase { /// HTTP URL of file public string url; @@ -9955,7 +9955,7 @@ namespace TL } /// Used to download a server-generated image with the map preview from a , see the webfile docs for more info ». See [TLDef(0x9F2221C9)] - public class InputWebFileGeoPointLocation : InputWebFileLocationBase + public sealed partial class InputWebFileGeoPointLocation : InputWebFileLocationBase { /// Generated from the lat, long and accuracy_radius parameters of the public InputGeoPoint geo_point; @@ -9972,7 +9972,7 @@ namespace TL } /// Used to download an album cover for any music file using Upload_GetWebFile, see the webfile docs for more info ». See [TLDef(0xF46FE924)] - public class InputWebFileAudioAlbumThumbLocation : InputWebFileLocationBase + public sealed partial class InputWebFileAudioAlbumThumbLocation : InputWebFileLocationBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -9996,7 +9996,7 @@ namespace TL /// Represents a chunk of an HTTP webfile downloaded through telegram's secure MTProto servers See [TLDef(0x21E753BC)] - public class Upload_WebFile : IObject + public sealed partial class Upload_WebFile : IObject { /// File size public int size; @@ -10012,7 +10012,7 @@ namespace TL /// Payment form See [TLDef(0xA0058751)] - public class Payments_PaymentForm : IObject + public sealed partial class Payments_PaymentForm : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10066,7 +10066,7 @@ namespace TL /// Validated user-provided info See [TLDef(0xD1451883)] - public class Payments_ValidatedRequestedInfo : IObject + public sealed partial class Payments_ValidatedRequestedInfo : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10085,17 +10085,17 @@ namespace TL } /// Payment result See Derived classes: , - public abstract class Payments_PaymentResultBase : IObject { } + public abstract partial class Payments_PaymentResultBase : IObject { } /// Payment result See [TLDef(0x4E5F810D)] - public class Payments_PaymentResult : Payments_PaymentResultBase + public sealed partial class Payments_PaymentResult : Payments_PaymentResultBase { /// Info about the payment public UpdatesBase updates; } /// Payment was not successful, additional verification is needed See [TLDef(0xD8411139)] - public class Payments_PaymentVerificationNeeded : Payments_PaymentResultBase + public sealed partial class Payments_PaymentVerificationNeeded : Payments_PaymentResultBase { /// URL for additional payment credentials verification public string url; @@ -10103,7 +10103,7 @@ namespace TL /// Receipt See [TLDef(0x70C4FE03)] - public class Payments_PaymentReceipt : IObject + public sealed partial class Payments_PaymentReceipt : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10151,7 +10151,7 @@ namespace TL /// Saved server-side order information See [TLDef(0xFB8FE43C)] - public class Payments_SavedInfo : IObject + public sealed partial class Payments_SavedInfo : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10168,10 +10168,10 @@ namespace TL } /// Payment credentials See Derived classes: , , , - public abstract class InputPaymentCredentialsBase : IObject { } + public abstract partial class InputPaymentCredentialsBase : IObject { } /// Saved payment credentials See [TLDef(0xC10EB2CF)] - public class InputPaymentCredentialsSaved : InputPaymentCredentialsBase + public sealed partial class InputPaymentCredentialsSaved : InputPaymentCredentialsBase { /// Credential ID public string id; @@ -10180,7 +10180,7 @@ namespace TL } /// Payment credentials See [TLDef(0x3417D728)] - public class InputPaymentCredentials : InputPaymentCredentialsBase + public sealed partial class InputPaymentCredentials : InputPaymentCredentialsBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10195,14 +10195,14 @@ namespace TL } /// Apple pay payment credentials See [TLDef(0x0AA1C39F)] - public class InputPaymentCredentialsApplePay : InputPaymentCredentialsBase + public sealed partial class InputPaymentCredentialsApplePay : InputPaymentCredentialsBase { /// Payment data public DataJSON payment_data; } /// Google Pay payment credentials See [TLDef(0x8AC32801)] - public class InputPaymentCredentialsGooglePay : InputPaymentCredentialsBase + public sealed partial class InputPaymentCredentialsGooglePay : InputPaymentCredentialsBase { /// Payment token public DataJSON payment_token; @@ -10210,7 +10210,7 @@ namespace TL /// Temporary payment password See [TLDef(0xDB64FD34)] - public class Account_TmpPassword : IObject + public sealed partial class Account_TmpPassword : IObject { /// Temporary password public byte[] tmp_password; @@ -10220,7 +10220,7 @@ namespace TL /// Shipping option See [TLDef(0xB6213CDF)] - public class ShippingOption : IObject + public sealed partial class ShippingOption : IObject { /// Option ID public string id; @@ -10232,7 +10232,7 @@ namespace TL /// Sticker in a stickerset See [TLDef(0x32DA9E9C)] - public class InputStickerSetItem : IObject + public sealed partial class InputStickerSetItem : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10256,7 +10256,7 @@ namespace TL /// Phone call See [TLDef(0x1E36FDED)] - public class InputPhoneCall : IObject + public sealed partial class InputPhoneCall : IObject { /// Call ID public long id; @@ -10282,7 +10282,7 @@ namespace TL } /// Empty constructor See [TLDef(0x5366C915)] - public class PhoneCallEmpty : PhoneCallBase + public sealed partial class PhoneCallEmpty : PhoneCallBase { /// Call ID public long id; @@ -10292,7 +10292,7 @@ namespace TL } /// Incoming phone call See [TLDef(0xC5226F17)] - public class PhoneCallWaiting : PhoneCallBase + public sealed partial class PhoneCallWaiting : PhoneCallBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10334,7 +10334,7 @@ namespace TL } /// Requested phone call See [TLDef(0x14B0ED0C)] - public class PhoneCallRequested : PhoneCallBase + public sealed partial class PhoneCallRequested : PhoneCallBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10374,7 +10374,7 @@ namespace TL } /// An accepted phone call See [TLDef(0x3660C311)] - public class PhoneCallAccepted : PhoneCallBase + public sealed partial class PhoneCallAccepted : PhoneCallBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10414,7 +10414,7 @@ namespace TL } /// Phone call See [TLDef(0x967F7C67)] - public class PhoneCall : PhoneCallBase + public sealed partial class PhoneCall : PhoneCallBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10462,7 +10462,7 @@ namespace TL } /// Indicates a discarded phone call See [TLDef(0x50CA4DE1)] - public class PhoneCallDiscarded : PhoneCallBase + public sealed partial class PhoneCallDiscarded : PhoneCallBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10492,7 +10492,7 @@ namespace TL } /// Phone call connection See Derived classes: , - public abstract class PhoneConnectionBase : IObject + public abstract partial class PhoneConnectionBase : IObject { /// Endpoint ID public virtual long ID => default; @@ -10505,7 +10505,7 @@ namespace TL } /// Identifies an endpoint that can be used to connect to the other user in a phone call See [TLDef(0x9CC123C7)] - public class PhoneConnection : PhoneConnectionBase + public sealed partial class PhoneConnection : PhoneConnectionBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10537,7 +10537,7 @@ namespace TL } /// WebRTC connection parameters See [TLDef(0x635FE375)] - public class PhoneConnectionWebrtc : PhoneConnectionBase + public sealed partial class PhoneConnectionWebrtc : PhoneConnectionBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10574,7 +10574,7 @@ namespace TL /// Protocol info for libtgvoip See [TLDef(0xFC878FC8)] - public class PhoneCallProtocol : IObject + public sealed partial class PhoneCallProtocol : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10596,7 +10596,7 @@ namespace TL /// A VoIP phone call See [TLDef(0xEC82E140)] - public class Phone_PhoneCall : IObject + public sealed partial class Phone_PhoneCall : IObject { /// The VoIP phone call public PhoneCallBase phone_call; @@ -10605,17 +10605,17 @@ namespace TL } /// Represents the download status of a CDN file See Derived classes: , - public abstract class Upload_CdnFileBase : IObject { } + public abstract partial class Upload_CdnFileBase : IObject { } /// The file was cleared from the temporary RAM cache of the CDN and has to be re-uploaded. See [TLDef(0xEEA8E46E)] - public class Upload_CdnFileReuploadNeeded : Upload_CdnFileBase + public sealed partial class Upload_CdnFileReuploadNeeded : Upload_CdnFileBase { /// Request token (see CDN) public byte[] request_token; } /// Represent a chunk of a CDN file. See [TLDef(0xA99FCA4F)] - public class Upload_CdnFile : Upload_CdnFileBase + public sealed partial class Upload_CdnFile : Upload_CdnFileBase { /// The data public byte[] bytes; @@ -10623,7 +10623,7 @@ namespace TL /// Public key to use only during handshakes to CDN DCs. See [TLDef(0xC982EABA)] - public class CdnPublicKey : IObject + public sealed partial class CdnPublicKey : IObject { /// CDN DC ID public int dc_id; @@ -10633,21 +10633,21 @@ namespace TL /// Configuration for CDN file downloads. See [TLDef(0x5725E40A)] - public class CdnConfig : IObject + public sealed partial class CdnConfig : IObject { /// Vector of public keys to use only during handshakes to CDN DCs. public CdnPublicKey[] public_keys; } /// Language pack string See Derived classes: , , - public abstract class LangPackStringBase : IObject + public abstract partial class LangPackStringBase : IObject { /// Language key public virtual string Key => default; } /// Translated localization string See [TLDef(0xCAD181F6)] - public class LangPackString : LangPackStringBase + public sealed partial class LangPackString : LangPackStringBase { /// Language key public string key; @@ -10659,7 +10659,7 @@ namespace TL } /// A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info See [TLDef(0x6C47AC9F)] - public class LangPackStringPluralized : LangPackStringBase + public sealed partial class LangPackStringPluralized : LangPackStringBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10697,7 +10697,7 @@ namespace TL } /// Deleted localization string See [TLDef(0x2979EEB2)] - public class LangPackStringDeleted : LangPackStringBase + public sealed partial class LangPackStringDeleted : LangPackStringBase { /// Localization key public string key; @@ -10708,7 +10708,7 @@ namespace TL /// Changes to the app's localization pack See [TLDef(0xF385C1F6)] - public class LangPackDifference : IObject + public sealed partial class LangPackDifference : IObject { /// Language code public string lang_code; @@ -10722,7 +10722,7 @@ namespace TL /// Identifies a localization pack See [TLDef(0xEECA5CE3)] - public class LangPackLanguage : IObject + public sealed partial class LangPackLanguage : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10757,10 +10757,10 @@ namespace TL } /// Channel admin log event See Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , - public abstract class ChannelAdminLogEventAction : IObject { } + public abstract partial class ChannelAdminLogEventAction : IObject { } /// Channel/supergroup title was changed See [TLDef(0xE6DFB825)] - public class ChannelAdminLogEventActionChangeTitle : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionChangeTitle : ChannelAdminLogEventAction { /// Previous title public string prev_value; @@ -10769,7 +10769,7 @@ namespace TL } /// The description was changed See [TLDef(0x55188A2E)] - public class ChannelAdminLogEventActionChangeAbout : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionChangeAbout : ChannelAdminLogEventAction { /// Previous description public string prev_value; @@ -10778,7 +10778,7 @@ namespace TL } /// Channel/supergroup username was changed See [TLDef(0x6A4AFC38)] - public class ChannelAdminLogEventActionChangeUsername : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionChangeUsername : ChannelAdminLogEventAction { /// Old username public string prev_value; @@ -10787,7 +10787,7 @@ namespace TL } /// The channel/supergroup's picture was changed See [TLDef(0x434BD2AF)] - public class ChannelAdminLogEventActionChangePhoto : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionChangePhoto : ChannelAdminLogEventAction { /// Previous picture public PhotoBase prev_photo; @@ -10796,28 +10796,28 @@ namespace TL } /// Invites were enabled/disabled See [TLDef(0x1B7907AE)] - public class ChannelAdminLogEventActionToggleInvites : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionToggleInvites : ChannelAdminLogEventAction { /// New value public bool new_value; } /// Channel signatures were enabled/disabled See [TLDef(0x26AE0971)] - public class ChannelAdminLogEventActionToggleSignatures : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionToggleSignatures : ChannelAdminLogEventAction { /// New value public bool new_value; } /// A message was pinned See [TLDef(0xE9E82C18)] - public class ChannelAdminLogEventActionUpdatePinned : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionUpdatePinned : ChannelAdminLogEventAction { /// The message that was pinned public MessageBase message; } /// A message was edited See [TLDef(0x709B2405)] - public class ChannelAdminLogEventActionEditMessage : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionEditMessage : ChannelAdminLogEventAction { /// Old message public MessageBase prev_message; @@ -10826,27 +10826,27 @@ namespace TL } /// A message was deleted See [TLDef(0x42E047BB)] - public class ChannelAdminLogEventActionDeleteMessage : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionDeleteMessage : ChannelAdminLogEventAction { /// The message that was deleted public MessageBase message; } /// A user has joined the group (in the case of big groups, info of the user that has joined isn't shown) See [TLDef(0x183040D3)] - public class ChannelAdminLogEventActionParticipantJoin : ChannelAdminLogEventAction { } + public sealed partial class ChannelAdminLogEventActionParticipantJoin : ChannelAdminLogEventAction { } /// A user left the channel/supergroup (in the case of big groups, info of the user that has joined isn't shown) See [TLDef(0xF89777F2)] - public class ChannelAdminLogEventActionParticipantLeave : ChannelAdminLogEventAction { } + public sealed partial class ChannelAdminLogEventActionParticipantLeave : ChannelAdminLogEventAction { } /// A user was invited to the group See [TLDef(0xE31C34D8)] - public class ChannelAdminLogEventActionParticipantInvite : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionParticipantInvite : ChannelAdminLogEventAction { /// The user that was invited public ChannelParticipantBase participant; } /// The banned rights of a user were changed See [TLDef(0xE6D83D7E)] - public class ChannelAdminLogEventActionParticipantToggleBan : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionParticipantToggleBan : ChannelAdminLogEventAction { /// Old banned rights of user public ChannelParticipantBase prev_participant; @@ -10855,7 +10855,7 @@ namespace TL } /// The admin rights of a user were changed See [TLDef(0xD5676710)] - public class ChannelAdminLogEventActionParticipantToggleAdmin : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionParticipantToggleAdmin : ChannelAdminLogEventAction { /// Previous admin rights public ChannelParticipantBase prev_participant; @@ -10864,7 +10864,7 @@ namespace TL } /// The supergroup's stickerset was changed See [TLDef(0xB1C3CAA7)] - public class ChannelAdminLogEventActionChangeStickerSet : ChannelAdminLogEventAction + public partial class ChannelAdminLogEventActionChangeStickerSet : ChannelAdminLogEventAction { /// Previous stickerset public InputStickerSet prev_stickerset; @@ -10873,14 +10873,14 @@ namespace TL } /// The hidden prehistory setting was Channels_TogglePreHistoryHidden See [TLDef(0x5F5C95F1)] - public class ChannelAdminLogEventActionTogglePreHistoryHidden : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionTogglePreHistoryHidden : ChannelAdminLogEventAction { /// New value public bool new_value; } /// The default banned rights were modified See [TLDef(0x2DF5FC0A)] - public class ChannelAdminLogEventActionDefaultBannedRights : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionDefaultBannedRights : ChannelAdminLogEventAction { /// Previous global banned rights public ChatBannedRights prev_banned_rights; @@ -10889,14 +10889,14 @@ namespace TL } /// A poll was stopped See [TLDef(0x8F079643)] - public class ChannelAdminLogEventActionStopPoll : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionStopPoll : ChannelAdminLogEventAction { /// The poll that was stopped public MessageBase message; } /// The linked chat was changed See [TLDef(0x050C7AC8)] - public class ChannelAdminLogEventActionChangeLinkedChat : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionChangeLinkedChat : ChannelAdminLogEventAction { /// Previous linked chat public long prev_value; @@ -10905,7 +10905,7 @@ namespace TL } /// The geogroup location was changed See [TLDef(0x0E6B76AE)] - public class ChannelAdminLogEventActionChangeLocation : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionChangeLocation : ChannelAdminLogEventAction { /// Previous location public ChannelLocation prev_value; @@ -10914,7 +10914,7 @@ namespace TL } /// Channels_ToggleSlowMode See [TLDef(0x53909779)] - public class ChannelAdminLogEventActionToggleSlowMode : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionToggleSlowMode : ChannelAdminLogEventAction { /// Previous slow mode value public int prev_value; @@ -10923,42 +10923,42 @@ namespace TL } /// A group call was started See [TLDef(0x23209745)] - public class ChannelAdminLogEventActionStartGroupCall : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionStartGroupCall : ChannelAdminLogEventAction { /// Group call public InputGroupCall call; } /// A group call was terminated See [TLDef(0xDB9F9140)] - public class ChannelAdminLogEventActionDiscardGroupCall : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionDiscardGroupCall : ChannelAdminLogEventAction { /// The group call that was terminated public InputGroupCall call; } /// A group call participant was muted See [TLDef(0xF92424D2)] - public class ChannelAdminLogEventActionParticipantMute : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionParticipantMute : ChannelAdminLogEventAction { /// The participant that was muted public GroupCallParticipant participant; } /// A group call participant was unmuted See [TLDef(0xE64429C0)] - public class ChannelAdminLogEventActionParticipantUnmute : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionParticipantUnmute : ChannelAdminLogEventAction { /// The participant that was unmuted public GroupCallParticipant participant; } /// Group call settings were changed See [TLDef(0x56D6A247)] - public class ChannelAdminLogEventActionToggleGroupCallSetting : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionToggleGroupCallSetting : ChannelAdminLogEventAction { /// Whether all users are muted by default upon joining public bool join_muted; } /// A user joined the supergroup/channel using a specific invite link See [TLDef(0xFE9FC158)] - public class ChannelAdminLogEventActionParticipantJoinByInvite : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionParticipantJoinByInvite : ChannelAdminLogEventAction { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -10973,21 +10973,21 @@ namespace TL } /// A chat invite was deleted See [TLDef(0x5A50FCA4)] - public class ChannelAdminLogEventActionExportedInviteDelete : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionExportedInviteDelete : ChannelAdminLogEventAction { /// The deleted chat invite public ExportedChatInvite invite; } /// A specific invite link was revoked See [TLDef(0x410A134E)] - public class ChannelAdminLogEventActionExportedInviteRevoke : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionExportedInviteRevoke : ChannelAdminLogEventAction { /// The invite link that was revoked public ExportedChatInvite invite; } /// A chat invite was edited See [TLDef(0xE90EBB59)] - public class ChannelAdminLogEventActionExportedInviteEdit : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionExportedInviteEdit : ChannelAdminLogEventAction { /// Previous chat invite information public ExportedChatInvite prev_invite; @@ -10996,14 +10996,14 @@ namespace TL } /// channelAdminLogEvent.user_id has set the volume of participant.peer to participant.volume See [TLDef(0x3E7F6847)] - public class ChannelAdminLogEventActionParticipantVolume : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionParticipantVolume : ChannelAdminLogEventAction { /// The participant whose volume was changed public GroupCallParticipant participant; } /// The Time-To-Live of messages in this chat was changed See [TLDef(0x6E941A38)] - public class ChannelAdminLogEventActionChangeHistoryTTL : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionChangeHistoryTTL : ChannelAdminLogEventAction { /// Previous value public int prev_value; @@ -11012,7 +11012,7 @@ namespace TL } /// A new member was accepted to the chat by an admin See [TLDef(0xAFB6144A)] - public class ChannelAdminLogEventActionParticipantJoinByRequest : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionParticipantJoinByRequest : ChannelAdminLogEventAction { /// The invite link that was used to join the chat public ExportedChatInvite invite; @@ -11021,21 +11021,21 @@ namespace TL } /// Forwards were enabled or disabled See [TLDef(0xCB2AC766)] - public class ChannelAdminLogEventActionToggleNoForwards : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionToggleNoForwards : ChannelAdminLogEventAction { /// Old value public bool new_value; } /// A message was posted in a channel See [TLDef(0x278F2868)] - public class ChannelAdminLogEventActionSendMessage : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionSendMessage : ChannelAdminLogEventAction { /// The message that was sent public MessageBase message; } /// The set of allowed message reactions » for this channel has changed See [TLDef(0xBE4E0EF8)] - public class ChannelAdminLogEventActionChangeAvailableReactions : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionChangeAvailableReactions : ChannelAdminLogEventAction { /// Previously allowed reaction emojis public ChatReactions prev_value; @@ -11044,7 +11044,7 @@ namespace TL } /// The list of usernames associated with the channel was changed See [TLDef(0xF04FB3A9)] - public class ChannelAdminLogEventActionChangeUsernames : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionChangeUsernames : ChannelAdminLogEventAction { /// Previous set of usernames public string[] prev_value; @@ -11053,21 +11053,21 @@ namespace TL } /// Forum functionality was enabled or disabled. See [TLDef(0x02CC6383)] - public class ChannelAdminLogEventActionToggleForum : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionToggleForum : ChannelAdminLogEventAction { /// Whether forum functionality was enabled or disabled. public bool new_value; } /// A forum topic was created See [TLDef(0x58707D28)] - public class ChannelAdminLogEventActionCreateTopic : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionCreateTopic : ChannelAdminLogEventAction { /// The forum topic that was created public ForumTopicBase topic; } /// A forum topic was edited See [TLDef(0xF06FE208)] - public class ChannelAdminLogEventActionEditTopic : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionEditTopic : ChannelAdminLogEventAction { /// Previous topic information public ForumTopicBase prev_topic; @@ -11076,14 +11076,14 @@ namespace TL } /// A forum topic was deleted See [TLDef(0xAE168909)] - public class ChannelAdminLogEventActionDeleteTopic : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionDeleteTopic : ChannelAdminLogEventAction { /// The forum topic that was deleted public ForumTopicBase topic; } /// A forum topic was pinned or unpinned See [TLDef(0x5D8D353B)] - public class ChannelAdminLogEventActionPinTopic : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionPinTopic : ChannelAdminLogEventAction { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -11102,14 +11102,14 @@ namespace TL } /// Native antispam functionality was enabled or disabled. See [TLDef(0x64F36DFC)] - public class ChannelAdminLogEventActionToggleAntiSpam : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionToggleAntiSpam : ChannelAdminLogEventAction { /// Whether antispam functionality was enabled or disabled. public bool new_value; } /// The message accent color was changed See [TLDef(0x5796E780)] - public class ChannelAdminLogEventActionChangePeerColor : ChannelAdminLogEventAction + public partial class ChannelAdminLogEventActionChangePeerColor : ChannelAdminLogEventAction { /// Previous accent palette public PeerColor prev_value; @@ -11118,10 +11118,10 @@ namespace TL } /// The profile accent color was changed See [TLDef(0x5E477B25)] - public class ChannelAdminLogEventActionChangeProfilePeerColor : ChannelAdminLogEventActionChangePeerColor { } + public sealed partial class ChannelAdminLogEventActionChangeProfilePeerColor : ChannelAdminLogEventActionChangePeerColor { } /// The wallpaper was changed See [TLDef(0x31BB5D52)] - public class ChannelAdminLogEventActionChangeWallpaper : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionChangeWallpaper : ChannelAdminLogEventAction { /// Previous wallpaper public WallPaperBase prev_value; @@ -11130,7 +11130,7 @@ namespace TL } /// The emoji status was changed See [TLDef(0x3EA9FEB1)] - public class ChannelAdminLogEventActionChangeEmojiStatus : ChannelAdminLogEventAction + public sealed partial class ChannelAdminLogEventActionChangeEmojiStatus : ChannelAdminLogEventAction { /// Previous emoji status public EmojiStatus prev_value; @@ -11139,11 +11139,11 @@ namespace TL } /// See [TLDef(0x46D840AB)] - public class ChannelAdminLogEventActionChangeEmojiStickerSet : ChannelAdminLogEventActionChangeStickerSet { } + public sealed partial class ChannelAdminLogEventActionChangeEmojiStickerSet : ChannelAdminLogEventActionChangeStickerSet { } /// Admin log event See [TLDef(0x1FAD68CD)] - public class ChannelAdminLogEvent : IObject + public sealed partial class ChannelAdminLogEvent : IObject { /// Event ID public long id; @@ -11157,7 +11157,7 @@ namespace TL /// Admin log events See [TLDef(0xED8AF74D)] - public class Channels_AdminLogResults : IObject, IPeerResolver + public sealed partial class Channels_AdminLogResults : IObject, IPeerResolver { /// Admin log events public ChannelAdminLogEvent[] events; @@ -11171,7 +11171,7 @@ namespace TL /// Filter only certain admin log events See [TLDef(0xEA107AE4)] - public partial class ChannelAdminLogEventsFilter : IObject + public sealed partial class ChannelAdminLogEventsFilter : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -11219,7 +11219,7 @@ namespace TL /// Popular contact See [TLDef(0x5CE14175)] - public class PopularContact : IObject + public sealed partial class PopularContact : IObject { /// Contact identifier public long client_id; @@ -11230,7 +11230,7 @@ namespace TL /// Favorited stickers See /// a value means messages.favedStickersNotModified [TLDef(0x2CB51097)] - public class Messages_FavedStickers : IObject + public sealed partial class Messages_FavedStickers : IObject { /// Hash for pagination, for more info click here public long hash; @@ -11241,38 +11241,38 @@ namespace TL } /// Recent t.me urls See Derived classes: , , , , - public abstract class RecentMeUrl : IObject + public abstract partial class RecentMeUrl : IObject { /// URL public string url; } /// Unknown t.me url See [TLDef(0x46E1D13D)] - public class RecentMeUrlUnknown : RecentMeUrl { } + public sealed partial class RecentMeUrlUnknown : RecentMeUrl { } /// Recent t.me link to a user See [TLDef(0xB92C09E2, inheritBefore = true)] - public class RecentMeUrlUser : RecentMeUrl + public sealed partial class RecentMeUrlUser : RecentMeUrl { /// User ID public long user_id; } /// Recent t.me link to a chat See [TLDef(0xB2DA71D2, inheritBefore = true)] - public class RecentMeUrlChat : RecentMeUrl + public sealed partial class RecentMeUrlChat : RecentMeUrl { /// Chat ID public long chat_id; } /// Recent t.me invite link to a chat See [TLDef(0xEB49081D, inheritBefore = true)] - public class RecentMeUrlChatInvite : RecentMeUrl + public sealed partial class RecentMeUrlChatInvite : RecentMeUrl { /// Chat invitation public ChatInviteBase chat_invite; } /// Recent t.me stickerset installation URL See [TLDef(0xBC0A57DC, inheritBefore = true)] - public class RecentMeUrlStickerSet : RecentMeUrl + public sealed partial class RecentMeUrlStickerSet : RecentMeUrl { /// Stickerset public StickerSetCoveredBase set; @@ -11280,7 +11280,7 @@ namespace TL /// Recent t.me URLs See [TLDef(0x0E0310D7)] - public class Help_RecentMeUrls : IObject, IPeerResolver + public sealed partial class Help_RecentMeUrls : IObject, IPeerResolver { /// URLs public RecentMeUrl[] urls; @@ -11294,7 +11294,7 @@ namespace TL /// A single media in an album or grouped media sent with Messages_SendMultiMedia. See [TLDef(0x1CC6E91F)] - public class InputSingleMedia : IObject + public sealed partial class InputSingleMedia : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -11316,7 +11316,7 @@ namespace TL /// Represents a bot logged in using the Telegram login widget See [TLDef(0xA6F8F452)] - public class WebAuthorization : IObject + public sealed partial class WebAuthorization : IObject { /// Authorization hash public long hash; @@ -11340,7 +11340,7 @@ namespace TL /// Web authorizations See [TLDef(0xED56C9FC)] - public class Account_WebAuthorizations : IObject + public sealed partial class Account_WebAuthorizations : IObject { /// Web authorization list public WebAuthorization[] authorizations; @@ -11352,24 +11352,24 @@ namespace TL public abstract partial class InputMessage : IObject { } /// Message by ID See [TLDef(0xA676A322)] - public class InputMessageID : InputMessage + public sealed partial class InputMessageID : InputMessage { /// Message ID public int id; } /// Message to which the specified message replies to See [TLDef(0xBAD88395)] - public class InputMessageReplyTo : InputMessage + public sealed partial class InputMessageReplyTo : InputMessage { /// ID of the message that replies to the message we need public int id; } /// Pinned message See [TLDef(0x86872538)] - public class InputMessagePinned : InputMessage { } + public sealed partial class InputMessagePinned : InputMessage { } /// Used by bots for fetching information about the message that originated a callback query See [TLDef(0xACFA1A7E)] - public class InputMessageCallbackQuery : InputMessage + public sealed partial class InputMessageCallbackQuery : InputMessage { /// Message ID public int id; @@ -11381,31 +11381,31 @@ namespace TL public abstract partial class InputDialogPeerBase : IObject { } /// A peer See [TLDef(0xFCAAFEB7)] - public class InputDialogPeer : InputDialogPeerBase + public sealed partial class InputDialogPeer : InputDialogPeerBase { /// Peer public InputPeer peer; } /// All peers in a peer folder See [TLDef(0x64600527)] - public class InputDialogPeerFolder : InputDialogPeerBase + public sealed partial class InputDialogPeerFolder : InputDialogPeerBase { /// Peer folder ID, for more info click here public int folder_id; } /// Peer, or all peers in a folder See Derived classes: , - public abstract class DialogPeerBase : IObject { } + public abstract partial class DialogPeerBase : IObject { } /// Peer See [TLDef(0xE56DBF05)] - public class DialogPeer : DialogPeerBase + public sealed partial class DialogPeer : DialogPeerBase { /// Peer public Peer peer; } /// Peer folder See [TLDef(0x514519E2)] - public class DialogPeerFolder : DialogPeerBase + public sealed partial class DialogPeerFolder : DialogPeerBase { /// Peer folder ID, for more info click here public int folder_id; @@ -11414,7 +11414,7 @@ namespace TL /// Found stickersets See /// a value means messages.foundStickerSetsNotModified [TLDef(0x8AF09DD2)] - public class Messages_FoundStickerSets : IObject + public sealed partial class Messages_FoundStickerSets : IObject { /// Hash for pagination, for more info click here public long hash; @@ -11424,7 +11424,7 @@ namespace TL /// SHA256 Hash of an uploaded file, to be checked for validity after download See [TLDef(0xF39B035C)] - public class FileHash : IObject + public sealed partial class FileHash : IObject { /// Offset from where to start computing SHA-256 hash public long offset; @@ -11436,7 +11436,7 @@ namespace TL /// Info about an MTProxy used to connect. See [TLDef(0x75588B3F)] - public class InputClientProxy : IObject + public sealed partial class InputClientProxy : IObject { /// Proxy address public string address; @@ -11445,17 +11445,17 @@ namespace TL } /// Update of Telegram's terms of service See Derived classes: , - public abstract class Help_TermsOfServiceUpdateBase : IObject { } + public abstract partial class Help_TermsOfServiceUpdateBase : IObject { } /// No changes were made to telegram's terms of service See [TLDef(0xE3309F7F)] - public class Help_TermsOfServiceUpdateEmpty : Help_TermsOfServiceUpdateBase + public sealed partial class Help_TermsOfServiceUpdateEmpty : Help_TermsOfServiceUpdateBase { /// New TOS updates will have to be queried using Help_GetTermsOfServiceUpdate in expires seconds public DateTime expires; } /// Info about an update of telegram's terms of service. If the terms of service are declined, then the Account_DeleteAccount method should be called with the reason "Decline ToS update" See [TLDef(0x28ECF961)] - public class Help_TermsOfServiceUpdate : Help_TermsOfServiceUpdateBase + public sealed partial class Help_TermsOfServiceUpdate : Help_TermsOfServiceUpdateBase { /// New TOS updates will have to be queried using Help_GetTermsOfServiceUpdate in expires seconds public DateTime expires; @@ -11464,14 +11464,14 @@ namespace TL } /// Secure passport file, for more info see the passport docs » See Derived classes: , - public abstract class InputSecureFileBase : IObject + public abstract partial class InputSecureFileBase : IObject { /// Secure file ID public abstract long ID { get; set; } } /// Uploaded secure file, for more info see the passport docs » See [TLDef(0x3334B0F0)] - public class InputSecureFileUploaded : InputSecureFileBase + public sealed partial class InputSecureFileUploaded : InputSecureFileBase { /// Secure file ID public long id; @@ -11489,7 +11489,7 @@ namespace TL } /// Pre-uploaded passport file, for more info see the passport docs » See [TLDef(0x5367E5BE)] - public class InputSecureFile : InputSecureFileBase + public sealed partial class InputSecureFile : InputSecureFileBase { /// Secure file ID public long id; @@ -11503,7 +11503,7 @@ namespace TL /// Secure passport file, for more info see the passport docs » See /// a value means secureFileEmpty [TLDef(0x7D09C27E)] - public partial class SecureFile : IObject + public sealed partial class SecureFile : IObject { /// ID public long id; @@ -11523,7 +11523,7 @@ namespace TL /// Secure passport data, for more info see the passport docs » See [TLDef(0x8AEABEC3)] - public class SecureData : IObject + public sealed partial class SecureData : IObject { /// Data public byte[] data; @@ -11534,17 +11534,17 @@ namespace TL } /// Plaintext verified passport data. See Derived classes: , - public abstract class SecurePlainData : IObject { } + public abstract partial class SecurePlainData : IObject { } /// Phone number to use in telegram passport: it must be verified, first ». See [TLDef(0x7D6099DD)] - public class SecurePlainPhone : SecurePlainData + public sealed partial class SecurePlainPhone : SecurePlainData { /// Phone number public string phone; } /// Email address to use in telegram passport: it must be verified, first ». See [TLDef(0x21EC5A5F)] - public class SecurePlainEmail : SecurePlainData + public sealed partial class SecurePlainEmail : SecurePlainData { /// Email address public string email; @@ -11583,7 +11583,7 @@ namespace TL /// Secure value See [TLDef(0x187FA0CA)] - public class SecureValue : IObject + public sealed partial class SecureValue : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -11627,7 +11627,7 @@ namespace TL /// Secure value, for more info see the passport docs » See [TLDef(0xDB21D0A7)] - public class InputSecureValue : IObject + public sealed partial class InputSecureValue : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -11669,7 +11669,7 @@ namespace TL /// Secure value hash See [TLDef(0xED1ECDB0)] - public class SecureValueHash : IObject + public sealed partial class SecureValueHash : IObject { /// Secure value type public SecureValueType type; @@ -11678,7 +11678,7 @@ namespace TL } /// Secure value error See Derived classes: , , , , , , , , - public abstract class SecureValueErrorBase : IObject + public abstract partial class SecureValueErrorBase : IObject { /// The section of the user's Telegram Passport which has the error, one of , , , , , public virtual SecureValueType Type => default; @@ -11687,7 +11687,7 @@ namespace TL } /// Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes. See [TLDef(0xE8A40BD9)] - public class SecureValueErrorData : SecureValueErrorBase + public sealed partial class SecureValueErrorData : SecureValueErrorBase { /// The section of the user's Telegram Passport which has the error, one of , , , , , public SecureValueType type; @@ -11705,7 +11705,7 @@ namespace TL } /// Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes. See [TLDef(0x00BE3DFA)] - public class SecureValueErrorFrontSide : SecureValueErrorBase + public sealed partial class SecureValueErrorFrontSide : SecureValueErrorBase { /// One of , , , public SecureValueType type; @@ -11721,7 +11721,7 @@ namespace TL } /// Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes. See [TLDef(0x868A2AA5)] - public class SecureValueErrorReverseSide : SecureValueErrorBase + public sealed partial class SecureValueErrorReverseSide : SecureValueErrorBase { /// One of , public SecureValueType type; @@ -11737,7 +11737,7 @@ namespace TL } /// Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes. See [TLDef(0xE537CED6)] - public class SecureValueErrorSelfie : SecureValueErrorBase + public sealed partial class SecureValueErrorSelfie : SecureValueErrorBase { /// One of , , , public SecureValueType type; @@ -11753,7 +11753,7 @@ namespace TL } /// Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes. See [TLDef(0x7A700873)] - public class SecureValueErrorFile : SecureValueErrorBase + public partial class SecureValueErrorFile : SecureValueErrorBase { /// One of , , , , public SecureValueType type; @@ -11769,7 +11769,7 @@ namespace TL } /// Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes. See [TLDef(0x666220E9)] - public class SecureValueErrorFiles : SecureValueErrorBase + public partial class SecureValueErrorFiles : SecureValueErrorBase { /// One of , , , , public SecureValueType type; @@ -11785,7 +11785,7 @@ namespace TL } /// Secure value error See [TLDef(0x869D758F)] - public class SecureValueError : SecureValueErrorBase + public sealed partial class SecureValueError : SecureValueErrorBase { /// Type of element which has the issue public SecureValueType type; @@ -11801,18 +11801,18 @@ namespace TL } /// Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes. See [TLDef(0xA1144770)] - public class SecureValueErrorTranslationFile : SecureValueErrorFile + public sealed partial class SecureValueErrorTranslationFile : SecureValueErrorFile { } /// Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation changes. See [TLDef(0x34636DD8)] - public class SecureValueErrorTranslationFiles : SecureValueErrorFiles + public sealed partial class SecureValueErrorTranslationFiles : SecureValueErrorFiles { } /// Encrypted credentials required to decrypt telegram passport data. See [TLDef(0x33F0EA47)] - public class SecureCredentialsEncrypted : IObject + public sealed partial class SecureCredentialsEncrypted : IObject { /// Encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication, as described in decrypting data » public byte[] data; @@ -11824,7 +11824,7 @@ namespace TL /// Telegram Passport authorization form See [TLDef(0xAD2E1CD8)] - public class Account_AuthorizationForm : IObject + public sealed partial class Account_AuthorizationForm : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -11848,7 +11848,7 @@ namespace TL /// The sent email code See [TLDef(0x811F854F)] - public class Account_SentEmailCode : IObject + public sealed partial class Account_SentEmailCode : IObject { /// The email (to which the code was sent) must match this pattern public string email_pattern; @@ -11859,7 +11859,7 @@ namespace TL /// Deep link info, see the here for more details See /// a value means help.deepLinkInfoEmpty [TLDef(0x6A4EE832)] - public class Help_DeepLinkInfo : IObject + public sealed partial class Help_DeepLinkInfo : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -11878,10 +11878,10 @@ namespace TL } /// Saved contact See Derived classes: - public abstract class SavedContact : IObject { } + public abstract partial class SavedContact : IObject { } /// Saved contact See [TLDef(0x1142BD56)] - public class SavedPhoneContact : SavedContact + public sealed partial class SavedPhoneContact : SavedContact { /// Phone number public string phone; @@ -11895,7 +11895,7 @@ namespace TL /// Takeout info See [TLDef(0x4DBA4501)] - public class Account_Takeout : IObject + public sealed partial class Account_Takeout : IObject { /// Takeout ID public long id; @@ -11903,10 +11903,10 @@ namespace TL /// Key derivation function to use when generating the password hash for SRP two-factor authorization See Derived classes: /// a value means passwordKdfAlgoUnknown - public abstract class PasswordKdfAlgo : IObject { } + public abstract partial class PasswordKdfAlgo : IObject { } /// This key derivation algorithm defines that SRP 2FA login must be used See [TLDef(0x3A912D4A)] - public class PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : PasswordKdfAlgo + public sealed partial class PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : PasswordKdfAlgo { /// One of two salts used by the derivation function (see SRP 2FA login) public byte[] salt1; @@ -11920,21 +11920,21 @@ namespace TL /// KDF algorithm to use for computing telegram passport hash See Derived classes: , /// a value means securePasswordKdfAlgoUnknown - public abstract class SecurePasswordKdfAlgo : IObject + public abstract partial class SecurePasswordKdfAlgo : IObject { /// Salt public byte[] salt; } /// PBKDF2 with SHA512 and 100000 iterations KDF algo See [TLDef(0xBBF2DDA0)] - public class SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : SecurePasswordKdfAlgo { } + public sealed partial class SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : SecurePasswordKdfAlgo { } /// SHA512 KDF algo See [TLDef(0x86471D92)] - public class SecurePasswordKdfAlgoSHA512 : SecurePasswordKdfAlgo { } + public sealed partial class SecurePasswordKdfAlgoSHA512 : SecurePasswordKdfAlgo { } /// Secure settings See [TLDef(0x1527BCAC)] - public class SecureSecretSettings : IObject + public sealed partial class SecureSecretSettings : IObject { /// Secure KDF algo public SecurePasswordKdfAlgo secure_algo; @@ -11947,7 +11947,7 @@ namespace TL /// Constructor for checking the validity of a 2FA SRP password (see SRP) See /// a value means inputCheckPasswordEmpty [TLDef(0xD27FF082)] - public class InputCheckPasswordSRP : IObject + public sealed partial class InputCheckPasswordSRP : IObject { /// SRP ID public long srp_id; @@ -11958,10 +11958,10 @@ namespace TL } /// Required secure file type See Derived classes: , - public abstract class SecureRequiredTypeBase : IObject { } + public abstract partial class SecureRequiredTypeBase : IObject { } /// Required type See [TLDef(0x829D99DA)] - public class SecureRequiredType : SecureRequiredTypeBase + public sealed partial class SecureRequiredType : SecureRequiredTypeBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -11980,7 +11980,7 @@ namespace TL } /// One of See [TLDef(0x027477B4)] - public class SecureRequiredTypeOneOf : SecureRequiredTypeBase + public sealed partial class SecureRequiredTypeOneOf : SecureRequiredTypeBase { /// Secure required value types public SecureRequiredTypeBase[] types; @@ -11989,7 +11989,7 @@ namespace TL /// Telegram passport configuration See /// a value means help.passportConfigNotModified [TLDef(0xA098D6AF)] - public class Help_PassportConfig : IObject + public sealed partial class Help_PassportConfig : IObject { /// Hash for pagination, for more info click here public int hash; @@ -11999,7 +11999,7 @@ namespace TL /// Event that occurred in the application. See [TLDef(0x1D1B1245)] - public class InputAppEvent : IObject + public sealed partial class InputAppEvent : IObject { /// Client's exact timestamp for the event public double time; @@ -12013,7 +12013,7 @@ namespace TL /// JSON key: value pair See [TLDef(0xC0DE1BD9)] - public partial class JsonObjectValue : IObject + public sealed partial class JsonObjectValue : IObject { /// Key public string key; @@ -12025,38 +12025,38 @@ namespace TL public abstract partial class JSONValue : IObject { } /// null JSON value See [TLDef(0x3F6D7B68)] - public partial class JsonNull : JSONValue { } + public sealed partial class JsonNull : JSONValue { } /// JSON boolean value See [TLDef(0xC7345E6A)] - public partial class JsonBool : JSONValue + public sealed partial class JsonBool : JSONValue { /// Value public bool value; } /// JSON numeric value See [TLDef(0x2BE0DFA4)] - public partial class JsonNumber : JSONValue + public sealed partial class JsonNumber : JSONValue { /// Value public double value; } /// JSON string See [TLDef(0xB71E767A)] - public partial class JsonString : JSONValue + public sealed partial class JsonString : JSONValue { /// Value public string value; } /// JSON array See [TLDef(0xF7444763)] - public partial class JsonArray : JSONValue + public sealed partial class JsonArray : JSONValue { /// JSON values public JSONValue[] value; } /// JSON object value See [TLDef(0x99C1D49D)] - public partial class JsonObject : JSONValue + public sealed partial class JsonObject : JSONValue { /// Values public JsonObjectValue[] value; @@ -12064,7 +12064,7 @@ namespace TL /// Table cell See [TLDef(0x34566B6A)] - public class PageTableCell : IObject + public sealed partial class PageTableCell : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12098,7 +12098,7 @@ namespace TL /// Table row See [TLDef(0xE0C0C5E5)] - public class PageTableRow : IObject + public sealed partial class PageTableRow : IObject { /// Table cells public PageTableCell[] cells; @@ -12106,7 +12106,7 @@ namespace TL /// Page caption See [TLDef(0x6F747657)] - public class PageCaption : IObject + public sealed partial class PageCaption : IObject { /// Caption public RichText text; @@ -12115,38 +12115,38 @@ namespace TL } /// Item in block list See Derived classes: , - public abstract class PageListItem : IObject { } + public abstract partial class PageListItem : IObject { } /// List item See [TLDef(0xB92FB6CD)] - public class PageListItemText : PageListItem + public sealed partial class PageListItemText : PageListItem { /// Text public RichText text; } /// List item See [TLDef(0x25E073FC)] - public class PageListItemBlocks : PageListItem + public sealed partial class PageListItemBlocks : PageListItem { /// Blocks public PageBlock[] blocks; } /// Represents an instant view ordered list See Derived classes: , - public abstract class PageListOrderedItem : IObject + public abstract partial class PageListOrderedItem : IObject { /// Number of element within ordered list public string num; } /// Ordered list of text items See [TLDef(0x5E068047, inheritBefore = true)] - public class PageListOrderedItemText : PageListOrderedItem + public sealed partial class PageListOrderedItemText : PageListOrderedItem { /// Text public RichText text; } /// Ordered list of IV blocks See [TLDef(0x98DD8936, inheritBefore = true)] - public class PageListOrderedItemBlocks : PageListOrderedItem + public sealed partial class PageListOrderedItemBlocks : PageListOrderedItem { /// Item contents public PageBlock[] blocks; @@ -12154,7 +12154,7 @@ namespace TL /// Related article See [TLDef(0xB390DC08)] - public class PageRelatedArticle : IObject + public sealed partial class PageRelatedArticle : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12190,7 +12190,7 @@ namespace TL /// Instant view page See [TLDef(0x98657F0D)] - public class Page : IObject + public sealed partial class Page : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12220,7 +12220,7 @@ namespace TL /// Localized name for telegram support See [TLDef(0x8C05F1C9)] - public class Help_SupportName : IObject + public sealed partial class Help_SupportName : IObject { /// Localized name public string name; @@ -12229,7 +12229,7 @@ namespace TL /// Internal use See /// a value means help.userInfoEmpty [TLDef(0x01EB3758)] - public class Help_UserInfo : IObject + public sealed partial class Help_UserInfo : IObject { /// Info public string message; @@ -12243,7 +12243,7 @@ namespace TL /// A possible answer of a poll See [TLDef(0x6CA9C2E9)] - public class PollAnswer : IObject + public sealed partial class PollAnswer : IObject { /// Textual representation of the answer public string text; @@ -12253,7 +12253,7 @@ namespace TL /// Poll See [TLDef(0x86E18161)] - public class Poll : IObject + public sealed partial class Poll : IObject { /// ID of the poll public long id; @@ -12287,7 +12287,7 @@ namespace TL /// A poll answer, and how users voted on it See [TLDef(0x3B6DDAD2)] - public class PollAnswerVoters : IObject + public sealed partial class PollAnswerVoters : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12307,7 +12307,7 @@ namespace TL /// Results of poll See [TLDef(0x7ADF2420)] - public class PollResults : IObject + public sealed partial class PollResults : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12339,7 +12339,7 @@ namespace TL /// Number of online users in a chat See [TLDef(0xF041E250)] - public class ChatOnlines : IObject + public sealed partial class ChatOnlines : IObject { /// Number of online users public int onlines; @@ -12347,7 +12347,7 @@ namespace TL /// URL with chat statistics See [TLDef(0x47A971E0)] - public class StatsURL : IObject + public sealed partial class StatsURL : IObject { /// Chat statistics public string url; @@ -12355,7 +12355,7 @@ namespace TL /// Represents the rights of an admin in a channel/supergroup. See [TLDef(0x5FB224D5)] - public class ChatAdminRights : IObject + public sealed partial class ChatAdminRights : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12397,7 +12397,7 @@ namespace TL /// Represents the rights of a normal user in a supergroup/channel/chat. In this case, the flags are inverted: if set, a flag does not allow a user to do X. See [TLDef(0x9F120418)] - public class ChatBannedRights : IObject + public sealed partial class ChatBannedRights : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12450,10 +12450,10 @@ namespace TL } /// Wallpaper See Derived classes: , , - public abstract class InputWallPaperBase : IObject { } + public abstract partial class InputWallPaperBase : IObject { } /// Wallpaper See [TLDef(0xE630B979)] - public class InputWallPaper : InputWallPaperBase + public sealed partial class InputWallPaper : InputWallPaperBase { /// Wallpaper ID public long id; @@ -12462,14 +12462,14 @@ namespace TL } /// Wallpaper by slug (a unique ID, obtained from a wallpaper link ») See [TLDef(0x72091C80)] - public class InputWallPaperSlug : InputWallPaperBase + public sealed partial class InputWallPaperSlug : InputWallPaperBase { /// Unique wallpaper ID public string slug; } /// Wallpaper with no file access hash, used for example when deleting (unsave=true) wallpapers using Account_SaveWallPaper, specifying just the wallpaper ID. See [TLDef(0x967A462E)] - public class InputWallPaperNoFile : InputWallPaperBase + public sealed partial class InputWallPaperNoFile : InputWallPaperBase { /// Wallpaper ID public long id; @@ -12478,7 +12478,7 @@ namespace TL /// Installed wallpapers See /// a value means account.wallPapersNotModified [TLDef(0xCDC3858C)] - public class Account_WallPapers : IObject + public sealed partial class Account_WallPapers : IObject { /// Hash for pagination, for more info click here public long hash; @@ -12488,7 +12488,7 @@ namespace TL /// Settings used by telegram servers for sending the confirm code. See [TLDef(0xAD253D78)] - public class CodeSettings : IObject + public sealed partial class CodeSettings : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12520,7 +12520,7 @@ namespace TL /// Wallpaper rendering information. See [TLDef(0x372EFCD0)] - public class WallPaperSettings : IObject + public sealed partial class WallPaperSettings : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12562,7 +12562,7 @@ namespace TL /// Autodownload settings See [TLDef(0xBAA57628)] - public class AutoDownloadSettings : IObject + public sealed partial class AutoDownloadSettings : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12596,7 +12596,7 @@ namespace TL /// Media autodownload settings See [TLDef(0x63CACF26)] - public class Account_AutoDownloadSettings : IObject + public sealed partial class Account_AutoDownloadSettings : IObject { /// Low data usage preset public AutoDownloadSettings low; @@ -12608,7 +12608,7 @@ namespace TL /// Emoji keyword See [TLDef(0xD5B3B9F9)] - public class EmojiKeyword : IObject + public partial class EmojiKeyword : IObject { /// Keyword public string keyword; @@ -12617,11 +12617,11 @@ namespace TL } /// Deleted emoji keyword See [TLDef(0x236DF622)] - public class EmojiKeywordDeleted : EmojiKeyword { } + public sealed partial class EmojiKeywordDeleted : EmojiKeyword { } /// Changes to emoji keywords See [TLDef(0x5CC761BD)] - public class EmojiKeywordsDifference : IObject + public sealed partial class EmojiKeywordsDifference : IObject { /// Language code for keywords public string lang_code; @@ -12635,7 +12635,7 @@ namespace TL /// An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation See [TLDef(0xA575739D)] - public class EmojiURL : IObject + public sealed partial class EmojiURL : IObject { /// An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation public string url; @@ -12643,7 +12643,7 @@ namespace TL /// Emoji language See [TLDef(0xB3FB5361)] - public class EmojiLanguage : IObject + public sealed partial class EmojiLanguage : IObject { /// Language code public string lang_code; @@ -12651,7 +12651,7 @@ namespace TL /// Folder See [TLDef(0xFF544E65)] - public class Folder : IObject + public sealed partial class Folder : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12677,7 +12677,7 @@ namespace TL /// Peer in a folder See [TLDef(0xFBD2C296)] - public class InputFolderPeer : IObject + public sealed partial class InputFolderPeer : IObject { /// Peer public InputPeer peer; @@ -12687,7 +12687,7 @@ namespace TL /// Peer in a folder See [TLDef(0xE9BAA668)] - public class FolderPeer : IObject + public sealed partial class FolderPeer : IObject { /// Folder peer info public Peer peer; @@ -12697,7 +12697,7 @@ namespace TL /// Indicates how many results would be found by a Messages_Search call with the same parameters See [TLDef(0xE844EBFF)] - public class Messages_SearchCounter : IObject + public sealed partial class Messages_SearchCounter : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12715,10 +12715,10 @@ namespace TL /// URL authorization result See Derived classes: , /// a value means urlAuthResultDefault - public abstract class UrlAuthResult : IObject { } + public abstract partial class UrlAuthResult : IObject { } /// Details about the authorization request, for more info click here » See [TLDef(0x92D33A0E)] - public class UrlAuthResultRequest : UrlAuthResult + public sealed partial class UrlAuthResultRequest : UrlAuthResult { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12735,7 +12735,7 @@ namespace TL } /// Details about an accepted authorization request, for more info click here » See [TLDef(0x8F8C0E4E)] - public class UrlAuthResultAccepted : UrlAuthResult + public sealed partial class UrlAuthResultAccepted : UrlAuthResult { /// The URL name of the website on which the user has logged in. public string url; @@ -12744,7 +12744,7 @@ namespace TL /// Geographical location of supergroup (geogroups) See /// a value means channelLocationEmpty [TLDef(0x209B82DB)] - public class ChannelLocation : IObject + public sealed partial class ChannelLocation : IObject { /// Geographical location of supergroup public GeoPoint geo_point; @@ -12753,14 +12753,14 @@ namespace TL } /// Geolocated peer See Derived classes: , - public abstract class PeerLocatedBase : IObject + public abstract partial class PeerLocatedBase : IObject { /// Validity period of current data public virtual DateTime Expires => default; } /// Peer geolocated nearby See [TLDef(0xCA461B5D)] - public class PeerLocated : PeerLocatedBase + public sealed partial class PeerLocated : PeerLocatedBase { /// Peer public Peer peer; @@ -12774,7 +12774,7 @@ namespace TL } /// Current peer See [TLDef(0xF8EC284B)] - public class PeerSelfLocated : PeerLocatedBase + public sealed partial class PeerSelfLocated : PeerLocatedBase { /// Expiry of geolocation info for current peer public DateTime expires; @@ -12785,7 +12785,7 @@ namespace TL /// Restriction reason. See [TLDef(0xD072ACB4)] - public class RestrictionReason : IObject + public sealed partial class RestrictionReason : IObject { /// Platform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator (android-ios, ios-wp, etc) public string platform; @@ -12796,10 +12796,10 @@ namespace TL } /// Cloud theme See Derived classes: , - public abstract class InputThemeBase : IObject { } + public abstract partial class InputThemeBase : IObject { } /// Theme See [TLDef(0x3C5693E9)] - public class InputTheme : InputThemeBase + public sealed partial class InputTheme : InputThemeBase { /// ID public long id; @@ -12808,7 +12808,7 @@ namespace TL } /// Theme by theme ID See [TLDef(0xF5890DF1)] - public class InputThemeSlug : InputThemeBase + public sealed partial class InputThemeSlug : InputThemeBase { /// Unique theme ID obtained from a theme deep link » public string slug; @@ -12816,7 +12816,7 @@ namespace TL /// Theme See [TLDef(0xA00E67D6)] - public partial class Theme : IObject + public sealed partial class Theme : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12859,7 +12859,7 @@ namespace TL /// Installed themes See /// a value means account.themesNotModified [TLDef(0x9A3D8C6D)] - public class Account_Themes : IObject + public sealed partial class Account_Themes : IObject { /// Hash for pagination, for more info click here public long hash; @@ -12868,10 +12868,10 @@ namespace TL } /// Login token (for QR code login) See Derived classes: , , - public abstract class Auth_LoginTokenBase : IObject { } + public abstract partial class Auth_LoginTokenBase : IObject { } /// Login token (for QR code login) See [TLDef(0x629F1980)] - public class Auth_LoginToken : Auth_LoginTokenBase + public sealed partial class Auth_LoginToken : Auth_LoginTokenBase { /// Expiration date of QR code public DateTime expires; @@ -12880,7 +12880,7 @@ namespace TL } /// Repeat the query to the specified DC See [TLDef(0x068E9916)] - public class Auth_LoginTokenMigrateTo : Auth_LoginTokenBase + public sealed partial class Auth_LoginTokenMigrateTo : Auth_LoginTokenBase { /// DC ID public int dc_id; @@ -12889,7 +12889,7 @@ namespace TL } /// Login via token (QR code) succeeded! See [TLDef(0x390D5C5E)] - public class Auth_LoginTokenSuccess : Auth_LoginTokenBase + public sealed partial class Auth_LoginTokenSuccess : Auth_LoginTokenBase { /// Authorization info public Auth_AuthorizationBase authorization; @@ -12897,7 +12897,7 @@ namespace TL /// Sensitive content settings See [TLDef(0x57E28221)] - public class Account_ContentSettings : IObject + public sealed partial class Account_ContentSettings : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12913,7 +12913,7 @@ namespace TL /// Inactive chat list See [TLDef(0xA927FEC5)] - public class Messages_InactiveChats : IObject, IPeerResolver + public sealed partial class Messages_InactiveChats : IObject, IPeerResolver { /// When was the chat last active public int[] dates; @@ -12942,7 +12942,7 @@ namespace TL /// Theme settings See [TLDef(0x8FDE504F)] - public class InputThemeSettings : IObject + public sealed partial class InputThemeSettings : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -12974,7 +12974,7 @@ namespace TL /// Theme settings See [TLDef(0xFA58B6D4)] - public class ThemeSettings : IObject + public sealed partial class ThemeSettings : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13003,10 +13003,10 @@ namespace TL } /// Webpage attributes See Derived classes: , - public abstract class WebPageAttribute : IObject { } + public abstract partial class WebPageAttribute : IObject { } /// Page theme See [TLDef(0x54B56617)] - public class WebPageAttributeTheme : WebPageAttribute + public sealed partial class WebPageAttributeTheme : WebPageAttribute { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13025,7 +13025,7 @@ namespace TL } /// Webpage preview of a Telegram story See [TLDef(0x2E94C3E7)] - public class WebPageAttributeStory : WebPageAttribute + public sealed partial class WebPageAttributeStory : WebPageAttribute { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13045,7 +13045,7 @@ namespace TL /// How users voted in a poll See [TLDef(0x4899484E)] - public class Messages_VotesList : IObject, IPeerResolver + public sealed partial class Messages_VotesList : IObject, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13071,7 +13071,7 @@ namespace TL /// Credit card info URL provided by the bank See [TLDef(0xF568028A)] - public class BankCardOpenUrl : IObject + public sealed partial class BankCardOpenUrl : IObject { /// Info URL public string url; @@ -13081,7 +13081,7 @@ namespace TL /// Credit card info, provided by the card's bank(s) See [TLDef(0x3E24E573)] - public class Payments_BankCardData : IObject + public sealed partial class Payments_BankCardData : IObject { /// Credit card title public string title; @@ -13091,7 +13091,7 @@ namespace TL /// Dialog filter (folder ») See Derived classes: , /// a value means dialogFilterDefault - public abstract class DialogFilterBase : IObject + public abstract partial class DialogFilterBase : IObject { /// Folder ID public virtual int ID => default; @@ -13107,7 +13107,7 @@ namespace TL } /// Dialog filter AKA folder See [TLDef(0x5FB5523B)] - public class DialogFilter : DialogFilterBase + public sealed partial class DialogFilter : DialogFilterBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13163,7 +13163,7 @@ namespace TL } /// A folder imported using a chat folder deep link ». See [TLDef(0x9FE28EA4)] - public class DialogFilterChatlist : DialogFilterBase + public sealed partial class DialogFilterChatlist : DialogFilterBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13204,7 +13204,7 @@ namespace TL /// Suggested folders See [TLDef(0x77744D4A)] - public class DialogFilterSuggested : IObject + public sealed partial class DialogFilterSuggested : IObject { /// Folder info public DialogFilterBase filter; @@ -13214,7 +13214,7 @@ namespace TL /// Channel statistics date range See [TLDef(0xB637EDAF)] - public class StatsDateRangeDays : IObject + public sealed partial class StatsDateRangeDays : IObject { /// Initial date public DateTime min_date; @@ -13224,7 +13224,7 @@ namespace TL /// Statistics value couple; initial and final value for period of time currently in consideration See [TLDef(0xCB43ACDE)] - public class StatsAbsValueAndPrev : IObject + public sealed partial class StatsAbsValueAndPrev : IObject { /// Current value public double current; @@ -13234,7 +13234,7 @@ namespace TL /// Channel statistics percentage.
Compute the percentage simply by doing part * total / 100 See
[TLDef(0xCBCE2FE0)] - public class StatsPercentValue : IObject + public sealed partial class StatsPercentValue : IObject { /// Partial value public double part; @@ -13243,24 +13243,24 @@ namespace TL } /// Channel statistics graph See Derived classes: , , - public abstract class StatsGraphBase : IObject { } + public abstract partial class StatsGraphBase : IObject { } /// This channel statistics graph must be generated asynchronously using Stats_LoadAsyncGraph to reduce server load See [TLDef(0x4A27EB2D)] - public class StatsGraphAsync : StatsGraphBase + public sealed partial class StatsGraphAsync : StatsGraphBase { /// Token to use for fetching the async graph public string token; } /// An error occurred while generating the statistics graph See [TLDef(0xBEDC9822)] - public class StatsGraphError : StatsGraphBase + public sealed partial class StatsGraphError : StatsGraphBase { /// The error public string error; } /// Channel statistics graph See [TLDef(0x8EA464B6)] - public class StatsGraph : StatsGraphBase + public sealed partial class StatsGraph : StatsGraphBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13278,7 +13278,7 @@ namespace TL /// Channel statistics. See [TLDef(0x396CA5FC)] - public class Stats_BroadcastStats : IObject + public sealed partial class Stats_BroadcastStats : IObject { /// Period in consideration public StatsDateRangeDays period; @@ -13327,17 +13327,17 @@ namespace TL } /// Info about pinned MTProxy or Public Service Announcement peers. See Derived classes: , - public abstract class Help_PromoDataBase : IObject { } + public abstract partial class Help_PromoDataBase : IObject { } /// No PSA/MTProxy info is available See [TLDef(0x98F6AC75)] - public class Help_PromoDataEmpty : Help_PromoDataBase + public sealed partial class Help_PromoDataEmpty : Help_PromoDataBase { /// Re-fetch PSA/MTProxy info after the specified number of seconds public DateTime expires; } /// MTProxy/Public Service Announcement information See [TLDef(0x8C39793F)] - public class Help_PromoData : Help_PromoDataBase + public sealed partial class Help_PromoData : Help_PromoDataBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13368,10 +13368,10 @@ namespace TL } /// Represents an animated video thumbnail See Derived classes: , , - public abstract class VideoSizeBase : IObject { } + public abstract partial class VideoSizeBase : IObject { } /// An animated profile picture in MPEG4 format See [TLDef(0xDE33B094)] - public class VideoSize : VideoSizeBase + public sealed partial class VideoSize : VideoSizeBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13394,7 +13394,7 @@ namespace TL } /// An animated profile picture based on a custom emoji sticker. See [TLDef(0xF85C413C)] - public class VideoSizeEmojiMarkup : VideoSizeBase + public sealed partial class VideoSizeEmojiMarkup : VideoSizeBase { /// Custom emoji ID: the custom emoji sticker is shown at the center of the profile picture and occupies at most 67% of it. public long emoji_id; @@ -13403,7 +13403,7 @@ namespace TL } /// An animated profile picture based on a sticker. See [TLDef(0x0DA082FE)] - public class VideoSizeStickerMarkup : VideoSizeBase + public sealed partial class VideoSizeStickerMarkup : VideoSizeBase { /// Stickerset public InputStickerSet stickerset; @@ -13415,7 +13415,7 @@ namespace TL /// Information about an active user in a supergroup See [TLDef(0x9D04AF9B)] - public class StatsGroupTopPoster : IObject + public sealed partial class StatsGroupTopPoster : IObject { /// User ID public long user_id; @@ -13427,7 +13427,7 @@ namespace TL /// Information about an active admin in a supergroup See [TLDef(0xD7584C87)] - public class StatsGroupTopAdmin : IObject + public sealed partial class StatsGroupTopAdmin : IObject { /// User ID public long user_id; @@ -13441,7 +13441,7 @@ namespace TL /// Information about an active supergroup inviter See [TLDef(0x535F779D)] - public class StatsGroupTopInviter : IObject + public sealed partial class StatsGroupTopInviter : IObject { /// User ID public long user_id; @@ -13451,7 +13451,7 @@ namespace TL /// Supergroup statistics See [TLDef(0xEF7FF916)] - public class Stats_MegagroupStats : IObject + public sealed partial class Stats_MegagroupStats : IObject { /// Period in consideration public StatsDateRangeDays period; @@ -13491,7 +13491,7 @@ namespace TL /// Global privacy settings See [TLDef(0x734C4CCB)] - public class GlobalPrivacySettings : IObject + public sealed partial class GlobalPrivacySettings : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13511,7 +13511,7 @@ namespace TL /// Country code and phone number pattern of a specific country See [TLDef(0x4203C5EF)] - public class Help_CountryCode : IObject + public sealed partial class Help_CountryCode : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13533,7 +13533,7 @@ namespace TL /// Name, ISO code, localized name and phone codes/patterns of a specific country See [TLDef(0xC3878E23)] - public class Help_Country : IObject + public sealed partial class Help_Country : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13558,7 +13558,7 @@ namespace TL /// Name, ISO code, localized name and phone codes/patterns of all available countries See /// a value means help.countriesListNotModified [TLDef(0x87D0759E)] - public class Help_CountriesList : IObject + public sealed partial class Help_CountriesList : IObject { /// Name, ISO code, localized name and phone codes/patterns of all available countries public Help_Country[] countries; @@ -13568,7 +13568,7 @@ namespace TL /// View, forward counter + info about replies of a specific message See [TLDef(0x455B853D)] - public class MessageViews : IObject + public sealed partial class MessageViews : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13592,7 +13592,7 @@ namespace TL /// View, forward counter + info about replies See [TLDef(0xB6C4F543)] - public class Messages_MessageViews : IObject, IPeerResolver + public sealed partial class Messages_MessageViews : IObject, IPeerResolver { /// View, forward counter + info about replies public MessageViews[] views; @@ -13606,7 +13606,7 @@ namespace TL /// Information about a message thread See [TLDef(0xA6341782)] - public class Messages_DiscussionMessage : IObject, IPeerResolver + public sealed partial class Messages_DiscussionMessage : IObject, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13639,10 +13639,10 @@ namespace TL } /// Reply information See Derived classes: , - public abstract class MessageReplyHeaderBase : IObject { } + public abstract partial class MessageReplyHeaderBase : IObject { } /// Message replies and thread information See [TLDef(0xAFBC09DB)] - public class MessageReplyHeader : MessageReplyHeaderBase + public sealed partial class MessageReplyHeader : MessageReplyHeaderBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13691,7 +13691,7 @@ namespace TL } /// Represents a reply to a story See [TLDef(0x0E5AF939)] - public class MessageReplyStoryHeader : MessageReplyHeaderBase + public sealed partial class MessageReplyStoryHeader : MessageReplyHeaderBase { public Peer peer; /// Story ID @@ -13700,7 +13700,7 @@ namespace TL /// Info about the comment section of a channel post, or a simple message thread See [TLDef(0x83D60FC2)] - public class MessageReplies : IObject + public sealed partial class MessageReplies : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13732,7 +13732,7 @@ namespace TL /// Information about a blocked peer See [TLDef(0xE8FD8014)] - public class PeerBlocked : IObject + public sealed partial class PeerBlocked : IObject { /// Peer ID public Peer peer_id; @@ -13742,7 +13742,7 @@ namespace TL /// Message statistics See [TLDef(0x7FE91C14)] - public class Stats_MessageStats : IObject + public sealed partial class Stats_MessageStats : IObject { /// Message view graph public StatsGraphBase views_graph; @@ -13760,7 +13760,7 @@ namespace TL } /// An ended group call See [TLDef(0x7780BCB4)] - public class GroupCallDiscarded : GroupCallBase + public sealed partial class GroupCallDiscarded : GroupCallBase { /// Group call ID public long id; @@ -13776,7 +13776,7 @@ namespace TL } /// Info about a group call or livestream See [TLDef(0xD597650C)] - public class GroupCall : GroupCallBase + public sealed partial class GroupCall : GroupCallBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13839,7 +13839,7 @@ namespace TL /// Points to a specific group call See [TLDef(0xD8AA840F)] - public class InputGroupCall : IObject + public sealed partial class InputGroupCall : IObject { /// Group call ID public long id; @@ -13849,7 +13849,7 @@ namespace TL /// Info about a group call participant See [TLDef(0xEBA636FE)] - public class GroupCallParticipant : IObject + public sealed partial class GroupCallParticipant : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13911,7 +13911,7 @@ namespace TL /// Contains info about a group call, and partial info about its participants. See [TLDef(0x9E727AAD)] - public class Phone_GroupCall : IObject, IPeerResolver + public sealed partial class Phone_GroupCall : IObject, IPeerResolver { /// Info about the group call public GroupCallBase call; @@ -13929,7 +13929,7 @@ namespace TL /// Info about the participants of a group call or livestream See [TLDef(0xF47751B6)] - public class Phone_GroupParticipants : IObject, IPeerResolver + public sealed partial class Phone_GroupParticipants : IObject, IPeerResolver { /// Number of participants public int count; @@ -13966,7 +13966,7 @@ namespace TL /// ID of a specific chat import session, click here for more info ». See [TLDef(0x1662AF0B)] - public class Messages_HistoryImport : IObject + public sealed partial class Messages_HistoryImport : IObject { /// History import ID public long id; @@ -13974,7 +13974,7 @@ namespace TL /// Contains information about a chat export file generated by a foreign chat app, click here for more info.
If neither the pm or group flags are set, the specified chat export was generated from a chat of unknown type. See
[TLDef(0x5E0FB7B9)] - public class Messages_HistoryImportParsed : IObject + public sealed partial class Messages_HistoryImportParsed : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -13994,7 +13994,7 @@ namespace TL /// Messages found and affected by changes See [TLDef(0xEF8D3E6C, inheritBefore = true)] - public class Messages_AffectedFoundMessages : Messages_AffectedHistory + public sealed partial class Messages_AffectedFoundMessages : Messages_AffectedHistory { /// Affected message IDs public int[] messages; @@ -14002,7 +14002,7 @@ namespace TL /// When and which user joined the chat using a chat invite See [TLDef(0x8C5ADFD9)] - public class ChatInviteImporter : IObject + public sealed partial class ChatInviteImporter : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14030,7 +14030,7 @@ namespace TL /// Info about chat invites exported by a certain admin. See [TLDef(0xBDC62DCC)] - public class Messages_ExportedChatInvites : IObject + public sealed partial class Messages_ExportedChatInvites : IObject { /// Number of invites exported by the admin public int count; @@ -14041,7 +14041,7 @@ namespace TL } /// Contains info about a chat invite, and eventually a pointer to the newest chat invite. See Derived classes: , - public abstract class Messages_ExportedChatInviteBase : IObject + public abstract partial class Messages_ExportedChatInviteBase : IObject { /// Info about the chat invite public virtual ExportedChatInvite Invite => default; @@ -14050,7 +14050,7 @@ namespace TL } /// Info about a chat invite See [TLDef(0x1871BE50)] - public class Messages_ExportedChatInvite : Messages_ExportedChatInviteBase + public sealed partial class Messages_ExportedChatInvite : Messages_ExportedChatInviteBase { /// Info about the chat invite public ExportedChatInvite invite; @@ -14064,7 +14064,7 @@ namespace TL } /// The specified chat invite was replaced with another one See [TLDef(0x222600EF)] - public class Messages_ExportedChatInviteReplaced : Messages_ExportedChatInviteBase + public sealed partial class Messages_ExportedChatInviteReplaced : Messages_ExportedChatInviteBase { /// The replaced chat invite public ExportedChatInvite invite; @@ -14081,7 +14081,7 @@ namespace TL /// Info about the users that joined the chat using a specific chat invite See [TLDef(0x81B6B00A)] - public class Messages_ChatInviteImporters : IObject + public sealed partial class Messages_ChatInviteImporters : IObject { /// Number of users that joined public int count; @@ -14093,7 +14093,7 @@ namespace TL /// Info about chat invites generated by admins. See [TLDef(0xF2ECEF23)] - public class ChatAdminWithInvites : IObject + public sealed partial class ChatAdminWithInvites : IObject { /// The admin public long admin_id; @@ -14105,7 +14105,7 @@ namespace TL /// Info about chat invites generated by admins. See [TLDef(0xB69B72D7)] - public class Messages_ChatAdminsWithInvites : IObject + public sealed partial class Messages_ChatAdminsWithInvites : IObject { /// Info about chat invites generated by admins. public ChatAdminWithInvites[] admins; @@ -14115,7 +14115,7 @@ namespace TL /// Contains a confirmation text to be shown to the user, upon importing chat history, click here for more info ». See [TLDef(0xA24DE717)] - public class Messages_CheckedHistoryImportPeer : IObject + public sealed partial class Messages_CheckedHistoryImportPeer : IObject { /// A confirmation text to be shown to the user, upon importing chat history ». public string confirm_text; @@ -14123,7 +14123,7 @@ namespace TL /// A list of peers that can be used to join a group call, presenting yourself as a specific user/channel. See [TLDef(0xAFE5623F)] - public class Phone_JoinAsPeers : IObject, IPeerResolver + public sealed partial class Phone_JoinAsPeers : IObject, IPeerResolver { /// Peers public Peer[] peers; @@ -14137,7 +14137,7 @@ namespace TL /// An invite to a group call or livestream See [TLDef(0x204BD158)] - public class Phone_ExportedGroupCallInvite : IObject + public sealed partial class Phone_ExportedGroupCallInvite : IObject { /// Invite link public string link; @@ -14145,7 +14145,7 @@ namespace TL /// Describes a group of video synchronization source identifiers See [TLDef(0xDCB118B7)] - public class GroupCallParticipantVideoSourceGroup : IObject + public sealed partial class GroupCallParticipantVideoSourceGroup : IObject { /// SDP semantics public string semantics; @@ -14155,7 +14155,7 @@ namespace TL /// Info about a video stream See [TLDef(0x67753AC8)] - public class GroupCallParticipantVideo : IObject + public sealed partial class GroupCallParticipantVideo : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14177,7 +14177,7 @@ namespace TL /// A suggested short name for a stickerpack See [TLDef(0x85FEA03F)] - public class Stickers_SuggestedShortName : IObject + public sealed partial class Stickers_SuggestedShortName : IObject { /// Suggested short name public string short_name; @@ -14185,57 +14185,57 @@ namespace TL /// Represents a scope where the bot commands, specified using Bots_SetBotCommands will be valid. See Derived classes: , , , , , /// a value means botCommandScopeDefault - public abstract class BotCommandScope : IObject { } + public abstract partial class BotCommandScope : IObject { } /// The specified bot commands will only be valid in all private chats with users. See [TLDef(0x3C4F04D8)] - public class BotCommandScopeUsers : BotCommandScope { } + public sealed partial class BotCommandScopeUsers : BotCommandScope { } /// The specified bot commands will be valid in all groups and supergroups. See [TLDef(0x6FE1A881)] - public class BotCommandScopeChats : BotCommandScope { } + public sealed partial class BotCommandScopeChats : BotCommandScope { } /// The specified bot commands will be valid only for chat administrators, in all groups and supergroups. See [TLDef(0xB9AA606A)] - public class BotCommandScopeChatAdmins : BotCommandScope { } + public sealed partial class BotCommandScopeChatAdmins : BotCommandScope { } /// The specified bot commands will be valid only in a specific dialog. See [TLDef(0xDB9D897D)] - public class BotCommandScopePeer : BotCommandScope + public partial class BotCommandScopePeer : BotCommandScope { /// The dialog public InputPeer peer; } /// The specified bot commands will be valid for all admins of the specified group or supergroup. See [TLDef(0x3FD863D1)] - public class BotCommandScopePeerAdmins : BotCommandScopePeer { } + public sealed partial class BotCommandScopePeerAdmins : BotCommandScopePeer { } /// The specified bot commands will be valid only for a specific user in the specified group or supergroup. See [TLDef(0x0A1321F3, inheritBefore = true)] - public class BotCommandScopePeerUser : BotCommandScopePeer + public sealed partial class BotCommandScopePeerUser : BotCommandScopePeer { /// The user public InputUserBase user_id; } /// Result of an Account_ResetPassword request. See Derived classes: , , - public abstract class Account_ResetPasswordResult : IObject { } + public abstract partial class Account_ResetPasswordResult : IObject { } /// You recently requested a password reset that was canceled, please wait until the specified date before requesting another reset. See [TLDef(0xE3779861)] - public class Account_ResetPasswordFailedWait : Account_ResetPasswordResult + public sealed partial class Account_ResetPasswordFailedWait : Account_ResetPasswordResult { /// Wait until this date before requesting another reset. public DateTime retry_date; } /// You successfully requested a password reset, please wait until the specified date before finalizing the reset. See [TLDef(0xE9EFFC7D)] - public class Account_ResetPasswordRequestedWait : Account_ResetPasswordResult + public sealed partial class Account_ResetPasswordRequestedWait : Account_ResetPasswordResult { /// Wait until this date before finalizing the reset. public DateTime until_date; } /// The 2FA password was reset successfully. See [TLDef(0xE926D63E)] - public class Account_ResetPasswordOk : Account_ResetPasswordResult { } + public sealed partial class Account_ResetPasswordOk : Account_ResetPasswordResult { } /// A sponsored message. See [TLDef(0xED5383F7)] - public class SponsoredMessage : IObject + public sealed partial class SponsoredMessage : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14298,7 +14298,7 @@ namespace TL /// A set of sponsored messages associated to a channel See /// a value means messages.sponsoredMessagesEmpty [TLDef(0xC9EE1D87)] - public class Messages_SponsoredMessages : IObject, IPeerResolver + public sealed partial class Messages_SponsoredMessages : IObject, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14322,7 +14322,7 @@ namespace TL /// Information about found messages sent on a specific day, used to split the messages in s by days. See [TLDef(0xC9B0539F)] - public class SearchResultsCalendarPeriod : IObject + public sealed partial class SearchResultsCalendarPeriod : IObject { /// The day this object is referring to. public DateTime date; @@ -14336,7 +14336,7 @@ namespace TL /// Information about found messages sent on a specific day See [TLDef(0x147EE23C)] - public class Messages_SearchResultsCalendar : IObject, IPeerResolver + public sealed partial class Messages_SearchResultsCalendar : IObject, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14369,10 +14369,10 @@ namespace TL } /// Information about a message in a specific position See Derived classes: - public abstract class SearchResultsPosition : IObject { } + public abstract partial class SearchResultsPosition : IObject { } /// Information about a message in a specific position See [TLDef(0x7F648B67)] - public class SearchResultPosition : SearchResultsPosition + public sealed partial class SearchResultPosition : SearchResultsPosition { /// Message ID public int msg_id; @@ -14384,7 +14384,7 @@ namespace TL /// Information about sparse positions of messages See [TLDef(0x53B22BAF)] - public class Messages_SearchResultsPositions : IObject + public sealed partial class Messages_SearchResultsPositions : IObject { /// Total number of found messages public int count; @@ -14394,7 +14394,7 @@ namespace TL /// A list of peers that can be used to send messages in a specific group See [TLDef(0xF496B0C6)] - public class Channels_SendAsPeers : IObject, IPeerResolver + public sealed partial class Channels_SendAsPeers : IObject, IPeerResolver { /// Peers that can be used to send messages to the group public SendAsPeer[] peers; @@ -14408,7 +14408,7 @@ namespace TL /// Full user information See [TLDef(0x3B6D152E)] - public class Users_UserFull : IObject, IPeerResolver + public sealed partial class Users_UserFull : IObject, IPeerResolver { /// Full user information public UserFull full_user; @@ -14422,7 +14422,7 @@ namespace TL /// Peer settings See [TLDef(0x6880B94D)] - public class Messages_PeerSettings : IObject, IPeerResolver + public sealed partial class Messages_PeerSettings : IObject, IPeerResolver { /// Peer settings public PeerSettings settings; @@ -14436,7 +14436,7 @@ namespace TL /// Future auth token » to be used on subsequent authorizations See [TLDef(0xC3A2835F)] - public class Auth_LoggedOut : IObject + public sealed partial class Auth_LoggedOut : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14452,7 +14452,7 @@ namespace TL /// Reactions See [TLDef(0xA3D1CB80)] - public class ReactionCount : IObject + public sealed partial class ReactionCount : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14472,7 +14472,7 @@ namespace TL /// Message reactions » See [TLDef(0x4F2B9479)] - public class MessageReactions : IObject + public sealed partial class MessageReactions : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14495,7 +14495,7 @@ namespace TL /// List of peers that reacted to a specific message See [TLDef(0x31BD492D)] - public class Messages_MessageReactionsList : IObject, IPeerResolver + public sealed partial class Messages_MessageReactionsList : IObject, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14521,7 +14521,7 @@ namespace TL /// Animations associated with a message reaction See [TLDef(0xC077EC01)] - public class AvailableReaction : IObject + public sealed partial class AvailableReaction : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14558,7 +14558,7 @@ namespace TL /// Animations and metadata associated with message reactions » See /// a value means messages.availableReactionsNotModified [TLDef(0x768E3AAD)] - public class Messages_AvailableReactions : IObject + public sealed partial class Messages_AvailableReactions : IObject { /// Hash for pagination, for more info click here public int hash; @@ -14568,7 +14568,7 @@ namespace TL /// How a certain peer reacted to the message See [TLDef(0x8C79B63C)] - public class MessagePeerReaction : IObject + public sealed partial class MessagePeerReaction : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14592,7 +14592,7 @@ namespace TL /// Info about an RTMP stream in a group call or livestream See [TLDef(0x80EB48AF)] - public class GroupCallStreamChannel : IObject + public sealed partial class GroupCallStreamChannel : IObject { /// Channel ID public int channel; @@ -14604,7 +14604,7 @@ namespace TL /// Info about RTMP streams in a group call or livestream See [TLDef(0xD0E482B2)] - public class Phone_GroupCallStreamChannels : IObject + public sealed partial class Phone_GroupCallStreamChannels : IObject { /// RTMP streams public GroupCallStreamChannel[] channels; @@ -14612,7 +14612,7 @@ namespace TL /// RTMP URL and stream key to be used in streaming software See [TLDef(0x2DBF3432)] - public class Phone_GroupCallStreamRtmpUrl : IObject + public sealed partial class Phone_GroupCallStreamRtmpUrl : IObject { /// RTMP URL public string url; @@ -14622,7 +14622,7 @@ namespace TL /// Represents an attachment menu icon color for bot mini apps » See [TLDef(0x4576F3F0)] - public class AttachMenuBotIconColor : IObject + public sealed partial class AttachMenuBotIconColor : IObject { /// One of the following values:
light_icon - Color of the attachment menu icon (light mode)
light_text - Color of the attachment menu label, once selected (light mode)
dark_icon - Color of the attachment menu icon (dark mode)
dark_text - Color of the attachment menu label, once selected (dark mode)
public string name; @@ -14632,7 +14632,7 @@ namespace TL ///
Represents an attachment menu icon for bot mini apps » See [TLDef(0xB2A7386B)] - public class AttachMenuBotIcon : IObject + public sealed partial class AttachMenuBotIcon : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14652,7 +14652,7 @@ namespace TL /// Represents a bot mini app that can be launched from the attachment/side menu » See [TLDef(0xD90D8DFE)] - public class AttachMenuBot : IObject + public sealed partial class AttachMenuBot : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14685,7 +14685,7 @@ namespace TL /// Represents a list of bot mini apps that can be launched from the attachment menu » See /// a value means attachMenuBotsNotModified [TLDef(0x3C4301C0)] - public class AttachMenuBots : IObject + public sealed partial class AttachMenuBots : IObject { /// Hash for pagination, for more info click here public long hash; @@ -14697,7 +14697,7 @@ namespace TL /// Represents a bot mini app that can be launched from the attachment menu » See [TLDef(0x93BF667F)] - public class AttachMenuBotsBot : IObject + public sealed partial class AttachMenuBotsBot : IObject { /// Represents a bot mini app that can be launched from the attachment menu »
public AttachMenuBot bot; @@ -14706,10 +14706,10 @@ namespace TL } /// Contains the webview URL with appropriate theme and user info parameters added See Derived classes: - public abstract class WebViewResult : IObject { } + public abstract partial class WebViewResult : IObject { } /// Contains the webview URL with appropriate theme and user info parameters added See [TLDef(0x0C14557C)] - public class WebViewResultUrl : WebViewResult + public sealed partial class WebViewResultUrl : WebViewResult { /// Webview session ID public long query_id; @@ -14718,10 +14718,10 @@ namespace TL } /// Contains the webview URL with appropriate theme parameters added See Derived classes: - public abstract class SimpleWebViewResult : IObject { } + public abstract partial class SimpleWebViewResult : IObject { } /// Contains the webview URL with appropriate theme parameters added See [TLDef(0x882F76BB)] - public class SimpleWebViewResultUrl : SimpleWebViewResult + public sealed partial class SimpleWebViewResultUrl : SimpleWebViewResult { /// URL public string url; @@ -14729,7 +14729,7 @@ namespace TL /// Info about a sent inline webview message See [TLDef(0x0C94511C)] - public class WebViewMessageSent : IObject + public sealed partial class WebViewMessageSent : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14745,13 +14745,13 @@ namespace TL /// Indicates the action to execute when pressing the in-UI menu button for bots See Derived classes: , /// a value means botMenuButtonDefault - public abstract class BotMenuButtonBase : IObject { } + public abstract partial class BotMenuButtonBase : IObject { } /// Bot menu button that opens the bot command list when clicked. See [TLDef(0x4258C205)] - public class BotMenuButtonCommands : BotMenuButtonBase { } + public sealed partial class BotMenuButtonCommands : BotMenuButtonBase { } /// Bot menu button that opens a web app when clicked. See [TLDef(0xC7B57CE6)] - public class BotMenuButton : BotMenuButtonBase + public sealed partial class BotMenuButton : BotMenuButtonBase { /// Title to be displayed on the menu button instead of 'Menu' public string text; @@ -14762,7 +14762,7 @@ namespace TL /// A list of saved notification sounds See /// a value means account.savedRingtonesNotModified [TLDef(0xC1E92CC5)] - public class Account_SavedRingtones : IObject + public sealed partial class Account_SavedRingtones : IObject { /// Hash for pagination, for more info click here public long hash; @@ -14772,13 +14772,13 @@ namespace TL /// Represents a notification sound See Derived classes: , , /// a value means notificationSoundDefault - public abstract class NotificationSound : IObject { } + public abstract partial class NotificationSound : IObject { } /// No notification sound should be used See [TLDef(0x6F0C34DF)] - public class NotificationSoundNone : NotificationSound { } + public sealed partial class NotificationSoundNone : NotificationSound { } /// Indicates a specific local notification sound should be used See [TLDef(0x830B9AE4)] - public class NotificationSoundLocal : NotificationSound + public sealed partial class NotificationSoundLocal : NotificationSound { /// Notification sound title public string title; @@ -14787,7 +14787,7 @@ namespace TL } /// A specific previously uploaded notification sound should be used See [TLDef(0xFF6C8049)] - public class NotificationSoundRingtone : NotificationSound + public sealed partial class NotificationSoundRingtone : NotificationSound { /// Document ID of notification sound uploaded using Account_UploadRingtone public long id; @@ -14795,10 +14795,10 @@ namespace TL /// The notification sound was already in MP3 format and was saved without any modification See [TLDef(0xB7263F6D)] - public class Account_SavedRingtone : IObject { } + public partial class Account_SavedRingtone : IObject { } /// The notification sound was not in MP3 format and was successfully converted and saved, use the returned to refer to the notification sound from now on See [TLDef(0x1F307EB7)] - public class Account_SavedRingtoneConverted : Account_SavedRingtone + public sealed partial class Account_SavedRingtoneConverted : Account_SavedRingtone { /// The converted notification sound public DocumentBase document; @@ -14820,10 +14820,10 @@ namespace TL } /// An invoice See Derived classes: , , - public abstract class InputInvoice : IObject { } + public abstract partial class InputInvoice : IObject { } /// An invoice contained in a message. See [TLDef(0xC5B56859)] - public class InputInvoiceMessage : InputInvoice + public sealed partial class InputInvoiceMessage : InputInvoice { /// Chat where the invoice was sent public InputPeer peer; @@ -14832,14 +14832,14 @@ namespace TL } /// An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config parameter » See [TLDef(0xC326CAEF)] - public class InputInvoiceSlug : InputInvoice + public sealed partial class InputInvoiceSlug : InputInvoice { /// The invoice slug public string slug; } /// Used if the user wishes to start a channel giveaway or send some giftcodes to members of a channel, in exchange for boosts. See [TLDef(0x98986C0D)] - public class InputInvoicePremiumGiftCode : InputInvoice + public sealed partial class InputInvoicePremiumGiftCode : InputInvoice { /// Should be populated with for giveaways and for gifts. public InputStorePaymentPurpose purpose; @@ -14849,7 +14849,7 @@ namespace TL /// Exported invoice deep link See [TLDef(0xAED0CBD9)] - public class Payments_ExportedInvoice : IObject + public sealed partial class Payments_ExportedInvoice : IObject { /// Exported invoice deep link public string url; @@ -14857,7 +14857,7 @@ namespace TL /// Transcribed text from a voice message » See [TLDef(0xCFB9D957)] - public class Messages_TranscribedAudio : IObject + public sealed partial class Messages_TranscribedAudio : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14881,7 +14881,7 @@ namespace TL /// Telegram Premium promotion information See [TLDef(0x5334759C)] - public class Help_PremiumPromo : IObject + public sealed partial class Help_PremiumPromo : IObject { /// Description of the current state of the user's Telegram Premium subscription public string status_text; @@ -14898,10 +14898,10 @@ namespace TL } /// Info about a Telegram Premium purchase See Derived classes: , , , - public abstract class InputStorePaymentPurpose : IObject { } + public abstract partial class InputStorePaymentPurpose : IObject { } /// Info about a Telegram Premium purchase See [TLDef(0xA6751E66)] - public class InputStorePaymentPremiumSubscription : InputStorePaymentPurpose + public sealed partial class InputStorePaymentPremiumSubscription : InputStorePaymentPurpose { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14916,7 +14916,7 @@ namespace TL } /// Info about a gifted Telegram Premium purchase See [TLDef(0x616F7FE8)] - public class InputStorePaymentGiftPremium : InputStorePaymentPurpose + public sealed partial class InputStorePaymentGiftPremium : InputStorePaymentPurpose { /// The user to which the Telegram Premium subscription was gifted public InputUserBase user_id; @@ -14927,7 +14927,7 @@ namespace TL } /// Used to gift Telegram Premium subscriptions only to some specific subscribers of a channel or to some of our contacts, see here » for more info on giveaways and gifts. See [TLDef(0xA3805F3F)] - public class InputStorePaymentPremiumGiftCode : InputStorePaymentPurpose + public sealed partial class InputStorePaymentPremiumGiftCode : InputStorePaymentPurpose { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14948,7 +14948,7 @@ namespace TL } /// Used to pay for a giveaway, see here » for more info. See [TLDef(0x160544CA)] - public class InputStorePaymentPremiumGiveaway : InputStorePaymentPurpose + public sealed partial class InputStorePaymentPremiumGiveaway : InputStorePaymentPurpose { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -14986,7 +14986,7 @@ namespace TL /// Telegram Premium gift option See [TLDef(0x74C34319)] - public class PremiumGiftOption : IObject + public sealed partial class PremiumGiftOption : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15010,7 +15010,7 @@ namespace TL /// Represents an additional payment method See [TLDef(0x88F8F21B)] - public class PaymentFormMethod : IObject + public sealed partial class PaymentFormMethod : IObject { /// URL to open in a webview to process the payment public string url; @@ -15021,14 +15021,14 @@ namespace TL /// An emoji status See /// a value means emojiStatusEmpty [TLDef(0x929B619D)] - public class EmojiStatus : IObject + public partial class EmojiStatus : IObject { /// Custom emoji document ID public long document_id; } /// An emoji status valid until the specified date See [TLDef(0xFA30A8C7, inheritBefore = true)] - public class EmojiStatusUntil : EmojiStatus + public sealed partial class EmojiStatusUntil : EmojiStatus { /// This status is valid until this date public int until; @@ -15037,7 +15037,7 @@ namespace TL /// A list of emoji statuses See /// a value means account.emojiStatusesNotModified [TLDef(0x90C467D1)] - public class Account_EmojiStatuses : IObject + public sealed partial class Account_EmojiStatuses : IObject { /// Hash for pagination, for more info click here public long hash; @@ -15047,17 +15047,17 @@ namespace TL /// Message reaction See Derived classes: , /// a value means reactionEmpty - public abstract class Reaction : IObject { } + public abstract partial class Reaction : IObject { } /// Normal emoji message reaction See [TLDef(0x1B2286B8)] - public class ReactionEmoji : Reaction + public sealed partial class ReactionEmoji : Reaction { /// Emoji public string emoticon; } /// Custom emoji message reaction See [TLDef(0x8935FC73)] - public class ReactionCustomEmoji : Reaction + public sealed partial class ReactionCustomEmoji : Reaction { /// Custom emoji document ID public long document_id; @@ -15065,10 +15065,10 @@ namespace TL /// Available chat reactions See Derived classes: , /// a value means chatReactionsNone - public abstract class ChatReactions : IObject { } + public abstract partial class ChatReactions : IObject { } /// All reactions or all non-custom reactions are allowed See [TLDef(0x52928BCA)] - public class ChatReactionsAll : ChatReactions + public sealed partial class ChatReactionsAll : ChatReactions { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15081,7 +15081,7 @@ namespace TL } /// Some reactions are allowed See [TLDef(0x661D4037)] - public class ChatReactionsSome : ChatReactions + public sealed partial class ChatReactionsSome : ChatReactions { /// Allowed set of reactions: the reactions_in_chat_max configuration field indicates the maximum number of reactions that can be specified in this field. public Reaction[] reactions; @@ -15090,7 +15090,7 @@ namespace TL /// List of message reactions See /// a value means messages.reactionsNotModified [TLDef(0xEAFDF716)] - public class Messages_Reactions : IObject + public sealed partial class Messages_Reactions : IObject { /// Hash for pagination, for more info click here public long hash; @@ -15099,10 +15099,10 @@ namespace TL } /// Email verification purpose See Derived classes: , , - public abstract class EmailVerifyPurpose : IObject { } + public abstract partial class EmailVerifyPurpose : IObject { } /// Email verification purpose: setup login email See [TLDef(0x4345BE73)] - public class EmailVerifyPurposeLoginSetup : EmailVerifyPurpose + public sealed partial class EmailVerifyPurposeLoginSetup : EmailVerifyPurpose { /// Phone number public string phone_number; @@ -15111,30 +15111,30 @@ namespace TL } /// Email verification purpose: change login email See [TLDef(0x527D22EB)] - public class EmailVerifyPurposeLoginChange : EmailVerifyPurpose { } + public sealed partial class EmailVerifyPurposeLoginChange : EmailVerifyPurpose { } /// Verify an email for use in telegram passport See [TLDef(0xBBF51685)] - public class EmailVerifyPurposePassport : EmailVerifyPurpose { } + public sealed partial class EmailVerifyPurposePassport : EmailVerifyPurpose { } /// Email verification code or token See Derived classes: , , - public abstract class EmailVerification : IObject { } + public abstract partial class EmailVerification : IObject { } /// Email verification code See [TLDef(0x922E55A9)] - public class EmailVerificationCode : EmailVerification + public sealed partial class EmailVerificationCode : EmailVerification { /// Received verification code public string code; } /// Google ID email verification token See [TLDef(0xDB909EC2)] - public class EmailVerificationGoogle : EmailVerification + public sealed partial class EmailVerificationGoogle : EmailVerification { /// Token public string token; } /// Apple ID email verification token See [TLDef(0x96D074FD)] - public class EmailVerificationApple : EmailVerification + public sealed partial class EmailVerificationApple : EmailVerification { /// Token public string token; @@ -15142,14 +15142,14 @@ namespace TL /// The email was verified correctly. See [TLDef(0x2B96CD1B)] - public class Account_EmailVerified : IObject + public partial class Account_EmailVerified : IObject { /// The verified email address. public string email; } /// The email was verified correctly, and a login code was just sent to it. See [TLDef(0xE1BB0D61, inheritBefore = true)] - public class Account_EmailVerifiedLogin : Account_EmailVerified + public sealed partial class Account_EmailVerifiedLogin : Account_EmailVerified { /// Info about the sent login code public Auth_SentCodeBase sent_code; @@ -15157,7 +15157,7 @@ namespace TL /// Describes a Telegram Premium subscription option See [TLDef(0x5F2D1DF2)] - public class PremiumSubscriptionOption : IObject + public sealed partial class PremiumSubscriptionOption : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15189,7 +15189,7 @@ namespace TL /// Indicates a peer that can be used to send messages See [TLDef(0xB81C7034)] - public class SendAsPeer : IObject + public sealed partial class SendAsPeer : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15204,10 +15204,10 @@ namespace TL } /// Extended media See Derived classes: , - public abstract class MessageExtendedMediaBase : IObject { } + public abstract partial class MessageExtendedMediaBase : IObject { } /// Extended media preview See [TLDef(0xAD628CC8)] - public class MessageExtendedMediaPreview : MessageExtendedMediaBase + public sealed partial class MessageExtendedMediaPreview : MessageExtendedMediaBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15232,7 +15232,7 @@ namespace TL } /// Extended media See [TLDef(0xEE479C64)] - public class MessageExtendedMedia : MessageExtendedMediaBase + public sealed partial class MessageExtendedMedia : MessageExtendedMediaBase { /// Media public MessageMedia media; @@ -15240,7 +15240,7 @@ namespace TL /// Keywords for a certain sticker See [TLDef(0xFCFEB29C)] - public class StickerKeyword : IObject + public sealed partial class StickerKeyword : IObject { /// Sticker ID public long document_id; @@ -15250,7 +15250,7 @@ namespace TL /// Contains information about a username. See [TLDef(0xB4073647)] - public class Username : IObject + public sealed partial class Username : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15267,14 +15267,14 @@ namespace TL } /// Contains information about a forum topic See Derived classes: , - public abstract class ForumTopicBase : IObject + public abstract partial class ForumTopicBase : IObject { /// The ID of the deleted forum topic. public virtual int ID => default; } /// Represents a deleted forum topic. See [TLDef(0x023F109B)] - public class ForumTopicDeleted : ForumTopicBase + public sealed partial class ForumTopicDeleted : ForumTopicBase { /// The ID of the deleted forum topic. public int id; @@ -15284,7 +15284,7 @@ namespace TL } /// Represents a forum topic. See [TLDef(0x71701DA9)] - public class ForumTopic : ForumTopicBase + public sealed partial class ForumTopic : ForumTopicBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15341,7 +15341,7 @@ namespace TL /// Contains information about multiple forum topics See [TLDef(0x367617D3)] - public class Messages_ForumTopics : IObject, IPeerResolver + public sealed partial class Messages_ForumTopics : IObject, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15369,7 +15369,7 @@ namespace TL /// Contains info about the default value of the Time-To-Live setting, applied to all new chats. See [TLDef(0x43B46B20)] - public class DefaultHistoryTTL : IObject + public sealed partial class DefaultHistoryTTL : IObject { /// Time-To-Live setting applied to all new chats. public int period; @@ -15377,7 +15377,7 @@ namespace TL /// Describes a temporary profile link. See [TLDef(0x41BF109B)] - public class ExportedContactToken : IObject + public sealed partial class ExportedContactToken : IObject { /// The temporary profile link. public string url; @@ -15386,10 +15386,10 @@ namespace TL } /// Filtering criteria to use for the peer selection list shown to the user. See Derived classes: , , - public abstract class RequestPeerType : IObject { } + public abstract partial class RequestPeerType : IObject { } /// Choose a user. See [TLDef(0x5F3B8A00)] - public class RequestPeerTypeUser : RequestPeerType + public sealed partial class RequestPeerTypeUser : RequestPeerType { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15408,7 +15408,7 @@ namespace TL } /// Choose a chat or supergroup See [TLDef(0xC9F06E1B)] - public class RequestPeerTypeChat : RequestPeerType + public sealed partial class RequestPeerTypeChat : RequestPeerType { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15439,7 +15439,7 @@ namespace TL } /// Choose a channel See [TLDef(0x339BEF6C)] - public class RequestPeerTypeBroadcast : RequestPeerType + public sealed partial class RequestPeerTypeBroadcast : RequestPeerType { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15466,7 +15466,7 @@ namespace TL /// Represents a list of custom emojis. See /// a value means emojiListNotModified [TLDef(0x7A1E11D1)] - public class EmojiList : IObject + public sealed partial class EmojiList : IObject { /// Hash for pagination, for more info click here public long hash; @@ -15476,7 +15476,7 @@ namespace TL /// Represents an emoji category. See [TLDef(0x7A9ABDA9)] - public class EmojiGroup : IObject + public sealed partial class EmojiGroup : IObject { /// Category name, i.e. "Animals", "Flags", "Faces" and so on... public string title; @@ -15489,7 +15489,7 @@ namespace TL /// Represents a list of emoji categories. See /// a value means messages.emojiGroupsNotModified [TLDef(0x881FB94B)] - public class Messages_EmojiGroups : IObject + public sealed partial class Messages_EmojiGroups : IObject { /// Hash for pagination, for more info click here public int hash; @@ -15499,7 +15499,7 @@ namespace TL /// Styled text with message entities See [TLDef(0x751F3146)] - public class TextWithEntities : IObject + public sealed partial class TextWithEntities : IObject { /// Text public string text; @@ -15508,10 +15508,10 @@ namespace TL } /// Translated text with entities. See Derived classes: - public abstract class Messages_TranslatedText : IObject { } + public abstract partial class Messages_TranslatedText : IObject { } /// Translated text with entities See [TLDef(0x33DB32F8)] - public class Messages_TranslateResult : Messages_TranslatedText + public sealed partial class Messages_TranslateResult : Messages_TranslatedText { /// Text+entities, for each input message. public TextWithEntities[] result; @@ -15519,7 +15519,7 @@ namespace TL /// Media autosave settings See [TLDef(0xC84834CE)] - public class AutoSaveSettings : IObject + public sealed partial class AutoSaveSettings : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15539,7 +15539,7 @@ namespace TL /// Peer-specific media autosave settings See [TLDef(0x81602D47)] - public class AutoSaveException : IObject + public sealed partial class AutoSaveException : IObject { /// The peer public Peer peer; @@ -15549,7 +15549,7 @@ namespace TL /// Contains media autosave settings See [TLDef(0x4C3E069D)] - public class Account_AutoSaveSettings : IObject, IPeerResolver + public sealed partial class Account_AutoSaveSettings : IObject, IPeerResolver { /// Default media autosave settings for private chats public AutoSaveSettings users_settings; @@ -15570,7 +15570,7 @@ namespace TL /// Contains various client configuration parameters See /// a value means help.appConfigNotModified [TLDef(0xDD18782E)] - public class Help_AppConfig : IObject + public sealed partial class Help_AppConfig : IObject { /// Hash for pagination, for more info click here public int hash; @@ -15579,10 +15579,10 @@ namespace TL } /// Used to fetch information about a direct link Mini App See Derived classes: , - public abstract class InputBotApp : IObject { } + public abstract partial class InputBotApp : IObject { } /// Used to fetch information about a direct link Mini App by its ID See [TLDef(0xA920BD7A)] - public class InputBotAppID : InputBotApp + public sealed partial class InputBotAppID : InputBotApp { /// direct link Mini App ID. public long id; @@ -15591,7 +15591,7 @@ namespace TL } /// Used to fetch information about a direct link Mini App by its short name See [TLDef(0x908C0407)] - public class InputBotAppShortName : InputBotApp + public sealed partial class InputBotAppShortName : InputBotApp { /// ID of the bot that owns the bot mini app public InputUserBase bot_id; @@ -15602,7 +15602,7 @@ namespace TL /// Contains information about a direct link Mini App. See /// a value means botAppNotModified [TLDef(0x95FCD1D6)] - public class BotApp : IObject + public sealed partial class BotApp : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15632,7 +15632,7 @@ namespace TL /// Contains information about a direct link Mini App See [TLDef(0xEB50ADF5)] - public class Messages_BotApp : IObject + public sealed partial class Messages_BotApp : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15651,10 +15651,10 @@ namespace TL } /// Contains the link that must be used to open a direct link Mini App. See Derived classes: - public abstract class AppWebViewResult : IObject { } + public abstract partial class AppWebViewResult : IObject { } /// Contains the link that must be used to open a direct link Mini App. See [TLDef(0x3C1B4F0D)] - public class AppWebViewResultUrl : AppWebViewResult + public sealed partial class AppWebViewResultUrl : AppWebViewResult { /// The URL to open public string url; @@ -15662,7 +15662,7 @@ namespace TL /// Specifies an inline mode mini app button, shown on top of the inline query results list. See [TLDef(0xB57295D5)] - public class InlineBotWebView : IObject + public sealed partial class InlineBotWebView : IObject { /// Text of the button public string text; @@ -15672,7 +15672,7 @@ namespace TL /// Contains info about when a certain participant has read a message See [TLDef(0x4A4FF172)] - public class ReadParticipantDate : IObject + public sealed partial class ReadParticipantDate : IObject { /// User ID public long user_id; @@ -15681,10 +15681,10 @@ namespace TL } /// Represents a folder See Derived classes: - public abstract class InputChatlist : IObject { } + public abstract partial class InputChatlist : IObject { } /// Folder ID See [TLDef(0xF3E0DA33)] - public class InputChatlistDialogFilter : InputChatlist + public sealed partial class InputChatlistDialogFilter : InputChatlist { /// Folder ID public int filter_id; @@ -15692,7 +15692,7 @@ namespace TL /// Exported chat folder deep link ». See [TLDef(0x0C5181AC)] - public class ExportedChatlistInvite : IObject + public sealed partial class ExportedChatlistInvite : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15710,7 +15710,7 @@ namespace TL /// Info about an exported chat folder deep link ». See [TLDef(0x10E6E3A6)] - public class Chatlists_ExportedChatlistInvite : IObject + public sealed partial class Chatlists_ExportedChatlistInvite : IObject { /// Folder ID public DialogFilterBase filter; @@ -15720,7 +15720,7 @@ namespace TL /// Info about multiple chat folder deep links ». See [TLDef(0x10AB6DC7)] - public class Chatlists_ExportedInvites : IObject, IPeerResolver + public sealed partial class Chatlists_ExportedInvites : IObject, IPeerResolver { /// The chat folder deep links ». public ExportedChatlistInvite[] invites; @@ -15733,7 +15733,7 @@ namespace TL } /// Info about a chat folder deep link ». See Derived classes: , - public abstract class Chatlists_ChatlistInviteBase : IObject + public abstract partial class Chatlists_ChatlistInviteBase : IObject { /// Related chat information public virtual Dictionary Chats => default; @@ -15742,7 +15742,7 @@ namespace TL } /// Updated info about a chat folder deep link » we already imported. See [TLDef(0xFA87F659)] - public class Chatlists_ChatlistInviteAlready : Chatlists_ChatlistInviteBase, IPeerResolver + public sealed partial class Chatlists_ChatlistInviteAlready : Chatlists_ChatlistInviteBase, IPeerResolver { /// ID of the imported folder public int filter_id; @@ -15764,7 +15764,7 @@ namespace TL } /// Info about a chat folder deep link ». See [TLDef(0x1DCD839D)] - public class Chatlists_ChatlistInvite : Chatlists_ChatlistInviteBase, IPeerResolver + public sealed partial class Chatlists_ChatlistInvite : Chatlists_ChatlistInviteBase, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15795,7 +15795,7 @@ namespace TL /// Updated information about a chat folder deep link ». See [TLDef(0x93BD878D)] - public class Chatlists_ChatlistUpdates : IObject, IPeerResolver + public sealed partial class Chatlists_ChatlistUpdates : IObject, IPeerResolver { /// New peers to join public Peer[] missing_peers; @@ -15809,7 +15809,7 @@ namespace TL /// Localized information about a bot. See [TLDef(0xE8A775B0)] - public class Bots_BotInfo : IObject + public sealed partial class Bots_BotInfo : IObject { /// Bot name public string name; @@ -15820,7 +15820,7 @@ namespace TL } /// How a user voted in a poll See Derived classes: , , - public abstract class MessagePeerVoteBase : IObject + public abstract partial class MessagePeerVoteBase : IObject { /// Peer ID public virtual Peer Peer => default; @@ -15829,7 +15829,7 @@ namespace TL } /// How a peer voted in a poll See [TLDef(0xB6CC2D5C)] - public class MessagePeerVote : MessagePeerVoteBase + public sealed partial class MessagePeerVote : MessagePeerVoteBase { /// Peer ID public Peer peer; @@ -15845,7 +15845,7 @@ namespace TL } /// How a peer voted in a poll (reduced constructor, returned if an option was provided to Messages_GetPollVotes) See [TLDef(0x74CDA504)] - public class MessagePeerVoteInputOption : MessagePeerVoteBase + public sealed partial class MessagePeerVoteInputOption : MessagePeerVoteBase { /// The peer that voted for the queried option public Peer peer; @@ -15859,7 +15859,7 @@ namespace TL } /// How a peer voted in a multiple-choice poll See [TLDef(0x4628F6E6)] - public class MessagePeerVoteMultiple : MessagePeerVoteBase + public sealed partial class MessagePeerVoteMultiple : MessagePeerVoteBase { /// Peer ID public Peer peer; @@ -15876,7 +15876,7 @@ namespace TL /// Represents a sponsored website. See [TLDef(0x3DB8EC63)] - public class SponsoredWebPage : IObject + public sealed partial class SponsoredWebPage : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15896,7 +15896,7 @@ namespace TL /// Aggregated view and reaction information of a story. See [TLDef(0x8D595CD6)] - public class StoryViews : IObject + public sealed partial class StoryViews : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15927,14 +15927,14 @@ namespace TL } /// Represents a Telegram Story See Derived classes: , , - public abstract class StoryItemBase : IObject + public abstract partial class StoryItemBase : IObject { /// Story ID public virtual int ID => default; } /// Represents a previously active story, that was deleted See [TLDef(0x51E6EE4F)] - public class StoryItemDeleted : StoryItemBase + public sealed partial class StoryItemDeleted : StoryItemBase { /// Story ID public int id; @@ -15944,7 +15944,7 @@ namespace TL } /// Represents an active story, whose full information was omitted for space and performance reasons; use Stories_GetStoriesByID to fetch full info about the skipped story when and if needed. See [TLDef(0xFFADC913)] - public class StoryItemSkipped : StoryItemBase + public sealed partial class StoryItemSkipped : StoryItemBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -15966,7 +15966,7 @@ namespace TL } /// Represents a story. See [TLDef(0x79B26A24)] - public class StoryItem : StoryItemBase + public sealed partial class StoryItem : StoryItemBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16037,10 +16037,10 @@ namespace TL } /// Full list of active (or active and hidden) stories. See Derived classes: , - public abstract class Stories_AllStoriesBase : IObject { } + public abstract partial class Stories_AllStoriesBase : IObject { } /// The list of active (or active and hidden) stories has not changed. See [TLDef(0x1158FE3E)] - public class Stories_AllStoriesNotModified : Stories_AllStoriesBase + public sealed partial class Stories_AllStoriesNotModified : Stories_AllStoriesBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16055,7 +16055,7 @@ namespace TL } /// Full list of active (or active and hidden) stories. See [TLDef(0x6EFC5E81)] - public class Stories_AllStories : Stories_AllStoriesBase, IPeerResolver + public sealed partial class Stories_AllStories : Stories_AllStoriesBase, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16083,7 +16083,7 @@ namespace TL /// List of stories See [TLDef(0x5DD8C3C8)] - public class Stories_Stories : IObject, IPeerResolver + public sealed partial class Stories_Stories : IObject, IPeerResolver { /// Total number of stories that can be fetched public int count; @@ -16098,10 +16098,10 @@ namespace TL } /// Story view date and reaction information See Derived classes: , , - public abstract class StoryViewBase : IObject { } + public abstract partial class StoryViewBase : IObject { } /// Story view date and reaction information See [TLDef(0xB0BDEAC5)] - public class StoryView : StoryViewBase + public sealed partial class StoryView : StoryViewBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16124,7 +16124,7 @@ namespace TL } /// A certain peer has forwarded the story as a message to a public chat or channel. See [TLDef(0x9083670B)] - public class StoryViewPublicForward : StoryViewBase + public sealed partial class StoryViewPublicForward : StoryViewBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16141,7 +16141,7 @@ namespace TL } /// A certain peer has reposted the story. See [TLDef(0xBD74CF49)] - public class StoryViewPublicRepost : StoryViewBase + public sealed partial class StoryViewPublicRepost : StoryViewBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16161,7 +16161,7 @@ namespace TL /// Reaction and view counters for a story See [TLDef(0x59D78FC5)] - public class Stories_StoryViewsList : IObject, IPeerResolver + public sealed partial class Stories_StoryViewsList : IObject, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16193,7 +16193,7 @@ namespace TL /// Reaction and view counters for a list of stories See [TLDef(0xDE9EED1D)] - public class Stories_StoryViews : IObject + public sealed partial class Stories_StoryViews : IObject { /// View date and reaction information of multiple stories public StoryViews[] views; @@ -16202,10 +16202,10 @@ namespace TL } /// Contains info about a message or story to reply to. See Derived classes: , - public abstract class InputReplyTo : IObject { } + public abstract partial class InputReplyTo : IObject { } /// Reply to a message. See [TLDef(0x22C0F6D5)] - public class InputReplyToMessage : InputReplyTo + public sealed partial class InputReplyToMessage : InputReplyTo { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16238,7 +16238,7 @@ namespace TL } /// Reply to a story. See [TLDef(0x5881323A)] - public class InputReplyToStory : InputReplyTo + public sealed partial class InputReplyToStory : InputReplyTo { public InputPeer peer; /// ID of the story to reply to. @@ -16247,7 +16247,7 @@ namespace TL /// Represents a story deep link. See [TLDef(0x3FC9053B)] - public class ExportedStoryLink : IObject + public sealed partial class ExportedStoryLink : IObject { /// The story deep link. public string link; @@ -16255,7 +16255,7 @@ namespace TL /// Information about the current stealth mode session. See [TLDef(0x712E27FD)] - public class StoriesStealthMode : IObject + public sealed partial class StoriesStealthMode : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16275,7 +16275,7 @@ namespace TL /// Coordinates and size of a clicable rectangular area on top of a story. See [TLDef(0x03D1EA4E)] - public class MediaAreaCoordinates : IObject + public sealed partial class MediaAreaCoordinates : IObject { /// The abscissa of the rectangle's center, as a percentage of the media width (0-100). public double x; @@ -16290,10 +16290,10 @@ namespace TL } /// Represents a story media area » See Derived classes: , , , , , - public abstract class MediaArea : IObject { } + public abstract partial class MediaArea : IObject { } /// Represents a location tag attached to a story, with additional venue information. See [TLDef(0xBE82DB9C)] - public class MediaAreaVenue : MediaArea + public sealed partial class MediaAreaVenue : MediaArea { /// The size and location of the media area corresponding to the location sticker on top of the story media. public MediaAreaCoordinates coordinates; @@ -16312,7 +16312,7 @@ namespace TL } /// Represents a location tag attached to a story, with additional venue information. See [TLDef(0xB282217F)] - public class InputMediaAreaVenue : MediaArea + public sealed partial class InputMediaAreaVenue : MediaArea { /// The size and location of the media area corresponding to the location sticker on top of the story media. public MediaAreaCoordinates coordinates; @@ -16323,7 +16323,7 @@ namespace TL } /// Represents a geolocation tag attached to a story. See [TLDef(0xDF8B3B22)] - public class MediaAreaGeoPoint : MediaArea + public sealed partial class MediaAreaGeoPoint : MediaArea { /// The size and position of the media area corresponding to the location sticker on top of the story media. public MediaAreaCoordinates coordinates; @@ -16332,7 +16332,7 @@ namespace TL } /// Represents a reaction bubble. See [TLDef(0x14455871)] - public class MediaAreaSuggestedReaction : MediaArea + public sealed partial class MediaAreaSuggestedReaction : MediaArea { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16351,7 +16351,7 @@ namespace TL } /// Represents a channel post. See [TLDef(0x770416AF)] - public class MediaAreaChannelPost : MediaArea + public sealed partial class MediaAreaChannelPost : MediaArea { /// The size and location of the media area corresponding to the location sticker on top of the story media. public MediaAreaCoordinates coordinates; @@ -16362,7 +16362,7 @@ namespace TL } /// Represents a channel post See [TLDef(0x2271F2BF)] - public class InputMediaAreaChannelPost : MediaArea + public sealed partial class InputMediaAreaChannelPost : MediaArea { /// The size and location of the media area corresponding to the location sticker on top of the story media. public MediaAreaCoordinates coordinates; @@ -16374,7 +16374,7 @@ namespace TL /// Stories associated to a peer See [TLDef(0x9A35E999)] - public class PeerStories : IObject + public sealed partial class PeerStories : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16394,7 +16394,7 @@ namespace TL /// Active story list of a specific peer. See [TLDef(0xCAE68768)] - public class Stories_PeerStories : IObject, IPeerResolver + public sealed partial class Stories_PeerStories : IObject, IPeerResolver { /// Stories public PeerStories stories; @@ -16408,7 +16408,7 @@ namespace TL /// Represents an Instant View webpage. See [TLDef(0xFD5E12BD)] - public class Messages_WebPage : IObject, IPeerResolver + public sealed partial class Messages_WebPage : IObject, IPeerResolver { /// The instant view webpage. public WebPageBase webpage; @@ -16422,7 +16422,7 @@ namespace TL /// Contains info about a giveaway/gift option. See [TLDef(0x257E962B)] - public class PremiumGiftCodeOption : IObject + public sealed partial class PremiumGiftCodeOption : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16450,7 +16450,7 @@ namespace TL /// Contains info about a Telegram Premium giftcode link. See [TLDef(0x284A1096)] - public class Payments_CheckedGiftCode : IObject, IPeerResolver + public sealed partial class Payments_CheckedGiftCode : IObject, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16489,14 +16489,14 @@ namespace TL } /// Info about a Telegram Premium Giveaway. See Derived classes: , - public abstract class Payments_GiveawayInfoBase : IObject + public abstract partial class Payments_GiveawayInfoBase : IObject { /// When was the giveaway started public virtual DateTime StartDate => default; } /// Contains info about an ongoing giveaway. See [TLDef(0x4367DAA0)] - public class Payments_GiveawayInfo : Payments_GiveawayInfoBase + public sealed partial class Payments_GiveawayInfo : Payments_GiveawayInfoBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16528,7 +16528,7 @@ namespace TL } /// A giveaway has ended. See [TLDef(0x00CD5570)] - public class Payments_GiveawayInfoResults : Payments_GiveawayInfoBase + public sealed partial class Payments_GiveawayInfoResults : Payments_GiveawayInfoBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16557,7 +16557,7 @@ namespace TL /// Contains info about a prepaid giveaway ». See [TLDef(0xB2539D54)] - public class PrepaidGiveaway : IObject + public sealed partial class PrepaidGiveaway : IObject { /// Prepaid giveaway ID. public long id; @@ -16571,7 +16571,7 @@ namespace TL /// Info about one or more boosts applied by a specific user. See [TLDef(0x2A1C8C71)] - public class Boost : IObject + public sealed partial class Boost : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16609,7 +16609,7 @@ namespace TL /// List of boosts that were applied to a peer by multiple users. See [TLDef(0x86F8613C)] - public class Premium_BoostsList : IObject + public sealed partial class Premium_BoostsList : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16631,7 +16631,7 @@ namespace TL /// Contains information about a single boost slot ». See [TLDef(0xC448415C)] - public class MyBoost : IObject + public sealed partial class MyBoost : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16657,7 +16657,7 @@ namespace TL /// A list of peers we are currently boosting, and how many boost slots we have left. See [TLDef(0x9AE228E2)] - public class Premium_MyBoosts : IObject, IPeerResolver + public sealed partial class Premium_MyBoosts : IObject, IPeerResolver { /// Info about boosted peers and remaining boost slots. public MyBoost[] my_boosts; @@ -16671,7 +16671,7 @@ namespace TL /// Contains info about the current boost status of a peer. See [TLDef(0x4959427A)] - public class Premium_BoostsStatus : IObject + public sealed partial class Premium_BoostsStatus : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16711,7 +16711,7 @@ namespace TL /// Contains info about the original poster of a reposted story. See [TLDef(0xB826E150)] - public class StoryFwdHeader : IObject + public sealed partial class StoryFwdHeader : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16736,7 +16736,7 @@ namespace TL } /// Interaction counters See Derived classes: , - public abstract class PostInteractionCounters : IObject + public abstract partial class PostInteractionCounters : IObject { /// Number of views public int views; @@ -16747,14 +16747,14 @@ namespace TL } /// Interaction counters for a message. See [TLDef(0xE7058E7F)] - public class PostInteractionCountersMessage : PostInteractionCounters + public sealed partial class PostInteractionCountersMessage : PostInteractionCounters { /// Message ID public int msg_id; } /// Interaction counters for a story. See [TLDef(0x8A480E27)] - public class PostInteractionCountersStory : PostInteractionCounters + public sealed partial class PostInteractionCountersStory : PostInteractionCounters { /// Story ID public int story_id; @@ -16762,7 +16762,7 @@ namespace TL /// Contains statistics about a story. See [TLDef(0x50CD067C)] - public class Stats_StoryStats : IObject + public sealed partial class Stats_StoryStats : IObject { /// A graph containing the number of story views and shares public StatsGraphBase views_graph; @@ -16771,17 +16771,17 @@ namespace TL } /// Contains info about the forwards of a story as a message to public chats and reposts by public channels. See Derived classes: , - public abstract class PublicForward : IObject { } + public abstract partial class PublicForward : IObject { } /// Contains info about a forward of a story as a message. See [TLDef(0x01F2BF4A)] - public class PublicForwardMessage : PublicForward + public sealed partial class PublicForwardMessage : PublicForward { /// Info about the message with the reposted story. public MessageBase message; } /// Contains info about a forward of a story as a repost by a public channel. See [TLDef(0xEDF3ADD0)] - public class PublicForwardStory : PublicForward + public sealed partial class PublicForwardStory : PublicForward { /// The channel that reposted the story. public Peer peer; @@ -16791,7 +16791,7 @@ namespace TL /// Contains info about the forwards of a story as a message to public chats and reposts by public channels. See [TLDef(0x93037E20)] - public class Stats_PublicForwards : IObject, IPeerResolver + public sealed partial class Stats_PublicForwards : IObject, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16817,7 +16817,7 @@ namespace TL /// Represents a color palette ». See [TLDef(0xB54B5ACF)] - public class PeerColor : IObject + public sealed partial class PeerColor : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16836,17 +16836,17 @@ namespace TL } /// Contains info about a color palette ». See Derived classes: , - public abstract class Help_PeerColorSetBase : IObject { } + public abstract partial class Help_PeerColorSetBase : IObject { } /// Represents a color palette that can be used in message accents ». See [TLDef(0x26219A58)] - public class Help_PeerColorSet : Help_PeerColorSetBase + public sealed partial class Help_PeerColorSet : Help_PeerColorSetBase { /// A list of 1-3 colors in RGB format, describing the accent color. public int[] colors; } /// Represents a color palette that can be used in profile pages ». See [TLDef(0x767D61EB)] - public class Help_PeerColorProfileSet : Help_PeerColorSetBase + public sealed partial class Help_PeerColorProfileSet : Help_PeerColorSetBase { /// A list of 1-2 colors in RGB format, shown in the color palette settings to describe the current palette. public int[] palette_colors; @@ -16858,7 +16858,7 @@ namespace TL /// Contains info about a color palette ». See [TLDef(0xADEC6EBE)] - public class Help_PeerColorOption : IObject + public sealed partial class Help_PeerColorOption : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16890,7 +16890,7 @@ namespace TL /// Contains info about multiple color palettes ». See /// a value means help.peerColorsNotModified [TLDef(0x00F8ED08)] - public class Help_PeerColors : IObject + public sealed partial class Help_PeerColors : IObject { /// Hash for pagination, for more info click here public int hash; @@ -16899,10 +16899,10 @@ namespace TL } /// How a certain peer reacted to or interacted with a story See Derived classes: , , - public abstract class StoryReactionBase : IObject { } + public abstract partial class StoryReactionBase : IObject { } /// How a certain peer reacted to a story See [TLDef(0x6090D6D5)] - public class StoryReaction : StoryReactionBase + public sealed partial class StoryReaction : StoryReactionBase { /// The peer public Peer peer_id; @@ -16913,14 +16913,14 @@ namespace TL } /// A certain peer has forwarded the story as a message to a public chat or channel. See [TLDef(0xBBAB2643)] - public class StoryReactionPublicForward : StoryReactionBase + public sealed partial class StoryReactionPublicForward : StoryReactionBase { /// The message with the forwarded story. public MessageBase message; } /// A certain peer has reposted the story. See [TLDef(0xCFCD0F13)] - public class StoryReactionPublicRepost : StoryReactionBase + public sealed partial class StoryReactionPublicRepost : StoryReactionBase { /// The peer that reposted the story. public Peer peer_id; @@ -16930,7 +16930,7 @@ namespace TL /// List of peers that reacted to or intercated with a specific story See [TLDef(0xAA5F789C)] - public class Stories_StoryReactionsList : IObject, IPeerResolver + public sealed partial class Stories_StoryReactionsList : IObject, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16956,7 +16956,7 @@ namespace TL /// Represents a saved dialog ». See [TLDef(0xBD87CB6C)] - public class SavedDialog : IObject + public sealed partial class SavedDialog : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -16973,7 +16973,7 @@ namespace TL } /// Represents some saved message dialogs ». See Derived classes: , , - public abstract class Messages_SavedDialogsBase : IObject + public abstract partial class Messages_SavedDialogsBase : IObject { /// Saved message dialogs ». public virtual SavedDialog[] Dialogs => default; @@ -16986,7 +16986,7 @@ namespace TL } /// Represents some saved message dialogs ». See [TLDef(0xF83AE221)] - public class Messages_SavedDialogs : Messages_SavedDialogsBase, IPeerResolver + public partial class Messages_SavedDialogs : Messages_SavedDialogsBase, IPeerResolver { /// Saved message dialogs ». public SavedDialog[] dialogs; @@ -17010,14 +17010,14 @@ namespace TL } /// Incomplete list of saved message dialogs » with messages and auxiliary data. See [TLDef(0x44BA9DD9)] - public class Messages_SavedDialogsSlice : Messages_SavedDialogs + public sealed partial class Messages_SavedDialogsSlice : Messages_SavedDialogs { /// Total number of saved message dialogs public int count; } /// The saved dialogs haven't changed See [TLDef(0xC01F6FE8)] - public class Messages_SavedDialogsNotModified : Messages_SavedDialogsBase + public sealed partial class Messages_SavedDialogsNotModified : Messages_SavedDialogsBase { /// Number of saved dialogs found server-side by the query public int count; @@ -17025,7 +17025,7 @@ namespace TL /// See [TLDef(0xCB6FF828)] - public class SavedReactionTag : IObject + public sealed partial class SavedReactionTag : IObject { public Flags flags; public Reaction reaction; @@ -17041,7 +17041,7 @@ namespace TL /// See /// a value means messages.savedReactionTagsNotModified [TLDef(0x3259950A)] - public class Messages_SavedReactionTags : IObject + public sealed partial class Messages_SavedReactionTags : IObject { public SavedReactionTag[] tags; public long hash; @@ -17049,16 +17049,16 @@ namespace TL /// See [TLDef(0x3BB842AC)] - public class OutboxReadDate : IObject + public sealed partial class OutboxReadDate : IObject { public DateTime date; } /// See - public abstract class Smsjobs_EligibilityToJoin : IObject { } + public abstract partial class Smsjobs_EligibilityToJoin : IObject { } /// See [TLDef(0xDC8B44CF)] - public class Smsjobs_EligibleToJoin : Smsjobs_EligibilityToJoin + public sealed partial class Smsjobs_EligibleToJoin : Smsjobs_EligibilityToJoin { public string terms_url; public int monthly_sent_sms; @@ -17066,7 +17066,7 @@ namespace TL /// See [TLDef(0x2AEE9191)] - public class Smsjobs_Status : IObject + public sealed partial class Smsjobs_Status : IObject { public Flags flags; public int recent_sent; @@ -17086,7 +17086,7 @@ namespace TL /// See [TLDef(0xE6A1EEB8)] - public class SmsJob : IObject + public sealed partial class SmsJob : IObject { public string job_id; public string phone_number; @@ -17095,7 +17095,7 @@ namespace TL /// See [TLDef(0x120B1AB9)] - public class BusinessWeeklyOpen : IObject + public sealed partial class BusinessWeeklyOpen : IObject { public int start_minute; public int end_minute; @@ -17103,7 +17103,7 @@ namespace TL /// See [TLDef(0x8C92B098)] - public class BusinessWorkHours : IObject + public sealed partial class BusinessWorkHours : IObject { public Flags flags; public string timezone_id; @@ -17117,7 +17117,7 @@ namespace TL /// See [TLDef(0xAC5C1AF7)] - public class BusinessLocation : IObject + public sealed partial class BusinessLocation : IObject { public Flags flags; [IfFlag(0)] public GeoPoint geo_point; @@ -17131,7 +17131,7 @@ namespace TL /// See [TLDef(0x6F8B32AA)] - public class InputBusinessRecipients : IObject + public sealed partial class InputBusinessRecipients : IObject { public Flags flags; [IfFlag(4)] public InputUserBase[] users; @@ -17149,7 +17149,7 @@ namespace TL /// See [TLDef(0x21108FF7)] - public class BusinessRecipients : IObject + public sealed partial class BusinessRecipients : IObject { public Flags flags; [IfFlag(4)] public long[] users; @@ -17166,16 +17166,16 @@ namespace TL } /// See - public abstract class BusinessAwayMessageSchedule : IObject { } + public abstract partial class BusinessAwayMessageSchedule : IObject { } /// See [TLDef(0xC9B9E2B9)] - public class BusinessAwayMessageScheduleAlways : BusinessAwayMessageSchedule { } + public sealed partial class BusinessAwayMessageScheduleAlways : BusinessAwayMessageSchedule { } /// See [TLDef(0xC3F2F501)] - public class BusinessAwayMessageScheduleOutsideWorkHours : BusinessAwayMessageSchedule { } + public sealed partial class BusinessAwayMessageScheduleOutsideWorkHours : BusinessAwayMessageSchedule { } /// See [TLDef(0xCC4D9ECC)] - public class BusinessAwayMessageScheduleCustom : BusinessAwayMessageSchedule + public sealed partial class BusinessAwayMessageScheduleCustom : BusinessAwayMessageSchedule { public DateTime start_date; public DateTime end_date; @@ -17183,7 +17183,7 @@ namespace TL /// See [TLDef(0x0194CB3B)] - public class InputBusinessGreetingMessage : IObject + public sealed partial class InputBusinessGreetingMessage : IObject { public int shortcut_id; public InputBusinessRecipients recipients; @@ -17192,7 +17192,7 @@ namespace TL /// See [TLDef(0xE519ABAB)] - public class BusinessGreetingMessage : IObject + public sealed partial class BusinessGreetingMessage : IObject { public int shortcut_id; public BusinessRecipients recipients; @@ -17201,7 +17201,7 @@ namespace TL /// See [TLDef(0x832175E0)] - public class InputBusinessAwayMessage : IObject + public sealed partial class InputBusinessAwayMessage : IObject { public Flags flags; public int shortcut_id; @@ -17216,7 +17216,7 @@ namespace TL /// See [TLDef(0xEF156A5C)] - public class BusinessAwayMessage : IObject + public sealed partial class BusinessAwayMessage : IObject { public Flags flags; public int shortcut_id; @@ -17231,7 +17231,7 @@ namespace TL /// See [TLDef(0xFF9289F5)] - public class Timezone : IObject + public sealed partial class Timezone : IObject { public string id; public string name; @@ -17241,7 +17241,7 @@ namespace TL /// See /// a value means help.timezonesListNotModified [TLDef(0x7B74ED71)] - public class Help_TimezonesList : IObject + public sealed partial class Help_TimezonesList : IObject { public Timezone[] timezones; public int hash; @@ -17249,7 +17249,7 @@ namespace TL /// See [TLDef(0x0697102B)] - public class QuickReply : IObject + public sealed partial class QuickReply : IObject { public int shortcut_id; public string shortcut; @@ -17258,16 +17258,16 @@ namespace TL } /// See - public abstract class InputQuickReplyShortcutBase : IObject { } + public abstract partial class InputQuickReplyShortcutBase : IObject { } /// See [TLDef(0x24596D41)] - public class InputQuickReplyShortcut : InputQuickReplyShortcutBase + public sealed partial class InputQuickReplyShortcut : InputQuickReplyShortcutBase { public string shortcut; } /// See [TLDef(0x01190CF1)] - public class InputQuickReplyShortcutId : InputQuickReplyShortcutBase + public sealed partial class InputQuickReplyShortcutId : InputQuickReplyShortcutBase { public int shortcut_id; } @@ -17275,7 +17275,7 @@ namespace TL /// See /// a value means messages.quickRepliesNotModified [TLDef(0xC68D6695)] - public class Messages_QuickReplies : IObject, IPeerResolver + public sealed partial class Messages_QuickReplies : IObject, IPeerResolver { public QuickReply[] quick_replies; public MessageBase[] messages; @@ -17287,7 +17287,7 @@ namespace TL /// See [TLDef(0xE7E999E7)] - public class ConnectedBot : IObject + public sealed partial class ConnectedBot : IObject { public Flags flags; public long bot_id; @@ -17301,7 +17301,7 @@ namespace TL /// See [TLDef(0x17D7F87B)] - public class Account_ConnectedBots : IObject + public sealed partial class Account_ConnectedBots : IObject { public ConnectedBot[] connected_bots; public Dictionary users; @@ -17309,7 +17309,7 @@ namespace TL /// See [TLDef(0x2AD93719)] - public class Messages_DialogFilters : IObject + public sealed partial class Messages_DialogFilters : IObject { public Flags flags; public DialogFilterBase[] filters; diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs index ad0376d..8240551 100644 --- a/src/TL.SchemaFuncs.cs +++ b/src/TL.SchemaFuncs.cs @@ -6514,21 +6514,21 @@ namespace TL.Methods { #pragma warning disable IDE1006 [TLDef(0xCB9F372D)] - public class InvokeAfterMsg : IMethod + public sealed partial class InvokeAfterMsg : IMethod { public long msg_id; public IMethod query; } [TLDef(0x3DC4B4F0)] - public class InvokeAfterMsgs : IMethod + public sealed partial class InvokeAfterMsgs : IMethod { public long[] msg_ids; public IMethod query; } [TLDef(0xC1CD5EA9)] - public class InitConnection : IMethod + public sealed partial class InitConnection : IMethod { public Flags flags; public int api_id; @@ -6550,34 +6550,34 @@ namespace TL.Methods } [TLDef(0xDA9B0D0D)] - public class InvokeWithLayer : IMethod + public sealed partial class InvokeWithLayer : IMethod { public int layer; public IMethod query; } [TLDef(0xBF9459B7)] - public class InvokeWithoutUpdates : IMethod + public sealed partial class InvokeWithoutUpdates : IMethod { public IMethod query; } [TLDef(0x365275F2)] - public class InvokeWithMessagesRange : IMethod + public sealed partial class InvokeWithMessagesRange : IMethod { public MessageRange range; public IMethod query; } [TLDef(0xACA9FD2E)] - public class InvokeWithTakeout : IMethod + public sealed partial class InvokeWithTakeout : IMethod { public long takeout_id; public IMethod query; } [TLDef(0xA677244F)] - public class Auth_SendCode : IMethod + public sealed partial class Auth_SendCode : IMethod { public string phone_number; public int api_id; @@ -6586,7 +6586,7 @@ namespace TL.Methods } [TLDef(0xAAC7B717)] - public class Auth_SignUp : IMethod + public sealed partial class Auth_SignUp : IMethod { public Flags flags; public string phone_number; @@ -6601,7 +6601,7 @@ namespace TL.Methods } [TLDef(0x8D52A951)] - public class Auth_SignIn : IMethod + public sealed partial class Auth_SignIn : IMethod { public Flags flags; public string phone_number; @@ -6617,26 +6617,26 @@ namespace TL.Methods } [TLDef(0x3E72BA19)] - public class Auth_LogOut : IMethod { } + public sealed partial class Auth_LogOut : IMethod { } [TLDef(0x9FAB0D1A)] - public class Auth_ResetAuthorizations : IMethod { } + public sealed partial class Auth_ResetAuthorizations : IMethod { } [TLDef(0xE5BFFFCD)] - public class Auth_ExportAuthorization : IMethod + public sealed partial class Auth_ExportAuthorization : IMethod { public int dc_id; } [TLDef(0xA57A7DAD)] - public class Auth_ImportAuthorization : IMethod + public sealed partial class Auth_ImportAuthorization : IMethod { public long id; public byte[] bytes; } [TLDef(0xCDD42A05)] - public class Auth_BindTempAuthKey : IMethod + public sealed partial class Auth_BindTempAuthKey : IMethod { public long perm_auth_key_id; public long nonce; @@ -6645,7 +6645,7 @@ namespace TL.Methods } [TLDef(0x67A3FF2C)] - public class Auth_ImportBotAuthorization : IMethod + public sealed partial class Auth_ImportBotAuthorization : IMethod { public int flags; public int api_id; @@ -6654,16 +6654,16 @@ namespace TL.Methods } [TLDef(0xD18B4D16)] - public class Auth_CheckPassword : IMethod + public sealed partial class Auth_CheckPassword : IMethod { public InputCheckPasswordSRP password; } [TLDef(0xD897BC66)] - public class Auth_RequestPasswordRecovery : IMethod { } + public sealed partial class Auth_RequestPasswordRecovery : IMethod { } [TLDef(0x37096C70)] - public class Auth_RecoverPassword : IMethod + public sealed partial class Auth_RecoverPassword : IMethod { public Flags flags; public string code; @@ -6676,27 +6676,27 @@ namespace TL.Methods } [TLDef(0x3EF1A9BF)] - public class Auth_ResendCode : IMethod + public sealed partial class Auth_ResendCode : IMethod { public string phone_number; public string phone_code_hash; } [TLDef(0x1F040578)] - public class Auth_CancelCode : IMethod + public sealed partial class Auth_CancelCode : IMethod { public string phone_number; public string phone_code_hash; } [TLDef(0x8E48A188)] - public class Auth_DropTempAuthKeys : IMethod + public sealed partial class Auth_DropTempAuthKeys : IMethod { public long[] except_auth_keys; } [TLDef(0xB7E085FE)] - public class Auth_ExportLoginToken : IMethod + public sealed partial class Auth_ExportLoginToken : IMethod { public int api_id; public string api_hash; @@ -6704,25 +6704,25 @@ namespace TL.Methods } [TLDef(0x95AC5CE4)] - public class Auth_ImportLoginToken : IMethod + public sealed partial class Auth_ImportLoginToken : IMethod { public byte[] token; } [TLDef(0xE894AD4D)] - public class Auth_AcceptLoginToken : IMethod + public sealed partial class Auth_AcceptLoginToken : IMethod { public byte[] token; } [TLDef(0x0D36BF79)] - public class Auth_CheckRecoveryPassword : IMethod + public sealed partial class Auth_CheckRecoveryPassword : IMethod { public string code; } [TLDef(0x2DB873A9)] - public class Auth_ImportWebTokenAuthorization : IMethod + public sealed partial class Auth_ImportWebTokenAuthorization : IMethod { public int api_id; public string api_hash; @@ -6730,7 +6730,7 @@ namespace TL.Methods } [TLDef(0x89464B50)] - public class Auth_RequestFirebaseSms : IMethod + public sealed partial class Auth_RequestFirebaseSms : IMethod { public Flags flags; public string phone_number; @@ -6746,14 +6746,14 @@ namespace TL.Methods } [TLDef(0x7E960193)] - public class Auth_ResetLoginEmail : IMethod + public sealed partial class Auth_ResetLoginEmail : IMethod { public string phone_number; public string phone_code_hash; } [TLDef(0xEC86017A)] - public class Account_RegisterDevice : IMethod + public sealed partial class Account_RegisterDevice : IMethod { public Flags flags; public int token_type; @@ -6769,7 +6769,7 @@ namespace TL.Methods } [TLDef(0x6A0D3206)] - public class Account_UnregisterDevice : IMethod + public sealed partial class Account_UnregisterDevice : IMethod { public int token_type; public string token; @@ -6777,23 +6777,23 @@ namespace TL.Methods } [TLDef(0x84BE5B93)] - public class Account_UpdateNotifySettings : IMethod + public sealed partial class Account_UpdateNotifySettings : IMethod { public InputNotifyPeerBase peer; public InputPeerNotifySettings settings; } [TLDef(0x12B3AD31)] - public class Account_GetNotifySettings : IMethod + public sealed partial class Account_GetNotifySettings : IMethod { public InputNotifyPeerBase peer; } [TLDef(0xDB7E1747)] - public class Account_ResetNotifySettings : IMethod { } + public sealed partial class Account_ResetNotifySettings : IMethod { } [TLDef(0x78515775)] - public class Account_UpdateProfile : IMethod + public sealed partial class Account_UpdateProfile : IMethod { public Flags flags; [IfFlag(0)] public string first_name; @@ -6809,19 +6809,19 @@ namespace TL.Methods } [TLDef(0x6628562C)] - public class Account_UpdateStatus : IMethod + public sealed partial class Account_UpdateStatus : IMethod { public bool offline; } [TLDef(0x07967D36)] - public class Account_GetWallPapers : IMethod + public sealed partial class Account_GetWallPapers : IMethod { public long hash; } [TLDef(0xC5BA3D86)] - public class Account_ReportPeer : IMethod + public sealed partial class Account_ReportPeer : IMethod { public InputPeer peer; public ReportReason reason; @@ -6829,32 +6829,32 @@ namespace TL.Methods } [TLDef(0x2714D86C)] - public class Account_CheckUsername : IMethod + public sealed partial class Account_CheckUsername : IMethod { public string username; } [TLDef(0x3E0BDD7C)] - public class Account_UpdateUsername : IMethod + public sealed partial class Account_UpdateUsername : IMethod { public string username; } [TLDef(0xDADBC950)] - public class Account_GetPrivacy : IMethod + public sealed partial class Account_GetPrivacy : IMethod { public InputPrivacyKey key; } [TLDef(0xC9F81CE8)] - public class Account_SetPrivacy : IMethod + public sealed partial class Account_SetPrivacy : IMethod { public InputPrivacyKey key; public InputPrivacyRule[] rules; } [TLDef(0xA2C0CF74)] - public class Account_DeleteAccount : IMethod + public sealed partial class Account_DeleteAccount : IMethod { public Flags flags; public string reason; @@ -6867,23 +6867,23 @@ namespace TL.Methods } [TLDef(0x08FC711D)] - public class Account_GetAccountTTL : IMethod { } + public sealed partial class Account_GetAccountTTL : IMethod { } [TLDef(0x2442485E)] - public class Account_SetAccountTTL : IMethod + public sealed partial class Account_SetAccountTTL : IMethod { public AccountDaysTTL ttl; } [TLDef(0x82574AE5)] - public class Account_SendChangePhoneCode : IMethod + public sealed partial class Account_SendChangePhoneCode : IMethod { public string phone_number; public CodeSettings settings; } [TLDef(0x70C32EDB)] - public class Account_ChangePhone : IMethod + public sealed partial class Account_ChangePhone : IMethod { public string phone_number; public string phone_code_hash; @@ -6891,93 +6891,93 @@ namespace TL.Methods } [TLDef(0x38DF3532)] - public class Account_UpdateDeviceLocked : IMethod + public sealed partial class Account_UpdateDeviceLocked : IMethod { public int period; } [TLDef(0xE320C158)] - public class Account_GetAuthorizations : IMethod { } + public sealed partial class Account_GetAuthorizations : IMethod { } [TLDef(0xDF77F3BC)] - public class Account_ResetAuthorization : IMethod + public sealed partial class Account_ResetAuthorization : IMethod { public long hash; } [TLDef(0x548A30F5)] - public class Account_GetPassword : IMethod { } + public sealed partial class Account_GetPassword : IMethod { } [TLDef(0x9CD4EAF9)] - public class Account_GetPasswordSettings : IMethod + public sealed partial class Account_GetPasswordSettings : IMethod { public InputCheckPasswordSRP password; } [TLDef(0xA59B102F)] - public class Account_UpdatePasswordSettings : IMethod + public sealed partial class Account_UpdatePasswordSettings : IMethod { public InputCheckPasswordSRP password; public Account_PasswordInputSettings new_settings; } [TLDef(0x1B3FAA88)] - public class Account_SendConfirmPhoneCode : IMethod + public sealed partial class Account_SendConfirmPhoneCode : IMethod { public string hash; public CodeSettings settings; } [TLDef(0x5F2178C3)] - public class Account_ConfirmPhone : IMethod + public sealed partial class Account_ConfirmPhone : IMethod { public string phone_code_hash; public string phone_code; } [TLDef(0x449E0B51)] - public class Account_GetTmpPassword : IMethod + public sealed partial class Account_GetTmpPassword : IMethod { public InputCheckPasswordSRP password; public int period; } [TLDef(0x182E6D6F)] - public class Account_GetWebAuthorizations : IMethod { } + public sealed partial class Account_GetWebAuthorizations : IMethod { } [TLDef(0x2D01B9EF)] - public class Account_ResetWebAuthorization : IMethod + public sealed partial class Account_ResetWebAuthorization : IMethod { public long hash; } [TLDef(0x682D2594)] - public class Account_ResetWebAuthorizations : IMethod { } + public sealed partial class Account_ResetWebAuthorizations : IMethod { } [TLDef(0xB288BC7D)] - public class Account_GetAllSecureValues : IMethod { } + public sealed partial class Account_GetAllSecureValues : IMethod { } [TLDef(0x73665BC2)] - public class Account_GetSecureValue : IMethod + public sealed partial class Account_GetSecureValue : IMethod { public SecureValueType[] types; } [TLDef(0x899FE31D)] - public class Account_SaveSecureValue : IMethod + public sealed partial class Account_SaveSecureValue : IMethod { public InputSecureValue value; public long secure_secret_id; } [TLDef(0xB880BC4B)] - public class Account_DeleteSecureValue : IMethod + public sealed partial class Account_DeleteSecureValue : IMethod { public SecureValueType[] types; } [TLDef(0xA929597A)] - public class Account_GetAuthorizationForm : IMethod + public sealed partial class Account_GetAuthorizationForm : IMethod { public long bot_id; public string scope; @@ -6985,7 +6985,7 @@ namespace TL.Methods } [TLDef(0xF3ED4C73)] - public class Account_AcceptAuthorization : IMethod + public sealed partial class Account_AcceptAuthorization : IMethod { public long bot_id; public string scope; @@ -6995,14 +6995,14 @@ namespace TL.Methods } [TLDef(0xA5A356F9)] - public class Account_SendVerifyPhoneCode : IMethod + public sealed partial class Account_SendVerifyPhoneCode : IMethod { public string phone_number; public CodeSettings settings; } [TLDef(0x4DD3A7F6)] - public class Account_VerifyPhone : IMethod + public sealed partial class Account_VerifyPhone : IMethod { public string phone_number; public string phone_code_hash; @@ -7010,21 +7010,21 @@ namespace TL.Methods } [TLDef(0x98E037BB)] - public class Account_SendVerifyEmailCode : IMethod + public sealed partial class Account_SendVerifyEmailCode : IMethod { public EmailVerifyPurpose purpose; public string email; } [TLDef(0x032DA4CF)] - public class Account_VerifyEmail : IMethod + public sealed partial class Account_VerifyEmail : IMethod { public EmailVerifyPurpose purpose; public EmailVerification verification; } [TLDef(0x8EF3EAB0)] - public class Account_InitTakeoutSession : IMethod + public sealed partial class Account_InitTakeoutSession : IMethod { public Flags flags; [IfFlag(5)] public long file_max_size; @@ -7041,7 +7041,7 @@ namespace TL.Methods } [TLDef(0x1D2652EE)] - public class Account_FinishTakeoutSession : IMethod + public sealed partial class Account_FinishTakeoutSession : IMethod { public Flags flags; @@ -7052,28 +7052,28 @@ namespace TL.Methods } [TLDef(0x8FDF1920)] - public class Account_ConfirmPasswordEmail : IMethod + public sealed partial class Account_ConfirmPasswordEmail : IMethod { public string code; } [TLDef(0x7A7F2A15)] - public class Account_ResendPasswordEmail : IMethod { } + public sealed partial class Account_ResendPasswordEmail : IMethod { } [TLDef(0xC1CBD5B6)] - public class Account_CancelPasswordEmail : IMethod { } + public sealed partial class Account_CancelPasswordEmail : IMethod { } [TLDef(0x9F07C728)] - public class Account_GetContactSignUpNotification : IMethod { } + public sealed partial class Account_GetContactSignUpNotification : IMethod { } [TLDef(0xCFF43F61)] - public class Account_SetContactSignUpNotification : IMethod + public sealed partial class Account_SetContactSignUpNotification : IMethod { public bool silent; } [TLDef(0x53577479)] - public class Account_GetNotifyExceptions : IMethod + public sealed partial class Account_GetNotifyExceptions : IMethod { public Flags flags; [IfFlag(0)] public InputNotifyPeerBase peer; @@ -7087,13 +7087,13 @@ namespace TL.Methods } [TLDef(0xFC8DDBEA)] - public class Account_GetWallPaper : IMethod + public sealed partial class Account_GetWallPaper : IMethod { public InputWallPaperBase wallpaper; } [TLDef(0xE39A8F03)] - public class Account_UploadWallPaper : IMethod + public sealed partial class Account_UploadWallPaper : IMethod { public Flags flags; public InputFileBase file; @@ -7107,7 +7107,7 @@ namespace TL.Methods } [TLDef(0x6C5A5B37)] - public class Account_SaveWallPaper : IMethod + public sealed partial class Account_SaveWallPaper : IMethod { public InputWallPaperBase wallpaper; public bool unsave; @@ -7115,20 +7115,20 @@ namespace TL.Methods } [TLDef(0xFEED5769)] - public class Account_InstallWallPaper : IMethod + public sealed partial class Account_InstallWallPaper : IMethod { public InputWallPaperBase wallpaper; public WallPaperSettings settings; } [TLDef(0xBB3B9804)] - public class Account_ResetWallPapers : IMethod { } + public sealed partial class Account_ResetWallPapers : IMethod { } [TLDef(0x56DA0B3F)] - public class Account_GetAutoDownloadSettings : IMethod { } + public sealed partial class Account_GetAutoDownloadSettings : IMethod { } [TLDef(0x76F36233)] - public class Account_SaveAutoDownloadSettings : IMethod + public sealed partial class Account_SaveAutoDownloadSettings : IMethod { public Flags flags; public AutoDownloadSettings settings; @@ -7141,7 +7141,7 @@ namespace TL.Methods } [TLDef(0x1C3DB333)] - public class Account_UploadTheme : IMethod + public sealed partial class Account_UploadTheme : IMethod { public Flags flags; public InputFileBase file; @@ -7156,7 +7156,7 @@ namespace TL.Methods } [TLDef(0x652E4400)] - public class Account_CreateTheme : IMethod + public sealed partial class Account_CreateTheme : IMethod { public Flags flags; public string slug; @@ -7172,7 +7172,7 @@ namespace TL.Methods } [TLDef(0x2BF40CCC)] - public class Account_UpdateTheme : IMethod + public sealed partial class Account_UpdateTheme : IMethod { public Flags flags; public string format; @@ -7192,14 +7192,14 @@ namespace TL.Methods } [TLDef(0xF257106C)] - public class Account_SaveTheme : IMethod + public sealed partial class Account_SaveTheme : IMethod { public InputThemeBase theme; public bool unsave; } [TLDef(0xC727BB3B)] - public class Account_InstallTheme : IMethod + public sealed partial class Account_InstallTheme : IMethod { public Flags flags; [IfFlag(1)] public InputThemeBase theme; @@ -7216,21 +7216,21 @@ namespace TL.Methods } [TLDef(0x3A5869EC)] - public class Account_GetTheme : IMethod + public sealed partial class Account_GetTheme : IMethod { public string format; public InputThemeBase theme; } [TLDef(0x7206E458)] - public class Account_GetThemes : IMethod + public sealed partial class Account_GetThemes : IMethod { public string format; public long hash; } [TLDef(0xB574B16B)] - public class Account_SetContentSettings : IMethod + public sealed partial class Account_SetContentSettings : IMethod { public Flags flags; @@ -7241,25 +7241,25 @@ namespace TL.Methods } [TLDef(0x8B9B4DAE)] - public class Account_GetContentSettings : IMethod { } + public sealed partial class Account_GetContentSettings : IMethod { } [TLDef(0x65AD71DC)] - public class Account_GetMultiWallPapers : IMethod + public sealed partial class Account_GetMultiWallPapers : IMethod { public InputWallPaperBase[] wallpapers; } [TLDef(0xEB2B4CF6)] - public class Account_GetGlobalPrivacySettings : IMethod { } + public sealed partial class Account_GetGlobalPrivacySettings : IMethod { } [TLDef(0x1EDAAAC2)] - public class Account_SetGlobalPrivacySettings : IMethod + public sealed partial class Account_SetGlobalPrivacySettings : IMethod { public GlobalPrivacySettings settings; } [TLDef(0xFA8CC6F5)] - public class Account_ReportProfilePhoto : IMethod + public sealed partial class Account_ReportProfilePhoto : IMethod { public InputPeer peer; public InputPhoto photo_id; @@ -7268,25 +7268,25 @@ namespace TL.Methods } [TLDef(0x9308CE1B)] - public class Account_ResetPassword : IMethod { } + public sealed partial class Account_ResetPassword : IMethod { } [TLDef(0x4C9409F6)] - public class Account_DeclinePasswordReset : IMethod { } + public sealed partial class Account_DeclinePasswordReset : IMethod { } [TLDef(0xD638DE89)] - public class Account_GetChatThemes : IMethod + public sealed partial class Account_GetChatThemes : IMethod { public long hash; } [TLDef(0xBF899AA0)] - public class Account_SetAuthorizationTTL : IMethod + public sealed partial class Account_SetAuthorizationTTL : IMethod { public int authorization_ttl_days; } [TLDef(0x40F48462)] - public class Account_ChangeAuthorizationSettings : IMethod + public sealed partial class Account_ChangeAuthorizationSettings : IMethod { public Flags flags; public long hash; @@ -7302,20 +7302,20 @@ namespace TL.Methods } [TLDef(0xE1902288)] - public class Account_GetSavedRingtones : IMethod + public sealed partial class Account_GetSavedRingtones : IMethod { public long hash; } [TLDef(0x3DEA5B03)] - public class Account_SaveRingtone : IMethod + public sealed partial class Account_SaveRingtone : IMethod { public InputDocument id; public bool unsave; } [TLDef(0x831A83A2)] - public class Account_UploadRingtone : IMethod + public sealed partial class Account_UploadRingtone : IMethod { public InputFileBase file; public string file_name; @@ -7323,56 +7323,56 @@ namespace TL.Methods } [TLDef(0xFBD3DE6B)] - public class Account_UpdateEmojiStatus : IMethod + public sealed partial class Account_UpdateEmojiStatus : IMethod { public EmojiStatus emoji_status; } [TLDef(0xD6753386)] - public class Account_GetDefaultEmojiStatuses : IMethod + public sealed partial class Account_GetDefaultEmojiStatuses : IMethod { public long hash; } [TLDef(0x0F578105)] - public class Account_GetRecentEmojiStatuses : IMethod + public sealed partial class Account_GetRecentEmojiStatuses : IMethod { public long hash; } [TLDef(0x18201AAE)] - public class Account_ClearRecentEmojiStatuses : IMethod { } + public sealed partial class Account_ClearRecentEmojiStatuses : IMethod { } [TLDef(0xEF500EAB)] - public class Account_ReorderUsernames : IMethod + public sealed partial class Account_ReorderUsernames : IMethod { public string[] order; } [TLDef(0x58D6B376)] - public class Account_ToggleUsername : IMethod + public sealed partial class Account_ToggleUsername : IMethod { public string username; public bool active; } [TLDef(0xE2750328)] - public class Account_GetDefaultProfilePhotoEmojis : IMethod + public sealed partial class Account_GetDefaultProfilePhotoEmojis : IMethod { public long hash; } [TLDef(0x915860AE)] - public class Account_GetDefaultGroupPhotoEmojis : IMethod + public sealed partial class Account_GetDefaultGroupPhotoEmojis : IMethod { public long hash; } [TLDef(0xADCBBCDA)] - public class Account_GetAutoSaveSettings : IMethod { } + public sealed partial class Account_GetAutoSaveSettings : IMethod { } [TLDef(0xD69B8361)] - public class Account_SaveAutoSaveSettings : IMethod + public sealed partial class Account_SaveAutoSaveSettings : IMethod { public Flags flags; [IfFlag(3)] public InputPeer peer; @@ -7388,16 +7388,16 @@ namespace TL.Methods } [TLDef(0x53BC0020)] - public class Account_DeleteAutoSaveExceptions : IMethod { } + public sealed partial class Account_DeleteAutoSaveExceptions : IMethod { } [TLDef(0xCA8AE8BA)] - public class Account_InvalidateSignInCodes : IMethod + public sealed partial class Account_InvalidateSignInCodes : IMethod { public string[] codes; } [TLDef(0x7CEFA15D)] - public class Account_UpdateColor : IMethod + public sealed partial class Account_UpdateColor : IMethod { public Flags flags; [IfFlag(2)] public int color; @@ -7412,25 +7412,25 @@ namespace TL.Methods } [TLDef(0xA60AB9CE)] - public class Account_GetDefaultBackgroundEmojis : IMethod + public sealed partial class Account_GetDefaultBackgroundEmojis : IMethod { public long hash; } [TLDef(0x7727A7D5)] - public class Account_GetChannelDefaultEmojiStatuses : IMethod + public sealed partial class Account_GetChannelDefaultEmojiStatuses : IMethod { public long hash; } [TLDef(0x35A9E0D5)] - public class Account_GetChannelRestrictedStatusEmojis : IMethod + public sealed partial class Account_GetChannelRestrictedStatusEmojis : IMethod { public long hash; } [TLDef(0x4B00E066)] - public class Account_UpdateBusinessWorkHours : IMethod + public sealed partial class Account_UpdateBusinessWorkHours : IMethod { public Flags flags; [IfFlag(0)] public BusinessWorkHours business_work_hours; @@ -7442,7 +7442,7 @@ namespace TL.Methods } [TLDef(0x9E6B131A)] - public class Account_UpdateBusinessLocation : IMethod + public sealed partial class Account_UpdateBusinessLocation : IMethod { public Flags flags; [IfFlag(1)] public InputGeoPoint geo_point; @@ -7456,7 +7456,7 @@ namespace TL.Methods } [TLDef(0x66CDAFC4)] - public class Account_UpdateBusinessGreetingMessage : IMethod + public sealed partial class Account_UpdateBusinessGreetingMessage : IMethod { public Flags flags; [IfFlag(0)] public InputBusinessGreetingMessage message; @@ -7468,7 +7468,7 @@ namespace TL.Methods } [TLDef(0xA26A7FA5)] - public class Account_UpdateBusinessAwayMessage : IMethod + public sealed partial class Account_UpdateBusinessAwayMessage : IMethod { public Flags flags; [IfFlag(0)] public InputBusinessAwayMessage message; @@ -7480,7 +7480,7 @@ namespace TL.Methods } [TLDef(0x9C2D527D)] - public class Account_UpdateConnectedBot : IMethod + public sealed partial class Account_UpdateConnectedBot : IMethod { public Flags flags; public InputUserBase bot; @@ -7494,68 +7494,68 @@ namespace TL.Methods } [TLDef(0x4EA4C80F)] - public class Account_GetConnectedBots : IMethod { } + public sealed partial class Account_GetConnectedBots : IMethod { } [TLDef(0x0D91A548)] - public class Users_GetUsers : IMethod + public sealed partial class Users_GetUsers : IMethod { public InputUserBase[] id; } [TLDef(0xB60F5918)] - public class Users_GetFullUser : IMethod + public sealed partial class Users_GetFullUser : IMethod { public InputUserBase id; } [TLDef(0x90C894B5)] - public class Users_SetSecureValueErrors : IMethod + public sealed partial class Users_SetSecureValueErrors : IMethod { public InputUserBase id; public SecureValueErrorBase[] errors; } [TLDef(0xA622AA10)] - public class Users_GetIsPremiumRequiredToContact : IMethod + public sealed partial class Users_GetIsPremiumRequiredToContact : IMethod { public InputUserBase[] id; } [TLDef(0x7ADC669D)] - public class Contacts_GetContactIDs : IMethod + public sealed partial class Contacts_GetContactIDs : IMethod { public long hash; } [TLDef(0xC4A353EE)] - public class Contacts_GetStatuses : IMethod { } + public sealed partial class Contacts_GetStatuses : IMethod { } [TLDef(0x5DD69E12)] - public class Contacts_GetContacts : IMethod + public sealed partial class Contacts_GetContacts : IMethod { public long hash; } [TLDef(0x2C800BE5)] - public class Contacts_ImportContacts : IMethod + public sealed partial class Contacts_ImportContacts : IMethod { public InputContact[] contacts; } [TLDef(0x096A0E00)] - public class Contacts_DeleteContacts : IMethod + public sealed partial class Contacts_DeleteContacts : IMethod { public InputUserBase[] id; } [TLDef(0x1013FD9E)] - public class Contacts_DeleteByPhones : IMethod + public sealed partial class Contacts_DeleteByPhones : IMethod { public string[] phones; } [TLDef(0x2E2E8734)] - public class Contacts_Block : IMethod + public sealed partial class Contacts_Block : IMethod { public Flags flags; public InputPeer id; @@ -7567,7 +7567,7 @@ namespace TL.Methods } [TLDef(0xB550D328)] - public class Contacts_Unblock : IMethod + public sealed partial class Contacts_Unblock : IMethod { public Flags flags; public InputPeer id; @@ -7579,7 +7579,7 @@ namespace TL.Methods } [TLDef(0x9A868F80)] - public class Contacts_GetBlocked : IMethod + public sealed partial class Contacts_GetBlocked : IMethod { public Flags flags; public int offset; @@ -7592,20 +7592,20 @@ namespace TL.Methods } [TLDef(0x11F812D8)] - public class Contacts_Search : IMethod + public sealed partial class Contacts_Search : IMethod { public string q; public int limit; } [TLDef(0xF93CCBA3)] - public class Contacts_ResolveUsername : IMethod + public sealed partial class Contacts_ResolveUsername : IMethod { public string username; } [TLDef(0x973478B6)] - public class Contacts_GetTopPeers : IMethod + public sealed partial class Contacts_GetTopPeers : IMethod { public Flags flags; public int offset; @@ -7626,26 +7626,26 @@ namespace TL.Methods } [TLDef(0x1AE373AC)] - public class Contacts_ResetTopPeerRating : IMethod + public sealed partial class Contacts_ResetTopPeerRating : IMethod { public TopPeerCategory category; public InputPeer peer; } [TLDef(0x879537F1)] - public class Contacts_ResetSaved : IMethod { } + public sealed partial class Contacts_ResetSaved : IMethod { } [TLDef(0x82F1E39F)] - public class Contacts_GetSaved : IMethod { } + public sealed partial class Contacts_GetSaved : IMethod { } [TLDef(0x8514BDDA)] - public class Contacts_ToggleTopPeers : IMethod + public sealed partial class Contacts_ToggleTopPeers : IMethod { public bool enabled; } [TLDef(0xE8F463D0)] - public class Contacts_AddContact : IMethod + public sealed partial class Contacts_AddContact : IMethod { public Flags flags; public InputUserBase id; @@ -7660,13 +7660,13 @@ namespace TL.Methods } [TLDef(0xF831A20F)] - public class Contacts_AcceptContact : IMethod + public sealed partial class Contacts_AcceptContact : IMethod { public InputUserBase id; } [TLDef(0xD348BC44)] - public class Contacts_GetLocated : IMethod + public sealed partial class Contacts_GetLocated : IMethod { public Flags flags; public InputGeoPoint geo_point; @@ -7680,7 +7680,7 @@ namespace TL.Methods } [TLDef(0x29A8962C)] - public class Contacts_BlockFromReplies : IMethod + public sealed partial class Contacts_BlockFromReplies : IMethod { public Flags flags; public int msg_id; @@ -7694,28 +7694,28 @@ namespace TL.Methods } [TLDef(0x8AF94344)] - public class Contacts_ResolvePhone : IMethod + public sealed partial class Contacts_ResolvePhone : IMethod { public string phone; } [TLDef(0xF8654027)] - public class Contacts_ExportContactToken : IMethod { } + public sealed partial class Contacts_ExportContactToken : IMethod { } [TLDef(0x13005788)] - public class Contacts_ImportContactToken : IMethod + public sealed partial class Contacts_ImportContactToken : IMethod { public string token; } [TLDef(0xBA6705F0)] - public class Contacts_EditCloseFriends : IMethod + public sealed partial class Contacts_EditCloseFriends : IMethod { public long[] id; } [TLDef(0x94C65C76)] - public class Contacts_SetBlocked : IMethod + public sealed partial class Contacts_SetBlocked : IMethod { public Flags flags; public InputPeer[] id; @@ -7728,13 +7728,13 @@ namespace TL.Methods } [TLDef(0x63C66506)] - public class Messages_GetMessages : IMethod + public sealed partial class Messages_GetMessages : IMethod { public InputMessage[] id; } [TLDef(0xA0F4CB4F)] - public class Messages_GetDialogs : IMethod + public sealed partial class Messages_GetDialogs : IMethod { public Flags flags; [IfFlag(1)] public int folder_id; @@ -7752,7 +7752,7 @@ namespace TL.Methods } [TLDef(0x4423E6C5)] - public class Messages_GetHistory : IMethod + public sealed partial class Messages_GetHistory : IMethod { public InputPeer peer; public int offset_id; @@ -7765,7 +7765,7 @@ namespace TL.Methods } [TLDef(0x29EE847A)] - public class Messages_Search : IMethod + public sealed partial class Messages_Search : IMethod { public Flags flags; public InputPeer peer; @@ -7794,14 +7794,14 @@ namespace TL.Methods } [TLDef(0x0E306D3A)] - public class Messages_ReadHistory : IMethod + public sealed partial class Messages_ReadHistory : IMethod { public InputPeer peer; public int max_id; } [TLDef(0xB08F922A)] - public class Messages_DeleteHistory : IMethod + public sealed partial class Messages_DeleteHistory : IMethod { public Flags flags; public InputPeer peer; @@ -7819,7 +7819,7 @@ namespace TL.Methods } [TLDef(0xE58E95D2)] - public class Messages_DeleteMessages : IMethod + public sealed partial class Messages_DeleteMessages : IMethod { public Flags flags; public int[] id; @@ -7831,13 +7831,13 @@ namespace TL.Methods } [TLDef(0x05A954C0)] - public class Messages_ReceivedMessages : IMethod + public sealed partial class Messages_ReceivedMessages : IMethod { public int max_id; } [TLDef(0x58943EE2)] - public class Messages_SetTyping : IMethod + public sealed partial class Messages_SetTyping : IMethod { public Flags flags; public InputPeer peer; @@ -7851,7 +7851,7 @@ namespace TL.Methods } [TLDef(0xDFF8042C)] - public class Messages_SendMessage : IMethod + public sealed partial class Messages_SendMessage : IMethod { public Flags flags; public InputPeer peer; @@ -7883,7 +7883,7 @@ namespace TL.Methods } [TLDef(0x7BD66041)] - public class Messages_SendMedia : IMethod + public sealed partial class Messages_SendMedia : IMethod { public Flags flags; public InputPeer peer; @@ -7915,7 +7915,7 @@ namespace TL.Methods } [TLDef(0xD5039208)] - public class Messages_ForwardMessages : IMethod + public sealed partial class Messages_ForwardMessages : IMethod { public Flags flags; public InputPeer from_peer; @@ -7943,19 +7943,19 @@ namespace TL.Methods } [TLDef(0xCF1592DB)] - public class Messages_ReportSpam : IMethod + public sealed partial class Messages_ReportSpam : IMethod { public InputPeer peer; } [TLDef(0xEFD9A6A2)] - public class Messages_GetPeerSettings : IMethod + public sealed partial class Messages_GetPeerSettings : IMethod { public InputPeer peer; } [TLDef(0x8953AB4E)] - public class Messages_Report : IMethod + public sealed partial class Messages_Report : IMethod { public InputPeer peer; public int[] id; @@ -7964,33 +7964,33 @@ namespace TL.Methods } [TLDef(0x49E9528F)] - public class Messages_GetChats : IMethod + public sealed partial class Messages_GetChats : IMethod { public long[] id; } [TLDef(0xAEB00B34)] - public class Messages_GetFullChat : IMethod + public sealed partial class Messages_GetFullChat : IMethod { public long chat_id; } [TLDef(0x73783FFD)] - public class Messages_EditChatTitle : IMethod + public sealed partial class Messages_EditChatTitle : IMethod { public long chat_id; public string title; } [TLDef(0x35DDD674)] - public class Messages_EditChatPhoto : IMethod + public sealed partial class Messages_EditChatPhoto : IMethod { public long chat_id; public InputChatPhotoBase photo; } [TLDef(0xF24753E3)] - public class Messages_AddChatUser : IMethod + public sealed partial class Messages_AddChatUser : IMethod { public long chat_id; public InputUserBase user_id; @@ -7998,7 +7998,7 @@ namespace TL.Methods } [TLDef(0xA2185CAB)] - public class Messages_DeleteChatUser : IMethod + public sealed partial class Messages_DeleteChatUser : IMethod { public Flags flags; public long chat_id; @@ -8011,7 +8011,7 @@ namespace TL.Methods } [TLDef(0x0034A818)] - public class Messages_CreateChat : IMethod + public sealed partial class Messages_CreateChat : IMethod { public Flags flags; public InputUserBase[] users; @@ -8025,14 +8025,14 @@ namespace TL.Methods } [TLDef(0x26CF8950)] - public class Messages_GetDhConfig : IMethod + public sealed partial class Messages_GetDhConfig : IMethod { public int version; public int random_length; } [TLDef(0xF64DAF43)] - public class Messages_RequestEncryption : IMethod + public sealed partial class Messages_RequestEncryption : IMethod { public InputUserBase user_id; public int random_id; @@ -8040,7 +8040,7 @@ namespace TL.Methods } [TLDef(0x3DBC0415)] - public class Messages_AcceptEncryption : IMethod + public sealed partial class Messages_AcceptEncryption : IMethod { public InputEncryptedChat peer; public byte[] g_b; @@ -8048,7 +8048,7 @@ namespace TL.Methods } [TLDef(0xF393AEA0)] - public class Messages_DiscardEncryption : IMethod + public sealed partial class Messages_DiscardEncryption : IMethod { public Flags flags; public int chat_id; @@ -8060,21 +8060,21 @@ namespace TL.Methods } [TLDef(0x791451ED)] - public class Messages_SetEncryptedTyping : IMethod + public sealed partial class Messages_SetEncryptedTyping : IMethod { public InputEncryptedChat peer; public bool typing; } [TLDef(0x7F4B690A)] - public class Messages_ReadEncryptedHistory : IMethod + public sealed partial class Messages_ReadEncryptedHistory : IMethod { public InputEncryptedChat peer; public DateTime max_date; } [TLDef(0x44FA7A15)] - public class Messages_SendEncrypted : IMethod + public sealed partial class Messages_SendEncrypted : IMethod { public Flags flags; public InputEncryptedChat peer; @@ -8088,7 +8088,7 @@ namespace TL.Methods } [TLDef(0x5559481D)] - public class Messages_SendEncryptedFile : IMethod + public sealed partial class Messages_SendEncryptedFile : IMethod { public Flags flags; public InputEncryptedChat peer; @@ -8103,7 +8103,7 @@ namespace TL.Methods } [TLDef(0x32D439A4)] - public class Messages_SendEncryptedService : IMethod + public sealed partial class Messages_SendEncryptedService : IMethod { public InputEncryptedChat peer; public long random_id; @@ -8111,38 +8111,38 @@ namespace TL.Methods } [TLDef(0x55A5BB66)] - public class Messages_ReceivedQueue : IMethod + public sealed partial class Messages_ReceivedQueue : IMethod { public int max_qts; } [TLDef(0x4B0C8C0F)] - public class Messages_ReportEncryptedSpam : IMethod + public sealed partial class Messages_ReportEncryptedSpam : IMethod { public InputEncryptedChat peer; } [TLDef(0x36A73F77)] - public class Messages_ReadMessageContents : IMethod + public sealed partial class Messages_ReadMessageContents : IMethod { public int[] id; } [TLDef(0xD5A5D3A1)] - public class Messages_GetStickers : IMethod + public sealed partial class Messages_GetStickers : IMethod { public string emoticon; public long hash; } [TLDef(0xB8A0A1A8)] - public class Messages_GetAllStickers : IMethod + public sealed partial class Messages_GetAllStickers : IMethod { public long hash; } [TLDef(0x8B68B0CC)] - public class Messages_GetWebPagePreview : IMethod + public sealed partial class Messages_GetWebPagePreview : IMethod { public Flags flags; public string message; @@ -8155,7 +8155,7 @@ namespace TL.Methods } [TLDef(0xA02CE5D5)] - public class Messages_ExportChatInvite : IMethod + public sealed partial class Messages_ExportChatInvite : IMethod { public Flags flags; public InputPeer peer; @@ -8174,39 +8174,39 @@ namespace TL.Methods } [TLDef(0x3EADB1BB)] - public class Messages_CheckChatInvite : IMethod + public sealed partial class Messages_CheckChatInvite : IMethod { public string hash; } [TLDef(0x6C50051C)] - public class Messages_ImportChatInvite : IMethod + public sealed partial class Messages_ImportChatInvite : IMethod { public string hash; } [TLDef(0xC8A0EC74)] - public class Messages_GetStickerSet : IMethod + public sealed partial class Messages_GetStickerSet : IMethod { public InputStickerSet stickerset; public int hash; } [TLDef(0xC78FE460)] - public class Messages_InstallStickerSet : IMethod + public sealed partial class Messages_InstallStickerSet : IMethod { public InputStickerSet stickerset; public bool archived; } [TLDef(0xF96E55DE)] - public class Messages_UninstallStickerSet : IMethod + public sealed partial class Messages_UninstallStickerSet : IMethod { public InputStickerSet stickerset; } [TLDef(0xE6DF7378)] - public class Messages_StartBot : IMethod + public sealed partial class Messages_StartBot : IMethod { public InputUserBase bot; public InputPeer peer; @@ -8215,7 +8215,7 @@ namespace TL.Methods } [TLDef(0x5784D3E1)] - public class Messages_GetMessagesViews : IMethod + public sealed partial class Messages_GetMessagesViews : IMethod { public InputPeer peer; public int[] id; @@ -8223,7 +8223,7 @@ namespace TL.Methods } [TLDef(0xA85BD1C2)] - public class Messages_EditChatAdmin : IMethod + public sealed partial class Messages_EditChatAdmin : IMethod { public long chat_id; public InputUserBase user_id; @@ -8231,13 +8231,13 @@ namespace TL.Methods } [TLDef(0xA2875319)] - public class Messages_MigrateChat : IMethod + public sealed partial class Messages_MigrateChat : IMethod { public long chat_id; } [TLDef(0x4BC6589A)] - public class Messages_SearchGlobal : IMethod + public sealed partial class Messages_SearchGlobal : IMethod { public Flags flags; [IfFlag(0)] public int folder_id; @@ -8257,7 +8257,7 @@ namespace TL.Methods } [TLDef(0x78337739)] - public class Messages_ReorderStickerSets : IMethod + public sealed partial class Messages_ReorderStickerSets : IMethod { public Flags flags; public long[] order; @@ -8270,7 +8270,7 @@ namespace TL.Methods } [TLDef(0xB1F2061F)] - public class Messages_GetDocumentByHash : IMethod + public sealed partial class Messages_GetDocumentByHash : IMethod { public byte[] sha256; public long size; @@ -8278,20 +8278,20 @@ namespace TL.Methods } [TLDef(0x5CF09635)] - public class Messages_GetSavedGifs : IMethod + public sealed partial class Messages_GetSavedGifs : IMethod { public long hash; } [TLDef(0x327A30CB)] - public class Messages_SaveGif : IMethod + public sealed partial class Messages_SaveGif : IMethod { public InputDocument id; public bool unsave; } [TLDef(0x514E999D)] - public class Messages_GetInlineBotResults : IMethod + public sealed partial class Messages_GetInlineBotResults : IMethod { public Flags flags; public InputUserBase bot; @@ -8307,7 +8307,7 @@ namespace TL.Methods } [TLDef(0xBB12A419)] - public class Messages_SetInlineBotResults : IMethod + public sealed partial class Messages_SetInlineBotResults : IMethod { public Flags flags; public long query_id; @@ -8328,7 +8328,7 @@ namespace TL.Methods } [TLDef(0x3EBEE86A)] - public class Messages_SendInlineBotResult : IMethod + public sealed partial class Messages_SendInlineBotResult : IMethod { public Flags flags; public InputPeer peer; @@ -8354,14 +8354,14 @@ namespace TL.Methods } [TLDef(0xFDA68D36)] - public class Messages_GetMessageEditData : IMethod + public sealed partial class Messages_GetMessageEditData : IMethod { public InputPeer peer; public int id; } [TLDef(0xDFD14005)] - public class Messages_EditMessage : IMethod + public sealed partial class Messages_EditMessage : IMethod { public Flags flags; public InputPeer peer; @@ -8387,7 +8387,7 @@ namespace TL.Methods } [TLDef(0x83557DBA)] - public class Messages_EditInlineBotMessage : IMethod + public sealed partial class Messages_EditInlineBotMessage : IMethod { public Flags flags; public InputBotInlineMessageIDBase id; @@ -8408,7 +8408,7 @@ namespace TL.Methods } [TLDef(0x9342CA07)] - public class Messages_GetBotCallbackAnswer : IMethod + public sealed partial class Messages_GetBotCallbackAnswer : IMethod { public Flags flags; public InputPeer peer; @@ -8425,7 +8425,7 @@ namespace TL.Methods } [TLDef(0xD58F130A)] - public class Messages_SetBotCallbackAnswer : IMethod + public sealed partial class Messages_SetBotCallbackAnswer : IMethod { public Flags flags; public long query_id; @@ -8442,13 +8442,13 @@ namespace TL.Methods } [TLDef(0xE470BCFD)] - public class Messages_GetPeerDialogs : IMethod + public sealed partial class Messages_GetPeerDialogs : IMethod { public InputDialogPeerBase[] peers; } [TLDef(0x7FF3B806)] - public class Messages_SaveDraft : IMethod + public sealed partial class Messages_SaveDraft : IMethod { public Flags flags; [IfFlag(4)] public InputReplyTo reply_to; @@ -8468,22 +8468,22 @@ namespace TL.Methods } [TLDef(0x6A3F8D65)] - public class Messages_GetAllDrafts : IMethod { } + public sealed partial class Messages_GetAllDrafts : IMethod { } [TLDef(0x64780B14)] - public class Messages_GetFeaturedStickers : IMethod + public sealed partial class Messages_GetFeaturedStickers : IMethod { public long hash; } [TLDef(0x5B118126)] - public class Messages_ReadFeaturedStickers : IMethod + public sealed partial class Messages_ReadFeaturedStickers : IMethod { public long[] id; } [TLDef(0x9DA9403B)] - public class Messages_GetRecentStickers : IMethod + public sealed partial class Messages_GetRecentStickers : IMethod { public Flags flags; public long hash; @@ -8495,7 +8495,7 @@ namespace TL.Methods } [TLDef(0x392718F8)] - public class Messages_SaveRecentSticker : IMethod + public sealed partial class Messages_SaveRecentSticker : IMethod { public Flags flags; public InputDocument id; @@ -8508,7 +8508,7 @@ namespace TL.Methods } [TLDef(0x8999602D)] - public class Messages_ClearRecentStickers : IMethod + public sealed partial class Messages_ClearRecentStickers : IMethod { public Flags flags; @@ -8519,7 +8519,7 @@ namespace TL.Methods } [TLDef(0x57F17692)] - public class Messages_GetArchivedStickers : IMethod + public sealed partial class Messages_GetArchivedStickers : IMethod { public Flags flags; public long offset_id; @@ -8533,19 +8533,19 @@ namespace TL.Methods } [TLDef(0x640F82B8)] - public class Messages_GetMaskStickers : IMethod + public sealed partial class Messages_GetMaskStickers : IMethod { public long hash; } [TLDef(0xCC5B67CC)] - public class Messages_GetAttachedStickers : IMethod + public sealed partial class Messages_GetAttachedStickers : IMethod { public InputStickeredMedia media; } [TLDef(0x8EF8ECC0)] - public class Messages_SetGameScore : IMethod + public sealed partial class Messages_SetGameScore : IMethod { public Flags flags; public InputPeer peer; @@ -8561,7 +8561,7 @@ namespace TL.Methods } [TLDef(0x15AD9F64)] - public class Messages_SetInlineGameScore : IMethod + public sealed partial class Messages_SetInlineGameScore : IMethod { public Flags flags; public InputBotInlineMessageIDBase id; @@ -8576,7 +8576,7 @@ namespace TL.Methods } [TLDef(0xE822649D)] - public class Messages_GetGameHighScores : IMethod + public sealed partial class Messages_GetGameHighScores : IMethod { public InputPeer peer; public int id; @@ -8584,14 +8584,14 @@ namespace TL.Methods } [TLDef(0x0F635E1B)] - public class Messages_GetInlineGameHighScores : IMethod + public sealed partial class Messages_GetInlineGameHighScores : IMethod { public InputBotInlineMessageIDBase id; public InputUserBase user_id; } [TLDef(0xE40CA104)] - public class Messages_GetCommonChats : IMethod + public sealed partial class Messages_GetCommonChats : IMethod { public InputUserBase user_id; public long max_id; @@ -8599,14 +8599,14 @@ namespace TL.Methods } [TLDef(0x8D9692A3)] - public class Messages_GetWebPage : IMethod + public sealed partial class Messages_GetWebPage : IMethod { public string url; public int hash; } [TLDef(0xA731E257)] - public class Messages_ToggleDialogPin : IMethod + public sealed partial class Messages_ToggleDialogPin : IMethod { public Flags flags; public InputDialogPeerBase peer; @@ -8618,7 +8618,7 @@ namespace TL.Methods } [TLDef(0x3B1ADF37)] - public class Messages_ReorderPinnedDialogs : IMethod + public sealed partial class Messages_ReorderPinnedDialogs : IMethod { public Flags flags; public int folder_id; @@ -8631,13 +8631,13 @@ namespace TL.Methods } [TLDef(0xD6B94DF2)] - public class Messages_GetPinnedDialogs : IMethod + public sealed partial class Messages_GetPinnedDialogs : IMethod { public int folder_id; } [TLDef(0xE5F672FA)] - public class Messages_SetBotShippingResults : IMethod + public sealed partial class Messages_SetBotShippingResults : IMethod { public Flags flags; public long query_id; @@ -8652,7 +8652,7 @@ namespace TL.Methods } [TLDef(0x09C2DD95)] - public class Messages_SetBotPrecheckoutResults : IMethod + public sealed partial class Messages_SetBotPrecheckoutResults : IMethod { public Flags flags; public long query_id; @@ -8666,14 +8666,14 @@ namespace TL.Methods } [TLDef(0x519BC2B1)] - public class Messages_UploadMedia : IMethod + public sealed partial class Messages_UploadMedia : IMethod { public InputPeer peer; public InputMedia media; } [TLDef(0xA1405817)] - public class Messages_SendScreenshotNotification : IMethod + public sealed partial class Messages_SendScreenshotNotification : IMethod { public InputPeer peer; public InputReplyTo reply_to; @@ -8681,20 +8681,20 @@ namespace TL.Methods } [TLDef(0x04F1AAA9)] - public class Messages_GetFavedStickers : IMethod + public sealed partial class Messages_GetFavedStickers : IMethod { public long hash; } [TLDef(0xB9FFC55B)] - public class Messages_FaveSticker : IMethod + public sealed partial class Messages_FaveSticker : IMethod { public InputDocument id; public bool unfave; } [TLDef(0xF107E790)] - public class Messages_GetUnreadMentions : IMethod + public sealed partial class Messages_GetUnreadMentions : IMethod { public Flags flags; public InputPeer peer; @@ -8712,7 +8712,7 @@ namespace TL.Methods } [TLDef(0x36E5BF4D)] - public class Messages_ReadMentions : IMethod + public sealed partial class Messages_ReadMentions : IMethod { public Flags flags; public InputPeer peer; @@ -8725,7 +8725,7 @@ namespace TL.Methods } [TLDef(0x702A40E0)] - public class Messages_GetRecentLocations : IMethod + public sealed partial class Messages_GetRecentLocations : IMethod { public InputPeer peer; public int limit; @@ -8733,7 +8733,7 @@ namespace TL.Methods } [TLDef(0x0C964709)] - public class Messages_SendMultiMedia : IMethod + public sealed partial class Messages_SendMultiMedia : IMethod { public Flags flags; public InputPeer peer; @@ -8759,14 +8759,14 @@ namespace TL.Methods } [TLDef(0x5057C497)] - public class Messages_UploadEncryptedFile : IMethod + public sealed partial class Messages_UploadEncryptedFile : IMethod { public InputEncryptedChat peer; public InputEncryptedFileBase file; } [TLDef(0x35705B8A)] - public class Messages_SearchStickerSets : IMethod + public sealed partial class Messages_SearchStickerSets : IMethod { public Flags flags; public string q; @@ -8779,10 +8779,10 @@ namespace TL.Methods } [TLDef(0x1CFF7E08)] - public class Messages_GetSplitRanges : IMethod { } + public sealed partial class Messages_GetSplitRanges : IMethod { } [TLDef(0xC286D98F)] - public class Messages_MarkDialogUnread : IMethod + public sealed partial class Messages_MarkDialogUnread : IMethod { public Flags flags; public InputDialogPeerBase peer; @@ -8794,13 +8794,13 @@ namespace TL.Methods } [TLDef(0x22E24E22)] - public class Messages_GetDialogUnreadMarks : IMethod { } + public sealed partial class Messages_GetDialogUnreadMarks : IMethod { } [TLDef(0x7E58EE9C)] - public class Messages_ClearAllDrafts : IMethod { } + public sealed partial class Messages_ClearAllDrafts : IMethod { } [TLDef(0xD2AAF7EC)] - public class Messages_UpdatePinnedMessage : IMethod + public sealed partial class Messages_UpdatePinnedMessage : IMethod { public Flags flags; public InputPeer peer; @@ -8815,7 +8815,7 @@ namespace TL.Methods } [TLDef(0x10EA6184)] - public class Messages_SendVote : IMethod + public sealed partial class Messages_SendVote : IMethod { public InputPeer peer; public int msg_id; @@ -8823,59 +8823,59 @@ namespace TL.Methods } [TLDef(0x73BB643B)] - public class Messages_GetPollResults : IMethod + public sealed partial class Messages_GetPollResults : IMethod { public InputPeer peer; public int msg_id; } [TLDef(0x6E2BE050)] - public class Messages_GetOnlines : IMethod + public sealed partial class Messages_GetOnlines : IMethod { public InputPeer peer; } [TLDef(0xDEF60797)] - public class Messages_EditChatAbout : IMethod + public sealed partial class Messages_EditChatAbout : IMethod { public InputPeer peer; public string about; } [TLDef(0xA5866B41)] - public class Messages_EditChatDefaultBannedRights : IMethod + public sealed partial class Messages_EditChatDefaultBannedRights : IMethod { public InputPeer peer; public ChatBannedRights banned_rights; } [TLDef(0x35A0E062)] - public class Messages_GetEmojiKeywords : IMethod + public sealed partial class Messages_GetEmojiKeywords : IMethod { public string lang_code; } [TLDef(0x1508B6AF)] - public class Messages_GetEmojiKeywordsDifference : IMethod + public sealed partial class Messages_GetEmojiKeywordsDifference : IMethod { public string lang_code; public int from_version; } [TLDef(0x4E9963B2)] - public class Messages_GetEmojiKeywordsLanguages : IMethod + public sealed partial class Messages_GetEmojiKeywordsLanguages : IMethod { public string[] lang_codes; } [TLDef(0xD5B10C26)] - public class Messages_GetEmojiURL : IMethod + public sealed partial class Messages_GetEmojiURL : IMethod { public string lang_code; } [TLDef(0x1BBCF300)] - public class Messages_GetSearchCounters : IMethod + public sealed partial class Messages_GetSearchCounters : IMethod { public Flags flags; public InputPeer peer; @@ -8891,7 +8891,7 @@ namespace TL.Methods } [TLDef(0x198FB446)] - public class Messages_RequestUrlAuth : IMethod + public sealed partial class Messages_RequestUrlAuth : IMethod { public Flags flags; [IfFlag(1)] public InputPeer peer; @@ -8907,7 +8907,7 @@ namespace TL.Methods } [TLDef(0xB12C7125)] - public class Messages_AcceptUrlAuth : IMethod + public sealed partial class Messages_AcceptUrlAuth : IMethod { public Flags flags; [IfFlag(1)] public InputPeer peer; @@ -8924,41 +8924,41 @@ namespace TL.Methods } [TLDef(0x4FACB138)] - public class Messages_HidePeerSettingsBar : IMethod + public sealed partial class Messages_HidePeerSettingsBar : IMethod { public InputPeer peer; } [TLDef(0xF516760B)] - public class Messages_GetScheduledHistory : IMethod + public sealed partial class Messages_GetScheduledHistory : IMethod { public InputPeer peer; public long hash; } [TLDef(0xBDBB0464)] - public class Messages_GetScheduledMessages : IMethod + public sealed partial class Messages_GetScheduledMessages : IMethod { public InputPeer peer; public int[] id; } [TLDef(0xBD38850A)] - public class Messages_SendScheduledMessages : IMethod + public sealed partial class Messages_SendScheduledMessages : IMethod { public InputPeer peer; public int[] id; } [TLDef(0x59AE2B16)] - public class Messages_DeleteScheduledMessages : IMethod + public sealed partial class Messages_DeleteScheduledMessages : IMethod { public InputPeer peer; public int[] id; } [TLDef(0xB86E380E)] - public class Messages_GetPollVotes : IMethod + public sealed partial class Messages_GetPollVotes : IMethod { public Flags flags; public InputPeer peer; @@ -8975,7 +8975,7 @@ namespace TL.Methods } [TLDef(0xB5052FEA)] - public class Messages_ToggleStickerSets : IMethod + public sealed partial class Messages_ToggleStickerSets : IMethod { public Flags flags; public InputStickerSet[] stickersets; @@ -8989,13 +8989,13 @@ namespace TL.Methods } [TLDef(0xEFD48C89)] - public class Messages_GetDialogFilters : IMethod { } + public sealed partial class Messages_GetDialogFilters : IMethod { } [TLDef(0xA29CD42C)] - public class Messages_GetSuggestedDialogFilters : IMethod { } + public sealed partial class Messages_GetSuggestedDialogFilters : IMethod { } [TLDef(0x1AD4A04A)] - public class Messages_UpdateDialogFilter : IMethod + public sealed partial class Messages_UpdateDialogFilter : IMethod { public Flags flags; public int id; @@ -9008,13 +9008,13 @@ namespace TL.Methods } [TLDef(0xC563C1E4)] - public class Messages_UpdateDialogFiltersOrder : IMethod + public sealed partial class Messages_UpdateDialogFiltersOrder : IMethod { public int[] order; } [TLDef(0x7ED094A1)] - public class Messages_GetOldFeaturedStickers : IMethod + public sealed partial class Messages_GetOldFeaturedStickers : IMethod { public int offset; public int limit; @@ -9022,7 +9022,7 @@ namespace TL.Methods } [TLDef(0x22DDD30C)] - public class Messages_GetReplies : IMethod + public sealed partial class Messages_GetReplies : IMethod { public InputPeer peer; public int msg_id; @@ -9036,14 +9036,14 @@ namespace TL.Methods } [TLDef(0x446972FD)] - public class Messages_GetDiscussionMessage : IMethod + public sealed partial class Messages_GetDiscussionMessage : IMethod { public InputPeer peer; public int msg_id; } [TLDef(0xF731A9F4)] - public class Messages_ReadDiscussion : IMethod + public sealed partial class Messages_ReadDiscussion : IMethod { public InputPeer peer; public int msg_id; @@ -9051,7 +9051,7 @@ namespace TL.Methods } [TLDef(0xEE22B9A8)] - public class Messages_UnpinAllMessages : IMethod + public sealed partial class Messages_UnpinAllMessages : IMethod { public Flags flags; public InputPeer peer; @@ -9064,13 +9064,13 @@ namespace TL.Methods } [TLDef(0x5BD0EE50)] - public class Messages_DeleteChat : IMethod + public sealed partial class Messages_DeleteChat : IMethod { public long chat_id; } [TLDef(0xF9CBE409)] - public class Messages_DeletePhoneCallHistory : IMethod + public sealed partial class Messages_DeletePhoneCallHistory : IMethod { public Flags flags; @@ -9081,13 +9081,13 @@ namespace TL.Methods } [TLDef(0x43FE19F3)] - public class Messages_CheckHistoryImport : IMethod + public sealed partial class Messages_CheckHistoryImport : IMethod { public string import_head; } [TLDef(0x34090C3B)] - public class Messages_InitHistoryImport : IMethod + public sealed partial class Messages_InitHistoryImport : IMethod { public InputPeer peer; public InputFileBase file; @@ -9095,7 +9095,7 @@ namespace TL.Methods } [TLDef(0x2A862092)] - public class Messages_UploadImportedMedia : IMethod + public sealed partial class Messages_UploadImportedMedia : IMethod { public InputPeer peer; public long import_id; @@ -9104,14 +9104,14 @@ namespace TL.Methods } [TLDef(0xB43DF344)] - public class Messages_StartHistoryImport : IMethod + public sealed partial class Messages_StartHistoryImport : IMethod { public InputPeer peer; public long import_id; } [TLDef(0xA2B5A3F6)] - public class Messages_GetExportedChatInvites : IMethod + public sealed partial class Messages_GetExportedChatInvites : IMethod { public Flags flags; public InputPeer peer; @@ -9128,14 +9128,14 @@ namespace TL.Methods } [TLDef(0x73746F5C)] - public class Messages_GetExportedChatInvite : IMethod + public sealed partial class Messages_GetExportedChatInvite : IMethod { public InputPeer peer; public string link; } [TLDef(0xBDCA2F75)] - public class Messages_EditExportedChatInvite : IMethod + public sealed partial class Messages_EditExportedChatInvite : IMethod { public Flags flags; public InputPeer peer; @@ -9156,27 +9156,27 @@ namespace TL.Methods } [TLDef(0x56987BD5)] - public class Messages_DeleteRevokedExportedChatInvites : IMethod + public sealed partial class Messages_DeleteRevokedExportedChatInvites : IMethod { public InputPeer peer; public InputUserBase admin_id; } [TLDef(0xD464A42B)] - public class Messages_DeleteExportedChatInvite : IMethod + public sealed partial class Messages_DeleteExportedChatInvite : IMethod { public InputPeer peer; public string link; } [TLDef(0x3920E6EF)] - public class Messages_GetAdminsWithInvites : IMethod + public sealed partial class Messages_GetAdminsWithInvites : IMethod { public InputPeer peer; } [TLDef(0xDF04DD4E)] - public class Messages_GetChatInviteImporters : IMethod + public sealed partial class Messages_GetChatInviteImporters : IMethod { public Flags flags; public InputPeer peer; @@ -9195,34 +9195,34 @@ namespace TL.Methods } [TLDef(0xB80E5FE4)] - public class Messages_SetHistoryTTL : IMethod + public sealed partial class Messages_SetHistoryTTL : IMethod { public InputPeer peer; public int period; } [TLDef(0x5DC60F03)] - public class Messages_CheckHistoryImportPeer : IMethod + public sealed partial class Messages_CheckHistoryImportPeer : IMethod { public InputPeer peer; } [TLDef(0xE63BE13F)] - public class Messages_SetChatTheme : IMethod + public sealed partial class Messages_SetChatTheme : IMethod { public InputPeer peer; public string emoticon; } [TLDef(0x31C1C44F)] - public class Messages_GetMessageReadParticipants : IMethod + public sealed partial class Messages_GetMessageReadParticipants : IMethod { public InputPeer peer; public int msg_id; } [TLDef(0x6AA3F6BD)] - public class Messages_GetSearchResultsCalendar : IMethod + public sealed partial class Messages_GetSearchResultsCalendar : IMethod { public Flags flags; public InputPeer peer; @@ -9238,7 +9238,7 @@ namespace TL.Methods } [TLDef(0x9C7F2F10)] - public class Messages_GetSearchResultsPositions : IMethod + public sealed partial class Messages_GetSearchResultsPositions : IMethod { public Flags flags; public InputPeer peer; @@ -9254,7 +9254,7 @@ namespace TL.Methods } [TLDef(0x7FE7E815)] - public class Messages_HideChatJoinRequest : IMethod + public sealed partial class Messages_HideChatJoinRequest : IMethod { public Flags flags; public InputPeer peer; @@ -9267,7 +9267,7 @@ namespace TL.Methods } [TLDef(0xE085F4EA)] - public class Messages_HideAllChatJoinRequests : IMethod + public sealed partial class Messages_HideAllChatJoinRequests : IMethod { public Flags flags; public InputPeer peer; @@ -9281,21 +9281,21 @@ namespace TL.Methods } [TLDef(0xB11EAFA2)] - public class Messages_ToggleNoForwards : IMethod + public sealed partial class Messages_ToggleNoForwards : IMethod { public InputPeer peer; public bool enabled; } [TLDef(0xCCFDDF96)] - public class Messages_SaveDefaultSendAs : IMethod + public sealed partial class Messages_SaveDefaultSendAs : IMethod { public InputPeer peer; public InputPeer send_as; } [TLDef(0xD30D78D4)] - public class Messages_SendReaction : IMethod + public sealed partial class Messages_SendReaction : IMethod { public Flags flags; public InputPeer peer; @@ -9311,14 +9311,14 @@ namespace TL.Methods } [TLDef(0x8BBA90E6)] - public class Messages_GetMessagesReactions : IMethod + public sealed partial class Messages_GetMessagesReactions : IMethod { public InputPeer peer; public int[] id; } [TLDef(0x461B3F48)] - public class Messages_GetMessageReactionsList : IMethod + public sealed partial class Messages_GetMessageReactionsList : IMethod { public Flags flags; public InputPeer peer; @@ -9335,26 +9335,26 @@ namespace TL.Methods } [TLDef(0xFEB16771)] - public class Messages_SetChatAvailableReactions : IMethod + public sealed partial class Messages_SetChatAvailableReactions : IMethod { public InputPeer peer; public ChatReactions available_reactions; } [TLDef(0x18DEA0AC)] - public class Messages_GetAvailableReactions : IMethod + public sealed partial class Messages_GetAvailableReactions : IMethod { public int hash; } [TLDef(0x4F47A016)] - public class Messages_SetDefaultReaction : IMethod + public sealed partial class Messages_SetDefaultReaction : IMethod { public Reaction reaction; } [TLDef(0x63183030)] - public class Messages_TranslateText : IMethod + public sealed partial class Messages_TranslateText : IMethod { public Flags flags; [IfFlag(0)] public InputPeer peer; @@ -9370,7 +9370,7 @@ namespace TL.Methods } [TLDef(0x3223495B)] - public class Messages_GetUnreadReactions : IMethod + public sealed partial class Messages_GetUnreadReactions : IMethod { public Flags flags; public InputPeer peer; @@ -9388,7 +9388,7 @@ namespace TL.Methods } [TLDef(0x54AA7F8E)] - public class Messages_ReadReactions : IMethod + public sealed partial class Messages_ReadReactions : IMethod { public Flags flags; public InputPeer peer; @@ -9401,7 +9401,7 @@ namespace TL.Methods } [TLDef(0x107E31A0)] - public class Messages_SearchSentMedia : IMethod + public sealed partial class Messages_SearchSentMedia : IMethod { public string q; public MessagesFilter filter; @@ -9409,19 +9409,19 @@ namespace TL.Methods } [TLDef(0x16FCC2CB)] - public class Messages_GetAttachMenuBots : IMethod + public sealed partial class Messages_GetAttachMenuBots : IMethod { public long hash; } [TLDef(0x77216192)] - public class Messages_GetAttachMenuBot : IMethod + public sealed partial class Messages_GetAttachMenuBot : IMethod { public InputUserBase bot; } [TLDef(0x69F59D69)] - public class Messages_ToggleBotInAttachMenu : IMethod + public sealed partial class Messages_ToggleBotInAttachMenu : IMethod { public Flags flags; public InputUserBase bot; @@ -9434,7 +9434,7 @@ namespace TL.Methods } [TLDef(0x269DC2C1)] - public class Messages_RequestWebView : IMethod + public sealed partial class Messages_RequestWebView : IMethod { public Flags flags; public InputPeer peer; @@ -9459,7 +9459,7 @@ namespace TL.Methods } [TLDef(0xB0D81A83)] - public class Messages_ProlongWebView : IMethod + public sealed partial class Messages_ProlongWebView : IMethod { public Flags flags; public InputPeer peer; @@ -9477,7 +9477,7 @@ namespace TL.Methods } [TLDef(0x1A46500A)] - public class Messages_RequestSimpleWebView : IMethod + public sealed partial class Messages_RequestSimpleWebView : IMethod { public Flags flags; public InputUserBase bot; @@ -9497,14 +9497,14 @@ namespace TL.Methods } [TLDef(0x0A4314F5)] - public class Messages_SendWebViewResultMessage : IMethod + public sealed partial class Messages_SendWebViewResultMessage : IMethod { public string bot_query_id; public InputBotInlineResultBase result; } [TLDef(0xDC0242C8)] - public class Messages_SendWebViewData : IMethod + public sealed partial class Messages_SendWebViewData : IMethod { public InputUserBase bot; public long random_id; @@ -9513,14 +9513,14 @@ namespace TL.Methods } [TLDef(0x269E9A49)] - public class Messages_TranscribeAudio : IMethod + public sealed partial class Messages_TranscribeAudio : IMethod { public InputPeer peer; public int msg_id; } [TLDef(0x7F1D072F)] - public class Messages_RateTranscribedAudio : IMethod + public sealed partial class Messages_RateTranscribedAudio : IMethod { public InputPeer peer; public int msg_id; @@ -9529,25 +9529,25 @@ namespace TL.Methods } [TLDef(0xD9AB0F54)] - public class Messages_GetCustomEmojiDocuments : IMethod + public sealed partial class Messages_GetCustomEmojiDocuments : IMethod { public long[] document_id; } [TLDef(0xFBFCA18F)] - public class Messages_GetEmojiStickers : IMethod + public sealed partial class Messages_GetEmojiStickers : IMethod { public long hash; } [TLDef(0x0ECF6736)] - public class Messages_GetFeaturedEmojiStickers : IMethod + public sealed partial class Messages_GetFeaturedEmojiStickers : IMethod { public long hash; } [TLDef(0x3F64C076)] - public class Messages_ReportReaction : IMethod + public sealed partial class Messages_ReportReaction : IMethod { public InputPeer peer; public int id; @@ -9555,40 +9555,40 @@ namespace TL.Methods } [TLDef(0xBB8125BA)] - public class Messages_GetTopReactions : IMethod + public sealed partial class Messages_GetTopReactions : IMethod { public int limit; public long hash; } [TLDef(0x39461DB2)] - public class Messages_GetRecentReactions : IMethod + public sealed partial class Messages_GetRecentReactions : IMethod { public int limit; public long hash; } [TLDef(0x9DFEEFB4)] - public class Messages_ClearRecentReactions : IMethod { } + public sealed partial class Messages_ClearRecentReactions : IMethod { } [TLDef(0x84F80814)] - public class Messages_GetExtendedMedia : IMethod + public sealed partial class Messages_GetExtendedMedia : IMethod { public InputPeer peer; public int[] id; } [TLDef(0x9EB51445)] - public class Messages_SetDefaultHistoryTTL : IMethod + public sealed partial class Messages_SetDefaultHistoryTTL : IMethod { public int period; } [TLDef(0x658B7188)] - public class Messages_GetDefaultHistoryTTL : IMethod { } + public sealed partial class Messages_GetDefaultHistoryTTL : IMethod { } [TLDef(0x91B2D060)] - public class Messages_SendBotRequestedPeer : IMethod + public sealed partial class Messages_SendBotRequestedPeer : IMethod { public InputPeer peer; public int msg_id; @@ -9597,32 +9597,32 @@ namespace TL.Methods } [TLDef(0x7488CE5B)] - public class Messages_GetEmojiGroups : IMethod + public sealed partial class Messages_GetEmojiGroups : IMethod { public int hash; } [TLDef(0x2ECD56CD)] - public class Messages_GetEmojiStatusGroups : IMethod + public sealed partial class Messages_GetEmojiStatusGroups : IMethod { public int hash; } [TLDef(0x21A548F3)] - public class Messages_GetEmojiProfilePhotoGroups : IMethod + public sealed partial class Messages_GetEmojiProfilePhotoGroups : IMethod { public int hash; } [TLDef(0x2C11C0D7)] - public class Messages_SearchCustomEmoji : IMethod + public sealed partial class Messages_SearchCustomEmoji : IMethod { public string emoticon; public long hash; } [TLDef(0xE47CB579)] - public class Messages_TogglePeerTranslations : IMethod + public sealed partial class Messages_TogglePeerTranslations : IMethod { public Flags flags; public InputPeer peer; @@ -9634,14 +9634,14 @@ namespace TL.Methods } [TLDef(0x34FDC5C3)] - public class Messages_GetBotApp : IMethod + public sealed partial class Messages_GetBotApp : IMethod { public InputBotApp app; public long hash; } [TLDef(0x8C5A3B3C)] - public class Messages_RequestAppWebView : IMethod + public sealed partial class Messages_RequestAppWebView : IMethod { public Flags flags; public InputPeer peer; @@ -9659,7 +9659,7 @@ namespace TL.Methods } [TLDef(0x8FFACAE1)] - public class Messages_SetChatWallPaper : IMethod + public sealed partial class Messages_SetChatWallPaper : IMethod { public Flags flags; public InputPeer peer; @@ -9678,7 +9678,7 @@ namespace TL.Methods } [TLDef(0x92B4494C)] - public class Messages_SearchEmojiStickerSets : IMethod + public sealed partial class Messages_SearchEmojiStickerSets : IMethod { public Flags flags; public string q; @@ -9691,7 +9691,7 @@ namespace TL.Methods } [TLDef(0x5381D21A)] - public class Messages_GetSavedDialogs : IMethod + public sealed partial class Messages_GetSavedDialogs : IMethod { public Flags flags; public DateTime offset_date; @@ -9707,7 +9707,7 @@ namespace TL.Methods } [TLDef(0x3D9A414D)] - public class Messages_GetSavedHistory : IMethod + public sealed partial class Messages_GetSavedHistory : IMethod { public InputPeer peer; public int offset_id; @@ -9720,7 +9720,7 @@ namespace TL.Methods } [TLDef(0x6E98102B)] - public class Messages_DeleteSavedHistory : IMethod + public sealed partial class Messages_DeleteSavedHistory : IMethod { public Flags flags; public InputPeer peer; @@ -9736,10 +9736,10 @@ namespace TL.Methods } [TLDef(0xD63D94E0)] - public class Messages_GetPinnedSavedDialogs : IMethod { } + public sealed partial class Messages_GetPinnedSavedDialogs : IMethod { } [TLDef(0xAC81BBDE)] - public class Messages_ToggleSavedDialogPin : IMethod + public sealed partial class Messages_ToggleSavedDialogPin : IMethod { public Flags flags; public InputDialogPeerBase peer; @@ -9751,7 +9751,7 @@ namespace TL.Methods } [TLDef(0x8B716587)] - public class Messages_ReorderPinnedSavedDialogs : IMethod + public sealed partial class Messages_ReorderPinnedSavedDialogs : IMethod { public Flags flags; public InputDialogPeerBase[] order; @@ -9763,7 +9763,7 @@ namespace TL.Methods } [TLDef(0x3637E05B)] - public class Messages_GetSavedReactionTags : IMethod + public sealed partial class Messages_GetSavedReactionTags : IMethod { public Flags flags; [IfFlag(0)] public InputPeer peer; @@ -9776,7 +9776,7 @@ namespace TL.Methods } [TLDef(0x60297DEC)] - public class Messages_UpdateSavedReactionTag : IMethod + public sealed partial class Messages_UpdateSavedReactionTag : IMethod { public Flags flags; public Reaction reaction; @@ -9789,51 +9789,51 @@ namespace TL.Methods } [TLDef(0xBDF93428)] - public class Messages_GetDefaultTagReactions : IMethod + public sealed partial class Messages_GetDefaultTagReactions : IMethod { public long hash; } [TLDef(0x8C4BFE5D)] - public class Messages_GetOutboxReadDate : IMethod + public sealed partial class Messages_GetOutboxReadDate : IMethod { public InputPeer peer; public int msg_id; } [TLDef(0xD483F2A8)] - public class Messages_GetQuickReplies : IMethod + public sealed partial class Messages_GetQuickReplies : IMethod { public long hash; } [TLDef(0x60331907)] - public class Messages_ReorderQuickReplies : IMethod + public sealed partial class Messages_ReorderQuickReplies : IMethod { public int[] order; } [TLDef(0xF1D0FBD3)] - public class Messages_CheckQuickReplyShortcut : IMethod + public sealed partial class Messages_CheckQuickReplyShortcut : IMethod { public string shortcut; } [TLDef(0x5C003CEF)] - public class Messages_EditQuickReplyShortcut : IMethod + public sealed partial class Messages_EditQuickReplyShortcut : IMethod { public int shortcut_id; public string shortcut; } [TLDef(0x3CC04740)] - public class Messages_DeleteQuickReplyShortcut : IMethod + public sealed partial class Messages_DeleteQuickReplyShortcut : IMethod { public int shortcut_id; } [TLDef(0x94A495C3)] - public class Messages_GetQuickReplyMessages : IMethod + public sealed partial class Messages_GetQuickReplyMessages : IMethod { public Flags flags; public int shortcut_id; @@ -9847,30 +9847,30 @@ namespace TL.Methods } [TLDef(0x33153AD4)] - public class Messages_SendQuickReplyMessages : IMethod + public sealed partial class Messages_SendQuickReplyMessages : IMethod { public InputPeer peer; public int shortcut_id; } [TLDef(0xE105E910)] - public class Messages_DeleteQuickReplyMessages : IMethod + public sealed partial class Messages_DeleteQuickReplyMessages : IMethod { public int shortcut_id; public int[] id; } [TLDef(0xFD2DDA49)] - public class Messages_ToggleDialogFilterTags : IMethod + public sealed partial class Messages_ToggleDialogFilterTags : IMethod { public bool enabled; } [TLDef(0xEDD4882A)] - public class Updates_GetState : IMethod { } + public sealed partial class Updates_GetState : IMethod { } [TLDef(0x19C2F763)] - public class Updates_GetDifference : IMethod + public sealed partial class Updates_GetDifference : IMethod { public Flags flags; public int pts; @@ -9889,7 +9889,7 @@ namespace TL.Methods } [TLDef(0x03173D78)] - public class Updates_GetChannelDifference : IMethod + public sealed partial class Updates_GetChannelDifference : IMethod { public Flags flags; public InputChannelBase channel; @@ -9904,7 +9904,7 @@ namespace TL.Methods } [TLDef(0x09E82039)] - public class Photos_UpdateProfilePhoto : IMethod + public sealed partial class Photos_UpdateProfilePhoto : IMethod { public Flags flags; [IfFlag(1)] public InputUserBase bot; @@ -9918,7 +9918,7 @@ namespace TL.Methods } [TLDef(0x0388A3B5)] - public class Photos_UploadProfilePhoto : IMethod + public sealed partial class Photos_UploadProfilePhoto : IMethod { public Flags flags; [IfFlag(5)] public InputUserBase bot; @@ -9939,13 +9939,13 @@ namespace TL.Methods } [TLDef(0x87CF7F2F)] - public class Photos_DeletePhotos : IMethod + public sealed partial class Photos_DeletePhotos : IMethod { public InputPhoto[] id; } [TLDef(0x91CD32A8)] - public class Photos_GetUserPhotos : IMethod + public sealed partial class Photos_GetUserPhotos : IMethod { public InputUserBase user_id; public int offset; @@ -9954,7 +9954,7 @@ namespace TL.Methods } [TLDef(0xE14C4A71)] - public class Photos_UploadContactProfilePhoto : IMethod + public sealed partial class Photos_UploadContactProfilePhoto : IMethod { public Flags flags; public InputUserBase user_id; @@ -9975,7 +9975,7 @@ namespace TL.Methods } [TLDef(0xB304A621)] - public class Upload_SaveFilePart : IMethod + public sealed partial class Upload_SaveFilePart : IMethod { public long file_id; public int file_part; @@ -9983,7 +9983,7 @@ namespace TL.Methods } [TLDef(0xBE5335BE)] - public class Upload_GetFile : IMethod + public sealed partial class Upload_GetFile : IMethod { public Flags flags; public InputFileLocationBase location; @@ -9998,7 +9998,7 @@ namespace TL.Methods } [TLDef(0xDE7B673D)] - public class Upload_SaveBigFilePart : IMethod + public sealed partial class Upload_SaveBigFilePart : IMethod { public long file_id; public int file_part; @@ -10007,7 +10007,7 @@ namespace TL.Methods } [TLDef(0x24E6818D)] - public class Upload_GetWebFile : IMethod + public sealed partial class Upload_GetWebFile : IMethod { public InputWebFileLocationBase location; public int offset; @@ -10015,7 +10015,7 @@ namespace TL.Methods } [TLDef(0x395F69DA)] - public class Upload_GetCdnFile : IMethod + public sealed partial class Upload_GetCdnFile : IMethod { public byte[] file_token; public long offset; @@ -10023,104 +10023,104 @@ namespace TL.Methods } [TLDef(0x9B2754A8)] - public class Upload_ReuploadCdnFile : IMethod + public sealed partial class Upload_ReuploadCdnFile : IMethod { public byte[] file_token; public byte[] request_token; } [TLDef(0x91DC3F31)] - public class Upload_GetCdnFileHashes : IMethod + public sealed partial class Upload_GetCdnFileHashes : IMethod { public byte[] file_token; public long offset; } [TLDef(0x9156982A)] - public class Upload_GetFileHashes : IMethod + public sealed partial class Upload_GetFileHashes : IMethod { public InputFileLocationBase location; public long offset; } [TLDef(0xC4F9186B)] - public class Help_GetConfig : IMethod { } + public sealed partial class Help_GetConfig : IMethod { } [TLDef(0x1FB33026)] - public class Help_GetNearestDc : IMethod { } + public sealed partial class Help_GetNearestDc : IMethod { } [TLDef(0x522D5A7D)] - public class Help_GetAppUpdate : IMethod + public sealed partial class Help_GetAppUpdate : IMethod { public string source; } [TLDef(0x4D392343)] - public class Help_GetInviteText : IMethod { } + public sealed partial class Help_GetInviteText : IMethod { } [TLDef(0x9CDF08CD)] - public class Help_GetSupport : IMethod { } + public sealed partial class Help_GetSupport : IMethod { } [TLDef(0xEC22CFCD)] - public class Help_SetBotUpdatesStatus : IMethod + public sealed partial class Help_SetBotUpdatesStatus : IMethod { public int pending_updates_count; public string message; } [TLDef(0x52029342)] - public class Help_GetCdnConfig : IMethod { } + public sealed partial class Help_GetCdnConfig : IMethod { } [TLDef(0x3DC0F114)] - public class Help_GetRecentMeUrls : IMethod + public sealed partial class Help_GetRecentMeUrls : IMethod { public string referer; } [TLDef(0x2CA51FD1)] - public class Help_GetTermsOfServiceUpdate : IMethod { } + public sealed partial class Help_GetTermsOfServiceUpdate : IMethod { } [TLDef(0xEE72F79A)] - public class Help_AcceptTermsOfService : IMethod + public sealed partial class Help_AcceptTermsOfService : IMethod { public DataJSON id; } [TLDef(0x3FEDC75F)] - public class Help_GetDeepLinkInfo : IMethod + public sealed partial class Help_GetDeepLinkInfo : IMethod { public string path; } [TLDef(0x61E3F854)] - public class Help_GetAppConfig : IMethod + public sealed partial class Help_GetAppConfig : IMethod { public int hash; } [TLDef(0x6F02F748)] - public class Help_SaveAppLog : IMethod + public sealed partial class Help_SaveAppLog : IMethod { public InputAppEvent[] events; } [TLDef(0xC661AD08)] - public class Help_GetPassportConfig : IMethod + public sealed partial class Help_GetPassportConfig : IMethod { public int hash; } [TLDef(0xD360E72C)] - public class Help_GetSupportName : IMethod { } + public sealed partial class Help_GetSupportName : IMethod { } [TLDef(0x038A08D3)] - public class Help_GetUserInfo : IMethod + public sealed partial class Help_GetUserInfo : IMethod { public InputUserBase user_id; } [TLDef(0x66B91B70)] - public class Help_EditUserInfo : IMethod + public sealed partial class Help_EditUserInfo : IMethod { public InputUserBase user_id; public string message; @@ -10128,65 +10128,65 @@ namespace TL.Methods } [TLDef(0xC0977421)] - public class Help_GetPromoData : IMethod { } + public sealed partial class Help_GetPromoData : IMethod { } [TLDef(0x1E251C95)] - public class Help_HidePromoData : IMethod + public sealed partial class Help_HidePromoData : IMethod { public InputPeer peer; } [TLDef(0xF50DBAA1)] - public class Help_DismissSuggestion : IMethod + public sealed partial class Help_DismissSuggestion : IMethod { public InputPeer peer; public string suggestion; } [TLDef(0x735787A8)] - public class Help_GetCountriesList : IMethod + public sealed partial class Help_GetCountriesList : IMethod { public string lang_code; public int hash; } [TLDef(0xB81B93D4)] - public class Help_GetPremiumPromo : IMethod { } + public sealed partial class Help_GetPremiumPromo : IMethod { } [TLDef(0xDA80F42F)] - public class Help_GetPeerColors : IMethod + public sealed partial class Help_GetPeerColors : IMethod { public int hash; } [TLDef(0xABCFA9FD)] - public class Help_GetPeerProfileColors : IMethod + public sealed partial class Help_GetPeerProfileColors : IMethod { public int hash; } [TLDef(0x49B30240)] - public class Help_GetTimezonesList : IMethod + public sealed partial class Help_GetTimezonesList : IMethod { public int hash; } [TLDef(0xCC104937)] - public class Channels_ReadHistory : IMethod + public sealed partial class Channels_ReadHistory : IMethod { public InputChannelBase channel; public int max_id; } [TLDef(0x84C1FD4E)] - public class Channels_DeleteMessages : IMethod + public sealed partial class Channels_DeleteMessages : IMethod { public InputChannelBase channel; public int[] id; } [TLDef(0xF44A8315)] - public class Channels_ReportSpam : IMethod + public sealed partial class Channels_ReportSpam : IMethod { public InputChannelBase channel; public InputPeer participant; @@ -10194,14 +10194,14 @@ namespace TL.Methods } [TLDef(0xAD8C9A23)] - public class Channels_GetMessages : IMethod + public sealed partial class Channels_GetMessages : IMethod { public InputChannelBase channel; public InputMessage[] id; } [TLDef(0x77CED9D0)] - public class Channels_GetParticipants : IMethod + public sealed partial class Channels_GetParticipants : IMethod { public InputChannelBase channel; public ChannelParticipantsFilter filter; @@ -10211,26 +10211,26 @@ namespace TL.Methods } [TLDef(0xA0AB6CC6)] - public class Channels_GetParticipant : IMethod + public sealed partial class Channels_GetParticipant : IMethod { public InputChannelBase channel; public InputPeer participant; } [TLDef(0x0A7F6BBB)] - public class Channels_GetChannels : IMethod + public sealed partial class Channels_GetChannels : IMethod { public InputChannelBase[] id; } [TLDef(0x08736A09)] - public class Channels_GetFullChannel : IMethod + public sealed partial class Channels_GetFullChannel : IMethod { public InputChannelBase channel; } [TLDef(0x91006707)] - public class Channels_CreateChannel : IMethod + public sealed partial class Channels_CreateChannel : IMethod { public Flags flags; public string title; @@ -10251,7 +10251,7 @@ namespace TL.Methods } [TLDef(0xD33C8902)] - public class Channels_EditAdmin : IMethod + public sealed partial class Channels_EditAdmin : IMethod { public InputChannelBase channel; public InputUserBase user_id; @@ -10260,60 +10260,60 @@ namespace TL.Methods } [TLDef(0x566DECD0)] - public class Channels_EditTitle : IMethod + public sealed partial class Channels_EditTitle : IMethod { public InputChannelBase channel; public string title; } [TLDef(0xF12E57C9)] - public class Channels_EditPhoto : IMethod + public sealed partial class Channels_EditPhoto : IMethod { public InputChannelBase channel; public InputChatPhotoBase photo; } [TLDef(0x10E6BD2C)] - public class Channels_CheckUsername : IMethod + public sealed partial class Channels_CheckUsername : IMethod { public InputChannelBase channel; public string username; } [TLDef(0x3514B3DE)] - public class Channels_UpdateUsername : IMethod + public sealed partial class Channels_UpdateUsername : IMethod { public InputChannelBase channel; public string username; } [TLDef(0x24B524C5)] - public class Channels_JoinChannel : IMethod + public sealed partial class Channels_JoinChannel : IMethod { public InputChannelBase channel; } [TLDef(0xF836AA95)] - public class Channels_LeaveChannel : IMethod + public sealed partial class Channels_LeaveChannel : IMethod { public InputChannelBase channel; } [TLDef(0x199F3A6C)] - public class Channels_InviteToChannel : IMethod + public sealed partial class Channels_InviteToChannel : IMethod { public InputChannelBase channel; public InputUserBase[] users; } [TLDef(0xC0111FE3)] - public class Channels_DeleteChannel : IMethod + public sealed partial class Channels_DeleteChannel : IMethod { public InputChannelBase channel; } [TLDef(0xE63FADEB)] - public class Channels_ExportMessageLink : IMethod + public sealed partial class Channels_ExportMessageLink : IMethod { public Flags flags; public InputChannelBase channel; @@ -10327,14 +10327,14 @@ namespace TL.Methods } [TLDef(0x1F69B606)] - public class Channels_ToggleSignatures : IMethod + public sealed partial class Channels_ToggleSignatures : IMethod { public InputChannelBase channel; public bool enabled; } [TLDef(0xF8B036AF)] - public class Channels_GetAdminedPublicChannels : IMethod + public sealed partial class Channels_GetAdminedPublicChannels : IMethod { public Flags flags; @@ -10346,7 +10346,7 @@ namespace TL.Methods } [TLDef(0x96E6CD81)] - public class Channels_EditBanned : IMethod + public sealed partial class Channels_EditBanned : IMethod { public InputChannelBase channel; public InputPeer participant; @@ -10354,7 +10354,7 @@ namespace TL.Methods } [TLDef(0x33DDF480)] - public class Channels_GetAdminLog : IMethod + public sealed partial class Channels_GetAdminLog : IMethod { public Flags flags; public InputChannelBase channel; @@ -10373,21 +10373,21 @@ namespace TL.Methods } [TLDef(0xEA8CA4F9)] - public class Channels_SetStickers : IMethod + public sealed partial class Channels_SetStickers : IMethod { public InputChannelBase channel; public InputStickerSet stickerset; } [TLDef(0xEAB5DC38)] - public class Channels_ReadMessageContents : IMethod + public sealed partial class Channels_ReadMessageContents : IMethod { public InputChannelBase channel; public int[] id; } [TLDef(0x9BAA9647)] - public class Channels_DeleteHistory : IMethod + public sealed partial class Channels_DeleteHistory : IMethod { public Flags flags; public InputChannelBase channel; @@ -10400,30 +10400,30 @@ namespace TL.Methods } [TLDef(0xEABBB94C)] - public class Channels_TogglePreHistoryHidden : IMethod + public sealed partial class Channels_TogglePreHistoryHidden : IMethod { public InputChannelBase channel; public bool enabled; } [TLDef(0x8341ECC0)] - public class Channels_GetLeftChannels : IMethod + public sealed partial class Channels_GetLeftChannels : IMethod { public int offset; } [TLDef(0xF5DAD378)] - public class Channels_GetGroupsForDiscussion : IMethod { } + public sealed partial class Channels_GetGroupsForDiscussion : IMethod { } [TLDef(0x40582BB2)] - public class Channels_SetDiscussionGroup : IMethod + public sealed partial class Channels_SetDiscussionGroup : IMethod { public InputChannelBase broadcast; public InputChannelBase group; } [TLDef(0x8F38CD1F)] - public class Channels_EditCreator : IMethod + public sealed partial class Channels_EditCreator : IMethod { public InputChannelBase channel; public InputUserBase user_id; @@ -10431,7 +10431,7 @@ namespace TL.Methods } [TLDef(0x58E63F6D)] - public class Channels_EditLocation : IMethod + public sealed partial class Channels_EditLocation : IMethod { public InputChannelBase channel; public InputGeoPoint geo_point; @@ -10439,70 +10439,70 @@ namespace TL.Methods } [TLDef(0xEDD49EF0)] - public class Channels_ToggleSlowMode : IMethod + public sealed partial class Channels_ToggleSlowMode : IMethod { public InputChannelBase channel; public int seconds; } [TLDef(0x11E831EE)] - public class Channels_GetInactiveChannels : IMethod { } + public sealed partial class Channels_GetInactiveChannels : IMethod { } [TLDef(0x0B290C69)] - public class Channels_ConvertToGigagroup : IMethod + public sealed partial class Channels_ConvertToGigagroup : IMethod { public InputChannelBase channel; } [TLDef(0xBEAEDB94)] - public class Channels_ViewSponsoredMessage : IMethod + public sealed partial class Channels_ViewSponsoredMessage : IMethod { public InputChannelBase channel; public byte[] random_id; } [TLDef(0xEC210FBF)] - public class Channels_GetSponsoredMessages : IMethod + public sealed partial class Channels_GetSponsoredMessages : IMethod { public InputChannelBase channel; } [TLDef(0x0DC770EE)] - public class Channels_GetSendAs : IMethod + public sealed partial class Channels_GetSendAs : IMethod { public InputPeer peer; } [TLDef(0x367544DB)] - public class Channels_DeleteParticipantHistory : IMethod + public sealed partial class Channels_DeleteParticipantHistory : IMethod { public InputChannelBase channel; public InputPeer participant; } [TLDef(0xE4CB9580)] - public class Channels_ToggleJoinToSend : IMethod + public sealed partial class Channels_ToggleJoinToSend : IMethod { public InputChannelBase channel; public bool enabled; } [TLDef(0x4C2985B6)] - public class Channels_ToggleJoinRequest : IMethod + public sealed partial class Channels_ToggleJoinRequest : IMethod { public InputChannelBase channel; public bool enabled; } [TLDef(0xB45CED1D)] - public class Channels_ReorderUsernames : IMethod + public sealed partial class Channels_ReorderUsernames : IMethod { public InputChannelBase channel; public string[] order; } [TLDef(0x50F24105)] - public class Channels_ToggleUsername : IMethod + public sealed partial class Channels_ToggleUsername : IMethod { public InputChannelBase channel; public string username; @@ -10510,20 +10510,20 @@ namespace TL.Methods } [TLDef(0x0A245DD3)] - public class Channels_DeactivateAllUsernames : IMethod + public sealed partial class Channels_DeactivateAllUsernames : IMethod { public InputChannelBase channel; } [TLDef(0xA4298B29)] - public class Channels_ToggleForum : IMethod + public sealed partial class Channels_ToggleForum : IMethod { public InputChannelBase channel; public bool enabled; } [TLDef(0xF40C0224)] - public class Channels_CreateForumTopic : IMethod + public sealed partial class Channels_CreateForumTopic : IMethod { public Flags flags; public InputChannelBase channel; @@ -10542,7 +10542,7 @@ namespace TL.Methods } [TLDef(0x0DE560D1)] - public class Channels_GetForumTopics : IMethod + public sealed partial class Channels_GetForumTopics : IMethod { public Flags flags; public InputChannelBase channel; @@ -10559,14 +10559,14 @@ namespace TL.Methods } [TLDef(0xB0831EB9)] - public class Channels_GetForumTopicsByID : IMethod + public sealed partial class Channels_GetForumTopicsByID : IMethod { public InputChannelBase channel; public int[] topics; } [TLDef(0xF4DFA185)] - public class Channels_EditForumTopic : IMethod + public sealed partial class Channels_EditForumTopic : IMethod { public Flags flags; public InputChannelBase channel; @@ -10586,7 +10586,7 @@ namespace TL.Methods } [TLDef(0x6C2D9026)] - public class Channels_UpdatePinnedForumTopic : IMethod + public sealed partial class Channels_UpdatePinnedForumTopic : IMethod { public InputChannelBase channel; public int topic_id; @@ -10594,14 +10594,14 @@ namespace TL.Methods } [TLDef(0x34435F2D)] - public class Channels_DeleteTopicHistory : IMethod + public sealed partial class Channels_DeleteTopicHistory : IMethod { public InputChannelBase channel; public int top_msg_id; } [TLDef(0x2950A18F)] - public class Channels_ReorderPinnedForumTopics : IMethod + public sealed partial class Channels_ReorderPinnedForumTopics : IMethod { public Flags flags; public InputChannelBase channel; @@ -10614,35 +10614,35 @@ namespace TL.Methods } [TLDef(0x68F3E4EB)] - public class Channels_ToggleAntiSpam : IMethod + public sealed partial class Channels_ToggleAntiSpam : IMethod { public InputChannelBase channel; public bool enabled; } [TLDef(0xA850A693)] - public class Channels_ReportAntiSpamFalsePositive : IMethod + public sealed partial class Channels_ReportAntiSpamFalsePositive : IMethod { public InputChannelBase channel; public int msg_id; } [TLDef(0x6A6E7854)] - public class Channels_ToggleParticipantsHidden : IMethod + public sealed partial class Channels_ToggleParticipantsHidden : IMethod { public InputChannelBase channel; public bool enabled; } [TLDef(0x18AFBC93)] - public class Channels_ClickSponsoredMessage : IMethod + public sealed partial class Channels_ClickSponsoredMessage : IMethod { public InputChannelBase channel; public byte[] random_id; } [TLDef(0xD8AA3671)] - public class Channels_UpdateColor : IMethod + public sealed partial class Channels_UpdateColor : IMethod { public Flags flags; public InputChannelBase channel; @@ -10658,55 +10658,55 @@ namespace TL.Methods } [TLDef(0x9738BB15)] - public class Channels_ToggleViewForumAsMessages : IMethod + public sealed partial class Channels_ToggleViewForumAsMessages : IMethod { public InputChannelBase channel; public bool enabled; } [TLDef(0x83B70D97)] - public class Channels_GetChannelRecommendations : IMethod + public sealed partial class Channels_GetChannelRecommendations : IMethod { public InputChannelBase channel; } [TLDef(0xF0D3E6A8)] - public class Channels_UpdateEmojiStatus : IMethod + public sealed partial class Channels_UpdateEmojiStatus : IMethod { public InputChannelBase channel; public EmojiStatus emoji_status; } [TLDef(0xAD399CEE)] - public class Channels_SetBoostsToUnblockRestrictions : IMethod + public sealed partial class Channels_SetBoostsToUnblockRestrictions : IMethod { public InputChannelBase channel; public int boosts; } [TLDef(0x3CD930B7)] - public class Channels_SetEmojiStickers : IMethod + public sealed partial class Channels_SetEmojiStickers : IMethod { public InputChannelBase channel; public InputStickerSet stickerset; } [TLDef(0xAA2769ED)] - public class Bots_SendCustomRequest : IMethod + public sealed partial class Bots_SendCustomRequest : IMethod { public string custom_method; public DataJSON params_; } [TLDef(0xE6213F4D)] - public class Bots_AnswerWebhookJSONQuery : IMethod + public sealed partial class Bots_AnswerWebhookJSONQuery : IMethod { public long query_id; public DataJSON data; } [TLDef(0x0517165A)] - public class Bots_SetBotCommands : IMethod + public sealed partial class Bots_SetBotCommands : IMethod { public BotCommandScope scope; public string lang_code; @@ -10714,46 +10714,46 @@ namespace TL.Methods } [TLDef(0x3D8DE0F9)] - public class Bots_ResetBotCommands : IMethod + public sealed partial class Bots_ResetBotCommands : IMethod { public BotCommandScope scope; public string lang_code; } [TLDef(0xE34C0DD6)] - public class Bots_GetBotCommands : IMethod + public sealed partial class Bots_GetBotCommands : IMethod { public BotCommandScope scope; public string lang_code; } [TLDef(0x4504D54F)] - public class Bots_SetBotMenuButton : IMethod + public sealed partial class Bots_SetBotMenuButton : IMethod { public InputUserBase user_id; public BotMenuButtonBase button; } [TLDef(0x9C60EB28)] - public class Bots_GetBotMenuButton : IMethod + public sealed partial class Bots_GetBotMenuButton : IMethod { public InputUserBase user_id; } [TLDef(0x788464E1)] - public class Bots_SetBotBroadcastDefaultAdminRights : IMethod + public sealed partial class Bots_SetBotBroadcastDefaultAdminRights : IMethod { public ChatAdminRights admin_rights; } [TLDef(0x925EC9EA)] - public class Bots_SetBotGroupDefaultAdminRights : IMethod + public sealed partial class Bots_SetBotGroupDefaultAdminRights : IMethod { public ChatAdminRights admin_rights; } [TLDef(0x10CF3123)] - public class Bots_SetBotInfo : IMethod + public sealed partial class Bots_SetBotInfo : IMethod { public Flags flags; [IfFlag(2)] public InputUserBase bot; @@ -10772,7 +10772,7 @@ namespace TL.Methods } [TLDef(0xDCD914FD)] - public class Bots_GetBotInfo : IMethod + public sealed partial class Bots_GetBotInfo : IMethod { public Flags flags; [IfFlag(0)] public InputUserBase bot; @@ -10785,14 +10785,14 @@ namespace TL.Methods } [TLDef(0x9709B1C2)] - public class Bots_ReorderUsernames : IMethod + public sealed partial class Bots_ReorderUsernames : IMethod { public InputUserBase bot; public string[] order; } [TLDef(0x053CA973)] - public class Bots_ToggleUsername : IMethod + public sealed partial class Bots_ToggleUsername : IMethod { public InputUserBase bot; public string username; @@ -10800,19 +10800,19 @@ namespace TL.Methods } [TLDef(0x1359F4E6)] - public class Bots_CanSendMessage : IMethod + public sealed partial class Bots_CanSendMessage : IMethod { public InputUserBase bot; } [TLDef(0xF132E3EF)] - public class Bots_AllowSendMessage : IMethod + public sealed partial class Bots_AllowSendMessage : IMethod { public InputUserBase bot; } [TLDef(0x087FC5E7)] - public class Bots_InvokeWebViewCustomMethod : IMethod + public sealed partial class Bots_InvokeWebViewCustomMethod : IMethod { public InputUserBase bot; public string custom_method; @@ -10820,7 +10820,7 @@ namespace TL.Methods } [TLDef(0x37148DBB)] - public class Payments_GetPaymentForm : IMethod + public sealed partial class Payments_GetPaymentForm : IMethod { public Flags flags; public InputInvoice invoice; @@ -10833,14 +10833,14 @@ namespace TL.Methods } [TLDef(0x2478D1CC)] - public class Payments_GetPaymentReceipt : IMethod + public sealed partial class Payments_GetPaymentReceipt : IMethod { public InputPeer peer; public int msg_id; } [TLDef(0xB6C8F12B)] - public class Payments_ValidateRequestedInfo : IMethod + public sealed partial class Payments_ValidateRequestedInfo : IMethod { public Flags flags; public InputInvoice invoice; @@ -10853,7 +10853,7 @@ namespace TL.Methods } [TLDef(0x2D03522F)] - public class Payments_SendPaymentForm : IMethod + public sealed partial class Payments_SendPaymentForm : IMethod { public Flags flags; public long form_id; @@ -10872,10 +10872,10 @@ namespace TL.Methods } [TLDef(0x227D824B)] - public class Payments_GetSavedInfo : IMethod { } + public sealed partial class Payments_GetSavedInfo : IMethod { } [TLDef(0xD83D70C1)] - public class Payments_ClearSavedInfo : IMethod + public sealed partial class Payments_ClearSavedInfo : IMethod { public Flags flags; @@ -10887,39 +10887,39 @@ namespace TL.Methods } [TLDef(0x2E79D779)] - public class Payments_GetBankCardData : IMethod + public sealed partial class Payments_GetBankCardData : IMethod { public string number; } [TLDef(0x0F91B065)] - public class Payments_ExportInvoice : IMethod + public sealed partial class Payments_ExportInvoice : IMethod { public InputMedia invoice_media; } [TLDef(0x80ED747D)] - public class Payments_AssignAppStoreTransaction : IMethod + public sealed partial class Payments_AssignAppStoreTransaction : IMethod { public byte[] receipt; public InputStorePaymentPurpose purpose; } [TLDef(0xDFFD50D3)] - public class Payments_AssignPlayMarketTransaction : IMethod + public sealed partial class Payments_AssignPlayMarketTransaction : IMethod { public DataJSON receipt; public InputStorePaymentPurpose purpose; } [TLDef(0x9FC19EB6)] - public class Payments_CanPurchasePremium : IMethod + public sealed partial class Payments_CanPurchasePremium : IMethod { public InputStorePaymentPurpose purpose; } [TLDef(0x2757BA54)] - public class Payments_GetPremiumGiftCodeOptions : IMethod + public sealed partial class Payments_GetPremiumGiftCodeOptions : IMethod { public Flags flags; [IfFlag(0)] public InputPeer boost_peer; @@ -10931,26 +10931,26 @@ namespace TL.Methods } [TLDef(0x8E51B4C1)] - public class Payments_CheckGiftCode : IMethod + public sealed partial class Payments_CheckGiftCode : IMethod { public string slug; } [TLDef(0xF6E26854)] - public class Payments_ApplyGiftCode : IMethod + public sealed partial class Payments_ApplyGiftCode : IMethod { public string slug; } [TLDef(0xF4239425)] - public class Payments_GetGiveawayInfo : IMethod + public sealed partial class Payments_GetGiveawayInfo : IMethod { public InputPeer peer; public int msg_id; } [TLDef(0x5FF58F20)] - public class Payments_LaunchPrepaidGiveaway : IMethod + public sealed partial class Payments_LaunchPrepaidGiveaway : IMethod { public InputPeer peer; public long giveaway_id; @@ -10958,7 +10958,7 @@ namespace TL.Methods } [TLDef(0x9021AB67)] - public class Stickers_CreateStickerSet : IMethod + public sealed partial class Stickers_CreateStickerSet : IMethod { public Flags flags; public InputUserBase user_id; @@ -10981,27 +10981,27 @@ namespace TL.Methods } [TLDef(0xF7760F51)] - public class Stickers_RemoveStickerFromSet : IMethod + public sealed partial class Stickers_RemoveStickerFromSet : IMethod { public InputDocument sticker; } [TLDef(0xFFB6D4CA)] - public class Stickers_ChangeStickerPosition : IMethod + public sealed partial class Stickers_ChangeStickerPosition : IMethod { public InputDocument sticker; public int position; } [TLDef(0x8653FEBE)] - public class Stickers_AddStickerToSet : IMethod + public sealed partial class Stickers_AddStickerToSet : IMethod { public InputStickerSet stickerset; public InputStickerSetItem sticker; } [TLDef(0xA76A5392)] - public class Stickers_SetStickerSetThumb : IMethod + public sealed partial class Stickers_SetStickerSetThumb : IMethod { public Flags flags; public InputStickerSet stickerset; @@ -11016,19 +11016,19 @@ namespace TL.Methods } [TLDef(0x284B3639)] - public class Stickers_CheckShortName : IMethod + public sealed partial class Stickers_CheckShortName : IMethod { public string short_name; } [TLDef(0x4DAFC503)] - public class Stickers_SuggestShortName : IMethod + public sealed partial class Stickers_SuggestShortName : IMethod { public string title; } [TLDef(0xF5537EBC)] - public class Stickers_ChangeSticker : IMethod + public sealed partial class Stickers_ChangeSticker : IMethod { public Flags flags; public InputDocument sticker; @@ -11045,23 +11045,23 @@ namespace TL.Methods } [TLDef(0x124B1C00)] - public class Stickers_RenameStickerSet : IMethod + public sealed partial class Stickers_RenameStickerSet : IMethod { public InputStickerSet stickerset; public string title; } [TLDef(0x87704394)] - public class Stickers_DeleteStickerSet : IMethod + public sealed partial class Stickers_DeleteStickerSet : IMethod { public InputStickerSet stickerset; } [TLDef(0x55451FA9)] - public class Phone_GetCallConfig : IMethod { } + public sealed partial class Phone_GetCallConfig : IMethod { } [TLDef(0x42FF96ED)] - public class Phone_RequestCall : IMethod + public sealed partial class Phone_RequestCall : IMethod { public Flags flags; public InputUserBase user_id; @@ -11076,7 +11076,7 @@ namespace TL.Methods } [TLDef(0x3BD2B4A0)] - public class Phone_AcceptCall : IMethod + public sealed partial class Phone_AcceptCall : IMethod { public InputPhoneCall peer; public byte[] g_b; @@ -11084,7 +11084,7 @@ namespace TL.Methods } [TLDef(0x2EFE1722)] - public class Phone_ConfirmCall : IMethod + public sealed partial class Phone_ConfirmCall : IMethod { public InputPhoneCall peer; public byte[] g_a; @@ -11093,13 +11093,13 @@ namespace TL.Methods } [TLDef(0x17D54F61)] - public class Phone_ReceivedCall : IMethod + public sealed partial class Phone_ReceivedCall : IMethod { public InputPhoneCall peer; } [TLDef(0xB2CBC1C0)] - public class Phone_DiscardCall : IMethod + public sealed partial class Phone_DiscardCall : IMethod { public Flags flags; public InputPhoneCall peer; @@ -11114,7 +11114,7 @@ namespace TL.Methods } [TLDef(0x59EAD627)] - public class Phone_SetCallRating : IMethod + public sealed partial class Phone_SetCallRating : IMethod { public Flags flags; public InputPhoneCall peer; @@ -11128,21 +11128,21 @@ namespace TL.Methods } [TLDef(0x277ADD7E)] - public class Phone_SaveCallDebug : IMethod + public sealed partial class Phone_SaveCallDebug : IMethod { public InputPhoneCall peer; public DataJSON debug; } [TLDef(0xFF7A9383)] - public class Phone_SendSignalingData : IMethod + public sealed partial class Phone_SendSignalingData : IMethod { public InputPhoneCall peer; public byte[] data; } [TLDef(0x48CDC6D8)] - public class Phone_CreateGroupCall : IMethod + public sealed partial class Phone_CreateGroupCall : IMethod { public Flags flags; public InputPeer peer; @@ -11159,7 +11159,7 @@ namespace TL.Methods } [TLDef(0xB132FF7B)] - public class Phone_JoinGroupCall : IMethod + public sealed partial class Phone_JoinGroupCall : IMethod { public Flags flags; public InputGroupCall call; @@ -11176,27 +11176,27 @@ namespace TL.Methods } [TLDef(0x500377F9)] - public class Phone_LeaveGroupCall : IMethod + public sealed partial class Phone_LeaveGroupCall : IMethod { public InputGroupCall call; public int source; } [TLDef(0x7B393160)] - public class Phone_InviteToGroupCall : IMethod + public sealed partial class Phone_InviteToGroupCall : IMethod { public InputGroupCall call; public InputUserBase[] users; } [TLDef(0x7A777135)] - public class Phone_DiscardGroupCall : IMethod + public sealed partial class Phone_DiscardGroupCall : IMethod { public InputGroupCall call; } [TLDef(0x74BBB43D)] - public class Phone_ToggleGroupCallSettings : IMethod + public sealed partial class Phone_ToggleGroupCallSettings : IMethod { public Flags flags; public InputGroupCall call; @@ -11210,14 +11210,14 @@ namespace TL.Methods } [TLDef(0x041845DB)] - public class Phone_GetGroupCall : IMethod + public sealed partial class Phone_GetGroupCall : IMethod { public InputGroupCall call; public int limit; } [TLDef(0xC558D8AB)] - public class Phone_GetGroupParticipants : IMethod + public sealed partial class Phone_GetGroupParticipants : IMethod { public InputGroupCall call; public InputPeer[] ids; @@ -11227,14 +11227,14 @@ namespace TL.Methods } [TLDef(0xB59CF977)] - public class Phone_CheckGroupCall : IMethod + public sealed partial class Phone_CheckGroupCall : IMethod { public InputGroupCall call; public int[] sources; } [TLDef(0xF128C708)] - public class Phone_ToggleGroupCallRecord : IMethod + public sealed partial class Phone_ToggleGroupCallRecord : IMethod { public Flags flags; public InputGroupCall call; @@ -11250,7 +11250,7 @@ namespace TL.Methods } [TLDef(0xA5273ABF)] - public class Phone_EditGroupCallParticipant : IMethod + public sealed partial class Phone_EditGroupCallParticipant : IMethod { public Flags flags; public InputGroupCall call; @@ -11274,20 +11274,20 @@ namespace TL.Methods } [TLDef(0x1CA6AC0A)] - public class Phone_EditGroupCallTitle : IMethod + public sealed partial class Phone_EditGroupCallTitle : IMethod { public InputGroupCall call; public string title; } [TLDef(0xEF7C213A)] - public class Phone_GetGroupCallJoinAs : IMethod + public sealed partial class Phone_GetGroupCallJoinAs : IMethod { public InputPeer peer; } [TLDef(0xE6AA647F)] - public class Phone_ExportGroupCallInvite : IMethod + public sealed partial class Phone_ExportGroupCallInvite : IMethod { public Flags flags; public InputGroupCall call; @@ -11299,67 +11299,67 @@ namespace TL.Methods } [TLDef(0x219C34E6)] - public class Phone_ToggleGroupCallStartSubscription : IMethod + public sealed partial class Phone_ToggleGroupCallStartSubscription : IMethod { public InputGroupCall call; public bool subscribed; } [TLDef(0x5680E342)] - public class Phone_StartScheduledGroupCall : IMethod + public sealed partial class Phone_StartScheduledGroupCall : IMethod { public InputGroupCall call; } [TLDef(0x575E1F8C)] - public class Phone_SaveDefaultGroupCallJoinAs : IMethod + public sealed partial class Phone_SaveDefaultGroupCallJoinAs : IMethod { public InputPeer peer; public InputPeer join_as; } [TLDef(0xCBEA6BC4)] - public class Phone_JoinGroupCallPresentation : IMethod + public sealed partial class Phone_JoinGroupCallPresentation : IMethod { public InputGroupCall call; public DataJSON params_; } [TLDef(0x1C50D144)] - public class Phone_LeaveGroupCallPresentation : IMethod + public sealed partial class Phone_LeaveGroupCallPresentation : IMethod { public InputGroupCall call; } [TLDef(0x1AB21940)] - public class Phone_GetGroupCallStreamChannels : IMethod + public sealed partial class Phone_GetGroupCallStreamChannels : IMethod { public InputGroupCall call; } [TLDef(0xDEB3ABBF)] - public class Phone_GetGroupCallStreamRtmpUrl : IMethod + public sealed partial class Phone_GetGroupCallStreamRtmpUrl : IMethod { public InputPeer peer; public bool revoke; } [TLDef(0x41248786)] - public class Phone_SaveCallLog : IMethod + public sealed partial class Phone_SaveCallLog : IMethod { public InputPhoneCall peer; public InputFileBase file; } [TLDef(0xF2F2330A)] - public class Langpack_GetLangPack : IMethod + public sealed partial class Langpack_GetLangPack : IMethod { public string lang_pack; public string lang_code; } [TLDef(0xEFEA3803)] - public class Langpack_GetStrings : IMethod + public sealed partial class Langpack_GetStrings : IMethod { public string lang_pack; public string lang_code; @@ -11367,7 +11367,7 @@ namespace TL.Methods } [TLDef(0xCD984AA5)] - public class Langpack_GetDifference : IMethod + public sealed partial class Langpack_GetDifference : IMethod { public string lang_pack; public string lang_code; @@ -11375,26 +11375,26 @@ namespace TL.Methods } [TLDef(0x42C6978F)] - public class Langpack_GetLanguages : IMethod + public sealed partial class Langpack_GetLanguages : IMethod { public string lang_pack; } [TLDef(0x6A596502)] - public class Langpack_GetLanguage : IMethod + public sealed partial class Langpack_GetLanguage : IMethod { public string lang_pack; public string lang_code; } [TLDef(0x6847D0AB)] - public class Folders_EditPeerFolders : IMethod + public sealed partial class Folders_EditPeerFolders : IMethod { public InputFolderPeer[] folder_peers; } [TLDef(0xAB42441A)] - public class Stats_GetBroadcastStats : IMethod + public sealed partial class Stats_GetBroadcastStats : IMethod { public Flags flags; public InputChannelBase channel; @@ -11406,7 +11406,7 @@ namespace TL.Methods } [TLDef(0x621D5FA0)] - public class Stats_LoadAsyncGraph : IMethod + public sealed partial class Stats_LoadAsyncGraph : IMethod { public Flags flags; public string token; @@ -11419,7 +11419,7 @@ namespace TL.Methods } [TLDef(0xDCDF8607)] - public class Stats_GetMegagroupStats : IMethod + public sealed partial class Stats_GetMegagroupStats : IMethod { public Flags flags; public InputChannelBase channel; @@ -11431,7 +11431,7 @@ namespace TL.Methods } [TLDef(0x5F150144)] - public class Stats_GetMessagePublicForwards : IMethod + public sealed partial class Stats_GetMessagePublicForwards : IMethod { public InputChannelBase channel; public int msg_id; @@ -11440,7 +11440,7 @@ namespace TL.Methods } [TLDef(0xB6E0A3F5)] - public class Stats_GetMessageStats : IMethod + public sealed partial class Stats_GetMessageStats : IMethod { public Flags flags; public InputChannelBase channel; @@ -11453,7 +11453,7 @@ namespace TL.Methods } [TLDef(0x374FEF40)] - public class Stats_GetStoryStats : IMethod + public sealed partial class Stats_GetStoryStats : IMethod { public Flags flags; public InputPeer peer; @@ -11466,7 +11466,7 @@ namespace TL.Methods } [TLDef(0xA6437EF6)] - public class Stats_GetStoryPublicForwards : IMethod + public sealed partial class Stats_GetStoryPublicForwards : IMethod { public InputPeer peer; public int id; @@ -11475,7 +11475,7 @@ namespace TL.Methods } [TLDef(0x8472478E)] - public class Chatlists_ExportChatlistInvite : IMethod + public sealed partial class Chatlists_ExportChatlistInvite : IMethod { public InputChatlist chatlist; public string title; @@ -11483,14 +11483,14 @@ namespace TL.Methods } [TLDef(0x719C5C5E)] - public class Chatlists_DeleteExportedInvite : IMethod + public sealed partial class Chatlists_DeleteExportedInvite : IMethod { public InputChatlist chatlist; public string slug; } [TLDef(0x653DB63D)] - public class Chatlists_EditExportedInvite : IMethod + public sealed partial class Chatlists_EditExportedInvite : IMethod { public Flags flags; public InputChatlist chatlist; @@ -11506,64 +11506,64 @@ namespace TL.Methods } [TLDef(0xCE03DA83)] - public class Chatlists_GetExportedInvites : IMethod + public sealed partial class Chatlists_GetExportedInvites : IMethod { public InputChatlist chatlist; } [TLDef(0x41C10FFF)] - public class Chatlists_CheckChatlistInvite : IMethod + public sealed partial class Chatlists_CheckChatlistInvite : IMethod { public string slug; } [TLDef(0xA6B1E39A)] - public class Chatlists_JoinChatlistInvite : IMethod + public sealed partial class Chatlists_JoinChatlistInvite : IMethod { public string slug; public InputPeer[] peers; } [TLDef(0x89419521)] - public class Chatlists_GetChatlistUpdates : IMethod + public sealed partial class Chatlists_GetChatlistUpdates : IMethod { public InputChatlist chatlist; } [TLDef(0xE089F8F5)] - public class Chatlists_JoinChatlistUpdates : IMethod + public sealed partial class Chatlists_JoinChatlistUpdates : IMethod { public InputChatlist chatlist; public InputPeer[] peers; } [TLDef(0x66E486FB)] - public class Chatlists_HideChatlistUpdates : IMethod + public sealed partial class Chatlists_HideChatlistUpdates : IMethod { public InputChatlist chatlist; } [TLDef(0xFDBCD714)] - public class Chatlists_GetLeaveChatlistSuggestions : IMethod + public sealed partial class Chatlists_GetLeaveChatlistSuggestions : IMethod { public InputChatlist chatlist; } [TLDef(0x74FAE13A)] - public class Chatlists_LeaveChatlist : IMethod + public sealed partial class Chatlists_LeaveChatlist : IMethod { public InputChatlist chatlist; public InputPeer[] peers; } [TLDef(0xC7DFDFDD)] - public class Stories_CanSendStory : IMethod + public sealed partial class Stories_CanSendStory : IMethod { public InputPeer peer; } [TLDef(0xE4E6694B)] - public class Stories_SendStory : IMethod + public sealed partial class Stories_SendStory : IMethod { public Flags flags; public InputPeer peer; @@ -11591,7 +11591,7 @@ namespace TL.Methods } [TLDef(0xB583BA46)] - public class Stories_EditStory : IMethod + public sealed partial class Stories_EditStory : IMethod { public Flags flags; public InputPeer peer; @@ -11612,14 +11612,14 @@ namespace TL.Methods } [TLDef(0xAE59DB5F)] - public class Stories_DeleteStories : IMethod + public sealed partial class Stories_DeleteStories : IMethod { public InputPeer peer; public int[] id; } [TLDef(0x9A75A1EF)] - public class Stories_TogglePinned : IMethod + public sealed partial class Stories_TogglePinned : IMethod { public InputPeer peer; public int[] id; @@ -11627,7 +11627,7 @@ namespace TL.Methods } [TLDef(0xEEB0D625)] - public class Stories_GetAllStories : IMethod + public sealed partial class Stories_GetAllStories : IMethod { public Flags flags; [IfFlag(0)] public string state; @@ -11641,7 +11641,7 @@ namespace TL.Methods } [TLDef(0x5821A5DC)] - public class Stories_GetPinnedStories : IMethod + public sealed partial class Stories_GetPinnedStories : IMethod { public InputPeer peer; public int offset_id; @@ -11649,7 +11649,7 @@ namespace TL.Methods } [TLDef(0xB4352016)] - public class Stories_GetStoriesArchive : IMethod + public sealed partial class Stories_GetStoriesArchive : IMethod { public InputPeer peer; public int offset_id; @@ -11657,34 +11657,34 @@ namespace TL.Methods } [TLDef(0x5774CA74)] - public class Stories_GetStoriesByID : IMethod + public sealed partial class Stories_GetStoriesByID : IMethod { public InputPeer peer; public int[] id; } [TLDef(0x7C2557C4)] - public class Stories_ToggleAllStoriesHidden : IMethod + public sealed partial class Stories_ToggleAllStoriesHidden : IMethod { public bool hidden; } [TLDef(0xA556DAC8)] - public class Stories_ReadStories : IMethod + public sealed partial class Stories_ReadStories : IMethod { public InputPeer peer; public int max_id; } [TLDef(0xB2028AFB)] - public class Stories_IncrementStoryViews : IMethod + public sealed partial class Stories_IncrementStoryViews : IMethod { public InputPeer peer; public int[] id; } [TLDef(0x7ED23C57)] - public class Stories_GetStoryViewsList : IMethod + public sealed partial class Stories_GetStoryViewsList : IMethod { public Flags flags; public InputPeer peer; @@ -11703,21 +11703,21 @@ namespace TL.Methods } [TLDef(0x28E16CC8)] - public class Stories_GetStoriesViews : IMethod + public sealed partial class Stories_GetStoriesViews : IMethod { public InputPeer peer; public int[] id; } [TLDef(0x7B8DEF20)] - public class Stories_ExportStoryLink : IMethod + public sealed partial class Stories_ExportStoryLink : IMethod { public InputPeer peer; public int id; } [TLDef(0x1923FA8C)] - public class Stories_Report : IMethod + public sealed partial class Stories_Report : IMethod { public InputPeer peer; public int[] id; @@ -11726,7 +11726,7 @@ namespace TL.Methods } [TLDef(0x57BBD166)] - public class Stories_ActivateStealthMode : IMethod + public sealed partial class Stories_ActivateStealthMode : IMethod { public Flags flags; @@ -11738,7 +11738,7 @@ namespace TL.Methods } [TLDef(0x7FD736B2)] - public class Stories_SendReaction : IMethod + public sealed partial class Stories_SendReaction : IMethod { public Flags flags; public InputPeer peer; @@ -11752,32 +11752,32 @@ namespace TL.Methods } [TLDef(0x2C4ADA50)] - public class Stories_GetPeerStories : IMethod + public sealed partial class Stories_GetPeerStories : IMethod { public InputPeer peer; } [TLDef(0x9B5AE7F9)] - public class Stories_GetAllReadPeerStories : IMethod { } + public sealed partial class Stories_GetAllReadPeerStories : IMethod { } [TLDef(0x535983C3)] - public class Stories_GetPeerMaxIDs : IMethod + public sealed partial class Stories_GetPeerMaxIDs : IMethod { public InputPeer[] id; } [TLDef(0xA56A8B60)] - public class Stories_GetChatsToSend : IMethod { } + public sealed partial class Stories_GetChatsToSend : IMethod { } [TLDef(0xBD0415C4)] - public class Stories_TogglePeerStoriesHidden : IMethod + public sealed partial class Stories_TogglePeerStoriesHidden : IMethod { public InputPeer peer; public bool hidden; } [TLDef(0xB9B2881F)] - public class Stories_GetStoryReactionsList : IMethod + public sealed partial class Stories_GetStoryReactionsList : IMethod { public Flags flags; public InputPeer peer; @@ -11795,7 +11795,7 @@ namespace TL.Methods } [TLDef(0x60F67660)] - public class Premium_GetBoostsList : IMethod + public sealed partial class Premium_GetBoostsList : IMethod { public Flags flags; public InputPeer peer; @@ -11809,10 +11809,10 @@ namespace TL.Methods } [TLDef(0x0BE77B4A)] - public class Premium_GetMyBoosts : IMethod { } + public sealed partial class Premium_GetMyBoosts : IMethod { } [TLDef(0x6B7DA746)] - public class Premium_ApplyBoost : IMethod + public sealed partial class Premium_ApplyBoost : IMethod { public Flags flags; [IfFlag(0)] public int[] slots; @@ -11825,29 +11825,29 @@ namespace TL.Methods } [TLDef(0x042F1F61)] - public class Premium_GetBoostsStatus : IMethod + public sealed partial class Premium_GetBoostsStatus : IMethod { public InputPeer peer; } [TLDef(0x39854D1F)] - public class Premium_GetUserBoosts : IMethod + public sealed partial class Premium_GetUserBoosts : IMethod { public InputPeer peer; public InputUserBase user_id; } [TLDef(0x0EDC39D0)] - public class Smsjobs_IsEligibleToJoin : IMethod { } + public sealed partial class Smsjobs_IsEligibleToJoin : IMethod { } [TLDef(0xA74ECE2D)] - public class Smsjobs_Join : IMethod { } + public sealed partial class Smsjobs_Join : IMethod { } [TLDef(0x9898AD73)] - public class Smsjobs_Leave : IMethod { } + public sealed partial class Smsjobs_Leave : IMethod { } [TLDef(0x093FA0BF)] - public class Smsjobs_UpdateSettings : IMethod + public sealed partial class Smsjobs_UpdateSettings : IMethod { public Flags flags; @@ -11858,16 +11858,16 @@ namespace TL.Methods } [TLDef(0x10A698E8)] - public class Smsjobs_GetStatus : IMethod { } + public sealed partial class Smsjobs_GetStatus : IMethod { } [TLDef(0x778D902F)] - public class Smsjobs_GetSmsJob : IMethod + public sealed partial class Smsjobs_GetSmsJob : IMethod { public string job_id; } [TLDef(0x4F1EBF24)] - public class Smsjobs_FinishJob : IMethod + public sealed partial class Smsjobs_FinishJob : IMethod { public Flags flags; public string job_id; diff --git a/src/TL.Secret.cs b/src/TL.Secret.cs index 6028014..41d7da0 100644 --- a/src/TL.Secret.cs +++ b/src/TL.Secret.cs @@ -4,7 +4,7 @@ namespace TL { #pragma warning disable IDE1006 /// Object describes the contents of an encrypted message. See - public abstract class DecryptedMessageBase : IObject + public abstract partial class DecryptedMessageBase : IObject { /// Flags, see TL conditional fields (added in layer 45) public virtual uint FFlags => default; @@ -30,17 +30,17 @@ namespace TL /// Object describes media contents of an encrypted message. See /// a value means decryptedMessageMediaEmpty - public abstract class DecryptedMessageMedia : IObject + public abstract partial class DecryptedMessageMedia : IObject { public virtual string MimeType => default; internal virtual (long size, byte[] key, byte[] iv) SizeKeyIV { get => default; set => throw new WTelegram.WTException("Incompatible DecryptedMessageMedia"); } } /// Object describes the action to which a service message is linked. See - public abstract class DecryptedMessageAction : IObject { } + public abstract partial class DecryptedMessageAction : IObject { } /// Indicates the location of a photo, will be deprecated soon See - public abstract class FileLocationBase : IObject + public abstract partial class FileLocationBase : IObject { /// Server volume public virtual long VolumeId => default; @@ -54,7 +54,7 @@ namespace TL { /// Contents of an encrypted message. See [TLDef(0x1F814F1F)] - public class DecryptedMessage : DecryptedMessageBase + public sealed partial class DecryptedMessage : DecryptedMessageBase { /// Random message ID, assigned by the author of message.
Must be equal to the ID passed to sending method.
public long random_id; @@ -74,7 +74,7 @@ namespace TL } ///
Contents of an encrypted service message. See [TLDef(0xAA48327D)] - public class DecryptedMessageService : DecryptedMessageBase + public sealed partial class DecryptedMessageService : DecryptedMessageBase { /// Random message ID, assigned by the message author.
Must be equal to the ID passed to the sending method.
public long random_id; @@ -91,7 +91,7 @@ namespace TL ///
Photo attached to an encrypted message. See [TLDef(0x32798A8C)] - public class DecryptedMessageMediaPhoto : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaPhoto : DecryptedMessageMedia { /// Content of thumbnail file (JPEGfile, quality 55, set in a square 90x90) public byte[] thumb; @@ -115,7 +115,7 @@ namespace TL } /// Video attached to an encrypted message. See [TLDef(0x4CEE6EF3)] - public class DecryptedMessageMediaVideo : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaVideo : DecryptedMessageMedia { /// Content of thumbnail file (JPEG file, quality 55, set in a square 90x90) public byte[] thumb; @@ -140,7 +140,7 @@ namespace TL } /// GeoPoint attached to an encrypted message. See [TLDef(0x35480A59)] - public class DecryptedMessageMediaGeoPoint : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaGeoPoint : DecryptedMessageMedia { /// Latitude of point public double lat; @@ -149,7 +149,7 @@ namespace TL } /// Contact attached to an encrypted message. See [TLDef(0x588A0A97)] - public class DecryptedMessageMediaContact : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaContact : DecryptedMessageMedia { /// Phone number public string phone_number; @@ -162,7 +162,7 @@ namespace TL } /// Document attached to a message in a secret chat. See [TLDef(0xB095434B)] - public class DecryptedMessageMediaDocument : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaDocument : DecryptedMessageMedia { /// Thumbnail-file contents (JPEG-file, quality 55, set in a 90x90 square) public byte[] thumb; @@ -187,7 +187,7 @@ namespace TL } /// Audio file attached to a secret chat message. See [TLDef(0x6080758F)] - public class DecryptedMessageMediaAudio : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaAudio : DecryptedMessageMedia { /// Audio duration in seconds public int duration; @@ -203,42 +203,42 @@ namespace TL /// Setting of a message lifetime after reading. See [TLDef(0xA1733AEC)] - public class DecryptedMessageActionSetMessageTTL : DecryptedMessageAction + public sealed partial class DecryptedMessageActionSetMessageTTL : DecryptedMessageAction { /// Lifetime in seconds public int ttl_seconds; } /// Messages marked as read. See [TLDef(0x0C4F40BE)] - public class DecryptedMessageActionReadMessages : DecryptedMessageAction + public sealed partial class DecryptedMessageActionReadMessages : DecryptedMessageAction { /// List of message IDs public long[] random_ids; } /// Deleted messages. See [TLDef(0x65614304)] - public class DecryptedMessageActionDeleteMessages : DecryptedMessageAction + public sealed partial class DecryptedMessageActionDeleteMessages : DecryptedMessageAction { /// List of deleted message IDs public long[] random_ids; } /// A screenshot was taken. See [TLDef(0x8AC1F475)] - public class DecryptedMessageActionScreenshotMessages : DecryptedMessageAction + public sealed partial class DecryptedMessageActionScreenshotMessages : DecryptedMessageAction { /// List of affected message ids (that appeared on the screenshot) public long[] random_ids; } /// The entire message history has been deleted. See [TLDef(0x6719E45C)] - public class DecryptedMessageActionFlushHistory : DecryptedMessageAction { } + public sealed partial class DecryptedMessageActionFlushHistory : DecryptedMessageAction { } } namespace Layer23 { /// Image description. See [TLDef(0x77BFB61B)] - public partial class PhotoSize : PhotoSizeBase + public sealed partial class PhotoSize : PhotoSizeBase { /// Thumbnail type » public string type; @@ -255,7 +255,7 @@ namespace TL } /// Description of an image and its content. See [TLDef(0xE9A734FA)] - public partial class PhotoCachedSize : PhotoSizeBase + public sealed partial class PhotoCachedSize : PhotoSizeBase { /// Thumbnail type public string type; @@ -273,23 +273,23 @@ namespace TL /// User is uploading a video. See [TLDef(0x92042FF7)] - public class SendMessageUploadVideoAction : SendMessageAction { } + public sealed partial class SendMessageUploadVideoAction : SendMessageAction { } /// User is uploading a voice message. See [TLDef(0xE6AC8A6F)] - public class SendMessageUploadAudioAction : SendMessageAction { } + public sealed partial class SendMessageUploadAudioAction : SendMessageAction { } /// User is uploading a photo. See [TLDef(0x990A3C1A)] - public class SendMessageUploadPhotoAction : SendMessageAction { } + public sealed partial class SendMessageUploadPhotoAction : SendMessageAction { } /// User is uploading a file. See [TLDef(0x8FAEE98E)] - public class SendMessageUploadDocumentAction : SendMessageAction { } + public sealed partial class SendMessageUploadDocumentAction : SendMessageAction { } /// Defines a sticker See [TLDef(0xFB0A5727)] - public class DocumentAttributeSticker : DocumentAttribute { } + public sealed partial class DocumentAttributeSticker : DocumentAttribute { } /// Defines a video See [TLDef(0x5910CCCB)] - public class DocumentAttributeVideo : DocumentAttribute + public sealed partial class DocumentAttributeVideo : DocumentAttribute { /// Duration in seconds public int duration; @@ -300,7 +300,7 @@ namespace TL } /// Represents an audio file See [TLDef(0x051448E5)] - public class DocumentAttributeAudio : DocumentAttribute + public sealed partial class DocumentAttributeAudio : DocumentAttribute { /// Duration in seconds public int duration; @@ -308,7 +308,7 @@ namespace TL /// Contents of an encrypted message. See [TLDef(0x204D3878)] - public class DecryptedMessage : DecryptedMessageBase + public sealed partial class DecryptedMessage : DecryptedMessageBase { /// Random message ID, assigned by the author of message.
Must be equal to the ID passed to sending method.
public long random_id; @@ -330,7 +330,7 @@ namespace TL } ///
Contents of an encrypted service message. See [TLDef(0x73164160)] - public class DecryptedMessageService : DecryptedMessageBase + public sealed partial class DecryptedMessageService : DecryptedMessageBase { /// Random message ID, assigned by the message author.
Must be equal to the ID passed to the sending method.
public long random_id; @@ -345,7 +345,7 @@ namespace TL ///
Video attached to an encrypted message. See [TLDef(0x524A415D)] - public class DecryptedMessageMediaVideo : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaVideo : DecryptedMessageMedia { /// Content of thumbnail file (JPEG file, quality 55, set in a square 90x90) public byte[] thumb; @@ -375,7 +375,7 @@ namespace TL } /// Audio file attached to a secret chat message. See [TLDef(0x57E0A9CB)] - public class DecryptedMessageMediaAudio : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaAudio : DecryptedMessageMedia { /// Audio duration in seconds public int duration; @@ -395,7 +395,7 @@ namespace TL } /// Non-e2e documented forwarded from non-secret chat See [TLDef(0xFA95B0DD)] - public class DecryptedMessageMediaExternalDocument : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaExternalDocument : DecryptedMessageMedia { /// Document ID public long id; @@ -420,7 +420,7 @@ namespace TL /// Request for the other party in a Secret Chat to automatically resend a contiguous range of previously sent messages, as explained in Sequence number is Secret Chats. See [TLDef(0x511110B0)] - public class DecryptedMessageActionResend : DecryptedMessageAction + public sealed partial class DecryptedMessageActionResend : DecryptedMessageAction { /// out_seq_no of the first message to be resent, with correct parity public int start_seq_no; @@ -429,21 +429,21 @@ namespace TL } /// A notification stating the API layer that is used by the client. You should use your current layer and take notice of the layer used on the other side of a conversation when sending messages. See [TLDef(0xF3048883)] - public class DecryptedMessageActionNotifyLayer : DecryptedMessageAction + public sealed partial class DecryptedMessageActionNotifyLayer : DecryptedMessageAction { /// Layer number, must be 17 or higher (this constructor was introduced in Layer 17. public int layer; } /// User is preparing a message: typing, recording, uploading, etc. See [TLDef(0xCCB27641)] - public class DecryptedMessageActionTyping : DecryptedMessageAction + public sealed partial class DecryptedMessageActionTyping : DecryptedMessageAction { /// Type of action public SendMessageAction action; } /// Request rekeying, see rekeying process See [TLDef(0xF3C9611B)] - public class DecryptedMessageActionRequestKey : DecryptedMessageAction + public sealed partial class DecryptedMessageActionRequestKey : DecryptedMessageAction { /// Exchange ID public long exchange_id; @@ -452,7 +452,7 @@ namespace TL } /// Accept new key See [TLDef(0x6FE1735B)] - public class DecryptedMessageActionAcceptKey : DecryptedMessageAction + public sealed partial class DecryptedMessageActionAcceptKey : DecryptedMessageAction { /// Exchange ID public long exchange_id; @@ -463,14 +463,14 @@ namespace TL } /// Abort rekeying See [TLDef(0xDD05EC6B)] - public class DecryptedMessageActionAbortKey : DecryptedMessageAction + public sealed partial class DecryptedMessageActionAbortKey : DecryptedMessageAction { /// Exchange ID public long exchange_id; } /// Commit new key, see rekeying process See [TLDef(0xEC2E0B9B)] - public class DecryptedMessageActionCommitKey : DecryptedMessageAction + public sealed partial class DecryptedMessageActionCommitKey : DecryptedMessageAction { /// Exchange ID, see rekeying process public long exchange_id; @@ -479,11 +479,11 @@ namespace TL } /// NOOP action See [TLDef(0xA82FDD63)] - public class DecryptedMessageActionNoop : DecryptedMessageAction { } + public sealed partial class DecryptedMessageActionNoop : DecryptedMessageAction { } /// Sets the layer number for the contents of an encrypted message. See [TLDef(0x1BE31789)] - public class DecryptedMessageLayer : IObject + public sealed partial class DecryptedMessageLayer : IObject { /// Set of random bytes to prevent content recognition in short encrypted messages.
Clients are required to check that there are at least 15 random bytes included in each message. Messages with less than 15 random bytes must be ignored.
Parameter moved here from in Layer 17.
public byte[] random_bytes; @@ -499,7 +499,7 @@ namespace TL ///
File is currently unavailable. See [TLDef(0x7C596B46)] - public class FileLocationUnavailable : FileLocationBase + public sealed partial class FileLocationUnavailable : FileLocationBase { /// Server volume public long volume_id; @@ -517,7 +517,7 @@ namespace TL } /// File location. See [TLDef(0x53D69076)] - public class FileLocation : FileLocationBase + public sealed partial class FileLocation : FileLocationBase { /// Number of the data center holding the file public int dc_id; @@ -541,7 +541,7 @@ namespace TL { /// Represents an audio file See [TLDef(0xDED218E0)] - public class DocumentAttributeAudio : DocumentAttribute + public sealed partial class DocumentAttributeAudio : DocumentAttribute { /// Duration in seconds public int duration; @@ -556,7 +556,7 @@ namespace TL { /// Defines a sticker See [TLDef(0x3A556302)] - public class DocumentAttributeSticker : DocumentAttribute + public sealed partial class DocumentAttributeSticker : DocumentAttribute { /// Alternative emoji representation of sticker public string alt; @@ -566,7 +566,7 @@ namespace TL /// Message entity representing a user mention: for creating a mention use . See [TLDef(0x352DCA58, inheritBefore = true)] - public class MessageEntityMentionName : MessageEntityMention + public sealed partial class MessageEntityMentionName : MessageEntity { /// Identifier of the user that was mentioned public int user_id; @@ -574,7 +574,7 @@ namespace TL /// Contents of an encrypted message. See [TLDef(0x36B091DE)] - public class DecryptedMessage : DecryptedMessageBase + public sealed partial class DecryptedMessage : DecryptedMessageBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -625,7 +625,7 @@ namespace TL /// Photo attached to an encrypted message. See [TLDef(0xF1FA8D78)] - public class DecryptedMessageMediaPhoto : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaPhoto : DecryptedMessageMedia { /// Content of thumbnail file (JPEGfile, quality 55, set in a square 90x90) public byte[] thumb; @@ -651,7 +651,7 @@ namespace TL } /// Video attached to an encrypted message. See [TLDef(0x970C8C0E)] - public class DecryptedMessageMediaVideo : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaVideo : DecryptedMessageMedia { /// Content of thumbnail file (JPEG file, quality 55, set in a square 90x90) public byte[] thumb; @@ -683,7 +683,7 @@ namespace TL } /// Document attached to a message in a secret chat. See [TLDef(0x7AFE8AE2)] - public class DecryptedMessageMediaDocument : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaDocument : DecryptedMessageMedia { /// Thumbnail-file contents (JPEG-file, quality 55, set in a 90x90 square) public byte[] thumb; @@ -711,7 +711,7 @@ namespace TL } /// Venue See [TLDef(0x8A0DF56F)] - public class DecryptedMessageMediaVenue : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaVenue : DecryptedMessageMedia { /// Latitude of venue public double lat; @@ -728,7 +728,7 @@ namespace TL } /// Webpage preview See [TLDef(0xE50511D8)] - public class DecryptedMessageMediaWebPage : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaWebPage : DecryptedMessageMedia { /// URL of webpage public string url; @@ -739,11 +739,11 @@ namespace TL { /// User is uploading a round video See [TLDef(0xBB718624)] - public class SendMessageUploadRoundAction : SendMessageAction { } + public sealed partial class SendMessageUploadRoundAction : SendMessageAction { } /// Defines a video See [TLDef(0x0EF02CE6)] - public class DocumentAttributeVideo : DocumentAttribute + public sealed partial class DocumentAttributeVideo : DocumentAttribute { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -766,7 +766,7 @@ namespace TL { /// Contents of an encrypted message. See [TLDef(0x91CC4674)] - public class DecryptedMessage : DecryptedMessageBase + public sealed partial class DecryptedMessage : DecryptedMessageBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; @@ -831,7 +831,7 @@ namespace TL { /// Document attached to a message in a secret chat. See [TLDef(0x6ABD9782)] - public class DecryptedMessageMediaDocument : DecryptedMessageMedia + public sealed partial class DecryptedMessageMediaDocument : DecryptedMessageMedia { /// Thumbnail-file contents (JPEG-file, quality 55, set in a 90x90 square) public byte[] thumb; diff --git a/src/TL.Table.cs b/src/TL.Table.cs index ed185a2..af24420 100644 --- a/src/TL.Table.cs +++ b/src/TL.Table.cs @@ -4,7 +4,7 @@ using System.ComponentModel; namespace TL { - public static class Layer + public static partial class Layer { public const int Version = 176; // fetched 08/03/2024 11:12:00 internal const int SecretChats = 144; @@ -1325,7 +1325,7 @@ namespace TL [typeof(UrlAuthResult)] = 0xA9D6DB1F, //urlAuthResultDefault [typeof(ChannelLocation)] = 0xBFB5AD8B, //channelLocationEmpty [typeof(Account_Themes)] = 0xF41EB622, //account.themesNotModified - [typeof(DialogFilter)] = 0x363293AE, //dialogFilterDefault + [typeof(DialogFilterBase)] = 0x363293AE, //dialogFilterDefault [typeof(Help_CountriesList)] = 0x93CC1F32, //help.countriesListNotModified [typeof(BotCommandScope)] = 0x2F6CB2AB, //botCommandScopeDefault [typeof(Messages_SponsoredMessages)] = 0x1839490F, //messages.sponsoredMessagesEmpty @@ -1340,7 +1340,6 @@ namespace TL [typeof(ChatReactions)] = 0xEAFC32BC, //chatReactionsNone [typeof(Messages_Reactions)] = 0xB06FDBDF, //messages.reactionsNotModified // from TL.Secret: - [typeof(DialogFilterBase)] = 0x363293AE, //dialogFilterDefault [typeof(EmojiList)] = 0x481EADFA, //emojiListNotModified [typeof(Messages_EmojiGroups)] = 0x6FB4AD87, //messages.emojiGroupsNotModified [typeof(Help_AppConfig)] = 0x7CDE641D, //help.appConfigNotModified diff --git a/src/TL.cs b/src/TL.cs index d8e79da..90e25fc 100644 --- a/src/TL.cs +++ b/src/TL.cs @@ -16,19 +16,19 @@ namespace TL public interface IPeerResolver { IPeerInfo UserOrChat(Peer peer); } [AttributeUsage(AttributeTargets.Class)] - public class TLDefAttribute(uint ctorNb) : Attribute + public sealed class TLDefAttribute(uint ctorNb) : Attribute { public readonly uint CtorNb = ctorNb; public bool inheritBefore; } [AttributeUsage(AttributeTargets.Field)] - public class IfFlagAttribute(int bit) : Attribute + public sealed class IfFlagAttribute(int bit) : Attribute { public readonly int Bit = bit; } - public class RpcException(int code, string message, int x = -1) : WTelegram.WTException(message) + public sealed class RpcException(int code, string message, int x = -1) : WTelegram.WTException(message) { public readonly int Code = code; /// The value of X in the message, -1 if no variable X was found @@ -36,7 +36,7 @@ namespace TL public override string ToString() { var str = base.ToString(); return str.Insert(str.IndexOf(':') + 1, " " + Code); } } - public class ReactorError : IObject + public sealed partial class ReactorError : IObject { public Exception Exception; } @@ -352,7 +352,7 @@ namespace TL public static implicit operator byte[](Int256 int256) => int256.raw; } - public class UpdateAffectedMessages : Update // auto-generated for OnOwnUpdate in case of such API call result + public sealed partial class UpdateAffectedMessages : Update // auto-generated for OnOwnUpdate in case of such API call result { public Messages_AffectedMessages affected; public override (long, int, int) GetMBox() => (0, affected.pts, affected.pts_count); @@ -361,21 +361,21 @@ namespace TL // Below TL types are commented "parsed manually" from https://github.com/telegramdesktop/tdesktop/blob/dev/Telegram/Resources/tl/mtproto.tl [TLDef(0x7A19CB76)] //RSA_public_key#7a19cb76 n:bytes e:bytes = RSAPublicKey - public class RSAPublicKey : IObject + public sealed partial class RSAPublicKey : IObject { public byte[] n; public byte[] e; } [TLDef(0xF35C6D01)] //rpc_result#f35c6d01 req_msg_id:long result:Object = RpcResult - public class RpcResult : IObject + public sealed partial class RpcResult : IObject { public long req_msg_id; public object result; } [TLDef(0x5BB8E511)] //message#5bb8e511 msg_id:long seqno:int bytes:int body:Object = Message - public class _Message(long msgId, int seqNo, IObject obj) : IObject + public sealed partial class _Message(long msgId, int seqNo, IObject obj) : IObject { public long msg_id = msgId; public int seq_no = seqNo; @@ -384,10 +384,10 @@ namespace TL } [TLDef(0x73F1F8DC)] //msg_container#73f1f8dc messages:vector<%Message> = MessageContainer - public class MsgContainer : IObject { public _Message[] messages; } + public sealed partial class MsgContainer : IObject { public _Message[] messages; } [TLDef(0xE06046B2)] //msg_copy#e06046b2 orig_message:Message = MessageCopy - public class MsgCopy : IObject { public _Message orig_message; } + public sealed partial class MsgCopy : IObject { public _Message orig_message; } [TLDef(0x3072CFA1)] //gzip_packed#3072cfa1 packed_data:bytes = Object - public class GzipPacked : IObject { public byte[] packed_data; } + public sealed partial class GzipPacked : IObject { public byte[] packed_data; } } diff --git a/src/TlsStream.cs b/src/TlsStream.cs index b7d4632..3adc277 100644 --- a/src/TlsStream.cs +++ b/src/TlsStream.cs @@ -11,7 +11,7 @@ using System.Threading.Tasks; namespace WTelegram { - class TlsStream(Stream innerStream) : Helpers.IndirectStream(innerStream) + internal sealed class TlsStream(Stream innerStream) : Helpers.IndirectStream(innerStream) { private int _tlsFrameleft; private readonly byte[] _tlsSendHeader = [0x17, 0x03, 0x03, 0, 0];