From c157fba5e458f606f54fd73cb548785aca536e2d Mon Sep 17 00:00:00 2001 From: Wizou Date: Wed, 10 Nov 2021 17:26:40 +0100 Subject: [PATCH] Move TL methods in Extensions class and TL.Methods namespace. Remove partial modifiers when possible --- src/Client.cs | 6 +- src/TL.MTProto.cs | 242 +- src/TL.Schema.cs | 9722 +++++++++++++++++++++++---------------------- src/TL.Secret.cs | 103 +- src/TL.Table.cs | 4 +- 5 files changed, 5041 insertions(+), 5036 deletions(-) diff --git a/src/Client.cs b/src/Client.cs index 7563d85..b39974f 100644 --- a/src/Client.cs +++ b/src/Client.cs @@ -261,7 +261,7 @@ namespace WTelegram var keepAliveTask = KeepAlive(_cts.Token); TLConfig = await this.InvokeWithLayer(Layer.Version, - new Schema.InitConnection_ + new TL.Methods.InitConnection { api_id = _apiId, device_model = Config("device_model"), @@ -270,7 +270,7 @@ namespace WTelegram system_lang_code = Config("system_lang_code"), lang_pack = Config("lang_pack"), lang_code = Config("lang_code"), - query = new Schema.Help_GetConfig_() + query = new TL.Methods.Help_GetConfig() }); _session.DcOptions = TLConfig.dc_options; _saltChangeCounter = 0; @@ -839,7 +839,7 @@ namespace WTelegram } } break; - case MTProto.Ping_ ping: + case TL.Methods.Ping ping: _ = SendAsync(new Pong { msg_id = _lastRecvMsgId, ping_id = ping.ping_id }, false); break; case Pong pong: diff --git a/src/TL.MTProto.cs b/src/TL.MTProto.cs index d76bc16..7a12037 100644 --- a/src/TL.MTProto.cs +++ b/src/TL.MTProto.cs @@ -5,11 +5,11 @@ using System.Threading.Tasks; namespace TL { - using BinaryWriter = System.IO.BinaryWriter; + using TL.Methods; using Client = WTelegram.Client; [TLDef(0x05162463)] //resPQ#05162463 nonce:int128 server_nonce:int128 pq:bytes server_public_key_fingerprints:Vector = ResPQ - public partial class ResPQ : IObject + public class ResPQ : IObject { public Int128 nonce; public Int128 server_nonce; @@ -18,7 +18,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 partial class PQInnerData : IObject + public class PQInnerData : IObject { public byte[] pq; public byte[] p; @@ -28,24 +28,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 partial class PQInnerDataDc : PQInnerData + public 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 partial class PQInnerDataTemp : PQInnerData + public 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 partial class PQInnerDataTempDc : PQInnerData + public 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 partial class BindAuthKeyInner : IObject + public class BindAuthKeyInner : IObject { public long nonce; public long temp_auth_key_id; @@ -54,24 +54,24 @@ namespace TL public DateTime expires_at; } - public abstract partial class ServerDHParams : IObject + public abstract 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 partial class ServerDHParamsFail : ServerDHParams + public 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 partial class ServerDHParamsOk : ServerDHParams + public 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 partial class ServerDHInnerData : IObject + public class ServerDHInnerData : IObject { public Int128 nonce; public Int128 server_nonce; @@ -82,7 +82,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 partial class ClientDHInnerData : IObject + public class ClientDHInnerData : IObject { public Int128 nonce; public Int128 server_nonce; @@ -90,23 +90,23 @@ namespace TL public byte[] g_b; } - public abstract partial class SetClientDHParamsAnswer : IObject + public abstract 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 partial class DhGenOk : SetClientDHParamsAnswer + public 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 partial class DhGenRetry : SetClientDHParamsAnswer + public 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 partial class DhGenFail : SetClientDHParamsAnswer + public class DhGenFail : SetClientDHParamsAnswer { public Int128 new_nonce_hash3; } @@ -122,52 +122,52 @@ namespace TL } [TLDef(0x62D6B459)] //msgs_ack#62d6b459 msg_ids:Vector = MsgsAck - public partial class MsgsAck : IObject + public 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 partial class BadMsgNotification : IObject + public 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 partial class BadServerSalt : BadMsgNotification + public class BadServerSalt : BadMsgNotification { public long new_server_salt; } [TLDef(0xDA69FB52)] //msgs_state_req#da69fb52 msg_ids:Vector = MsgsStateReq - public partial class MsgsStateReq : IObject + public class MsgsStateReq : IObject { public long[] msg_ids; } [TLDef(0x04DEB57D)] //msgs_state_info#04deb57d req_msg_id:long info:bytes = MsgsStateInfo - public partial class MsgsStateInfo : IObject + public class MsgsStateInfo : IObject { public long req_msg_id; public byte[] info; } [TLDef(0x8CC0D131)] //msgs_all_info#8cc0d131 msg_ids:Vector info:bytes = MsgsAllInfo - public partial class MsgsAllInfo : IObject + public class MsgsAllInfo : IObject { public long[] msg_ids; public byte[] info; } - public abstract partial class MsgDetailedInfoBase : IObject + public abstract class MsgDetailedInfoBase : IObject { public abstract long AnswerMsgId { get; } public abstract int Bytes { get; } public abstract int Status { get; } } [TLDef(0x276D3EC6)] //msg_detailed_info#276d3ec6 msg_id:long answer_msg_id:long bytes:int status:int = MsgDetailedInfo - public partial class MsgDetailedInfo : MsgDetailedInfoBase + public class MsgDetailedInfo : MsgDetailedInfoBase { public long msg_id; public long answer_msg_id; @@ -179,7 +179,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 partial class MsgNewDetailedInfo : MsgDetailedInfoBase + public class MsgNewDetailedInfo : MsgDetailedInfoBase { public long answer_msg_id; public int bytes; @@ -191,25 +191,25 @@ namespace TL } [TLDef(0x7D861A08)] //msg_resend_req#7d861a08 msg_ids:Vector = MsgResendReq - public partial class MsgResendReq : IObject + public class MsgResendReq : IObject { public long[] msg_ids; } [TLDef(0x2144CA19)] //rpc_error#2144ca19 error_code:int error_message:string = RpcError - public partial class RpcError : IObject + public class RpcError : IObject { public int error_code; public string error_message; } - public abstract partial class RpcDropAnswer : IObject { } + public abstract class RpcDropAnswer : IObject { } [TLDef(0x5E2AD36E)] //rpc_answer_unknown#5e2ad36e = RpcDropAnswer - public partial class RpcAnswerUnknown : RpcDropAnswer { } + public class RpcAnswerUnknown : RpcDropAnswer { } [TLDef(0xCD78E586)] //rpc_answer_dropped_running#cd78e586 = RpcDropAnswer - public partial class RpcAnswerDroppedRunning : RpcDropAnswer { } + public class RpcAnswerDroppedRunning : RpcDropAnswer { } [TLDef(0xA43AD8B7)] //rpc_answer_dropped#a43ad8b7 msg_id:long seq_no:int bytes:int = RpcDropAnswer - public partial class RpcAnswerDropped : RpcDropAnswer + public class RpcAnswerDropped : RpcDropAnswer { public long msg_id; public int seq_no; @@ -217,7 +217,7 @@ namespace TL } [TLDef(0x0949D9DC)] //future_salt#0949d9dc valid_since:int valid_until:int salt:long = FutureSalt - public partial class FutureSalt : IObject + public class FutureSalt : IObject { public DateTime valid_since; public DateTime valid_until; @@ -225,7 +225,7 @@ namespace TL } [TLDef(0xAE500895)] //future_salts#ae500895 req_msg_id:long now:int salts:vector = FutureSalts - public partial class FutureSalts : IObject + public class FutureSalts : IObject { public long req_msg_id; public DateTime now; @@ -233,24 +233,24 @@ namespace TL } [TLDef(0x347773C5)] //pong#347773c5 msg_id:long ping_id:long = Pong - public partial class Pong : IObject + public class Pong : IObject { public long msg_id; public long ping_id; } - public abstract partial class DestroySessionRes : IObject + public abstract class DestroySessionRes : IObject { public long session_id; } [TLDef(0xE22045FC)] //destroy_session_ok#e22045fc session_id:long = DestroySessionRes - public partial class DestroySessionOk : DestroySessionRes { } + public class DestroySessionOk : DestroySessionRes { } [TLDef(0x62D350C9)] //destroy_session_none#62d350c9 session_id:long = DestroySessionRes - public partial class DestroySessionNone : DestroySessionRes { } + public class DestroySessionNone : DestroySessionRes { } - public abstract partial class NewSession : IObject { } + public abstract class NewSession : IObject { } [TLDef(0x9EC20908)] //new_session_created#9ec20908 first_msg_id:long unique_id:long server_salt:long = NewSession - public partial class NewSessionCreated : NewSession + public class NewSessionCreated : NewSession { public long first_msg_id; public long unique_id; @@ -258,7 +258,7 @@ namespace TL } [TLDef(0x9299359F)] //http_wait#9299359f max_delay:int wait_after:int max_wait:int = HttpWait - public partial class HttpWait : IObject + public class HttpWait : IObject { public int max_delay; public int wait_after; @@ -266,19 +266,19 @@ namespace TL } [TLDef(0xD433AD73)] //ipPort#d433ad73 ipv4:int port:int = IpPort - public partial class IpPort : IObject + public class IpPort : IObject { public int ipv4; public int port; } [TLDef(0x37982646, inheritBefore = true)] //ipPortSecret#37982646 ipv4:int port:int secret:bytes = IpPort - public partial class IpPortSecret : IpPort + public class IpPortSecret : IpPort { public byte[] secret; } [TLDef(0x4679B65F)] //accessPointRule#4679b65f phone_prefix_rules:bytes dc_id:int ips:vector = AccessPointRule - public partial class AccessPointRule : IObject + public class AccessPointRule : IObject { public byte[] phone_prefix_rules; public int dc_id; @@ -286,7 +286,7 @@ namespace TL } [TLDef(0x5A592A6C)] //help.configSimple#5a592a6c date:int expires:int rules:vector = help.ConfigSimple - public partial class Help_ConfigSimple : IObject + public class Help_ConfigSimple : IObject { public DateTime date; public DateTime expires; @@ -295,42 +295,20 @@ namespace TL // ---functions--- - public static class MTProto + public static class MTProtoExtensions { - [TLDef(0x60469778)] //req_pq#60469778 nonce:int128 = ResPQ - public partial class ReqPq_ : IMethod - { - public Int128 nonce; - } public static Task ReqPq(this Client client, Int128 nonce) - => client.CallBareAsync(new ReqPq_ + => client.CallBareAsync(new ReqPq { nonce = nonce, }); - - [TLDef(0xBE7E8EF1)] //req_pq_multi#be7e8ef1 nonce:int128 = ResPQ - public partial class ReqPqMulti_ : IMethod - { - public Int128 nonce; - } public static Task ReqPqMulti(this Client client, Int128 nonce) - => client.CallBareAsync(new ReqPqMulti_ + => client.CallBareAsync(new ReqPqMulti { nonce = 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 partial class ReqDHParams_ : IMethod - { - public Int128 nonce; - public Int128 server_nonce; - public byte[] p; - public byte[] q; - public long public_key_fingerprint; - public byte[] encrypted_data; - } public static Task ReqDHParams(this Client client, Int128 nonce, Int128 server_nonce, byte[] p, byte[] q, long public_key_fingerprint, byte[] encrypted_data) - => client.CallBareAsync(new ReqDHParams_ + => client.CallBareAsync(new ReqDHParams { nonce = nonce, server_nonce = server_nonce, @@ -339,84 +317,110 @@ namespace TL public_key_fingerprint = public_key_fingerprint, encrypted_data = encrypted_data, }); - - [TLDef(0xF5045F1F)] //set_client_DH_params#f5045f1f nonce:int128 server_nonce:int128 encrypted_data:bytes = Set_client_DH_params_answer - public partial class SetClientDHParams_ : IMethod - { - public Int128 nonce; - public Int128 server_nonce; - public byte[] encrypted_data; - } public static Task SetClientDHParams(this Client client, Int128 nonce, Int128 server_nonce, byte[] encrypted_data) - => client.CallBareAsync(new SetClientDHParams_ + => client.CallBareAsync(new SetClientDHParams { nonce = nonce, server_nonce = server_nonce, encrypted_data = encrypted_data, }); - - [TLDef(0xD1435160)] //destroy_auth_key#d1435160 = DestroyAuthKeyRes - public partial class DestroyAuthKey_ : IMethod { } public static Task DestroyAuthKey(this Client client) - => client.CallBareAsync(new DestroyAuthKey_ + => client.CallBareAsync(new DestroyAuthKey { }); - - [TLDef(0x58E4A740)] //rpc_drop_answer#58e4a740 req_msg_id:long = RpcDropAnswer - public partial class RpcDropAnswer_ : IMethod - { - public long req_msg_id; - } public static Task RpcDropAnswer(this Client client, long req_msg_id) - => client.CallBareAsync(new RpcDropAnswer_ + => client.CallBareAsync(new Methods.RpcDropAnswer { req_msg_id = req_msg_id, }); - - [TLDef(0xB921BD04)] //get_future_salts#b921bd04 num:int = FutureSalts - public partial class GetFutureSalts_ : IMethod - { - public int num; - } public static Task GetFutureSalts(this Client client, int num) - => client.CallAsync(new GetFutureSalts_ + => client.CallAsync(new GetFutureSalts { num = num, }); - - [TLDef(0x7ABE77EC)] //ping#7abe77ec ping_id:long = Pong - public partial class Ping_ : IMethod - { - public long ping_id; - } public static Task Ping(this Client client, long ping_id) - => client.CallAsync(new Ping_ + => client.CallAsync(new Ping { ping_id = ping_id, }); - - [TLDef(0xF3427B8C)] //ping_delay_disconnect#f3427b8c ping_id:long disconnect_delay:int = Pong - public partial class PingDelayDisconnect_ : IMethod - { - public long ping_id; - public int disconnect_delay; - } public static Task PingDelayDisconnect(this Client client, long ping_id, int disconnect_delay) - => client.CallAsync(new PingDelayDisconnect_ + => client.CallAsync(new PingDelayDisconnect { ping_id = ping_id, disconnect_delay = disconnect_delay, }); - - [TLDef(0xE7512126)] //destroy_session#e7512126 session_id:long = DestroySessionRes - public partial class DestroySession_ : IMethod - { - public long session_id; - } public static Task DestroySession(this Client client, long session_id) - => client.CallBareAsync(new DestroySession_ + => client.CallBareAsync(new DestroySession { session_id = session_id, }); } } + +namespace TL.Methods +{ + [TLDef(0x60469778)] //req_pq#60469778 nonce:int128 = ResPQ + public class ReqPq : IMethod + { + public Int128 nonce; + } + + [TLDef(0xBE7E8EF1)] //req_pq_multi#be7e8ef1 nonce:int128 = ResPQ + public 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 Int128 nonce; + public Int128 server_nonce; + public byte[] p; + public byte[] q; + public long public_key_fingerprint; + public byte[] encrypted_data; + } + + [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 Int128 nonce; + public Int128 server_nonce; + public byte[] encrypted_data; + } + + [TLDef(0xD1435160)] //destroy_auth_key#d1435160 = DestroyAuthKeyRes + public class DestroyAuthKey : IMethod { } + + [TLDef(0x58E4A740)] //rpc_drop_answer#58e4a740 req_msg_id:long = RpcDropAnswer + public class RpcDropAnswer : IMethod + { + public long req_msg_id; + } + + [TLDef(0xB921BD04)] //get_future_salts#b921bd04 num:int = FutureSalts + public class GetFutureSalts : IMethod + { + public int num; + } + + [TLDef(0x7ABE77EC)] //ping#7abe77ec ping_id:long = Pong + public 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 long ping_id; + public int disconnect_delay; + } + + [TLDef(0xE7512126)] //destroy_session#e7512126 session_id:long = DestroySessionRes + public class DestroySession : IMethod + { + public long session_id; + } +} diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs index 730fd88..bd23d22 100644 --- a/src/TL.Schema.cs +++ b/src/TL.Schema.cs @@ -5,7 +5,7 @@ using System.Threading.Tasks; namespace TL { - using BinaryWriter = System.IO.BinaryWriter; + using TL.Methods; using Client = WTelegram.Client; /// Boolean type. See @@ -19,11 +19,11 @@ namespace TL /// See predefined identifiers. See [TLDef(0x3FEDD339)] - public partial class True : IObject { } + public class True : IObject { } /// Error. See [TLDef(0xC4B9F9BB)] - public partial class Error : IObject + public class Error : IObject { /// Error code public int code; @@ -34,24 +34,24 @@ namespace TL /// Corresponds to an arbitrary empty object. See /// a null value means null [TLDef(0x56730BCC)] - public partial class Null : IObject { } + public class Null : IObject { } /// Peer Derived classes: , , , , , See /// a null value means inputPeerEmpty public abstract partial class InputPeer : IObject { } /// Defines the current user. See [TLDef(0x7DA07EC9)] - public partial class InputPeerSelf : InputPeer { } + public class InputPeerSelf : InputPeer { } /// Defines a chat for further interaction. See [TLDef(0x35A95CB9)] - public partial class InputPeerChat : InputPeer + public class InputPeerChat : InputPeer { /// Chat idientifier public long chat_id; } /// Defines a user for further interaction. See [TLDef(0xDDE8A54C)] - public partial class InputPeerUser : InputPeer + public class InputPeerUser : InputPeer { /// User identifier public long user_id; @@ -60,7 +60,7 @@ namespace TL } /// Defines a channel for further interaction. See [TLDef(0x27BCBBFC)] - public partial class InputPeerChannel : InputPeer + public class InputPeerChannel : InputPeer { /// Channel identifier public long channel_id; @@ -69,7 +69,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 class InputPeerUserFromMessage : InputPeer { /// The chat where the user was seen public InputPeer peer; @@ -80,7 +80,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 class InputPeerChannelFromMessage : InputPeer { /// The chat where the channel's message was seen public InputPeer peer; @@ -92,10 +92,10 @@ namespace TL /// Defines a user for subsequent interaction. Derived classes: , , See /// a null value means inputUserEmpty - public abstract partial class InputUserBase : IObject { } + public abstract class InputUserBase : IObject { } /// Defines the current user. See [TLDef(0xF7C1B13F)] - public partial class InputUserSelf : InputUserBase { } + public class InputUserSelf : InputUserBase { } /// Defines a user for further interaction. See [TLDef(0xF21158C6)] public partial class InputUser : InputUserBase @@ -107,7 +107,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 class InputUserFromMessage : InputUserBase { /// The chat where the user was seen public InputPeer peer; @@ -118,10 +118,10 @@ namespace TL } /// Object defines a contact from the user's phonebook. Derived classes: See - public abstract partial class InputContact : IObject { } + public abstract class InputContact : IObject { } /// Phone contact. The client_id is just an arbitrary contact ID: 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. See [TLDef(0xF392B7F4)] - public partial class InputPhoneContact : InputContact + public class InputPhoneContact : InputContact { /// User identifier on the client public long client_id; @@ -184,10 +184,10 @@ namespace TL /// Defines media content of a message. Derived classes: , , , , , , , , , , , , , See /// a null value means inputMediaEmpty - public abstract partial class InputMedia : IObject { } + public abstract class InputMedia : IObject { } /// Photo See [TLDef(0x1E287D04)] - public partial class InputMediaUploadedPhoto : InputMedia + public class InputMediaUploadedPhoto : InputMedia { /// Flags, see TL conditional fields public Flags flags; @@ -208,7 +208,7 @@ namespace TL } /// Forwarded photo See [TLDef(0xB3BA0635)] - public partial class InputMediaPhoto : InputMedia + public class InputMediaPhoto : InputMedia { /// Flags, see TL conditional fields public Flags flags; @@ -225,14 +225,14 @@ namespace TL } /// Map. See [TLDef(0xF9C44144)] - public partial class InputMediaGeoPoint : InputMedia + public class InputMediaGeoPoint : InputMedia { /// GeoPoint public InputGeoPoint geo_point; } /// Phonebook contact See [TLDef(0xF8AB7DFB)] - public partial class InputMediaContact : InputMedia + public 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 class InputMediaUploadedDocument : InputMedia { /// Flags, see TL conditional fields public Flags flags; @@ -278,7 +278,7 @@ namespace TL } /// Forwarded document See [TLDef(0x33473058)] - public partial class InputMediaDocument : InputMedia + public class InputMediaDocument : InputMedia { /// Flags, see TL conditional fields public Flags flags; @@ -299,7 +299,7 @@ namespace TL } /// Can be used to send a venue geolocation. See [TLDef(0xC13D1C11)] - public partial class InputMediaVenue : InputMedia + public class InputMediaVenue : InputMedia { /// Geolocation public InputGeoPoint geo_point; @@ -316,7 +316,7 @@ namespace TL } /// New photo that will be uploaded by the server using the specified URL See [TLDef(0xE5BBFE1A)] - public partial class InputMediaPhotoExternal : InputMedia + public class InputMediaPhotoExternal : InputMedia { /// Flags, see TL conditional fields public Flags flags; @@ -333,7 +333,7 @@ namespace TL } /// Document that will be downloaded by the telegram servers See [TLDef(0xFB52DC99)] - public partial class InputMediaDocumentExternal : InputMedia + public class InputMediaDocumentExternal : InputMedia { /// Flags, see TL conditional fields public Flags flags; @@ -350,14 +350,14 @@ namespace TL } /// A game See [TLDef(0xD33F43F3)] - public partial class InputMediaGame : InputMedia + public class InputMediaGame : InputMedia { /// The game to forward public InputGame id; } /// Generated invoice of a bot payment See [TLDef(0xD9799874)] - public partial class InputMediaInvoice : InputMedia + public class InputMediaInvoice : InputMedia { /// Flags, see TL conditional fields public Flags flags; @@ -388,7 +388,7 @@ namespace TL } /// Live geolocation See [TLDef(0x971FA843)] - public partial class InputMediaGeoLive : InputMedia + public class InputMediaGeoLive : InputMedia { /// Flags, see TL conditional fields public Flags flags; @@ -415,7 +415,7 @@ namespace TL } /// A poll See [TLDef(0x0F94E5F1)] - public partial class InputMediaPoll : InputMedia + public class InputMediaPoll : InputMedia { /// Flags, see TL conditional fields public Flags flags; @@ -438,7 +438,7 @@ namespace TL } /// Send a dice-based animated sticker See [TLDef(0xE66FBF7B)] - public partial class InputMediaDice : InputMedia + public class InputMediaDice : InputMedia { /// The emoji, for now ๐Ÿ€, ๐ŸŽฒ and ๐ŸŽฏ are supported public string emoticon; @@ -446,10 +446,10 @@ namespace TL /// Defines a new group profile photo. Derived classes: , See /// a null value means inputChatPhotoEmpty - public abstract partial class InputChatPhotoBase : IObject { } + public abstract class InputChatPhotoBase : IObject { } /// New photo to be set as group profile photo. See [TLDef(0xC642724E)] - public partial class InputChatUploadedPhoto : InputChatPhotoBase + public class InputChatUploadedPhoto : InputChatPhotoBase { /// Flags, see TL conditional fields public Flags flags; @@ -472,7 +472,7 @@ namespace TL } /// Existing photo to be set as a chat profile photo. See [TLDef(0x8953AD37)] - public partial class InputChatPhoto : InputChatPhotoBase + public class InputChatPhoto : InputChatPhotoBase { /// Existing photo public InputPhoto id; @@ -481,7 +481,7 @@ namespace TL /// Defines a GeoPoint by its coordinates. See /// a null value means inputGeoPointEmpty [TLDef(0x48222FAF)] - public partial class InputGeoPoint : IObject + public class InputGeoPoint : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -502,7 +502,7 @@ namespace TL /// Defines a photo for further interaction. See /// a null value means inputPhotoEmpty [TLDef(0x3BB3B94A)] - public partial class InputPhoto : IObject + public class InputPhoto : IObject { /// Photo identifier public long id; @@ -513,10 +513,10 @@ namespace TL } /// Defines the location of a file for download. Derived classes: , , , , , , , , , See - public abstract partial class InputFileLocationBase : IObject { } + public abstract class InputFileLocationBase : IObject { } /// DEPRECATED location of a photo See [TLDef(0xDFDAABE1)] - public partial class InputFileLocation : InputFileLocationBase + public class InputFileLocation : InputFileLocationBase { /// Server volume public long volume_id; @@ -529,7 +529,7 @@ namespace TL } /// Location of encrypted secret chat file. See [TLDef(0xF5235D55)] - public partial class InputEncryptedFileLocation : InputFileLocationBase + public class InputEncryptedFileLocation : InputFileLocationBase { /// File ID, id parameter value from public long id; @@ -538,7 +538,7 @@ namespace TL } /// Document location (video, voice, audio, basically every type except photo) See [TLDef(0xBAD07584)] - public partial class InputDocumentFileLocation : InputFileLocationBase + public class InputDocumentFileLocation : InputFileLocationBase { /// Document ID public long id; @@ -551,7 +551,7 @@ namespace TL } /// Location of encrypted telegram passport file. See [TLDef(0xCBC7EE28)] - public partial class InputSecureFileLocation : InputFileLocationBase + public class InputSecureFileLocation : InputFileLocationBase { /// File ID, id parameter value from public long id; @@ -560,10 +560,10 @@ namespace TL } /// Empty constructor for takeout See [TLDef(0x29BE5899)] - public partial class InputTakeoutFileLocation : InputFileLocationBase { } + public class InputTakeoutFileLocation : InputFileLocationBase { } /// Use this object to download a photo with upload.getFile method See [TLDef(0x40181FFE)] - public partial class InputPhotoFileLocation : InputFileLocationBase + public class InputPhotoFileLocation : InputFileLocationBase { /// Photo ID, obtained from the object public long id; @@ -576,7 +576,7 @@ namespace TL } /// DEPRECATED legacy photo file location See [TLDef(0xD83466F3)] - public partial class InputPhotoLegacyFileLocation : InputFileLocationBase + public class InputPhotoLegacyFileLocation : InputFileLocationBase { /// Photo ID public long id; @@ -593,7 +593,7 @@ namespace TL } /// Location of profile photo of channel/group/supergroup/user See [TLDef(0x37257E99)] - public partial class InputPeerPhotoFileLocation : InputFileLocationBase + public class InputPeerPhotoFileLocation : InputFileLocationBase { /// Flags, see TL conditional fields public Flags flags; @@ -610,7 +610,7 @@ namespace TL } /// Location of stickerset thumbnail (see files) See [TLDef(0x9D84F3DB)] - public partial class InputStickerSetThumb : InputFileLocationBase + public class InputStickerSetThumb : InputFileLocationBase { /// Sticker set public InputStickerSet stickerset; @@ -619,7 +619,7 @@ namespace TL } /// Chunk of a livestream See [TLDef(0x0598A92A)] - public partial class InputGroupCallStream : InputFileLocationBase + public class InputGroupCallStream : InputFileLocationBase { /// Flags, see TL conditional fields public Flags flags; @@ -786,7 +786,7 @@ namespace TL /// User profile photo. See /// a null value means userProfilePhotoEmpty [TLDef(0x82D1F706)] - public partial class UserProfilePhoto : IObject + public class UserProfilePhoto : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -808,30 +808,30 @@ namespace TL /// User online status Derived classes: , , , , See /// a null value means userStatusEmpty - public abstract partial class UserStatus : IObject { } + public abstract class UserStatus : IObject { } /// Online status of the user. See [TLDef(0xEDB93949)] - public partial class UserStatusOnline : UserStatus + public 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 class UserStatusOffline : UserStatus { /// Time the user was last seen online public int was_online; } /// Online status: last seen recently See [TLDef(0xE26F42F1)] - public partial class UserStatusRecently : UserStatus { } + public class UserStatusRecently : UserStatus { } /// Online status: last seen last week See [TLDef(0x07BF09FC)] - public partial class UserStatusLastWeek : UserStatus { } + public class UserStatusLastWeek : UserStatus { } /// Online status: last seen last month See [TLDef(0x77EBC742)] - public partial class UserStatusLastMonth : UserStatus { } + public class UserStatusLastMonth : UserStatus { } /// Object defines a group. Derived classes: , , , , See public abstract partial class ChatBase : IObject @@ -1032,7 +1032,7 @@ namespace TL } /// Object containing detailed group info Derived classes: , See - public abstract partial class ChatFullBase : IObject + public abstract class ChatFullBase : IObject { /// ID of the chat public abstract long ID { get; } @@ -1045,7 +1045,7 @@ namespace TL } /// Detailed chat info See [TLDef(0x46A6FFB4)] - public partial class ChatFull : ChatFullBase + public class ChatFull : ChatFullBase { /// Flags, see TL conditional fields public Flags flags; @@ -1117,7 +1117,7 @@ namespace TL } /// Full info about a channel/supergroup See [TLDef(0x59CFF963)] - public partial class ChannelFull : ChatFullBase + public class ChannelFull : ChatFullBase { /// Flags, see TL conditional fields public Flags flags; @@ -1295,14 +1295,14 @@ namespace TL } /// Object contains info on group members. Derived classes: , See - public abstract partial class ChatParticipantsBase : IObject + public abstract class ChatParticipantsBase : IObject { /// Group ID public abstract long ChatId { get; } } /// Info on members is unavailable See [TLDef(0x8763D3E1)] - public partial class ChatParticipantsForbidden : ChatParticipantsBase + public class ChatParticipantsForbidden : ChatParticipantsBase { /// Flags, see TL conditional fields public Flags flags; @@ -1322,7 +1322,7 @@ namespace TL } /// Group members. See [TLDef(0x3CBC93F8)] - public partial class ChatParticipants : ChatParticipantsBase + public class ChatParticipants : ChatParticipantsBase { /// Group identifier public long chat_id; @@ -1338,7 +1338,7 @@ namespace TL /// Group profile photo. See /// a null value means chatPhotoEmpty [TLDef(0x1C6E1C11)] - public partial class ChatPhoto : IObject + public class ChatPhoto : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -1359,7 +1359,7 @@ namespace TL } /// Object describing a message. Derived classes: , , See - public abstract partial class MessageBase : IObject + public abstract class MessageBase : IObject { /// ID of the message public abstract int ID { get; } @@ -1376,7 +1376,7 @@ namespace TL } /// Empty constructor, non-existent message. See [TLDef(0x90A6CA84)] - public partial class MessageEmpty : MessageBase + public class MessageEmpty : MessageBase { /// Flags, see TL conditional fields public Flags flags; @@ -1402,7 +1402,7 @@ namespace TL } /// A message See [TLDef(0x85D6CBE2)] - public partial class Message : MessageBase + public class Message : MessageBase { /// Flags, see TL conditional fields public Flags flags; @@ -1510,7 +1510,7 @@ namespace TL } /// Indicates a service message See [TLDef(0x2B085862)] - public partial class MessageService : MessageBase + public class MessageService : MessageBase { /// Flags, see TL conditional fields public Flags flags; @@ -1567,10 +1567,10 @@ namespace TL /// Media Derived classes: , , , , , , , , , , , See /// a null value means messageMediaEmpty - public abstract partial class MessageMedia : IObject { } + public abstract class MessageMedia : IObject { } /// Attached photo. See [TLDef(0x695150D7)] - public partial class MessageMediaPhoto : MessageMedia + public class MessageMediaPhoto : MessageMedia { /// Flags, see TL conditional fields public Flags flags; @@ -1589,14 +1589,14 @@ namespace TL } /// Attached map. See [TLDef(0x56E0D474)] - public partial class MessageMediaGeo : MessageMedia + public class MessageMediaGeo : MessageMedia { /// GeoPoint public GeoPoint geo; } /// Attached contact. See [TLDef(0x70322949)] - public partial class MessageMediaContact : MessageMedia + public class MessageMediaContact : MessageMedia { /// Phone number public string phone_number; @@ -1611,10 +1611,10 @@ namespace TL } /// Current version of the client does not support this media type. See [TLDef(0x9F84F49E)] - public partial class MessageMediaUnsupported : MessageMedia { } + public class MessageMediaUnsupported : MessageMedia { } /// Document (video, audio, voice, sticker, any media type except photo) See [TLDef(0x9CB070D7)] - public partial class MessageMediaDocument : MessageMedia + public class MessageMediaDocument : MessageMedia { /// Flags, see TL conditional fields public Flags flags; @@ -1633,14 +1633,14 @@ namespace TL } /// Preview of webpage See [TLDef(0xA32DD600)] - public partial class MessageMediaWebPage : MessageMedia + public class MessageMediaWebPage : MessageMedia { /// Webpage preview public WebPageBase webpage; } /// Venue See [TLDef(0x2EC0533F)] - public partial class MessageMediaVenue : MessageMedia + public class MessageMediaVenue : MessageMedia { /// Geolocation of venue public GeoPoint geo; @@ -1657,14 +1657,14 @@ namespace TL } /// Telegram game See [TLDef(0xFDB19008)] - public partial class MessageMediaGame : MessageMedia + public class MessageMediaGame : MessageMedia { /// Game public Game game; } /// Invoice See [TLDef(0x84551347)] - public partial class MessageMediaInvoice : MessageMedia + public class MessageMediaInvoice : MessageMedia { /// Flags, see TL conditional fields public Flags flags; @@ -1697,7 +1697,7 @@ namespace TL } /// Indicates a live geolocation See [TLDef(0xB940C666)] - public partial class MessageMediaGeoLive : MessageMedia + public class MessageMediaGeoLive : MessageMedia { /// Flags, see TL conditional fields public Flags flags; @@ -1720,7 +1720,7 @@ namespace TL } /// Poll See [TLDef(0x4BD6E798)] - public partial class MessageMediaPoll : MessageMedia + public class MessageMediaPoll : MessageMedia { /// The poll public Poll poll; @@ -1729,7 +1729,7 @@ namespace TL } /// Dice-based animated sticker See [TLDef(0x3F7EE58B)] - public partial class MessageMediaDice : MessageMedia + public class MessageMediaDice : MessageMedia { /// Dice value public int value; @@ -1739,10 +1739,10 @@ namespace TL /// Object describing actions connected to a service message. Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , See /// a null value means messageActionEmpty - public abstract partial class MessageAction : IObject { } + public abstract class MessageAction : IObject { } /// Group created See [TLDef(0xBD47CBAD)] - public partial class MessageActionChatCreate : MessageAction + public class MessageActionChatCreate : MessageAction { /// Group name public string title; @@ -1751,59 +1751,59 @@ namespace TL } /// Group name changed. See [TLDef(0xB5A1CE5A)] - public partial class MessageActionChatEditTitle : MessageAction + public class MessageActionChatEditTitle : MessageAction { /// New group name public string title; } /// Group profile changed See [TLDef(0x7FCB13A8)] - public partial class MessageActionChatEditPhoto : MessageAction + public class MessageActionChatEditPhoto : MessageAction { /// New group pofile photo public PhotoBase photo; } /// Group profile photo removed. See [TLDef(0x95E3FBEF)] - public partial class MessageActionChatDeletePhoto : MessageAction { } + public class MessageActionChatDeletePhoto : MessageAction { } /// New member in the group See [TLDef(0x15CEFD00)] - public partial class MessageActionChatAddUser : MessageAction + public class MessageActionChatAddUser : MessageAction { /// Users that were invited to the chat public long[] users; } /// User left the group. See [TLDef(0xA43F30CC)] - public partial class MessageActionChatDeleteUser : MessageAction + public class MessageActionChatDeleteUser : MessageAction { /// Leaving user ID public long user_id; } /// A user joined the chat via an invite link See [TLDef(0x031224C3)] - public partial class MessageActionChatJoinedByLink : MessageAction + public class MessageActionChatJoinedByLink : MessageAction { /// ID of the user that created the invite link public long inviter_id; } /// The channel was created See [TLDef(0x95D2AC92)] - public partial class MessageActionChannelCreate : MessageAction + public class MessageActionChannelCreate : MessageAction { /// Original channel/supergroup title public string title; } /// Indicates the chat was migrated to the specified supergroup See [TLDef(0xE1037F92)] - public partial class MessageActionChatMigrateTo : MessageAction + public 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 partial class MessageActionChannelMigrateFrom : MessageAction + public class MessageActionChannelMigrateFrom : MessageAction { /// The old chat tite public string title; @@ -1812,13 +1812,13 @@ namespace TL } /// A message was pinned See [TLDef(0x94BD38ED)] - public partial class MessageActionPinMessage : MessageAction { } + public class MessageActionPinMessage : MessageAction { } /// Chat history was cleared See [TLDef(0x9FBAB604)] - public partial class MessageActionHistoryClear : MessageAction { } + public class MessageActionHistoryClear : MessageAction { } /// Someone scored in a game See [TLDef(0x92A72876)] - public partial class MessageActionGameScore : MessageAction + public class MessageActionGameScore : MessageAction { /// Game ID public long game_id; @@ -1827,7 +1827,7 @@ namespace TL } /// A user just sent a payment to me (a bot) See [TLDef(0x8F31B327)] - public partial class MessageActionPaymentSentMe : MessageAction + public class MessageActionPaymentSentMe : MessageAction { /// Flags, see TL conditional fields public Flags flags; @@ -1854,7 +1854,7 @@ namespace TL } /// A payment was sent See [TLDef(0x40699CD0)] - public partial class MessageActionPaymentSent : MessageAction + public class MessageActionPaymentSent : MessageAction { /// Three-letter ISO 4217 currency code public string currency; @@ -1863,7 +1863,7 @@ namespace TL } /// A phone call See [TLDef(0x80E11A7F)] - public partial class MessageActionPhoneCall : MessageAction + public class MessageActionPhoneCall : MessageAction { /// Flags, see TL conditional fields public Flags flags; @@ -1886,24 +1886,24 @@ namespace TL } /// A screenshot of the chat was taken See [TLDef(0x4792929B)] - public partial class MessageActionScreenshotTaken : MessageAction { } + public class MessageActionScreenshotTaken : MessageAction { } /// Custom action (most likely not supported by the current layer, an upgrade might be needed) See [TLDef(0xFAE69F56)] - public partial class MessageActionCustomAction : MessageAction + public class MessageActionCustomAction : MessageAction { /// Action message public string message; } /// The domain name of the website on which the user has logged in. More about Telegram Login ยป See [TLDef(0xABE9AFFE)] - public partial class MessageActionBotAllowed : MessageAction + public class MessageActionBotAllowed : MessageAction { /// The domain name of the website on which the user has logged in. public string domain; } /// Secure telegram passport values were received See [TLDef(0x1B287353)] - public partial class MessageActionSecureValuesSentMe : MessageAction + public class MessageActionSecureValuesSentMe : MessageAction { /// Vector with information about documents and other Telegram Passport elements that were shared with the bot public SecureValue[] values; @@ -1912,17 +1912,17 @@ namespace TL } /// Request for secure telegram passport values was sent See [TLDef(0xD95C6154)] - public partial class MessageActionSecureValuesSent : MessageAction + public class MessageActionSecureValuesSent : MessageAction { /// Secure value types public SecureValueType[] types; } /// A contact just signed up to telegram See [TLDef(0xF3F25F76)] - public partial class MessageActionContactSignUp : MessageAction { } + public class MessageActionContactSignUp : MessageAction { } /// A user of the chat is now in proximity of another user See [TLDef(0x98E0D697)] - public partial class MessageActionGeoProximityReached : MessageAction + public class MessageActionGeoProximityReached : MessageAction { /// The user or chat that is now in proximity of to_id public Peer from_id; @@ -1933,7 +1933,7 @@ namespace TL } /// The group call has ended See [TLDef(0x7A0D7F42)] - public partial class MessageActionGroupCall : MessageAction + public class MessageActionGroupCall : MessageAction { /// Flags, see TL conditional fields public Flags flags; @@ -1950,7 +1950,7 @@ namespace TL } /// A set of users was invited to the group call See [TLDef(0x502F92F7)] - public partial class MessageActionInviteToGroupCall : MessageAction + public class MessageActionInviteToGroupCall : MessageAction { /// The group call public InputGroupCall call; @@ -1959,14 +1959,14 @@ namespace TL } /// The Time-To-Live of messages in this chat was changed. See [TLDef(0xAA1AFBFD)] - public partial class MessageActionSetMessagesTTL : MessageAction + public class MessageActionSetMessagesTTL : MessageAction { /// New Time-To-Live public int period; } /// A group call was scheduled See [TLDef(0xB3A07661)] - public partial class MessageActionGroupCallScheduled : MessageAction + public class MessageActionGroupCallScheduled : MessageAction { /// The group call public InputGroupCall call; @@ -1975,17 +1975,17 @@ namespace TL } /// The chat theme was changed See [TLDef(0xAA786345)] - public partial class MessageActionSetChatTheme : MessageAction + public class MessageActionSetChatTheme : MessageAction { /// The emoji that identifies a chat theme public string emoticon; } /// See [TLDef(0xEBBCA3CB)] - public partial class MessageActionChatJoinedByRequest : MessageAction { } + public class MessageActionChatJoinedByRequest : MessageAction { } /// Chat info. Derived classes: , See - public abstract partial class DialogBase : IObject + public abstract class DialogBase : IObject { /// The chat public abstract Peer Peer { get; } @@ -1994,7 +1994,7 @@ namespace TL } /// Chat See [TLDef(0x2C171F72)] - public partial class Dialog : DialogBase + public class Dialog : DialogBase { /// Flags, see TL conditional fields public Flags flags; @@ -2040,7 +2040,7 @@ namespace TL } /// Dialog in folder See [TLDef(0x71BD134C)] - public partial class DialogFolder : DialogBase + public class DialogFolder : DialogBase { /// Flags, see TL conditional fields public Flags flags; @@ -2202,7 +2202,7 @@ namespace TL /// GeoPoint. See /// a null value means geoPointEmpty [TLDef(0xB2A2F663)] - public partial class GeoPoint : IObject + public class GeoPoint : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -2224,7 +2224,7 @@ namespace TL /// Contains info about a sent verification code. See [TLDef(0x5E002502)] - public partial class Auth_SentCode : IObject + public class Auth_SentCode : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -2247,10 +2247,10 @@ namespace TL } /// Oject contains info on user authorization. Derived classes: , See - public abstract partial class Auth_AuthorizationBase : IObject { } + public abstract class Auth_AuthorizationBase : IObject { } /// Contains user authorization info. See [TLDef(0xCD050916)] - public partial class Auth_Authorization : Auth_AuthorizationBase + public class Auth_Authorization : Auth_AuthorizationBase { /// Flags, see TL conditional fields public Flags flags; @@ -2267,7 +2267,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 partial class Auth_AuthorizationSignUpRequired : Auth_AuthorizationBase + public class Auth_AuthorizationSignUpRequired : Auth_AuthorizationBase { /// Flags, see TL conditional fields public Flags flags; @@ -2283,7 +2283,7 @@ namespace TL /// Data for copying of authorization between data centres. See [TLDef(0xB434E2B8)] - public partial class Auth_ExportedAuthorization : IObject + public class Auth_ExportedAuthorization : IObject { /// current user identifier public long id; @@ -2292,27 +2292,27 @@ namespace TL } /// Object defines the set of users and/or groups that generate notifications. Derived classes: , , , See - public abstract partial class InputNotifyPeerBase : IObject { } + public abstract class InputNotifyPeerBase : IObject { } /// Notifications generated by a certain user or group. See [TLDef(0xB8BC5B0C)] - public partial class InputNotifyPeer : InputNotifyPeerBase + public class InputNotifyPeer : InputNotifyPeerBase { /// User or group public InputPeer peer; } /// Notifications generated by all users. See [TLDef(0x193B4417)] - public partial class InputNotifyUsers : InputNotifyPeerBase { } + public class InputNotifyUsers : InputNotifyPeerBase { } /// Notifications generated by all groups. See [TLDef(0x4A95E84E)] - public partial class InputNotifyChats : InputNotifyPeerBase { } + public class InputNotifyChats : InputNotifyPeerBase { } /// All channels See [TLDef(0xB1DB7C7E)] - public partial class InputNotifyBroadcasts : InputNotifyPeerBase { } + public class InputNotifyBroadcasts : InputNotifyPeerBase { } /// Notification settings. See [TLDef(0x9C3D198E)] - public partial class InputPeerNotifySettings : IObject + public class InputPeerNotifySettings : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -2340,7 +2340,7 @@ namespace TL /// Notification settings. See [TLDef(0xAF509D20)] - public partial class PeerNotifySettings : IObject + public class PeerNotifySettings : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -2368,7 +2368,7 @@ namespace TL /// Peer settings See [TLDef(0x733F2961)] - public partial class PeerSettings : IObject + public class PeerSettings : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -2399,7 +2399,7 @@ namespace TL } /// Object contains info on a wallpaper. Derived classes: , See - public abstract partial class WallPaperBase : IObject + public abstract class WallPaperBase : IObject { /// Identifier public abstract long ID { get; } @@ -2408,7 +2408,7 @@ namespace TL } /// Wallpaper settings. See [TLDef(0xA437C3ED)] - public partial class WallPaper : WallPaperBase + public class WallPaper : WallPaperBase { /// Identifier public long id; @@ -2444,7 +2444,7 @@ namespace TL } /// Wallpaper with no file access hash, used for example when deleting (unsave=true) wallpapers using account.saveWallPaper, specifying just the wallpaper ID.
Also used for some default wallpapers which contain only colours. See
[TLDef(0xE0804116)] - public partial class WallPaperNoFile : WallPaperBase + public class WallPaperNoFile : WallPaperBase { /// Wallpaper ID public long id; @@ -2492,7 +2492,7 @@ namespace TL /// Extended user info See [TLDef(0xD697FF05)] - public partial class UserFull : IObject + public class UserFull : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -2552,7 +2552,7 @@ namespace TL /// A contact of the current user that is registered in the system. See [TLDef(0x145ADE0B)] - public partial class Contact : IObject + public class Contact : IObject { /// User identifier public long user_id; @@ -2562,7 +2562,7 @@ namespace TL /// Successfully imported contact. See [TLDef(0xC13E3C50)] - public partial class ImportedContact : IObject + public class ImportedContact : IObject { /// User identifier public long user_id; @@ -2572,7 +2572,7 @@ namespace TL /// Contact status: online / offline. See [TLDef(0x16D9703B)] - public partial class ContactStatus : IObject + public class ContactStatus : IObject { /// User identifier public long user_id; @@ -2583,7 +2583,7 @@ namespace TL /// The current user's contact list and info on users. See /// a null value means contacts.contactsNotModified [TLDef(0xEAE87E42)] - public partial class Contacts_Contacts : IObject + public class Contacts_Contacts : IObject { /// Contact list public Contact[] contacts; @@ -2595,7 +2595,7 @@ namespace TL /// Info on succesfully imported contacts. See [TLDef(0x77D01C3B)] - public partial class Contacts_ImportedContacts : IObject + public class Contacts_ImportedContacts : IObject { /// List of succesfully imported contacts public ImportedContact[] imported; @@ -2622,7 +2622,7 @@ namespace TL } /// Incomplete list of blocked users. See [TLDef(0xE1664194)] - public partial class Contacts_BlockedSlice : Contacts_Blocked + public class Contacts_BlockedSlice : Contacts_Blocked { /// Total number of elements in the list public int count; @@ -2640,7 +2640,7 @@ namespace TL } /// Full list of chats with messages and auxiliary data. See [TLDef(0x15BA6C40)] - public partial class Messages_Dialogs : Messages_DialogsBase, IPeerResolver + public class Messages_Dialogs : Messages_DialogsBase, IPeerResolver { /// List of chats public DialogBase[] dialogs; @@ -2660,14 +2660,14 @@ namespace TL } /// Incomplete list of dialogs with messages and auxiliary data. See [TLDef(0x71E094F3)] - public partial class Messages_DialogsSlice : Messages_Dialogs, IPeerResolver + public 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 class Messages_DialogsNotModified : Messages_DialogsBase, IPeerResolver { /// Number of dialogs found server-side by the query public int count; @@ -2771,14 +2771,14 @@ namespace TL /// List of chats with auxiliary data. See [TLDef(0x64FF9FD5)] - public partial class Messages_Chats : IObject + public 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 partial class Messages_ChatsSlice : Messages_Chats + public class Messages_ChatsSlice : Messages_Chats { /// Total number of results that were found server-side (not all are included in chats) public int count; @@ -2786,7 +2786,7 @@ namespace TL /// Extended info on chat and auxiliary data. See [TLDef(0xE5D7D19C)] - public partial class Messages_ChatFull : IObject, IPeerResolver + public class Messages_ChatFull : IObject, IPeerResolver { /// Extended info on a chat public ChatFullBase full_chat; @@ -2800,7 +2800,7 @@ namespace TL /// Affected part of communication history with the user or in a chat. See [TLDef(0xB45C69D1)] - public partial class Messages_AffectedHistory : IObject + public class Messages_AffectedHistory : IObject { /// Number of events occured in a text box public int pts; @@ -2812,37 +2812,37 @@ namespace TL /// Object describes message filter. Derived classes: , , , , , , , , , , , , , , , See /// a null value means inputMessagesFilterEmpty - public abstract partial class MessagesFilter : IObject { } + public abstract class MessagesFilter : IObject { } /// Filter for messages containing photos. See [TLDef(0x9609A51C)] - public partial class InputMessagesFilterPhotos : MessagesFilter { } + public class InputMessagesFilterPhotos : MessagesFilter { } /// Filter for messages containing videos. See [TLDef(0x9FC00E65)] - public partial class InputMessagesFilterVideo : MessagesFilter { } + public class InputMessagesFilterVideo : MessagesFilter { } /// Filter for messages containing photos or videos. See [TLDef(0x56E9F0E4)] - public partial class InputMessagesFilterPhotoVideo : MessagesFilter { } + public class InputMessagesFilterPhotoVideo : MessagesFilter { } /// Filter for messages containing documents. See [TLDef(0x9EDDF188)] - public partial class InputMessagesFilterDocument : MessagesFilter { } + public class InputMessagesFilterDocument : MessagesFilter { } /// Return only messages containing URLs See [TLDef(0x7EF0DD87)] - public partial class InputMessagesFilterUrl : MessagesFilter { } + public class InputMessagesFilterUrl : MessagesFilter { } /// Return only messages containing gifs See [TLDef(0xFFC86587)] - public partial class InputMessagesFilterGif : MessagesFilter { } + public class InputMessagesFilterGif : MessagesFilter { } /// Return only messages containing voice notes See [TLDef(0x50F5C392)] - public partial class InputMessagesFilterVoice : MessagesFilter { } + public class InputMessagesFilterVoice : MessagesFilter { } /// Return only messages containing audio files See [TLDef(0x3751B49E)] - public partial class InputMessagesFilterMusic : MessagesFilter { } + public class InputMessagesFilterMusic : MessagesFilter { } /// Return only chat photo changes See [TLDef(0x3A20ECB8)] - public partial class InputMessagesFilterChatPhotos : MessagesFilter { } + public class InputMessagesFilterChatPhotos : MessagesFilter { } /// Return only phone calls See [TLDef(0x80C99768)] - public partial class InputMessagesFilterPhoneCalls : MessagesFilter + public class InputMessagesFilterPhoneCalls : MessagesFilter { /// Flags, see TL conditional fields public Flags flags; @@ -2855,28 +2855,28 @@ namespace TL } /// Return only round videos and voice notes See [TLDef(0x7A7C17A4)] - public partial class InputMessagesFilterRoundVoice : MessagesFilter { } + public class InputMessagesFilterRoundVoice : MessagesFilter { } /// Return only round videos See [TLDef(0xB549DA53)] - public partial class InputMessagesFilterRoundVideo : MessagesFilter { } + public class InputMessagesFilterRoundVideo : MessagesFilter { } /// Return only messages where the current user was mentioned. See [TLDef(0xC1F8E69A)] - public partial class InputMessagesFilterMyMentions : MessagesFilter { } + public class InputMessagesFilterMyMentions : MessagesFilter { } /// Return only messages containing geolocations See [TLDef(0xE7026D0D)] - public partial class InputMessagesFilterGeo : MessagesFilter { } + public class InputMessagesFilterGeo : MessagesFilter { } /// Return only messages containing contacts See [TLDef(0xE062DB83)] - public partial class InputMessagesFilterContacts : MessagesFilter { } + public class InputMessagesFilterContacts : MessagesFilter { } /// Fetch only pinned messages See [TLDef(0x1BB00451)] - public partial class InputMessagesFilterPinned : MessagesFilter { } + public class InputMessagesFilterPinned : MessagesFilter { } /// Object contains info on events occured. Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , See - public abstract partial class Update : IObject { } + public abstract class Update : IObject { } /// New message in a private chat or in a legacy group. See [TLDef(0x1F2B0AFD)] - public partial class UpdateNewMessage : Update + public class UpdateNewMessage : Update { /// Message public MessageBase message; @@ -2887,7 +2887,7 @@ namespace TL } /// Sent message with random_id client identifier was assigned an identifier. See [TLDef(0x4E90BFD6)] - public partial class UpdateMessageID : Update + public class UpdateMessageID : Update { /// id identifier of a respective public int id; @@ -2896,7 +2896,7 @@ namespace TL } /// Messages were deleted. See [TLDef(0xA20DB0E5)] - public partial class UpdateDeleteMessages : Update + public class UpdateDeleteMessages : Update { /// List of identifiers of deleted messages public int[] messages; @@ -2907,7 +2907,7 @@ namespace TL } /// The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no repeated update received after 6 seconds, it should be considered that the user stopped doing whatever he's been doing. See [TLDef(0xC01E857F)] - public partial class UpdateUserTyping : Update + public class UpdateUserTyping : Update { /// User id public long user_id; @@ -2916,7 +2916,7 @@ namespace TL } /// The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no repeated update received after 6 seconds, it should be considered that the user stopped doing whatever he's been doing. See [TLDef(0x83487AF0, inheritBefore = true)] - public partial class UpdateChatUserTyping : UpdateChat + public class UpdateChatUserTyping : UpdateChat { /// Peer that started typing (can be the chat itself, in case of anonymous admins). public Peer from_id; @@ -2925,14 +2925,14 @@ namespace TL } /// Composition of chat participants changed. See [TLDef(0x07761198)] - public partial class UpdateChatParticipants : Update + public class UpdateChatParticipants : Update { /// Updated chat participants public ChatParticipantsBase participants; } /// Contact status update. See [TLDef(0xE5BDF8DE)] - public partial class UpdateUserStatus : Update + public class UpdateUserStatus : Update { /// User identifier public long user_id; @@ -2941,7 +2941,7 @@ namespace TL } /// Changes the user's first name, last name and username. See [TLDef(0xC3F202E0)] - public partial class UpdateUserName : Update + public class UpdateUserName : Update { /// User identifier public long user_id; @@ -2954,7 +2954,7 @@ namespace TL } /// Change of contact's profile photo. See [TLDef(0xF227868C)] - public partial class UpdateUserPhoto : Update + public class UpdateUserPhoto : Update { /// User identifier public long user_id; @@ -2967,7 +2967,7 @@ namespace TL } /// New encrypted message. See [TLDef(0x12BCBD9A)] - public partial class UpdateNewEncryptedMessage : Update + public class UpdateNewEncryptedMessage : Update { /// Message public EncryptedMessageBase message; @@ -2976,14 +2976,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 partial class UpdateEncryptedChatTyping : Update + public class UpdateEncryptedChatTyping : Update { /// Chat ID public int chat_id; } /// Change of state in an encrypted chat. See [TLDef(0xB4A2E88D)] - public partial class UpdateEncryption : Update + public class UpdateEncryption : Update { /// Encrypted chat public EncryptedChatBase chat; @@ -2992,7 +2992,7 @@ namespace TL } /// Communication history in an encrypted chat was marked as read. See [TLDef(0x38FE25B7)] - public partial class UpdateEncryptedMessagesRead : Update + public class UpdateEncryptedMessagesRead : Update { /// Chat ID public int chat_id; @@ -3003,7 +3003,7 @@ namespace TL } /// New group member. See [TLDef(0x3DDA5451, inheritBefore = true)] - public partial class UpdateChatParticipantAdd : UpdateChat + public class UpdateChatParticipantAdd : UpdateChat { /// ID of the new member public long user_id; @@ -3016,7 +3016,7 @@ namespace TL } /// A member has left the group. See [TLDef(0xE32F3D77, inheritBefore = true)] - public partial class UpdateChatParticipantDelete : UpdateChat + public class UpdateChatParticipantDelete : UpdateChat { /// ID of the user public long user_id; @@ -3025,14 +3025,14 @@ namespace TL } /// Changes in the data center configuration options. See [TLDef(0x8E5E9873)] - public partial class UpdateDcOptions : Update + public class UpdateDcOptions : Update { /// New connection options public DcOption[] dc_options; } /// Changes in notification settings. See [TLDef(0xBEC268EF)] - public partial class UpdateNotifySettings : Update + public class UpdateNotifySettings : Update { /// Nofication source public NotifyPeerBase peer; @@ -3041,7 +3041,7 @@ namespace TL } /// A service message for the user. See [TLDef(0xEBE46819)] - public partial class UpdateServiceNotification : Update + public class UpdateServiceNotification : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3066,7 +3066,7 @@ namespace TL } /// Privacy rules were changed See [TLDef(0xEE3B272A)] - public partial class UpdatePrivacy : Update + public class UpdatePrivacy : Update { /// Peers to which the privacy rules apply public PrivacyKey key; @@ -3075,7 +3075,7 @@ namespace TL } /// A user's phone number was changed See [TLDef(0x05492A13)] - public partial class UpdateUserPhone : Update + public class UpdateUserPhone : Update { /// User ID public long user_id; @@ -3084,7 +3084,7 @@ namespace TL } /// Incoming messages were read See [TLDef(0x9C974FDF)] - public partial class UpdateReadHistoryInbox : Update + public class UpdateReadHistoryInbox : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3109,7 +3109,7 @@ namespace TL } /// Outgoing messages were read See [TLDef(0x2F2F21BF)] - public partial class UpdateReadHistoryOutbox : Update + public class UpdateReadHistoryOutbox : Update { /// Peer public Peer peer; @@ -3122,7 +3122,7 @@ namespace TL } /// An instant view webpage preview was generated See [TLDef(0x7F891213)] - public partial class UpdateWebPage : Update + public class UpdateWebPage : Update { /// Webpage preview public WebPageBase webpage; @@ -3133,7 +3133,7 @@ namespace TL } /// Contents of messages in the common message box were read See [TLDef(0x68C13933)] - public partial class UpdateReadMessagesContents : Update + public class UpdateReadMessagesContents : Update { /// IDs of read messages public int[] messages; @@ -3144,7 +3144,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 partial class UpdateChannelTooLong : Update + public class UpdateChannelTooLong : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3161,17 +3161,17 @@ namespace TL } /// A new channel is available See [TLDef(0x635B4C09)] - public partial class UpdateChannel : Update + public class UpdateChannel : Update { /// Channel ID public long channel_id; } /// A new message was sent in a channel/supergroup See [TLDef(0x62BA04D9)] - public partial class UpdateNewChannelMessage : UpdateNewMessage { } + public class UpdateNewChannelMessage : UpdateNewMessage { } /// Incoming messages in a channel/supergroup were read See [TLDef(0x922E6E10)] - public partial class UpdateReadChannelInbox : Update + public class UpdateReadChannelInbox : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3194,14 +3194,14 @@ namespace TL } /// Some messages in a supergroup/channel were deleted See [TLDef(0xC32D5B12)] - public partial class UpdateDeleteChannelMessages : UpdateDeleteMessages + public class UpdateDeleteChannelMessages : UpdateDeleteMessages { /// Channel ID public long channel_id; } /// The view counter of a message in a channel has changed See [TLDef(0xF226AC08, inheritBefore = true)] - public partial class UpdateChannelMessageViews : UpdateChannel + public class UpdateChannelMessageViews : UpdateChannel { /// ID of the message public int id; @@ -3210,7 +3210,7 @@ namespace TL } /// Admin permissions of a user in a legacy group were changed See [TLDef(0xD7CA61A2, inheritBefore = true)] - public partial class UpdateChatParticipantAdmin : UpdateChat + public class UpdateChatParticipantAdmin : UpdateChat { /// ID of the (de)admined user public long user_id; @@ -3221,14 +3221,14 @@ namespace TL } /// A new stickerset was installed See [TLDef(0x688A30AA)] - public partial class UpdateNewStickerSet : Update + public class UpdateNewStickerSet : Update { /// The installed stickerset public Messages_StickerSet stickerset; } /// The order of stickersets was changed See [TLDef(0x0BB2D201)] - public partial class UpdateStickerSetsOrder : Update + public class UpdateStickerSetsOrder : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3243,13 +3243,13 @@ namespace TL } /// Installed stickersets have changed, the client should refetch them using messages.getAllStickers See [TLDef(0x43AE3DEC)] - public partial class UpdateStickerSets : Update { } + public class UpdateStickerSets : Update { } /// The saved gif list has changed, the client should refetch it using messages.getSavedGifs See [TLDef(0x9375341E)] - public partial class UpdateSavedGifs : Update { } + public class UpdateSavedGifs : Update { } /// An incoming inline query See [TLDef(0x496F379C)] - public partial class UpdateBotInlineQuery : Update + public class UpdateBotInlineQuery : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3276,7 +3276,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 partial class UpdateBotInlineSend : Update + public class UpdateBotInlineSend : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3301,10 +3301,10 @@ namespace TL } /// A message was edited in a channel/supergroup See [TLDef(0x1B3F4DF7)] - public partial class UpdateEditChannelMessage : UpdateEditMessage { } + public class UpdateEditChannelMessage : UpdateEditMessage { } /// A callback button was pressed, and the button data was sent to the bot that created the button See [TLDef(0xB9CFC48D)] - public partial class UpdateBotCallbackQuery : Update + public class UpdateBotCallbackQuery : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3333,7 +3333,7 @@ namespace TL } /// A message was edited See [TLDef(0xE40370A3)] - public partial class UpdateEditMessage : Update + public class UpdateEditMessage : Update { /// The new edited message public MessageBase message; @@ -3344,7 +3344,7 @@ namespace TL } /// This notification is received by bots when a button is pressed See [TLDef(0x691E9052)] - public partial class UpdateInlineBotCallbackQuery : Update + public class UpdateInlineBotCallbackQuery : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3371,7 +3371,7 @@ namespace TL } /// Outgoing messages in a channel/supergroup were read See [TLDef(0xB75F99A9)] - public partial class UpdateReadChannelOutbox : Update + public class UpdateReadChannelOutbox : Update { /// Channel/supergroup ID public long channel_id; @@ -3380,7 +3380,7 @@ namespace TL } /// Notifies a change of a message draft. See [TLDef(0xEE2BB969)] - public partial class UpdateDraftMessage : Update + public class UpdateDraftMessage : Update { /// The peer to which the draft is associated public Peer peer; @@ -3389,26 +3389,26 @@ namespace TL } /// Some featured stickers were marked as read See [TLDef(0x571D2742)] - public partial class UpdateReadFeaturedStickers : Update { } + public class UpdateReadFeaturedStickers : Update { } /// The recent sticker list was updated See [TLDef(0x9A422C20)] - public partial class UpdateRecentStickers : Update { } + public class UpdateRecentStickers : Update { } /// The server-side configuration has changed; the client should re-fetch the config using help.getConfig See [TLDef(0xA229DD06)] - public partial class UpdateConfig : Update { } + public class UpdateConfig : Update { } /// Common message box sequence PTS has changed, state has to be refetched using updates.getState See [TLDef(0x3354678F)] - public partial class UpdatePtsChanged : Update { } + public class UpdatePtsChanged : Update { } /// A webpage preview of a link in a channel/supergroup message was generated See [TLDef(0x2F2BA99F)] - public partial class UpdateChannelWebPage : UpdateWebPage + public class UpdateChannelWebPage : UpdateWebPage { /// Channel/supergroup ID public long channel_id; } /// A dialog was pinned/unpinned See [TLDef(0x6E6FE51C)] - public partial class UpdateDialogPinned : Update + public class UpdateDialogPinned : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3427,7 +3427,7 @@ namespace TL } /// Pinned dialogs were updated See [TLDef(0xFA0F3CA2)] - public partial class UpdatePinnedDialogs : Update + public class UpdatePinnedDialogs : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3446,14 +3446,14 @@ namespace TL } /// A new incoming event; for bots only See [TLDef(0x8317C0C3)] - public partial class UpdateBotWebhookJSON : Update + public class UpdateBotWebhookJSON : Update { /// The event public DataJSON data; } /// A new incoming query; for bots only See [TLDef(0x9B9240A6)] - public partial class UpdateBotWebhookJSONQuery : Update + public class UpdateBotWebhookJSONQuery : Update { /// Query identifier public long query_id; @@ -3464,7 +3464,7 @@ namespace TL } /// This object contains information about an incoming shipping query. See [TLDef(0xB5AEFD7D)] - public partial class UpdateBotShippingQuery : Update + public class UpdateBotShippingQuery : Update { /// Unique query identifier public long query_id; @@ -3477,7 +3477,7 @@ namespace TL } /// This object contains information about an incoming pre-checkout query. See [TLDef(0x8CAA9A96)] - public partial class UpdateBotPrecheckoutQuery : Update + public class UpdateBotPrecheckoutQuery : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3506,48 +3506,48 @@ namespace TL } /// An incoming phone call See [TLDef(0xAB0F6B1E)] - public partial class UpdatePhoneCall : Update + public 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 partial class UpdateLangPackTooLong : Update + public class UpdateLangPackTooLong : Update { /// Language code public string lang_code; } /// Language pack updated See [TLDef(0x56022F4D)] - public partial class UpdateLangPack : Update + public 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 partial class UpdateFavedStickers : Update { } + public class UpdateFavedStickers : Update { } /// The specified channel/supergroup messages were read See [TLDef(0x44BDD535, inheritBefore = true)] - public partial class UpdateChannelReadMessagesContents : UpdateChannel + public class UpdateChannelReadMessagesContents : UpdateChannel { /// IDs of messages that were read public int[] messages; } /// All contacts were deleted See [TLDef(0x7084A7BE)] - public partial class UpdateContactsReset : Update { } + public class UpdateContactsReset : Update { } /// The history of a channel/supergroup was hidden. See [TLDef(0xB23FC698, inheritBefore = true)] - public partial class UpdateChannelAvailableMessages : UpdateChannel + public 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 partial class UpdateDialogUnreadMark : Update + public class UpdateDialogUnreadMark : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3562,7 +3562,7 @@ namespace TL } /// The results of a poll have changed See [TLDef(0xACA1657B)] - public partial class UpdateMessagePoll : Update + public class UpdateMessagePoll : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3581,7 +3581,7 @@ namespace TL } /// Default banned rights in a normal chat were updated See [TLDef(0x54C01850)] - public partial class UpdateChatDefaultBannedRights : Update + public class UpdateChatDefaultBannedRights : Update { /// The chat public Peer peer; @@ -3592,7 +3592,7 @@ namespace TL } /// The peer list of a peer folder was updated See [TLDef(0x19360DC0)] - public partial class UpdateFolderPeers : Update + public class UpdateFolderPeers : Update { /// New peer list public FolderPeer[] folder_peers; @@ -3603,7 +3603,7 @@ namespace TL } /// Settings of a certain peer have changed See [TLDef(0x6A7E7366)] - public partial class UpdatePeerSettings : Update + public class UpdatePeerSettings : Update { /// The peer public Peer peer; @@ -3612,21 +3612,21 @@ namespace TL } /// List of peers near you was updated See [TLDef(0xB4AFCFB0)] - public partial class UpdatePeerLocated : Update + public 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 partial class UpdateNewScheduledMessage : Update + public class UpdateNewScheduledMessage : Update { /// Message public MessageBase message; } /// Some scheduled messages were deleted from the schedule queue of a chat See [TLDef(0x90866CEE)] - public partial class UpdateDeleteScheduledMessages : Update + public class UpdateDeleteScheduledMessages : Update { /// Peer public Peer peer; @@ -3635,14 +3635,14 @@ namespace TL } /// A cloud theme was updated See [TLDef(0x8216FBA3)] - public partial class UpdateTheme : Update + public class UpdateTheme : Update { /// Theme public Theme theme; } /// Live geoposition message was viewed See [TLDef(0x871FB939)] - public partial class UpdateGeoLiveViewed : Update + public class UpdateGeoLiveViewed : Update { /// The user that viewed the live geoposition public Peer peer; @@ -3651,10 +3651,10 @@ namespace TL } /// A login token (for login via QR code) was accepted. See [TLDef(0x564FE691)] - public partial class UpdateLoginToken : Update { } + public class UpdateLoginToken : Update { } /// A specific user has voted in a poll See [TLDef(0x106395C9)] - public partial class UpdateMessagePollVote : Update + public class UpdateMessagePollVote : Update { /// Poll ID public long poll_id; @@ -3667,7 +3667,7 @@ namespace TL } /// A new folder was added See [TLDef(0x26FFDE7D)] - public partial class UpdateDialogFilter : Update + public class UpdateDialogFilter : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3684,17 +3684,17 @@ namespace TL } /// New folder order See [TLDef(0xA5D72105)] - public partial class UpdateDialogFilterOrder : Update + public class UpdateDialogFilterOrder : Update { /// Ordered folder IDs public int[] order; } /// Clients should update folder info See [TLDef(0x3504914F)] - public partial class UpdateDialogFilters : Update { } + public class UpdateDialogFilters : Update { } /// Incoming phone call signaling payload See [TLDef(0x2661BF09)] - public partial class UpdatePhoneCallSignalingData : Update + public class UpdatePhoneCallSignalingData : Update { /// Phone call ID public long phone_call_id; @@ -3703,7 +3703,7 @@ namespace TL } /// The forward counter of a message in a channel has changed See [TLDef(0xD29A27F4, inheritBefore = true)] - public partial class UpdateChannelMessageForwards : UpdateChannel + public class UpdateChannelMessageForwards : UpdateChannel { /// ID of the message public int id; @@ -3712,7 +3712,7 @@ namespace TL } /// Incoming comments in a discussion thread were marked as read See [TLDef(0xD6B19546)] - public partial class UpdateReadChannelDiscussionInbox : Update + public class UpdateReadChannelDiscussionInbox : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3735,7 +3735,7 @@ namespace TL } /// Outgoing comments in a discussion thread were marked as read See [TLDef(0x695C9E7C)] - public partial class UpdateReadChannelDiscussionOutbox : Update + public class UpdateReadChannelDiscussionOutbox : Update { /// Supergroup ID public long channel_id; @@ -3746,7 +3746,7 @@ namespace TL } /// A peer was blocked See [TLDef(0x246A4B22)] - public partial class UpdatePeerBlocked : Update + public class UpdatePeerBlocked : Update { /// The blocked peer public Peer peer_id; @@ -3755,7 +3755,7 @@ namespace TL } /// A user is typing in a supergroup, channel or message thread See [TLDef(0x8C88C923)] - public partial class UpdateChannelUserTyping : Update + public class UpdateChannelUserTyping : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3776,7 +3776,7 @@ namespace TL } /// Some messages were pinned in a chat See [TLDef(0xED85EAB5)] - public partial class UpdatePinnedMessages : Update + public class UpdatePinnedMessages : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3797,7 +3797,7 @@ namespace TL } /// Messages were pinned/unpinned in a channel/supergroup See [TLDef(0x5BB98608)] - public partial class UpdatePinnedChannelMessages : Update + public class UpdatePinnedChannelMessages : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3818,14 +3818,14 @@ namespace TL } /// A new chat is available See [TLDef(0xF89A6A4E)] - public partial class UpdateChat : Update + public class UpdateChat : Update { /// Chat ID public long chat_id; } /// The participant list of a certain group call has changed See [TLDef(0xF2EBDB4E)] - public partial class UpdateGroupCallParticipants : Update + public class UpdateGroupCallParticipants : Update { /// Group call public InputGroupCall call; @@ -3836,7 +3836,7 @@ namespace TL } /// A new groupcall was started See [TLDef(0x14B24500)] - public partial class UpdateGroupCall : Update + public class UpdateGroupCall : Update { /// The channel/supergroup where this group call or livestream takes place public long chat_id; @@ -3845,7 +3845,7 @@ namespace TL } /// The Time-To-Live for messages sent by the current user in a specific chat has changed See [TLDef(0xBB9BB9A5)] - public partial class UpdatePeerHistoryTTL : Update + public class UpdatePeerHistoryTTL : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3862,7 +3862,7 @@ namespace TL } /// A user has joined or left a specific chat See [TLDef(0xD087663A)] - public partial class UpdateChatParticipant : Update + public class UpdateChatParticipant : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3895,7 +3895,7 @@ namespace TL } /// A participant has left, joined, was banned or admined in a channel or supergroup. See [TLDef(0x985D3ABB)] - public partial class UpdateChannelParticipant : Update + public class UpdateChannelParticipant : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3928,7 +3928,7 @@ namespace TL } /// A bot was stopped or re-started. See [TLDef(0xC4870A49)] - public partial class UpdateBotStopped : Update + public class UpdateBotStopped : Update { /// The bot ID public long user_id; @@ -3941,7 +3941,7 @@ namespace TL } /// New WebRTC parameters See [TLDef(0x0B783982)] - public partial class UpdateGroupCallConnection : Update + public class UpdateGroupCallConnection : Update { /// Flags, see TL conditional fields public Flags flags; @@ -3956,7 +3956,7 @@ namespace TL } /// The command set of a certain bot in a certain chat has changed. See [TLDef(0x4D712F2E)] - public partial class UpdateBotCommands : Update + public class UpdateBotCommands : Update { /// The affected chat public Peer peer; @@ -3967,7 +3967,7 @@ namespace TL } /// See [TLDef(0x7063C3DB)] - public partial class UpdatePendingJoinRequests : Update + public class UpdatePendingJoinRequests : Update { public Peer peer; public int requests_pending; @@ -3975,7 +3975,7 @@ namespace TL } /// See [TLDef(0x11DFA986)] - public partial class UpdateBotChatInviteRequester : Update + public class UpdateBotChatInviteRequester : Update { public Peer peer; public DateTime date; @@ -3987,7 +3987,7 @@ namespace TL /// Updates state. See [TLDef(0xA56C2A3E)] - public partial class Updates_State : IObject + public class Updates_State : IObject { /// Number of events occured in a text box public int pts; @@ -4309,7 +4309,7 @@ namespace TL /// Full list of photos with auxiliary data. See [TLDef(0x8DCA6AA5)] - public partial class Photos_Photos : IObject + public class Photos_Photos : IObject { /// List of photos public PhotoBase[] photos; @@ -4318,7 +4318,7 @@ namespace TL } /// Incomplete list of photos with auxiliary data. See [TLDef(0x15051F54)] - public partial class Photos_PhotosSlice : Photos_Photos + public class Photos_PhotosSlice : Photos_Photos { /// Total number of photos public int count; @@ -4326,7 +4326,7 @@ namespace TL /// Photo with auxiliary data. See [TLDef(0x20212CA8)] - public partial class Photos_Photo : IObject + public class Photos_Photo : IObject { /// Photo public PhotoBase photo; @@ -4335,10 +4335,10 @@ namespace TL } /// Contains info on file. Derived classes: , See - public abstract partial class Upload_FileBase : IObject { } + public abstract class Upload_FileBase : IObject { } /// File content. See [TLDef(0x096A18D5)] - public partial class Upload_File : Upload_FileBase + public class Upload_File : Upload_FileBase { /// File type public Storage_FileType type; @@ -4349,7 +4349,7 @@ namespace TL } /// The file must be downloaded from a CDN DC. See [TLDef(0xF18CDA44)] - public partial class Upload_FileCdnRedirect : Upload_FileBase + public class Upload_FileCdnRedirect : Upload_FileBase { /// CDN DC ID public int dc_id; @@ -4365,7 +4365,7 @@ namespace TL /// Data centre See [TLDef(0x18B7A10D)] - public partial class DcOption : IObject + public class DcOption : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -4397,7 +4397,7 @@ namespace TL /// Current configuration See [TLDef(0x330B4067)] - public partial class Config : IObject + public class Config : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -4525,7 +4525,7 @@ namespace TL /// Nearest data centre, according to geo-ip. See [TLDef(0x8E1A1775)] - public partial class NearestDc : IObject + public class NearestDc : IObject { /// Country code determined by geo-ip public string country; @@ -4538,7 +4538,7 @@ namespace TL /// An update is available for the application. See /// a null value means help.noAppUpdate [TLDef(0xCCBBCE30)] - public partial class Help_AppUpdate : IObject + public class Help_AppUpdate : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -4572,21 +4572,21 @@ namespace TL /// Text of a text message with an invitation to install Telegram. See [TLDef(0x18CB9F78)] - public partial class Help_InviteText : IObject + public class Help_InviteText : IObject { /// Text of the message public string message; } /// Object contains info on an encrypted chat. Derived classes: , , , , See - public abstract partial class EncryptedChatBase : IObject + public abstract class EncryptedChatBase : IObject { /// Chat ID public abstract int ID { get; } } /// Empty constructor. See [TLDef(0xAB7EC0A0)] - public partial class EncryptedChatEmpty : EncryptedChatBase + public class EncryptedChatEmpty : EncryptedChatBase { /// Chat ID public int id; @@ -4596,7 +4596,7 @@ namespace TL } /// Chat waiting for approval of second participant. See [TLDef(0x66B25953)] - public partial class EncryptedChatWaiting : EncryptedChatBase + public class EncryptedChatWaiting : EncryptedChatBase { /// Chat ID public int id; @@ -4614,7 +4614,7 @@ namespace TL } /// Request to create an encrypted chat. See [TLDef(0x48F1D94C)] - public partial class EncryptedChatRequested : EncryptedChatBase + public class EncryptedChatRequested : EncryptedChatBase { /// Flags, see TL conditional fields public Flags flags; @@ -4644,7 +4644,7 @@ namespace TL } /// Encrypted chat See [TLDef(0x61F0D4C7)] - public partial class EncryptedChat : EncryptedChatBase + public class EncryptedChat : EncryptedChatBase { /// Chat ID public int id; @@ -4666,7 +4666,7 @@ namespace TL } /// Discarded or deleted chat. See [TLDef(0x1E1C7C45)] - public partial class EncryptedChatDiscarded : EncryptedChatBase + public class EncryptedChatDiscarded : EncryptedChatBase { /// Flags, see TL conditional fields public Flags flags; @@ -4685,7 +4685,7 @@ namespace TL /// Creates an encrypted chat. See [TLDef(0xF141B5E1)] - public partial class InputEncryptedChat : IObject + public class InputEncryptedChat : IObject { /// Chat ID public int chat_id; @@ -4712,14 +4712,14 @@ namespace TL /// Object sets encrypted file for attachment Derived classes: , , See /// a null value means inputEncryptedFileEmpty - public abstract partial class InputEncryptedFileBase : IObject + public abstract class InputEncryptedFileBase : IObject { /// Random file ID created by clien public abstract long ID { get; } } /// Sets new encrypted file saved by parts using upload.saveFilePart method. See [TLDef(0x64BD0306)] - public partial class InputEncryptedFileUploaded : InputEncryptedFileBase + public class InputEncryptedFileUploaded : InputEncryptedFileBase { /// Random file ID created by clien public long id; @@ -4735,7 +4735,7 @@ namespace TL } /// Sets forwarded encrypted file for attachment. See [TLDef(0x5A17B5E5)] - public partial class InputEncryptedFile : InputEncryptedFileBase + public class InputEncryptedFile : InputEncryptedFileBase { /// File ID, value of id parameter from public long id; @@ -4747,7 +4747,7 @@ namespace TL } /// Assigns a new big encrypted file (over 10Mb in size), saved in parts using the method upload.saveBigFilePart. See [TLDef(0x2DC173C8)] - public partial class InputEncryptedFileBigUploaded : InputEncryptedFileBase + public class InputEncryptedFileBigUploaded : InputEncryptedFileBase { /// Random file id, created by the client public long id; @@ -4761,7 +4761,7 @@ namespace TL } /// Object contains encrypted message. Derived classes: , See - public abstract partial class EncryptedMessageBase : IObject + public abstract class EncryptedMessageBase : IObject { /// Random message ID, assigned by the author of message public abstract long RandomId { get; } @@ -4774,7 +4774,7 @@ namespace TL } /// Encrypted message. See [TLDef(0xED18C118)] - public partial class EncryptedMessage : EncryptedMessageBase + public class EncryptedMessage : EncryptedMessageBase { /// Random message ID, assigned by the author of message public long random_id; @@ -4798,7 +4798,7 @@ namespace TL } /// Encrypted service message See [TLDef(0x23734B06)] - public partial class EncryptedMessageService : EncryptedMessageBase + public class EncryptedMessageService : EncryptedMessageBase { /// Random message ID, assigned by the author of message public long random_id; @@ -4820,17 +4820,17 @@ namespace TL } /// Contains info on cofiguring parameters for key generation by Diffie-Hellman protocol. Derived classes: , See - public abstract partial class Messages_DhConfigBase : IObject { } + public abstract class Messages_DhConfigBase : IObject { } /// Configuring parameters did not change. See [TLDef(0xC0E24635)] - public partial class Messages_DhConfigNotModified : Messages_DhConfigBase + public class Messages_DhConfigNotModified : Messages_DhConfigBase { /// Random sequence of bytes of assigned length public byte[] random; } /// New set of configuring parameters. See [TLDef(0x2C221EDD)] - public partial class Messages_DhConfig : Messages_DhConfigBase + public class Messages_DhConfig : Messages_DhConfigBase { /// New value prime, see Wikipedia public int g; @@ -4844,14 +4844,14 @@ namespace TL /// Message without file attachemts sent to an encrypted file. See [TLDef(0x560F8935)] - public partial class Messages_SentEncryptedMessage : IObject + public 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 partial class Messages_SentEncryptedFile : Messages_SentEncryptedMessage + public class Messages_SentEncryptedFile : Messages_SentEncryptedMessage { /// Attached file public EncryptedFile file; @@ -4860,7 +4860,7 @@ namespace TL /// Defines a video for subsequent interaction. See /// a null value means inputDocumentEmpty [TLDef(0x1ABFB575)] - public partial class InputDocument : IObject + public class InputDocument : IObject { /// Document ID public long id; @@ -4917,7 +4917,7 @@ namespace TL /// Info on support user. See [TLDef(0x17C6B5F6)] - public partial class Help_Support : IObject + public class Help_Support : IObject { /// Phone number public string phone_number; @@ -4926,23 +4926,23 @@ namespace TL } /// Object defines the set of users and/or groups that generate notifications. Derived classes: , , , See - public abstract partial class NotifyPeerBase : IObject { } + public abstract class NotifyPeerBase : IObject { } /// Notifications generated by a certain user or group. See [TLDef(0x9FD40BD8)] - public partial class NotifyPeer : NotifyPeerBase + public class NotifyPeer : NotifyPeerBase { /// user or group public Peer peer; } /// Notifications generated by all users. See [TLDef(0xB4C83B4C)] - public partial class NotifyUsers : NotifyPeerBase { } + public class NotifyUsers : NotifyPeerBase { } /// Notifications generated by all groups. See [TLDef(0xC007CEC3)] - public partial class NotifyChats : NotifyPeerBase { } + public class NotifyChats : NotifyPeerBase { } /// Channel notification settings See [TLDef(0xD612E8EF)] - public partial class NotifyBroadcasts : NotifyPeerBase { } + public class NotifyBroadcasts : NotifyPeerBase { } /// User actions. Use this to provide users with detailed info about their chat partners' actions: typing or sending attachments of all kinds. Derived classes: , , , , , , , , , , , , , , , , , See public abstract partial class SendMessageAction : IObject { } @@ -4954,34 +4954,34 @@ namespace TL public partial class SendMessageCancelAction : SendMessageAction { } /// User is recording a video. See [TLDef(0xA187D66F)] - public partial class SendMessageRecordVideoAction : SendMessageAction { } + public class SendMessageRecordVideoAction : SendMessageAction { } /// User is uploading a video. See [TLDef(0xE9763AEC)] - public partial class SendMessageUploadVideoAction : SendMessageAction + public class SendMessageUploadVideoAction : SendMessageAction { /// Progress percentage public int progress; } /// User is recording a voice message. See [TLDef(0xD52F73F7)] - public partial class SendMessageRecordAudioAction : SendMessageAction { } + public class SendMessageRecordAudioAction : SendMessageAction { } /// User is uploading a voice message. See [TLDef(0xF351D7AB)] - public partial class SendMessageUploadAudioAction : SendMessageAction + public class SendMessageUploadAudioAction : SendMessageAction { /// Progress percentage public int progress; } /// User is uploading a photo. See [TLDef(0xD1D34A26)] - public partial class SendMessageUploadPhotoAction : SendMessageAction + public class SendMessageUploadPhotoAction : SendMessageAction { /// Progress percentage public int progress; } /// User is uploading a file. See [TLDef(0xAA0CD9E4)] - public partial class SendMessageUploadDocumentAction : SendMessageAction + public class SendMessageUploadDocumentAction : SendMessageAction { /// Progress percentage public int progress; @@ -4991,16 +4991,16 @@ namespace TL public partial class SendMessageGeoLocationAction : SendMessageAction { } /// User is selecting a contact to share. See [TLDef(0x628CBC6F)] - public partial class SendMessageChooseContactAction : SendMessageAction { } + public class SendMessageChooseContactAction : SendMessageAction { } /// User is playing a game See [TLDef(0xDD6A8F48)] public partial class SendMessageGamePlayAction : SendMessageAction { } /// User is recording a round video to share See [TLDef(0x88F27FBC)] - public partial class SendMessageRecordRoundAction : SendMessageAction { } + public class SendMessageRecordRoundAction : SendMessageAction { } /// User is uploading a round video See [TLDef(0x243E1C66)] - public partial class SendMessageUploadRoundAction : SendMessageAction + public class SendMessageUploadRoundAction : SendMessageAction { /// Progress percentage public int progress; @@ -5017,10 +5017,10 @@ namespace TL } /// User is choosing a sticker See [TLDef(0xB05AC6B1)] - public partial class SendMessageChooseStickerAction : SendMessageAction { } + public 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 class SendMessageEmojiInteraction : SendMessageAction { /// Emoji public string emoticon; @@ -5031,7 +5031,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 class SendMessageEmojiInteractionSeen : SendMessageAction { /// Emoji public string emoticon; @@ -5039,7 +5039,7 @@ namespace TL /// Users found by name substring and auxiliary data. See [TLDef(0xB3134D9D)] - public partial class Contacts_Found : IObject, IPeerResolver + public class Contacts_Found : IObject, IPeerResolver { /// Personalized results public Peer[] my_results; @@ -5096,86 +5096,86 @@ namespace TL } /// Privacy rule Derived classes: , , , , , , , See - public abstract partial class InputPrivacyRule : IObject { } + public abstract class InputPrivacyRule : IObject { } /// Allow only contacts See [TLDef(0x0D09E07B)] - public partial class InputPrivacyValueAllowContacts : InputPrivacyRule { } + public class InputPrivacyValueAllowContacts : InputPrivacyRule { } /// Allow all users See [TLDef(0x184B35CE)] - public partial class InputPrivacyValueAllowAll : InputPrivacyRule { } + public class InputPrivacyValueAllowAll : InputPrivacyRule { } /// Allow only certain users See [TLDef(0x131CC67F)] - public partial class InputPrivacyValueAllowUsers : InputPrivacyRule + public class InputPrivacyValueAllowUsers : InputPrivacyRule { /// Allowed users public InputUserBase[] users; } /// Disallow only contacts See [TLDef(0x0BA52007)] - public partial class InputPrivacyValueDisallowContacts : InputPrivacyRule { } + public class InputPrivacyValueDisallowContacts : InputPrivacyRule { } /// Disallow all See [TLDef(0xD66B66C9)] - public partial class InputPrivacyValueDisallowAll : InputPrivacyRule { } + public class InputPrivacyValueDisallowAll : InputPrivacyRule { } /// Disallow only certain users See [TLDef(0x90110467)] - public partial class InputPrivacyValueDisallowUsers : InputPrivacyRule + public class InputPrivacyValueDisallowUsers : InputPrivacyRule { /// Users to disallow public InputUserBase[] users; } /// Allow only participants of certain chats See [TLDef(0x840649CF)] - public partial class InputPrivacyValueAllowChatParticipants : InputPrivacyRule + public class InputPrivacyValueAllowChatParticipants : InputPrivacyRule { /// Allowed chat IDs public long[] chats; } /// Disallow only participants of certain chats See [TLDef(0xE94F0F86)] - public partial class InputPrivacyValueDisallowChatParticipants : InputPrivacyRule + public class InputPrivacyValueDisallowChatParticipants : InputPrivacyRule { /// Disallowed chat IDs public long[] chats; } /// Privacy rule Derived classes: , , , , , , , See - public abstract partial class PrivacyRule : IObject { } + public abstract class PrivacyRule : IObject { } /// Allow all contacts See [TLDef(0xFFFE1BAC)] - public partial class PrivacyValueAllowContacts : PrivacyRule { } + public class PrivacyValueAllowContacts : PrivacyRule { } /// Allow all users See [TLDef(0x65427B82)] - public partial class PrivacyValueAllowAll : PrivacyRule { } + public class PrivacyValueAllowAll : PrivacyRule { } /// Allow only certain users See [TLDef(0xB8905FB2)] - public partial class PrivacyValueAllowUsers : PrivacyRule + public class PrivacyValueAllowUsers : PrivacyRule { /// Allowed users public long[] users; } /// Disallow only contacts See [TLDef(0xF888FA1A)] - public partial class PrivacyValueDisallowContacts : PrivacyRule { } + public class PrivacyValueDisallowContacts : PrivacyRule { } /// Disallow all users See [TLDef(0x8B73E763)] - public partial class PrivacyValueDisallowAll : PrivacyRule { } + public class PrivacyValueDisallowAll : PrivacyRule { } /// Disallow only certain users See [TLDef(0xE4621141)] - public partial class PrivacyValueDisallowUsers : PrivacyRule + public class PrivacyValueDisallowUsers : PrivacyRule { /// Disallowed users public long[] users; } /// Allow all participants of certain chats See [TLDef(0x6B134E8E)] - public partial class PrivacyValueAllowChatParticipants : PrivacyRule + public class PrivacyValueAllowChatParticipants : PrivacyRule { /// Allowed chats public long[] chats; } /// Disallow only participants of certain chats See [TLDef(0x41C87565)] - public partial class PrivacyValueDisallowChatParticipants : PrivacyRule + public class PrivacyValueDisallowChatParticipants : PrivacyRule { /// Disallowed chats public long[] chats; @@ -5183,7 +5183,7 @@ namespace TL /// Privacy rules See [TLDef(0x50A04E45)] - public partial class Account_PrivacyRules : IObject, IPeerResolver + public class Account_PrivacyRules : IObject, IPeerResolver { /// Privacy rules public PrivacyRule[] rules; @@ -5197,17 +5197,17 @@ namespace TL /// Time to live in days of the current account See [TLDef(0xB8D0AFDF)] - public partial class AccountDaysTTL : IObject + public 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) Derived classes: , , , , , , See - public abstract partial class DocumentAttribute : IObject { } + public abstract class DocumentAttribute : IObject { } /// Defines the width and height of an image uploaded as document See [TLDef(0x6C37C15C)] - public partial class DocumentAttributeImageSize : DocumentAttribute + public class DocumentAttributeImageSize : DocumentAttribute { /// Width of image public int w; @@ -5216,10 +5216,10 @@ namespace TL } /// Defines an animated GIF See [TLDef(0x11B58939)] - public partial class DocumentAttributeAnimated : DocumentAttribute { } + public class DocumentAttributeAnimated : DocumentAttribute { } /// Defines a sticker See [TLDef(0x6319D612)] - public partial class DocumentAttributeSticker : DocumentAttribute + public class DocumentAttributeSticker : DocumentAttribute { /// Flags, see TL conditional fields public Flags flags; @@ -5240,7 +5240,7 @@ namespace TL } /// Defines a video See [TLDef(0x0EF02CE6)] - public partial class DocumentAttributeVideo : DocumentAttribute + public class DocumentAttributeVideo : DocumentAttribute { /// Flags, see TL conditional fields public Flags flags; @@ -5261,7 +5261,7 @@ namespace TL } /// Represents an audio file See [TLDef(0x9852F9C6)] - public partial class DocumentAttributeAudio : DocumentAttribute + public class DocumentAttributeAudio : DocumentAttribute { /// Flags, see TL conditional fields public Flags flags; @@ -5288,19 +5288,19 @@ namespace TL } /// A simple document with a file name See [TLDef(0x15590068)] - public partial class DocumentAttributeFilename : DocumentAttribute + public class DocumentAttributeFilename : DocumentAttribute { /// The file name public string file_name; } /// Whether the current document has stickers attached See [TLDef(0x9801D2F7)] - public partial class DocumentAttributeHasStickers : DocumentAttribute { } + public class DocumentAttributeHasStickers : DocumentAttribute { } /// Found stickers See /// a null value means messages.stickersNotModified [TLDef(0x30A6EC7E)] - public partial class Messages_Stickers : IObject + public class Messages_Stickers : IObject { /// Hash for pagination, for more info click here public long hash; @@ -5310,7 +5310,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 partial class StickerPack : IObject + public class StickerPack : IObject { /// Emoji public string emoticon; @@ -5321,7 +5321,7 @@ namespace TL /// Info about all installed stickers See /// a null value means messages.allStickersNotModified [TLDef(0xCDBBCEBB)] - public partial class Messages_AllStickers : IObject + public class Messages_AllStickers : IObject { /// Hash for pagination, for more info click here public long hash; @@ -5331,7 +5331,7 @@ namespace TL /// Events affected by operation See [TLDef(0x84D19185)] - public partial class Messages_AffectedMessages : IObject + public class Messages_AffectedMessages : IObject { /// Event count after generation public int pts; @@ -5340,14 +5340,14 @@ namespace TL } /// Instant View webpage preview Derived classes: , , , See - public abstract partial class WebPageBase : IObject + public abstract class WebPageBase : IObject { /// Preview ID public abstract long ID { get; } } /// No preview is available for the webpage See [TLDef(0xEB1477E8)] - public partial class WebPageEmpty : WebPageBase + public class WebPageEmpty : WebPageBase { /// Preview ID public long id; @@ -5357,7 +5357,7 @@ namespace TL } /// A preview of the webpage is currently being generated See [TLDef(0xC586DA1C)] - public partial class WebPagePending : WebPageBase + public class WebPagePending : WebPageBase { /// ID of preview public long id; @@ -5369,7 +5369,7 @@ namespace TL } /// Webpage preview See [TLDef(0xE89C45B2)] - public partial class WebPage : WebPageBase + public class WebPage : WebPageBase { /// Flags, see TL conditional fields public Flags flags; @@ -5443,7 +5443,7 @@ namespace TL } /// The preview of the webpage hasn't changed See [TLDef(0x7311CA11)] - public partial class WebPageNotModified : WebPageBase + public class WebPageNotModified : WebPageBase { /// Flags, see TL conditional fields public Flags flags; @@ -5461,7 +5461,7 @@ namespace TL /// Logged-in session See [TLDef(0xAD01D61D)] - public partial class Authorization : IObject + public class Authorization : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -5503,7 +5503,7 @@ namespace TL /// Logged-in sessions See [TLDef(0x1250ABDE)] - public partial class Account_Authorizations : IObject + public class Account_Authorizations : IObject { /// Logged-in sessions public Authorization[] authorizations; @@ -5511,7 +5511,7 @@ namespace TL /// Configuration for two-factor authorization See [TLDef(0x185B184F)] - public partial class Account_Password : IObject + public class Account_Password : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -5553,7 +5553,7 @@ namespace TL /// Private info associated to the password info (recovery email, telegram passport info & so on) See [TLDef(0x9A5C33E5)] - public partial class Account_PasswordSettings : IObject + public class Account_PasswordSettings : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -5573,7 +5573,7 @@ namespace TL /// Settings for setting up a new password See [TLDef(0xC23727C9)] - public partial class Account_PasswordInputSettings : IObject + public class Account_PasswordInputSettings : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -5601,7 +5601,7 @@ namespace TL /// Recovery info of a 2FA password, only for accounts with a recovery email configured. See [TLDef(0x137948A5)] - public partial class Auth_PasswordRecovery : IObject + public class Auth_PasswordRecovery : IObject { /// The email to which the recovery code was sent must match this pattern. public string email_pattern; @@ -5609,7 +5609,7 @@ namespace TL /// Message ID, for which PUSH-notifications were cancelled. See [TLDef(0xA384B779)] - public partial class ReceivedNotifyMessage : IObject + public class ReceivedNotifyMessage : IObject { /// Message ID, for which PUSH-notifications were canceled public int id; @@ -5618,10 +5618,10 @@ namespace TL } /// Exported chat invite Derived classes: See - public abstract partial class ExportedChatInvite : IObject { } + public abstract class ExportedChatInvite : IObject { } /// Exported chat invite See [TLDef(0x0AB4A819)] - public partial class ChatInviteExported : ExportedChatInvite + public class ChatInviteExported : ExportedChatInvite { /// Flags, see TL conditional fields public Flags flags; @@ -5665,17 +5665,17 @@ namespace TL } /// Chat invite Derived classes: , , See - public abstract partial class ChatInviteBase : IObject { } + public abstract class ChatInviteBase : IObject { } /// The user has already joined this chat See [TLDef(0x5A686D7C)] - public partial class ChatInviteAlready : ChatInviteBase + public class ChatInviteAlready : ChatInviteBase { /// The chat connected to the invite public ChatBase chat; } /// Chat invite info See [TLDef(0x300C44C1)] - public partial class ChatInvite : ChatInviteBase + public class ChatInvite : ChatInviteBase { /// Flags, see TL conditional fields public Flags flags; @@ -5708,7 +5708,7 @@ namespace TL } /// A chat invitation that also allows peeking into the group to read messages without joining it. See [TLDef(0x61695CB0)] - public partial class ChatInvitePeek : ChatInviteBase + public class ChatInvitePeek : ChatInviteBase { /// Chat information public ChatBase chat; @@ -5718,10 +5718,10 @@ namespace TL /// Represents a stickerset Derived classes: , , , , See /// a null value means inputStickerSetEmpty - public abstract partial class InputStickerSet : IObject { } + public abstract class InputStickerSet : IObject { } /// Stickerset by ID See [TLDef(0x9DE7A269)] - public partial class InputStickerSetID : InputStickerSet + public class InputStickerSetID : InputStickerSet { /// ID public long id; @@ -5730,24 +5730,24 @@ namespace TL } /// Stickerset by short name, from tg://addstickers?set=short_name See [TLDef(0x861CC8A0)] - public partial class InputStickerSetShortName : InputStickerSet + public class InputStickerSetShortName : InputStickerSet { /// From tg://addstickers?set=short_name public string short_name; } /// Animated emojis stickerset See [TLDef(0x028703C8)] - public partial class InputStickerSetAnimatedEmoji : InputStickerSet { } + public class InputStickerSetAnimatedEmoji : InputStickerSet { } /// Used for fetching animated dice stickers See [TLDef(0xE67F520E)] - public partial class InputStickerSetDice : InputStickerSet + public 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 partial class InputStickerSetAnimatedEmojiAnimations : InputStickerSet { } + public class InputStickerSetAnimatedEmojiAnimations : InputStickerSet { } /// Represents a stickerset (stickerpack) See [TLDef(0xD7DF217A)] @@ -5795,7 +5795,7 @@ namespace TL /// Stickerset and stickers inside it See [TLDef(0xB60A24A6)] - public partial class Messages_StickerSet : IObject + public class Messages_StickerSet : IObject { /// The stickerset public StickerSet set; @@ -5807,7 +5807,7 @@ namespace TL /// Describes a bot command that can be used in a chat See [TLDef(0xC27AC8C7)] - public partial class BotCommand : IObject + public class BotCommand : IObject { /// /command name public string command; @@ -5817,7 +5817,7 @@ namespace TL /// Info about bots (available bot commands, etc) See [TLDef(0x1B74B335)] - public partial class BotInfo : IObject + public class BotInfo : IObject { /// ID of the bot public long user_id; @@ -5828,14 +5828,14 @@ namespace TL } /// Bot or inline keyboard buttons Derived classes: , , , , , , , , , , See - public abstract partial class KeyboardButtonBase : IObject + public abstract class KeyboardButtonBase : IObject { /// Button text public abstract string Text { get; } } /// Bot keyboard button See [TLDef(0xA2FA4880)] - public partial class KeyboardButton : KeyboardButtonBase + public class KeyboardButton : KeyboardButtonBase { /// Button text public string text; @@ -5845,14 +5845,14 @@ namespace TL } /// URL button See [TLDef(0x258AFF05, inheritBefore = true)] - public partial class KeyboardButtonUrl : KeyboardButton + public class KeyboardButtonUrl : KeyboardButton { /// URL public string url; } /// Callback button See [TLDef(0x35BBDB6B)] - public partial class KeyboardButtonCallback : KeyboardButtonBase + public class KeyboardButtonCallback : KeyboardButtonBase { /// Flags, see TL conditional fields public Flags flags; @@ -5872,17 +5872,17 @@ namespace TL } /// Button to request a user's phone number See [TLDef(0xB16A6C29)] - public partial class KeyboardButtonRequestPhone : KeyboardButton + public class KeyboardButtonRequestPhone : KeyboardButton { } /// Button to request a user's geolocation See [TLDef(0xFC796B3F)] - public partial class KeyboardButtonRequestGeoLocation : KeyboardButton + public 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(0x0568A748)] - public partial class KeyboardButtonSwitchInline : KeyboardButtonBase + public class KeyboardButtonSwitchInline : KeyboardButtonBase { /// Flags, see TL conditional fields public Flags flags; @@ -5902,17 +5902,17 @@ namespace TL } /// Button to start a game See [TLDef(0x50F41CCF)] - public partial class KeyboardButtonGame : KeyboardButton + public class KeyboardButtonGame : KeyboardButton { } /// Button to buy a product See [TLDef(0xAFD93FBB)] - public partial class KeyboardButtonBuy : KeyboardButton + public 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 partial class KeyboardButtonUrlAuth : KeyboardButtonBase + public class KeyboardButtonUrlAuth : KeyboardButtonBase { /// Flags, see TL conditional fields public Flags flags; @@ -5936,7 +5936,7 @@ namespace TL } /// Button to request a user to authorize via URL using Seamless Telegram Login. See [TLDef(0xD02E7FD4)] - public partial class InputKeyboardButtonUrlAuth : KeyboardButtonBase + public class InputKeyboardButtonUrlAuth : KeyboardButtonBase { /// Flags, see TL conditional fields public Flags flags; @@ -5962,7 +5962,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 partial class KeyboardButtonRequestPoll : KeyboardButton + public class KeyboardButtonRequestPoll : KeyboardButton { /// Flags, see TL conditional fields public Flags flags; @@ -5978,17 +5978,17 @@ namespace TL /// Inline keyboard row See [TLDef(0x77608B83)] - public partial class KeyboardButtonRow : IObject + public class KeyboardButtonRow : IObject { /// Bot or inline keyboard buttons public KeyboardButtonBase[] buttons; } /// Reply markup for bot and inline keyboards Derived classes: , , , See - public abstract partial class ReplyMarkup : IObject { } + public abstract class ReplyMarkup : IObject { } /// Hide sent bot keyboard See [TLDef(0xA03E5B85)] - public partial class ReplyKeyboardHide : ReplyMarkup + public class ReplyKeyboardHide : ReplyMarkup { /// Flags, see TL conditional fields public Flags flags; @@ -6001,7 +6001,7 @@ namespace TL } /// Force the user to send a reply See [TLDef(0x86B40B08)] - public partial class ReplyKeyboardForceReply : ReplyMarkup + public class ReplyKeyboardForceReply : ReplyMarkup { /// Flags, see TL conditional fields public Flags flags; @@ -6020,7 +6020,7 @@ namespace TL } /// Bot keyboard See [TLDef(0x85DD99D1)] - public partial class ReplyKeyboardMarkup : ReplyMarkup + public class ReplyKeyboardMarkup : ReplyMarkup { /// Flags, see TL conditional fields public Flags flags; @@ -6043,14 +6043,14 @@ namespace TL } /// Bot or inline keyboard See [TLDef(0x48A30254)] - public partial class ReplyInlineMarkup : ReplyMarkup + public class ReplyInlineMarkup : ReplyMarkup { /// Bot or inline keyboard rows public KeyboardButtonRow[] rows; } /// Message entities, representing styled text in a message Derived classes: , , , , , , , , , , , , , , , , , , See - public abstract partial class MessageEntity : IObject + public abstract class MessageEntity : IObject { /// Offset of message entity within message (in UTF-8 codepoints) public int offset; @@ -6059,88 +6059,88 @@ namespace TL } /// Unknown message entity See [TLDef(0xBB92BA95)] - public partial class MessageEntityUnknown : MessageEntity { } + public class MessageEntityUnknown : MessageEntity { } /// Message entity mentioning the current user See [TLDef(0xFA04579D)] - public partial class MessageEntityMention : MessageEntity { } + public class MessageEntityMention : MessageEntity { } /// #hashtag message entity See [TLDef(0x6F635B0D)] - public partial class MessageEntityHashtag : MessageEntity { } + public class MessageEntityHashtag : MessageEntity { } /// Message entity representing a bot /command See [TLDef(0x6CEF8AC7)] - public partial class MessageEntityBotCommand : MessageEntity { } + public class MessageEntityBotCommand : MessageEntity { } /// Message entity representing an in-text url: https://google.com; for text urls, use . See [TLDef(0x6ED02538)] - public partial class MessageEntityUrl : MessageEntity { } + public class MessageEntityUrl : MessageEntity { } /// Message entity representing an email@example.com. See [TLDef(0x64E475C2)] - public partial class MessageEntityEmail : MessageEntity { } + public class MessageEntityEmail : MessageEntity { } /// Message entity representing bold text. See [TLDef(0xBD610BC9)] - public partial class MessageEntityBold : MessageEntity { } + public class MessageEntityBold : MessageEntity { } /// Message entity representing italic text. See [TLDef(0x826F8B60)] - public partial class MessageEntityItalic : MessageEntity { } + public class MessageEntityItalic : MessageEntity { } /// Message entity representing a codeblock. See [TLDef(0x28A20571)] - public partial class MessageEntityCode : MessageEntity { } + public 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 partial class MessageEntityPre : MessageEntity + public 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 partial class MessageEntityTextUrl : MessageEntity + public 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 partial class MessageEntityMentionName : MessageEntity + public 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 constructor, instead. See [TLDef(0x208E68C9, inheritBefore = true)] - public partial class InputMessageEntityMentionName : MessageEntity + public class InputMessageEntityMentionName : MessageEntity { /// Identifier of the user that was mentioned public InputUserBase user_id; } /// Message entity representing a phone number. See [TLDef(0x9B69E34B)] - public partial class MessageEntityPhone : MessageEntity { } + public class MessageEntityPhone : MessageEntity { } /// Message entity representing a $cashtag. See [TLDef(0x4C4E743F)] - public partial class MessageEntityCashtag : MessageEntity { } + public class MessageEntityCashtag : MessageEntity { } /// Message entity representing underlined text. See [TLDef(0x9C4E7E8B)] - public partial class MessageEntityUnderline : MessageEntity { } + public class MessageEntityUnderline : MessageEntity { } /// Message entity representing strikethrough text. See [TLDef(0xBF0693D4)] - public partial class MessageEntityStrike : MessageEntity { } + public class MessageEntityStrike : MessageEntity { } /// Message entity representing a block quote. See [TLDef(0x020DF5D0)] - public partial class MessageEntityBlockquote : MessageEntity { } + public class MessageEntityBlockquote : MessageEntity { } /// Indicates a credit card number See [TLDef(0x761E6AF4)] - public partial class MessageEntityBankCard : MessageEntity { } + public class MessageEntityBankCard : MessageEntity { } /// Represents a channel Derived classes: , See /// a null value means inputChannelEmpty - public abstract partial class InputChannelBase : IObject + public abstract class InputChannelBase : IObject { /// Channel ID public abstract long ChannelId { get; } } /// Represents a channel See [TLDef(0xF35AEC28)] - public partial class InputChannel : InputChannelBase + public class InputChannel : InputChannelBase { /// Channel ID public long channel_id; @@ -6152,7 +6152,7 @@ namespace TL } /// Defines a min channel that was seen in a certain message of a certain chat. See [TLDef(0x5B934F9D)] - public partial class InputChannelFromMessage : InputChannelBase + public class InputChannelFromMessage : InputChannelBase { /// The chat where the channel was seen public InputPeer peer; @@ -6181,7 +6181,7 @@ namespace TL /// Indicates a range of chat messages See [TLDef(0x0AE30253)] - public partial class MessageRange : IObject + public class MessageRange : IObject { /// Start of range (message ID) public int min_id; @@ -6276,7 +6276,7 @@ namespace TL /// Filter for getting only certain types of channel messages See /// a null value means channelMessagesFilterEmpty [TLDef(0xCD77D957)] - public partial class ChannelMessagesFilter : IObject + public class ChannelMessagesFilter : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -6291,10 +6291,10 @@ namespace TL } /// Channel participant Derived classes: , , , , , See - public abstract partial class ChannelParticipantBase : IObject { } + public abstract class ChannelParticipantBase : IObject { } /// Channel/supergroup participant See [TLDef(0xC00C07C0)] - public partial class ChannelParticipant : ChannelParticipantBase + public class ChannelParticipant : ChannelParticipantBase { /// Pariticipant user ID public long user_id; @@ -6303,7 +6303,7 @@ namespace TL } /// Myself See [TLDef(0x35A8BFA7)] - public partial class ChannelParticipantSelf : ChannelParticipantBase + public class ChannelParticipantSelf : ChannelParticipantBase { public Flags flags; /// User ID @@ -6320,7 +6320,7 @@ namespace TL } /// Channel/supergroup creator See [TLDef(0x2FE601D3)] - public partial class ChannelParticipantCreator : ChannelParticipantBase + public class ChannelParticipantCreator : ChannelParticipantBase { /// Flags, see TL conditional fields public Flags flags; @@ -6339,7 +6339,7 @@ namespace TL } /// Admin See [TLDef(0x34C3BB53)] - public partial class ChannelParticipantAdmin : ChannelParticipantBase + public class ChannelParticipantAdmin : ChannelParticipantBase { /// Flags, see TL conditional fields public Flags flags; @@ -6368,7 +6368,7 @@ namespace TL } /// Banned/kicked user See [TLDef(0x6DF8014E)] - public partial class ChannelParticipantBanned : ChannelParticipantBase + public class ChannelParticipantBanned : ChannelParticipantBase { /// Flags, see TL conditional fields public Flags flags; @@ -6389,54 +6389,54 @@ namespace TL } /// A participant that left the channel/supergroup See [TLDef(0x1B03F006)] - public partial class ChannelParticipantLeft : ChannelParticipantBase + public class ChannelParticipantLeft : ChannelParticipantBase { /// The peer that left public Peer peer; } /// Filter for fetching channel participants Derived classes: , , , , , , , See - public abstract partial class ChannelParticipantsFilter : IObject { } + public abstract class ChannelParticipantsFilter : IObject { } /// Fetch only recent participants See [TLDef(0xDE3F3C79)] - public partial class ChannelParticipantsRecent : ChannelParticipantsFilter { } + public class ChannelParticipantsRecent : ChannelParticipantsFilter { } /// Fetch only admin participants See [TLDef(0xB4608969)] - public partial class ChannelParticipantsAdmins : ChannelParticipantsFilter { } + public class ChannelParticipantsAdmins : ChannelParticipantsFilter { } /// Fetch only kicked participants See [TLDef(0xA3B54985)] - public partial class ChannelParticipantsKicked : ChannelParticipantsFilter + public class ChannelParticipantsKicked : ChannelParticipantsFilter { /// Optional filter for searching kicked participants by name (otherwise empty) public string q; } /// Fetch only bot participants See [TLDef(0xB0D1865B)] - public partial class ChannelParticipantsBots : ChannelParticipantsFilter { } + public class ChannelParticipantsBots : ChannelParticipantsFilter { } /// Fetch only banned participants See [TLDef(0x1427A5E1)] - public partial class ChannelParticipantsBanned : ChannelParticipantsFilter + public class ChannelParticipantsBanned : ChannelParticipantsFilter { /// Optional filter for searching banned participants by name (otherwise empty) public string q; } /// Query participants by name See [TLDef(0x0656AC4B)] - public partial class ChannelParticipantsSearch : ChannelParticipantsFilter + public class ChannelParticipantsSearch : ChannelParticipantsFilter { /// Search query public string q; } /// Fetch only participants that are also contacts See [TLDef(0xBB6AE88D)] - public partial class ChannelParticipantsContacts : ChannelParticipantsFilter + public 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 partial class ChannelParticipantsMentions : ChannelParticipantsFilter + public class ChannelParticipantsMentions : ChannelParticipantsFilter { /// Flags, see TL conditional fields public Flags flags; @@ -6457,7 +6457,7 @@ namespace TL /// Represents multiple channel participants See /// a null value means channels.channelParticipantsNotModified [TLDef(0x9AB0FEAF)] - public partial class Channels_ChannelParticipants : IObject, IPeerResolver + public class Channels_ChannelParticipants : IObject, IPeerResolver { /// Total number of participants that correspond to the given query public int count; @@ -6473,7 +6473,7 @@ namespace TL /// Represents a channel participant See [TLDef(0xDFB80317)] - public partial class Channels_ChannelParticipant : IObject, IPeerResolver + public class Channels_ChannelParticipant : IObject, IPeerResolver { /// The channel participant public ChannelParticipantBase participant; @@ -6487,7 +6487,7 @@ namespace TL /// Info about the latest telegram Terms Of Service See [TLDef(0x780A0310)] - public partial class Help_TermsOfService : IObject + public class Help_TermsOfService : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -6512,7 +6512,7 @@ namespace TL /// Saved gifs See /// a null value means messages.savedGifsNotModified [TLDef(0x84A02A0D)] - public partial class Messages_SavedGifs : IObject + public class Messages_SavedGifs : IObject { /// Hash for pagination, for more info click here public long hash; @@ -6521,14 +6521,14 @@ namespace TL } /// Represents a sent inline message from the perspective of a bot Derived classes: , , , , , , See - public abstract partial class InputBotInlineMessage : IObject + public abstract class InputBotInlineMessage : IObject { /// Flags, see TL conditional fields public int flags; } /// A media See [TLDef(0x3380C786, inheritBefore = true)] - public partial class InputBotInlineMessageMediaAuto : InputBotInlineMessage + public class InputBotInlineMessageMediaAuto : InputBotInlineMessage { /// Caption public string message; @@ -6547,7 +6547,7 @@ namespace TL } /// Simple text message See [TLDef(0x3DCD7A87, inheritBefore = true)] - public partial class InputBotInlineMessageText : InputBotInlineMessage + public class InputBotInlineMessageText : InputBotInlineMessage { /// Message public string message; @@ -6568,7 +6568,7 @@ namespace TL } /// Geolocation See [TLDef(0x96929A85, inheritBefore = true)] - public partial class InputBotInlineMessageMediaGeo : InputBotInlineMessage + public class InputBotInlineMessageMediaGeo : InputBotInlineMessage { /// Geolocation public InputGeoPoint geo_point; @@ -6595,7 +6595,7 @@ namespace TL } /// Venue See [TLDef(0x417BBF11, inheritBefore = true)] - public partial class InputBotInlineMessageMediaVenue : InputBotInlineMessage + public class InputBotInlineMessageMediaVenue : InputBotInlineMessage { /// Geolocation public InputGeoPoint geo_point; @@ -6620,7 +6620,7 @@ namespace TL } /// A contact See [TLDef(0xA6EDBFFD, inheritBefore = true)] - public partial class InputBotInlineMessageMediaContact : InputBotInlineMessage + public class InputBotInlineMessageMediaContact : InputBotInlineMessage { /// Phone number public string phone_number; @@ -6641,7 +6641,7 @@ namespace TL } /// A game See [TLDef(0x4B425864, inheritBefore = true)] - public partial class InputBotInlineMessageGame : InputBotInlineMessage + public class InputBotInlineMessageGame : InputBotInlineMessage { /// Inline keyboard [IfFlag(2)] public ReplyMarkup reply_markup; @@ -6654,7 +6654,7 @@ namespace TL } /// An invoice See [TLDef(0xD7E78225, inheritBefore = true)] - public partial class InputBotInlineMessageMediaInvoice : InputBotInlineMessage + public class InputBotInlineMessageMediaInvoice : InputBotInlineMessage { /// Product name, 1-32 characters public string title; @@ -6683,7 +6683,7 @@ namespace TL } /// Inline bot result Derived classes: , , , See - public abstract partial class InputBotInlineResultBase : IObject + public abstract class InputBotInlineResultBase : IObject { /// ID of result public abstract string ID { get; } @@ -6692,7 +6692,7 @@ namespace TL } /// An inline bot result See [TLDef(0x88BF9319)] - public partial class InputBotInlineResult : InputBotInlineResultBase + public class InputBotInlineResult : InputBotInlineResultBase { /// Flags, see TL conditional fields public Flags flags; @@ -6734,7 +6734,7 @@ namespace TL } /// Photo See [TLDef(0xA8D864A7)] - public partial class InputBotInlineResultPhoto : InputBotInlineResultBase + public class InputBotInlineResultPhoto : InputBotInlineResultBase { /// Result ID public string id; @@ -6752,7 +6752,7 @@ namespace TL } /// Document (media of any type except for photos) See [TLDef(0xFFF8FDC4)] - public partial class InputBotInlineResultDocument : InputBotInlineResultBase + public class InputBotInlineResultDocument : InputBotInlineResultBase { /// Flags, see TL conditional fields public Flags flags; @@ -6784,7 +6784,7 @@ namespace TL } /// Game See [TLDef(0x4FA417F2)] - public partial class InputBotInlineResultGame : InputBotInlineResultBase + public class InputBotInlineResultGame : InputBotInlineResultBase { /// Result ID public string id; @@ -6800,14 +6800,14 @@ namespace TL } /// Inline message Derived classes: , , , , , See - public abstract partial class BotInlineMessage : IObject + public abstract class BotInlineMessage : IObject { /// Flags, see TL conditional fields public int flags; } /// Send whatever media is attached to the See [TLDef(0x764CF810, inheritBefore = true)] - public partial class BotInlineMessageMediaAuto : BotInlineMessage + public class BotInlineMessageMediaAuto : BotInlineMessage { /// Caption public string message; @@ -6826,7 +6826,7 @@ namespace TL } /// Send a simple text message See [TLDef(0x8C7F65E2, inheritBefore = true)] - public partial class BotInlineMessageText : BotInlineMessage + public class BotInlineMessageText : BotInlineMessage { /// The message public string message; @@ -6847,7 +6847,7 @@ namespace TL } /// Send a geolocation See [TLDef(0x051846FD, inheritBefore = true)] - public partial class BotInlineMessageMediaGeo : BotInlineMessage + public class BotInlineMessageMediaGeo : BotInlineMessage { /// Geolocation public GeoPoint geo; @@ -6874,7 +6874,7 @@ namespace TL } /// Send a venue See [TLDef(0x8A86659C, inheritBefore = true)] - public partial class BotInlineMessageMediaVenue : BotInlineMessage + public class BotInlineMessageMediaVenue : BotInlineMessage { /// Geolocation of venue public GeoPoint geo; @@ -6899,7 +6899,7 @@ namespace TL } /// Send a contact See [TLDef(0x18D1CDC2, inheritBefore = true)] - public partial class BotInlineMessageMediaContact : BotInlineMessage + public class BotInlineMessageMediaContact : BotInlineMessage { /// Phone number public string phone_number; @@ -6920,7 +6920,7 @@ namespace TL } /// Send an invoice See [TLDef(0x354A9B09, inheritBefore = true)] - public partial class BotInlineMessageMediaInvoice : BotInlineMessage + public class BotInlineMessageMediaInvoice : BotInlineMessage { /// Product name, 1-32 characters public string title; @@ -6949,7 +6949,7 @@ namespace TL } /// Results of an inline query Derived classes: , See - public abstract partial class BotInlineResultBase : IObject + public abstract class BotInlineResultBase : IObject { /// Result ID public abstract string ID { get; } @@ -6960,7 +6960,7 @@ namespace TL } /// Generic result See [TLDef(0x11965F3A)] - public partial class BotInlineResult : BotInlineResultBase + public class BotInlineResult : BotInlineResultBase { /// Flags, see TL conditional fields public Flags flags; @@ -7004,7 +7004,7 @@ namespace TL } /// Media result See [TLDef(0x17DB940B)] - public partial class BotInlineMediaResult : BotInlineResultBase + public class BotInlineMediaResult : BotInlineResultBase { /// Flags, see TL conditional fields public Flags flags; @@ -7045,7 +7045,7 @@ namespace TL /// Result of a query to an inline bot See [TLDef(0x947CA848)] - public partial class Messages_BotResults : IObject + public class Messages_BotResults : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -7075,7 +7075,7 @@ namespace TL /// Link to a message in a supergroup/channel See [TLDef(0x5DAB1AF4)] - public partial class ExportedMessageLink : IObject + public class ExportedMessageLink : IObject { /// URL public string link; @@ -7085,7 +7085,7 @@ namespace TL /// Info about a forwarded message See [TLDef(0x5F777DCE)] - public partial class MessageFwdHeader : IObject + public class MessageFwdHeader : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -7137,31 +7137,31 @@ namespace TL } /// Type of the verification code that was sent Derived classes: , , , See - public abstract partial class Auth_SentCodeType : IObject { } + public abstract class Auth_SentCodeType : IObject { } /// The code was sent through the telegram app See [TLDef(0x3DBB5986)] - public partial class Auth_SentCodeTypeApp : Auth_SentCodeType + public class Auth_SentCodeTypeApp : Auth_SentCodeType { /// Length of the code in bytes public int length; } /// The code was sent via SMS See [TLDef(0xC000BBA2)] - public partial class Auth_SentCodeTypeSms : Auth_SentCodeType + public 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 partial class Auth_SentCodeTypeCall : Auth_SentCodeType + public 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 partial class Auth_SentCodeTypeFlashCall : Auth_SentCodeType + public class Auth_SentCodeTypeFlashCall : Auth_SentCodeType { /// pattern to match public string pattern; @@ -7169,7 +7169,7 @@ namespace TL /// Callback answer sent by the bot in response to a button press See [TLDef(0x36585EA4)] - public partial class Messages_BotCallbackAnswer : IObject + public class Messages_BotCallbackAnswer : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -7197,7 +7197,7 @@ namespace TL /// Message edit data for media See [TLDef(0x26B5DDE6)] - public partial class Messages_MessageEditData : IObject + public class Messages_MessageEditData : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -7210,7 +7210,7 @@ namespace TL } /// Represents a sent inline message from the perspective of a bot Derived classes: , See - public abstract partial class InputBotInlineMessageIDBase : IObject + public abstract class InputBotInlineMessageIDBase : IObject { /// DC ID to use when working with this inline message public abstract int DcId { get; } @@ -7219,7 +7219,7 @@ namespace TL } /// Represents a sent inline message from the perspective of a bot (legacy constructor) See [TLDef(0x890C3D89)] - public partial class InputBotInlineMessageID : InputBotInlineMessageIDBase + public class InputBotInlineMessageID : InputBotInlineMessageIDBase { /// DC ID to use when working with this inline message public int dc_id; @@ -7235,7 +7235,7 @@ namespace TL } /// Represents a sent inline message from the perspective of a bot See [TLDef(0xB6D915D7)] - public partial class InputBotInlineMessageID64 : InputBotInlineMessageIDBase + public class InputBotInlineMessageID64 : InputBotInlineMessageIDBase { /// DC ID to use when working with this inline message public int dc_id; @@ -7254,7 +7254,7 @@ namespace TL /// The bot requested the user to message him in private See [TLDef(0x3C20629F)] - public partial class InlineBotSwitchPM : IObject + public 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; @@ -7282,7 +7282,7 @@ namespace TL /// Top peer See [TLDef(0xEDCDC05B)] - public partial class TopPeer : IObject + public class TopPeer : IObject { /// Peer public Peer peer; @@ -7313,7 +7313,7 @@ namespace TL /// Top peer category See [TLDef(0xFB834291)] - public partial class TopPeerCategoryPeers : IObject + public class TopPeerCategoryPeers : IObject { /// Top peer category of peers public TopPeerCategory category; @@ -7325,10 +7325,10 @@ namespace TL /// Top peers Derived classes: , See /// a null value means contacts.topPeersNotModified - public abstract partial class Contacts_TopPeersBase : IObject { } + public abstract class Contacts_TopPeersBase : IObject { } /// Top peers See [TLDef(0x70B772A8)] - public partial class Contacts_TopPeers : Contacts_TopPeersBase, IPeerResolver + public class Contacts_TopPeers : Contacts_TopPeersBase, IPeerResolver { /// Top peers by top peer category public TopPeerCategoryPeers[] categories; @@ -7341,13 +7341,13 @@ namespace TL } /// Top peers disabled See [TLDef(0xB52C939D)] - public partial class Contacts_TopPeersDisabled : Contacts_TopPeersBase { } + public class Contacts_TopPeersDisabled : Contacts_TopPeersBase { } /// Represents a message draft. Derived classes: , See - public abstract partial class DraftMessageBase : IObject { } + public abstract class DraftMessageBase : IObject { } /// Empty draft See [TLDef(0x1B0C841A)] - public partial class DraftMessageEmpty : DraftMessageBase + public class DraftMessageEmpty : DraftMessageBase { /// Flags, see TL conditional fields public Flags flags; @@ -7362,7 +7362,7 @@ namespace TL } /// Represents a message draft. See [TLDef(0xFD8E711F)] - public partial class DraftMessage : DraftMessageBase + public class DraftMessage : DraftMessageBase { /// Flags, see TL conditional fields public Flags flags; @@ -7387,17 +7387,17 @@ namespace TL } /// Featured stickers Derived classes: , See - public abstract partial class Messages_FeaturedStickersBase : IObject { } + public abstract class Messages_FeaturedStickersBase : IObject { } /// Featured stickers haven't changed See [TLDef(0xC6DC0C66)] - public partial class Messages_FeaturedStickersNotModified : Messages_FeaturedStickersBase + public class Messages_FeaturedStickersNotModified : Messages_FeaturedStickersBase { /// Total number of featured stickers public int count; } /// Featured stickersets See [TLDef(0x84C02310)] - public partial class Messages_FeaturedStickers : Messages_FeaturedStickersBase + public class Messages_FeaturedStickers : Messages_FeaturedStickersBase { /// Hash for pagination, for more info click here public long hash; @@ -7412,7 +7412,7 @@ namespace TL /// Recently used stickers See /// a null value means messages.recentStickersNotModified [TLDef(0x88D37C56)] - public partial class Messages_RecentStickers : IObject + public class Messages_RecentStickers : IObject { /// Hash for pagination, for more info click here public long hash; @@ -7426,7 +7426,7 @@ namespace TL /// Archived stickersets See [TLDef(0x4FCBA9C8)] - public partial class Messages_ArchivedStickers : IObject + public class Messages_ArchivedStickers : IObject { /// Number of archived stickers public int count; @@ -7435,27 +7435,27 @@ namespace TL } /// Result of stickerset installation process Derived classes: , See - public abstract partial class Messages_StickerSetInstallResult : IObject { } + public abstract class Messages_StickerSetInstallResult : IObject { } /// The stickerset was installed successfully See [TLDef(0x38641628)] - public partial class Messages_StickerSetInstallResultSuccess : Messages_StickerSetInstallResult { } + public class Messages_StickerSetInstallResultSuccess : Messages_StickerSetInstallResult { } /// The stickerset was installed, but since there are too many stickersets some were archived See [TLDef(0x35E410A8)] - public partial class Messages_StickerSetInstallResultArchive : Messages_StickerSetInstallResult + public class Messages_StickerSetInstallResultArchive : Messages_StickerSetInstallResult { /// Archived stickersets public StickerSetCoveredBase[] sets; } /// Stickerset, with a specific sticker as preview Derived classes: , See - public abstract partial class StickerSetCoveredBase : IObject + public abstract class StickerSetCoveredBase : IObject { /// Stickerset public abstract StickerSet Set { get; } } /// Stickerset, with a specific sticker as preview See [TLDef(0x6410A5D2)] - public partial class StickerSetCovered : StickerSetCoveredBase + public class StickerSetCovered : StickerSetCoveredBase { /// Stickerset public StickerSet set; @@ -7467,7 +7467,7 @@ namespace TL } /// Stickerset, with a specific stickers as preview See [TLDef(0x3407E51B)] - public partial class StickerSetMultiCovered : StickerSetCoveredBase + public class StickerSetMultiCovered : StickerSetCoveredBase { /// Stickerset public StickerSet set; @@ -7480,7 +7480,7 @@ namespace TL /// Position on a photo where a mask should be placed See [TLDef(0xAED6DBB2)] - public partial class MaskCoords : IObject + public class MaskCoords : IObject { /// Part of the face, relative to which the mask should be placed public int n; @@ -7493,17 +7493,17 @@ namespace TL } /// Represents a media with attached stickers Derived classes: , See - public abstract partial class InputStickeredMedia : IObject { } + public abstract class InputStickeredMedia : IObject { } /// A photo with stickers attached See [TLDef(0x4A992157)] - public partial class InputStickeredMediaPhoto : InputStickeredMedia + public class InputStickeredMediaPhoto : InputStickeredMedia { /// The photo public InputPhoto id; } /// A document with stickers attached See [TLDef(0x0438865B)] - public partial class InputStickeredMediaDocument : InputStickeredMedia + public class InputStickeredMediaDocument : InputStickeredMedia { /// The document public InputDocument id; @@ -7511,7 +7511,7 @@ namespace TL /// Indicates an already sent game See [TLDef(0xBDF9653B)] - public partial class Game : IObject + public class Game : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -7538,10 +7538,10 @@ namespace TL } /// A game to send Derived classes: , See - public abstract partial class InputGame : IObject { } + public abstract class InputGame : IObject { } /// Indicates an already sent game See [TLDef(0x032C3E77)] - public partial class InputGameID : InputGame + public class InputGameID : InputGame { /// game ID from constructor public long id; @@ -7550,7 +7550,7 @@ namespace TL } /// Game by short name See [TLDef(0xC331E80A)] - public partial class InputGameShortName : InputGame + public class InputGameShortName : InputGame { /// The bot that provides the game public InputUserBase bot_id; @@ -7560,7 +7560,7 @@ namespace TL /// Game highscore See [TLDef(0x73A379EB)] - public partial class HighScore : IObject + public class HighScore : IObject { /// Position in highscore list public int pos; @@ -7572,7 +7572,7 @@ namespace TL /// Highscores in a game See [TLDef(0x9A3BFD99)] - public partial class Messages_HighScores : IObject + public class Messages_HighScores : IObject { /// Highscores public HighScore[] scores; @@ -7582,52 +7582,52 @@ namespace TL /// Rich text Derived classes: , , , , , , , , , , , , , , See /// a null value means textEmpty - public abstract partial class RichText : IObject { } + public abstract class RichText : IObject { } /// Plain text See [TLDef(0x744694E0)] - public partial class TextPlain : RichText + public class TextPlain : RichText { /// Text public string text; } /// Bold text See [TLDef(0x6724ABC4)] - public partial class TextBold : RichText + public class TextBold : RichText { /// Text public RichText text; } /// Italic text See [TLDef(0xD912A59C)] - public partial class TextItalic : RichText + public class TextItalic : RichText { /// Text public RichText text; } /// Underlined text See [TLDef(0xC12622C4)] - public partial class TextUnderline : RichText + public class TextUnderline : RichText { /// Text public RichText text; } /// Strikethrough text See [TLDef(0x9BF8BB95)] - public partial class TextStrike : RichText + public class TextStrike : RichText { /// Text public RichText text; } /// fixed-width rich text See [TLDef(0x6C3F19B9)] - public partial class TextFixed : RichText + public class TextFixed : RichText { /// Text public RichText text; } /// Link See [TLDef(0x3C2884C1)] - public partial class TextUrl : RichText + public class TextUrl : RichText { /// Text of link public RichText text; @@ -7638,7 +7638,7 @@ namespace TL } /// Rich text email link See [TLDef(0xDE5A0DD6)] - public partial class TextEmail : RichText + public class TextEmail : RichText { /// Link text public RichText text; @@ -7647,35 +7647,35 @@ namespace TL } /// Concatenation of rich texts See [TLDef(0x7E6260D7)] - public partial class TextConcat : RichText + public class TextConcat : RichText { /// Concatenated rich texts public RichText[] texts; } /// Subscript text See [TLDef(0xED6A8504)] - public partial class TextSubscript : RichText + public class TextSubscript : RichText { /// Text public RichText text; } /// Superscript text See [TLDef(0xC7FB5E01)] - public partial class TextSuperscript : RichText + public class TextSuperscript : RichText { /// Text public RichText text; } /// Highlighted text See [TLDef(0x034B8621)] - public partial class TextMarked : RichText + public class TextMarked : RichText { /// Text public RichText text; } /// Rich text linked to a phone number See [TLDef(0x1CCB966A)] - public partial class TextPhone : RichText + public class TextPhone : RichText { /// Text public RichText text; @@ -7684,7 +7684,7 @@ namespace TL } /// Inline image See [TLDef(0x081CCF4F)] - public partial class TextImage : RichText + public class TextImage : RichText { /// Document ID public long document_id; @@ -7695,7 +7695,7 @@ namespace TL } /// Text linking to another section of the page See [TLDef(0x35553762)] - public partial class TextAnchor : RichText + public class TextAnchor : RichText { /// Text public RichText text; @@ -7704,27 +7704,27 @@ namespace TL } /// Represents an instant view page element Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , See - public abstract partial class PageBlock : IObject { } + public abstract class PageBlock : IObject { } /// Unsupported IV element See [TLDef(0x13567E8A)] - public partial class PageBlockUnsupported : PageBlock { } + public class PageBlockUnsupported : PageBlock { } /// Title See [TLDef(0x70ABC3FD)] - public partial class PageBlockTitle : PageBlock + public class PageBlockTitle : PageBlock { /// Title public RichText text; } /// Subtitle See [TLDef(0x8FFA9A1F)] - public partial class PageBlockSubtitle : PageBlock + public class PageBlockSubtitle : PageBlock { /// Text public RichText text; } /// Author and date of creation of article See [TLDef(0xBAAFE5E0)] - public partial class PageBlockAuthorDate : PageBlock + public class PageBlockAuthorDate : PageBlock { /// Author name public RichText author; @@ -7733,28 +7733,28 @@ namespace TL } /// Page header See [TLDef(0xBFD064EC)] - public partial class PageBlockHeader : PageBlock + public class PageBlockHeader : PageBlock { /// Contents public RichText text; } /// Subheader See [TLDef(0xF12BB6E1)] - public partial class PageBlockSubheader : PageBlock + public class PageBlockSubheader : PageBlock { /// Subheader public RichText text; } /// A paragraph See [TLDef(0x467A0766)] - public partial class PageBlockParagraph : PageBlock + public class PageBlockParagraph : PageBlock { /// Text public RichText text; } /// Preformatted (<pre> text) See [TLDef(0xC070D93E)] - public partial class PageBlockPreformatted : PageBlock + public class PageBlockPreformatted : PageBlock { /// Text public RichText text; @@ -7763,31 +7763,31 @@ namespace TL } /// Page footer See [TLDef(0x48870999)] - public partial class PageBlockFooter : PageBlock + public class PageBlockFooter : PageBlock { /// Contents public RichText text; } /// An empty block separating a page See [TLDef(0xDB20B188)] - public partial class PageBlockDivider : PageBlock { } + public class PageBlockDivider : PageBlock { } /// Link to section within the page itself (like <a href="#target">anchor</a>) See [TLDef(0xCE0D37B0)] - public partial class PageBlockAnchor : PageBlock + public class PageBlockAnchor : PageBlock { /// Name of target section public string name; } /// Unordered list of IV blocks See [TLDef(0xE4E88011)] - public partial class PageBlockList : PageBlock + public class PageBlockList : PageBlock { /// List of blocks in an IV page public PageListItem[] items; } /// Quote (equivalent to the HTML <blockquote>) See [TLDef(0x263D7C26)] - public partial class PageBlockBlockquote : PageBlock + public class PageBlockBlockquote : PageBlock { /// Quote contents public RichText text; @@ -7796,7 +7796,7 @@ namespace TL } /// Pullquote See [TLDef(0x4F4456D3)] - public partial class PageBlockPullquote : PageBlock + public class PageBlockPullquote : PageBlock { /// Text public RichText text; @@ -7805,7 +7805,7 @@ namespace TL } /// A photo See [TLDef(0x1759C560)] - public partial class PageBlockPhoto : PageBlock + public class PageBlockPhoto : PageBlock { /// Flags, see TL conditional fields public Flags flags; @@ -7826,7 +7826,7 @@ namespace TL } /// Video See [TLDef(0x7C8FE7B6)] - public partial class PageBlockVideo : PageBlock + public class PageBlockVideo : PageBlock { /// Flags, see TL conditional fields public Flags flags; @@ -7845,14 +7845,14 @@ namespace TL } /// A page cover See [TLDef(0x39F23300)] - public partial class PageBlockCover : PageBlock + public class PageBlockCover : PageBlock { /// Cover public PageBlock cover; } /// An embedded webpage See [TLDef(0xA8718DC5)] - public partial class PageBlockEmbed : PageBlock + public class PageBlockEmbed : PageBlock { /// Flags, see TL conditional fields public Flags flags; @@ -7887,7 +7887,7 @@ namespace TL } /// An embedded post See [TLDef(0xF259A80B)] - public partial class PageBlockEmbedPost : PageBlock + public class PageBlockEmbedPost : PageBlock { /// Web page URL public string url; @@ -7906,7 +7906,7 @@ namespace TL } /// Collage of media See [TLDef(0x65A0FA4D)] - public partial class PageBlockCollage : PageBlock + public class PageBlockCollage : PageBlock { /// Media elements public PageBlock[] items; @@ -7915,7 +7915,7 @@ namespace TL } /// Slideshow See [TLDef(0x031F9590)] - public partial class PageBlockSlideshow : PageBlock + public class PageBlockSlideshow : PageBlock { /// Slideshow items public PageBlock[] items; @@ -7924,14 +7924,14 @@ namespace TL } /// Reference to a telegram channel See [TLDef(0xEF1751B5)] - public partial class PageBlockChannel : PageBlock + public class PageBlockChannel : PageBlock { /// The channel/supergroup/chat public ChatBase channel; } /// Audio See [TLDef(0x804361EA)] - public partial class PageBlockAudio : PageBlock + public class PageBlockAudio : PageBlock { /// Audio ID (to be fetched from the container constructor public long audio_id; @@ -7940,14 +7940,14 @@ namespace TL } /// Kicker See [TLDef(0x1E148390)] - public partial class PageBlockKicker : PageBlock + public class PageBlockKicker : PageBlock { /// Contents public RichText text; } /// Table See [TLDef(0xBF4DEA82)] - public partial class PageBlockTable : PageBlock + public class PageBlockTable : PageBlock { /// Flags, see TL conditional fields public Flags flags; @@ -7966,14 +7966,14 @@ namespace TL } /// Ordered list of IV blocks See [TLDef(0x9A8AE1E1)] - public partial class PageBlockOrderedList : PageBlock + public class PageBlockOrderedList : PageBlock { /// List items public PageListOrderedItem[] items; } /// A collapsible details block See [TLDef(0x76768BED)] - public partial class PageBlockDetails : PageBlock + public class PageBlockDetails : PageBlock { /// Flags, see TL conditional fields public Flags flags; @@ -7990,7 +7990,7 @@ namespace TL } /// Related articles See [TLDef(0x16115A96)] - public partial class PageBlockRelatedArticles : PageBlock + public class PageBlockRelatedArticles : PageBlock { /// Title public RichText title; @@ -7999,7 +7999,7 @@ namespace TL } /// A map See [TLDef(0xA44F3EF6)] - public partial class PageBlockMap : PageBlock + public class PageBlockMap : PageBlock { /// Location of the map center public GeoPoint geo; @@ -8028,7 +8028,7 @@ namespace TL /// Represents a json-encoded object See [TLDef(0x7D748D04)] - public partial class DataJSON : IObject + public class DataJSON : IObject { /// JSON-encoded object public string data; @@ -8036,7 +8036,7 @@ namespace TL /// This object represents a portion of the price for goods or services. See [TLDef(0xCB296BF8)] - public partial class LabeledPrice : IObject + public class LabeledPrice : IObject { /// Portion label public string label; @@ -8046,7 +8046,7 @@ namespace TL /// Invoice See [TLDef(0x0CD886E0)] - public partial class Invoice : IObject + public class Invoice : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -8084,7 +8084,7 @@ namespace TL /// Payment identifier See [TLDef(0xEA02C27E)] - public partial class PaymentCharge : IObject + public class PaymentCharge : IObject { /// Telegram payment identifier public string id; @@ -8094,7 +8094,7 @@ namespace TL /// Shipping address See [TLDef(0x1E8CAAEB)] - public partial class PostAddress : IObject + public class PostAddress : IObject { /// First line for the address public string street_line1; @@ -8112,7 +8112,7 @@ namespace TL /// Order info provided by the user See [TLDef(0x909C3F94)] - public partial class PaymentRequestedInfo : IObject + public class PaymentRequestedInfo : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -8139,10 +8139,10 @@ namespace TL } /// Saved payment credentials Derived classes: See - public abstract partial class PaymentSavedCredentials : IObject { } + public abstract class PaymentSavedCredentials : IObject { } /// Saved credit card See [TLDef(0xCDC27A1F)] - public partial class PaymentSavedCredentialsCard : PaymentSavedCredentials + public class PaymentSavedCredentialsCard : PaymentSavedCredentials { /// Card ID public string id; @@ -8151,7 +8151,7 @@ namespace TL } /// Remote document Derived classes: , See - public abstract partial class WebDocumentBase : IObject + public abstract class WebDocumentBase : IObject { /// Document URL public abstract string Url { get; } @@ -8164,7 +8164,7 @@ namespace TL } /// Remote document See [TLDef(0x1C570ED1)] - public partial class WebDocument : WebDocumentBase + public class WebDocument : WebDocumentBase { /// Document URL public string url; @@ -8188,7 +8188,7 @@ namespace TL } /// Remote document that can be downloaded without proxying through telegram See [TLDef(0xF9C8BCC6)] - public partial class WebDocumentNoProxy : WebDocumentBase + public class WebDocumentNoProxy : WebDocumentBase { /// Document URL public string url; @@ -8211,7 +8211,7 @@ namespace TL /// The document See [TLDef(0x9BED434D)] - public partial class InputWebDocument : IObject + public class InputWebDocument : IObject { /// Remote document URL to be downloaded using the appropriate method public string url; @@ -8224,14 +8224,14 @@ namespace TL } /// Location of remote file Derived classes: , See - public abstract partial class InputWebFileLocationBase : IObject + public abstract class InputWebFileLocationBase : IObject { /// Access hash public abstract long AccessHash { get; } } /// Location of a remote HTTP(s) file See [TLDef(0xC239D686)] - public partial class InputWebFileLocation : InputWebFileLocationBase + public class InputWebFileLocation : InputWebFileLocationBase { /// HTTP URL of file public string url; @@ -8243,7 +8243,7 @@ namespace TL } /// Geolocation See [TLDef(0x9F2221C9)] - public partial class InputWebFileGeoPointLocation : InputWebFileLocationBase + public class InputWebFileGeoPointLocation : InputWebFileLocationBase { /// Geolocation public InputGeoPoint geo_point; @@ -8264,7 +8264,7 @@ namespace TL /// Represents a chunk of an HTTP webfile downloaded through telegram's secure MTProto servers See [TLDef(0x21E753BC)] - public partial class Upload_WebFile : IObject + public class Upload_WebFile : IObject { /// File size public int size; @@ -8280,7 +8280,7 @@ namespace TL /// Payment form See [TLDef(0x1694761B)] - public partial class Payments_PaymentForm : IObject + public class Payments_PaymentForm : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -8322,7 +8322,7 @@ namespace TL /// Validated user-provided info See [TLDef(0xD1451883)] - public partial class Payments_ValidatedRequestedInfo : IObject + public class Payments_ValidatedRequestedInfo : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -8341,17 +8341,17 @@ namespace TL } /// Payment result Derived classes: , See - public abstract partial class Payments_PaymentResultBase : IObject { } + public abstract class Payments_PaymentResultBase : IObject { } /// Payment result See [TLDef(0x4E5F810D)] - public partial class Payments_PaymentResult : Payments_PaymentResultBase + public class Payments_PaymentResult : Payments_PaymentResultBase { /// Info about the payment public UpdatesBase updates; } /// Payment was not successful, additional verification is needed See [TLDef(0xD8411139)] - public partial class Payments_PaymentVerificationNeeded : Payments_PaymentResultBase + public class Payments_PaymentVerificationNeeded : Payments_PaymentResultBase { /// URL for additional payment credentials verification public string url; @@ -8359,7 +8359,7 @@ namespace TL /// Receipt See [TLDef(0x70C4FE03)] - public partial class Payments_PaymentReceipt : IObject + public class Payments_PaymentReceipt : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -8407,7 +8407,7 @@ namespace TL /// Saved server-side order information See [TLDef(0xFB8FE43C)] - public partial class Payments_SavedInfo : IObject + public class Payments_SavedInfo : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -8424,10 +8424,10 @@ namespace TL } /// Payment credentials Derived classes: , , , See - public abstract partial class InputPaymentCredentialsBase : IObject { } + public abstract class InputPaymentCredentialsBase : IObject { } /// Saved payment credentials See [TLDef(0xC10EB2CF)] - public partial class InputPaymentCredentialsSaved : InputPaymentCredentialsBase + public class InputPaymentCredentialsSaved : InputPaymentCredentialsBase { /// Credential ID public string id; @@ -8436,7 +8436,7 @@ namespace TL } /// Payment credentials See [TLDef(0x3417D728)] - public partial class InputPaymentCredentials : InputPaymentCredentialsBase + public class InputPaymentCredentials : InputPaymentCredentialsBase { /// Flags, see TL conditional fields public Flags flags; @@ -8451,14 +8451,14 @@ namespace TL } /// Apple pay payment credentials See [TLDef(0x0AA1C39F)] - public partial class InputPaymentCredentialsApplePay : InputPaymentCredentialsBase + public class InputPaymentCredentialsApplePay : InputPaymentCredentialsBase { /// Payment data public DataJSON payment_data; } /// Google Pay payment credentials See [TLDef(0x8AC32801)] - public partial class InputPaymentCredentialsGooglePay : InputPaymentCredentialsBase + public class InputPaymentCredentialsGooglePay : InputPaymentCredentialsBase { /// Payment token public DataJSON payment_token; @@ -8466,7 +8466,7 @@ namespace TL /// Temporary payment password See [TLDef(0xDB64FD34)] - public partial class Account_TmpPassword : IObject + public class Account_TmpPassword : IObject { /// Temporary password public byte[] tmp_password; @@ -8476,7 +8476,7 @@ namespace TL /// Shipping option See [TLDef(0xB6213CDF)] - public partial class ShippingOption : IObject + public class ShippingOption : IObject { /// Option ID public string id; @@ -8488,7 +8488,7 @@ namespace TL /// Sticker in a stickerset See [TLDef(0xFFA0A496)] - public partial class InputStickerSetItem : IObject + public class InputStickerSetItem : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -8508,7 +8508,7 @@ namespace TL /// Phone call See [TLDef(0x1E36FDED)] - public partial class InputPhoneCall : IObject + public class InputPhoneCall : IObject { /// Call ID public long id; @@ -8517,14 +8517,14 @@ namespace TL } /// Phone call Derived classes: , , , , , See - public abstract partial class PhoneCallBase : IObject + public abstract class PhoneCallBase : IObject { /// Call ID public abstract long ID { get; } } /// Empty constructor See [TLDef(0x5366C915)] - public partial class PhoneCallEmpty : PhoneCallBase + public class PhoneCallEmpty : PhoneCallBase { /// Call ID public long id; @@ -8534,7 +8534,7 @@ namespace TL } /// Incoming phone call See [TLDef(0xC5226F17)] - public partial class PhoneCallWaiting : PhoneCallBase + public class PhoneCallWaiting : PhoneCallBase { /// Flags, see TL conditional fields public Flags flags; @@ -8566,7 +8566,7 @@ namespace TL } /// Requested phone call See [TLDef(0x14B0ED0C)] - public partial class PhoneCallRequested : PhoneCallBase + public class PhoneCallRequested : PhoneCallBase { /// Flags, see TL conditional fields public Flags flags; @@ -8596,7 +8596,7 @@ namespace TL } /// An accepted phone call See [TLDef(0x3660C311)] - public partial class PhoneCallAccepted : PhoneCallBase + public class PhoneCallAccepted : PhoneCallBase { /// Flags, see TL conditional fields public Flags flags; @@ -8626,7 +8626,7 @@ namespace TL } /// Phone call See [TLDef(0x967F7C67)] - public partial class PhoneCall : PhoneCallBase + public class PhoneCall : PhoneCallBase { /// Flags, see TL conditional fields public Flags flags; @@ -8664,7 +8664,7 @@ namespace TL } /// Indicates a discarded phone call See [TLDef(0x50CA4DE1)] - public partial class PhoneCallDiscarded : PhoneCallBase + public class PhoneCallDiscarded : PhoneCallBase { /// Flags, see TL conditional fields public Flags flags; @@ -8694,7 +8694,7 @@ namespace TL } /// Phone call connection Derived classes: , See - public abstract partial class PhoneConnectionBase : IObject + public abstract class PhoneConnectionBase : IObject { /// Endpoint ID public abstract long ID { get; } @@ -8707,7 +8707,7 @@ namespace TL } /// Identifies an endpoint that can be used to connect to the other user in a phone call See [TLDef(0x9D4C17C0)] - public partial class PhoneConnection : PhoneConnectionBase + public class PhoneConnection : PhoneConnectionBase { /// Endpoint ID public long id; @@ -8731,7 +8731,7 @@ namespace TL } /// WebRTC connection parameters See [TLDef(0x635FE375)] - public partial class PhoneConnectionWebrtc : PhoneConnectionBase + public class PhoneConnectionWebrtc : PhoneConnectionBase { /// Flags, see TL conditional fields public Flags flags; @@ -8768,7 +8768,7 @@ namespace TL /// Protocol info for libtgvoip See [TLDef(0xFC878FC8)] - public partial class PhoneCallProtocol : IObject + public class PhoneCallProtocol : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -8790,7 +8790,7 @@ namespace TL /// A VoIP phone call See [TLDef(0xEC82E140)] - public partial class Phone_PhoneCall : IObject + public class Phone_PhoneCall : IObject { /// The VoIP phone call public PhoneCallBase phone_call; @@ -8799,17 +8799,17 @@ namespace TL } /// Represents the download status of a CDN file Derived classes: , See - public abstract partial class Upload_CdnFileBase : IObject { } + public abstract class Upload_CdnFileBase : IObject { } /// The file was cleared from the temporary RAM cache of the CDN and has to be reuploaded. See [TLDef(0xEEA8E46E)] - public partial class Upload_CdnFileReuploadNeeded : Upload_CdnFileBase + public class Upload_CdnFileReuploadNeeded : Upload_CdnFileBase { /// Request token (see CDN) public byte[] request_token; } /// Represent a chunk of a CDN file. See [TLDef(0xA99FCA4F)] - public partial class Upload_CdnFile : Upload_CdnFileBase + public class Upload_CdnFile : Upload_CdnFileBase { /// The data public byte[] bytes; @@ -8817,7 +8817,7 @@ namespace TL /// Public key to use only during handshakes to CDN DCs. See [TLDef(0xC982EABA)] - public partial class CdnPublicKey : IObject + public class CdnPublicKey : IObject { /// CDN DC ID public int dc_id; @@ -8827,21 +8827,21 @@ namespace TL /// Configuration for CDN file downloads. See [TLDef(0x5725E40A)] - public partial class CdnConfig : IObject + public class CdnConfig : IObject { /// Vector of public keys to use only during handshakes to CDN DCs. public CdnPublicKey[] public_keys; } /// Language pack string Derived classes: , , See - public abstract partial class LangPackStringBase : IObject + public abstract class LangPackStringBase : IObject { /// Language key public abstract string Key { get; } } /// Translated localization string See [TLDef(0xCAD181F6)] - public partial class LangPackString : LangPackStringBase + public class LangPackString : LangPackStringBase { /// Language key public string key; @@ -8853,7 +8853,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 partial class LangPackStringPluralized : LangPackStringBase + public class LangPackStringPluralized : LangPackStringBase { /// Flags, see TL conditional fields public Flags flags; @@ -8891,7 +8891,7 @@ namespace TL } /// Deleted localization string See [TLDef(0x2979EEB2)] - public partial class LangPackStringDeleted : LangPackStringBase + public class LangPackStringDeleted : LangPackStringBase { /// Localization key public string key; @@ -8902,7 +8902,7 @@ namespace TL /// Changes to the app's localization pack See [TLDef(0xF385C1F6)] - public partial class LangPackDifference : IObject + public class LangPackDifference : IObject { /// Language code public string lang_code; @@ -8916,7 +8916,7 @@ namespace TL /// Identifies a localization pack See [TLDef(0xEECA5CE3)] - public partial class LangPackLanguage : IObject + public class LangPackLanguage : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -8951,10 +8951,10 @@ namespace TL } /// Channel admin log event Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , See - public abstract partial class ChannelAdminLogEventAction : IObject { } + public abstract class ChannelAdminLogEventAction : IObject { } /// Channel/supergroup title was changed See [TLDef(0xE6DFB825)] - public partial class ChannelAdminLogEventActionChangeTitle : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionChangeTitle : ChannelAdminLogEventAction { /// Previous title public string prev_value; @@ -8963,7 +8963,7 @@ namespace TL } /// The description was changed See [TLDef(0x55188A2E)] - public partial class ChannelAdminLogEventActionChangeAbout : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionChangeAbout : ChannelAdminLogEventAction { /// Previous description public string prev_value; @@ -8972,7 +8972,7 @@ namespace TL } /// Channel/supergroup username was changed See [TLDef(0x6A4AFC38)] - public partial class ChannelAdminLogEventActionChangeUsername : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionChangeUsername : ChannelAdminLogEventAction { /// Old username public string prev_value; @@ -8981,7 +8981,7 @@ namespace TL } /// The channel/supergroup's picture was changed See [TLDef(0x434BD2AF)] - public partial class ChannelAdminLogEventActionChangePhoto : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionChangePhoto : ChannelAdminLogEventAction { /// Previous picture public PhotoBase prev_photo; @@ -8990,28 +8990,28 @@ namespace TL } /// Invites were enabled/disabled See [TLDef(0x1B7907AE)] - public partial class ChannelAdminLogEventActionToggleInvites : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionToggleInvites : ChannelAdminLogEventAction { /// New value public bool new_value; } /// Channel signatures were enabled/disabled See [TLDef(0x26AE0971)] - public partial class ChannelAdminLogEventActionToggleSignatures : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionToggleSignatures : ChannelAdminLogEventAction { /// New value public bool new_value; } /// A message was pinned See [TLDef(0xE9E82C18)] - public partial class ChannelAdminLogEventActionUpdatePinned : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionUpdatePinned : ChannelAdminLogEventAction { /// The message that was pinned public MessageBase message; } /// A message was edited See [TLDef(0x709B2405)] - public partial class ChannelAdminLogEventActionEditMessage : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionEditMessage : ChannelAdminLogEventAction { /// Old message public MessageBase prev_message; @@ -9020,27 +9020,27 @@ namespace TL } /// A message was deleted See [TLDef(0x42E047BB)] - public partial class ChannelAdminLogEventActionDeleteMessage : ChannelAdminLogEventAction + public 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 partial class ChannelAdminLogEventActionParticipantJoin : ChannelAdminLogEventAction { } + public 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 partial class ChannelAdminLogEventActionParticipantLeave : ChannelAdminLogEventAction { } + public class ChannelAdminLogEventActionParticipantLeave : ChannelAdminLogEventAction { } /// A user was invited to the group See [TLDef(0xE31C34D8)] - public partial class ChannelAdminLogEventActionParticipantInvite : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionParticipantInvite : ChannelAdminLogEventAction { /// The user that was invited public ChannelParticipantBase participant; } /// The banned rights of a user were changed See [TLDef(0xE6D83D7E)] - public partial class ChannelAdminLogEventActionParticipantToggleBan : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionParticipantToggleBan : ChannelAdminLogEventAction { /// Old banned rights of user public ChannelParticipantBase prev_participant; @@ -9049,7 +9049,7 @@ namespace TL } /// The admin rights of a user were changed See [TLDef(0xD5676710)] - public partial class ChannelAdminLogEventActionParticipantToggleAdmin : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionParticipantToggleAdmin : ChannelAdminLogEventAction { /// Previous admin rights public ChannelParticipantBase prev_participant; @@ -9058,7 +9058,7 @@ namespace TL } /// The supergroup's stickerset was changed See [TLDef(0xB1C3CAA7)] - public partial class ChannelAdminLogEventActionChangeStickerSet : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionChangeStickerSet : ChannelAdminLogEventAction { /// Previous stickerset public InputStickerSet prev_stickerset; @@ -9067,14 +9067,14 @@ namespace TL } /// The hidden prehistory setting was changed See [TLDef(0x5F5C95F1)] - public partial class ChannelAdminLogEventActionTogglePreHistoryHidden : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionTogglePreHistoryHidden : ChannelAdminLogEventAction { /// New value public bool new_value; } /// The default banned rights were modified See [TLDef(0x2DF5FC0A)] - public partial class ChannelAdminLogEventActionDefaultBannedRights : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionDefaultBannedRights : ChannelAdminLogEventAction { /// Previous global banned rights public ChatBannedRights prev_banned_rights; @@ -9083,14 +9083,14 @@ namespace TL } /// A poll was stopped See [TLDef(0x8F079643)] - public partial class ChannelAdminLogEventActionStopPoll : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionStopPoll : ChannelAdminLogEventAction { /// The poll that was stopped public MessageBase message; } /// The linked chat was changed See [TLDef(0x050C7AC8)] - public partial class ChannelAdminLogEventActionChangeLinkedChat : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionChangeLinkedChat : ChannelAdminLogEventAction { /// Previous linked chat public long prev_value; @@ -9099,7 +9099,7 @@ namespace TL } /// The geogroup location was changed See [TLDef(0x0E6B76AE)] - public partial class ChannelAdminLogEventActionChangeLocation : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionChangeLocation : ChannelAdminLogEventAction { /// Previous location public ChannelLocation prev_value; @@ -9108,7 +9108,7 @@ namespace TL } /// Slow mode setting for supergroups was changed See [TLDef(0x53909779)] - public partial class ChannelAdminLogEventActionToggleSlowMode : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionToggleSlowMode : ChannelAdminLogEventAction { /// Previous slow mode value public int prev_value; @@ -9117,63 +9117,63 @@ namespace TL } /// A group call was started See [TLDef(0x23209745)] - public partial class ChannelAdminLogEventActionStartGroupCall : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionStartGroupCall : ChannelAdminLogEventAction { /// Group call public InputGroupCall call; } /// A group call was terminated See [TLDef(0xDB9F9140)] - public partial class ChannelAdminLogEventActionDiscardGroupCall : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionDiscardGroupCall : ChannelAdminLogEventAction { /// The group call that was terminated public InputGroupCall call; } /// A group call participant was muted See [TLDef(0xF92424D2)] - public partial class ChannelAdminLogEventActionParticipantMute : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionParticipantMute : ChannelAdminLogEventAction { /// The participant that was muted public GroupCallParticipant participant; } /// A group call participant was unmuted See [TLDef(0xE64429C0)] - public partial class ChannelAdminLogEventActionParticipantUnmute : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionParticipantUnmute : ChannelAdminLogEventAction { /// The participant that was unmuted public GroupCallParticipant participant; } /// Group call settings were changed See [TLDef(0x56D6A247)] - public partial class ChannelAdminLogEventActionToggleGroupCallSetting : ChannelAdminLogEventAction + public 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(0x5CDADA77)] - public partial class ChannelAdminLogEventActionParticipantJoinByInvite : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionParticipantJoinByInvite : ChannelAdminLogEventAction { /// The invite link used to join the supergroup/channel public ExportedChatInvite invite; } /// A chat invite was deleted See [TLDef(0x5A50FCA4)] - public partial class ChannelAdminLogEventActionExportedInviteDelete : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionExportedInviteDelete : ChannelAdminLogEventAction { /// The deleted chat invite public ExportedChatInvite invite; } /// A specific invite link was revoked See [TLDef(0x410A134E)] - public partial class ChannelAdminLogEventActionExportedInviteRevoke : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionExportedInviteRevoke : ChannelAdminLogEventAction { /// The invite link that was revoked public ExportedChatInvite invite; } /// A chat invite was edited See [TLDef(0xE90EBB59)] - public partial class ChannelAdminLogEventActionExportedInviteEdit : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionExportedInviteEdit : ChannelAdminLogEventAction { /// Previous chat invite information public ExportedChatInvite prev_invite; @@ -9182,14 +9182,14 @@ namespace TL } /// channelAdminLogEvent.user_id has set the volume of participant.peer to participant.volume See [TLDef(0x3E7F6847)] - public partial class ChannelAdminLogEventActionParticipantVolume : ChannelAdminLogEventAction + public 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 partial class ChannelAdminLogEventActionChangeHistoryTTL : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionChangeHistoryTTL : ChannelAdminLogEventAction { /// Previous value public int prev_value; @@ -9198,7 +9198,7 @@ namespace TL } /// See [TLDef(0xAFB6144A)] - public partial class ChannelAdminLogEventActionParticipantJoinByRequest : ChannelAdminLogEventAction + public class ChannelAdminLogEventActionParticipantJoinByRequest : ChannelAdminLogEventAction { public ExportedChatInvite invite; public long approved_by; @@ -9206,7 +9206,7 @@ namespace TL /// Admin log event See [TLDef(0x1FAD68CD)] - public partial class ChannelAdminLogEvent : IObject + public class ChannelAdminLogEvent : IObject { /// Event ID public long id; @@ -9220,7 +9220,7 @@ namespace TL /// Admin log events See [TLDef(0xED8AF74D)] - public partial class Channels_AdminLogResults : IObject, IPeerResolver + public class Channels_AdminLogResults : IObject, IPeerResolver { /// Admin log events public ChannelAdminLogEvent[] events; @@ -9234,7 +9234,7 @@ namespace TL /// Filter only certain admin log events See [TLDef(0xEA107AE4)] - public partial class ChannelAdminLogEventsFilter : IObject + public class ChannelAdminLogEventsFilter : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -9278,7 +9278,7 @@ namespace TL /// Popular contact See [TLDef(0x5CE14175)] - public partial class PopularContact : IObject + public class PopularContact : IObject { /// Contact identifier public long client_id; @@ -9289,7 +9289,7 @@ namespace TL /// Favorited stickers See /// a null value means messages.favedStickersNotModified [TLDef(0x2CB51097)] - public partial class Messages_FavedStickers : IObject + public class Messages_FavedStickers : IObject { /// Hash for pagination, for more info click here public long hash; @@ -9300,38 +9300,38 @@ namespace TL } /// Recent t.me urls Derived classes: , , , , See - public abstract partial class RecentMeUrl : IObject + public abstract class RecentMeUrl : IObject { /// URL public string url; } /// Unknown t.me url See [TLDef(0x46E1D13D)] - public partial class RecentMeUrlUnknown : RecentMeUrl { } + public class RecentMeUrlUnknown : RecentMeUrl { } /// Recent t.me link to a user See [TLDef(0xB92C09E2, inheritBefore = true)] - public partial class RecentMeUrlUser : RecentMeUrl + public class RecentMeUrlUser : RecentMeUrl { /// User ID public long user_id; } /// Recent t.me link to a chat See [TLDef(0xB2DA71D2, inheritBefore = true)] - public partial class RecentMeUrlChat : RecentMeUrl + public class RecentMeUrlChat : RecentMeUrl { /// Chat ID public long chat_id; } /// Recent t.me invite link to a chat See [TLDef(0xEB49081D, inheritBefore = true)] - public partial class RecentMeUrlChatInvite : RecentMeUrl + public class RecentMeUrlChatInvite : RecentMeUrl { /// Chat invitation public ChatInviteBase chat_invite; } /// Recent t.me stickerset installation URL See [TLDef(0xBC0A57DC, inheritBefore = true)] - public partial class RecentMeUrlStickerSet : RecentMeUrl + public class RecentMeUrlStickerSet : RecentMeUrl { /// Stickerset public StickerSetCoveredBase set; @@ -9339,7 +9339,7 @@ namespace TL /// Recent t.me URLs See [TLDef(0x0E0310D7)] - public partial class Help_RecentMeUrls : IObject, IPeerResolver + public class Help_RecentMeUrls : IObject, IPeerResolver { /// URLs public RecentMeUrl[] urls; @@ -9353,7 +9353,7 @@ namespace TL /// A single media in an album or grouped media sent with messages.sendMultiMedia. See [TLDef(0x1CC6E91F)] - public partial class InputSingleMedia : IObject + public class InputSingleMedia : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -9375,7 +9375,7 @@ namespace TL /// Represents a bot logged in using the Telegram login widget See [TLDef(0xA6F8F452)] - public partial class WebAuthorization : IObject + public class WebAuthorization : IObject { /// Authorization hash public long hash; @@ -9399,7 +9399,7 @@ namespace TL /// Web authorizations See [TLDef(0xED56C9FC)] - public partial class Account_WebAuthorizations : IObject + public class Account_WebAuthorizations : IObject { /// Web authorization list public WebAuthorization[] authorizations; @@ -9408,27 +9408,27 @@ namespace TL } /// A message Derived classes: , , , See - public abstract partial class InputMessage : IObject { } + public abstract class InputMessage : IObject { } /// Message by ID See [TLDef(0xA676A322)] - public partial class InputMessageID : InputMessage + public class InputMessageID : InputMessage { /// Message ID public int id; } /// Message to which the specified message replies to See [TLDef(0xBAD88395)] - public partial class InputMessageReplyTo : InputMessage + public class InputMessageReplyTo : InputMessage { /// ID of the message that replies to the message we need public int id; } /// Pinned message See [TLDef(0x86872538)] - public partial class InputMessagePinned : InputMessage { } + public class InputMessagePinned : InputMessage { } /// Used by bots for fetching information about the message that originated a callback query See [TLDef(0xACFA1A7E)] - public partial class InputMessageCallbackQuery : InputMessage + public class InputMessageCallbackQuery : InputMessage { /// Message ID public int id; @@ -9437,34 +9437,34 @@ namespace TL } /// Peer, or all peers in a certain folder Derived classes: , See - public abstract partial class InputDialogPeerBase : IObject { } + public abstract class InputDialogPeerBase : IObject { } /// A peer See [TLDef(0xFCAAFEB7)] - public partial class InputDialogPeer : InputDialogPeerBase + public class InputDialogPeer : InputDialogPeerBase { /// Peer public InputPeer peer; } /// All peers in a peer folder See [TLDef(0x64600527)] - public partial class InputDialogPeerFolder : InputDialogPeerBase + public class InputDialogPeerFolder : InputDialogPeerBase { /// Peer folder ID, for more info click here public int folder_id; } /// Peer, or all peers in a folder Derived classes: , See - public abstract partial class DialogPeerBase : IObject { } + public abstract class DialogPeerBase : IObject { } /// Peer See [TLDef(0xE56DBF05)] - public partial class DialogPeer : DialogPeerBase + public class DialogPeer : DialogPeerBase { /// Peer public Peer peer; } /// Peer folder See [TLDef(0x514519E2)] - public partial class DialogPeerFolder : DialogPeerBase + public class DialogPeerFolder : DialogPeerBase { /// Peer folder ID, for more info click here public int folder_id; @@ -9473,7 +9473,7 @@ namespace TL /// Found stickersets See /// a null value means messages.foundStickerSetsNotModified [TLDef(0x8AF09DD2)] - public partial class Messages_FoundStickerSets : IObject + public class Messages_FoundStickerSets : IObject { /// Hash for pagination, for more info click here public long hash; @@ -9483,7 +9483,7 @@ namespace TL /// SHA256 Hash of an uploaded file, to be checked for validity after download See [TLDef(0x6242C773)] - public partial class FileHash : IObject + public class FileHash : IObject { /// Offset from where to start computing SHA-256 hash public int offset; @@ -9495,7 +9495,7 @@ namespace TL /// Info about an MTProxy used to connect. See [TLDef(0x75588B3F)] - public partial class InputClientProxy : IObject + public class InputClientProxy : IObject { /// Proxy address public string address; @@ -9504,17 +9504,17 @@ namespace TL } /// Update of Telegram's terms of service Derived classes: , See - public abstract partial class Help_TermsOfServiceUpdateBase : IObject { } + public abstract class Help_TermsOfServiceUpdateBase : IObject { } /// No changes were made to telegram's terms of service See [TLDef(0xE3309F7F)] - public partial class Help_TermsOfServiceUpdateEmpty : Help_TermsOfServiceUpdateBase + public 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 partial class Help_TermsOfServiceUpdate : Help_TermsOfServiceUpdateBase + public class Help_TermsOfServiceUpdate : Help_TermsOfServiceUpdateBase { /// New TOS updates will have to be queried using help.getTermsOfServiceUpdate in expires seconds public DateTime expires; @@ -9523,14 +9523,14 @@ namespace TL } /// Secure passport file, for more info see the passport docs ยป Derived classes: , See - public abstract partial class InputSecureFileBase : IObject + public abstract class InputSecureFileBase : IObject { /// Secure file ID public abstract long ID { get; } } /// Uploaded secure file, for more info see the passport docs ยป See [TLDef(0x3334B0F0)] - public partial class InputSecureFileUploaded : InputSecureFileBase + public class InputSecureFileUploaded : InputSecureFileBase { /// Secure file ID public long id; @@ -9548,7 +9548,7 @@ namespace TL } /// Preuploaded passport file, for more info see the passport docs ยป See [TLDef(0x5367E5BE)] - public partial class InputSecureFile : InputSecureFileBase + public class InputSecureFile : InputSecureFileBase { /// Secure file ID public long id; @@ -9582,7 +9582,7 @@ namespace TL /// Secure passport data, for more info see the passport docs ยป See [TLDef(0x8AEABEC3)] - public partial class SecureData : IObject + public class SecureData : IObject { /// Data public byte[] data; @@ -9593,17 +9593,17 @@ namespace TL } /// Plaintext verified passport data. Derived classes: , See - public abstract partial class SecurePlainData : IObject { } + public abstract class SecurePlainData : IObject { } /// Phone number to use in telegram passport: it must be verified, first ยป. See [TLDef(0x7D6099DD)] - public partial class SecurePlainPhone : SecurePlainData + public class SecurePlainPhone : SecurePlainData { /// Phone number public string phone; } /// Email address to use in telegram passport: it must be verified, first ยป. See [TLDef(0x21EC5A5F)] - public partial class SecurePlainEmail : SecurePlainData + public class SecurePlainEmail : SecurePlainData { /// Email address public string email; @@ -9642,7 +9642,7 @@ namespace TL /// Secure value See [TLDef(0x187FA0CA)] - public partial class SecureValue : IObject + public class SecureValue : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -9686,7 +9686,7 @@ namespace TL /// Secure value, for more info see the passport docs ยป See [TLDef(0xDB21D0A7)] - public partial class InputSecureValue : IObject + public class InputSecureValue : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -9728,7 +9728,7 @@ namespace TL /// Secure value hash See [TLDef(0xED1ECDB0)] - public partial class SecureValueHash : IObject + public class SecureValueHash : IObject { /// Secure value type public SecureValueType type; @@ -9737,7 +9737,7 @@ namespace TL } /// Secure value error Derived classes: , , , , , , , , See - public abstract partial class SecureValueErrorBase : IObject + public abstract class SecureValueErrorBase : IObject { /// The section of the user's Telegram Passport which has the error, one of , , , , , public abstract SecureValueType Type { get; } @@ -9746,7 +9746,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 partial class SecureValueErrorData : SecureValueErrorBase + public class SecureValueErrorData : SecureValueErrorBase { /// The section of the user's Telegram Passport which has the error, one of , , , , , public SecureValueType type; @@ -9764,7 +9764,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 partial class SecureValueErrorFrontSide : SecureValueErrorBase + public class SecureValueErrorFrontSide : SecureValueErrorBase { /// One of , , , public SecureValueType type; @@ -9780,7 +9780,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 partial class SecureValueErrorReverseSide : SecureValueErrorBase + public class SecureValueErrorReverseSide : SecureValueErrorBase { /// One of , public SecureValueType type; @@ -9796,7 +9796,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 partial class SecureValueErrorSelfie : SecureValueErrorBase + public class SecureValueErrorSelfie : SecureValueErrorBase { /// One of , , , public SecureValueType type; @@ -9812,7 +9812,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 partial class SecureValueErrorFile : SecureValueErrorBase + public class SecureValueErrorFile : SecureValueErrorBase { /// One of , , , , public SecureValueType type; @@ -9828,7 +9828,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 partial class SecureValueErrorFiles : SecureValueErrorBase + public class SecureValueErrorFiles : SecureValueErrorBase { /// One of , , , , public SecureValueType type; @@ -9844,7 +9844,7 @@ namespace TL } /// Secure value error See [TLDef(0x869D758F)] - public partial class SecureValueError : SecureValueErrorBase + public class SecureValueError : SecureValueErrorBase { /// Type of element which has the issue public SecureValueType type; @@ -9860,18 +9860,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 partial class SecureValueErrorTranslationFile : SecureValueErrorFile + public 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 partial class SecureValueErrorTranslationFiles : SecureValueErrorFiles + public class SecureValueErrorTranslationFiles : SecureValueErrorFiles { } /// Encrypted credentials required to decrypt telegram passport data. See [TLDef(0x33F0EA47)] - public partial class SecureCredentialsEncrypted : IObject + public 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; @@ -9883,7 +9883,7 @@ namespace TL /// Telegram Passport authorization form See [TLDef(0xAD2E1CD8)] - public partial class Account_AuthorizationForm : IObject + public class Account_AuthorizationForm : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -9907,7 +9907,7 @@ namespace TL /// The sent email code See [TLDef(0x811F854F)] - public partial class Account_SentEmailCode : IObject + public class Account_SentEmailCode : IObject { /// The email (to which the code was sent) must match this pattern public string email_pattern; @@ -9918,7 +9918,7 @@ namespace TL /// Deep linking info See /// a null value means help.deepLinkInfoEmpty [TLDef(0x6A4EE832)] - public partial class Help_DeepLinkInfo : IObject + public class Help_DeepLinkInfo : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -9937,10 +9937,10 @@ namespace TL } /// Saved contact Derived classes: See - public abstract partial class SavedContact : IObject { } + public abstract class SavedContact : IObject { } /// Saved contact See [TLDef(0x1142BD56)] - public partial class SavedPhoneContact : SavedContact + public class SavedPhoneContact : SavedContact { /// Phone number public string phone; @@ -9954,7 +9954,7 @@ namespace TL /// Takout info See [TLDef(0x4DBA4501)] - public partial class Account_Takeout : IObject + public class Account_Takeout : IObject { /// Takeout ID public long id; @@ -9962,10 +9962,10 @@ namespace TL /// Key derivation function to use when generating the password hash for SRP two-factor authorization Derived classes: See /// a null value means passwordKdfAlgoUnknown - public abstract partial class PasswordKdfAlgo : IObject { } + public abstract class PasswordKdfAlgo : IObject { } /// This key derivation algorithm defines that SRP 2FA login must be used See [TLDef(0x3A912D4A)] - public partial class PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : PasswordKdfAlgo + public class PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : PasswordKdfAlgo { /// One of two salts used by the derivation function (see SRP 2FA login) public byte[] salt1; @@ -9979,21 +9979,21 @@ namespace TL /// KDF algorithm to use for computing telegram passport hash Derived classes: , See /// a null value means securePasswordKdfAlgoUnknown - public abstract partial class SecurePasswordKdfAlgo : IObject + public abstract class SecurePasswordKdfAlgo : IObject { /// Salt public byte[] salt; } /// PBKDF2 with SHA512 and 100000 iterations KDF algo See [TLDef(0xBBF2DDA0)] - public partial class SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : SecurePasswordKdfAlgo { } + public class SecurePasswordKdfAlgoPBKDF2HMACSHA512iter100000 : SecurePasswordKdfAlgo { } /// SHA512 KDF algo See [TLDef(0x86471D92)] - public partial class SecurePasswordKdfAlgoSHA512 : SecurePasswordKdfAlgo { } + public class SecurePasswordKdfAlgoSHA512 : SecurePasswordKdfAlgo { } /// Secure settings See [TLDef(0x1527BCAC)] - public partial class SecureSecretSettings : IObject + public class SecureSecretSettings : IObject { /// Secure KDF algo public SecurePasswordKdfAlgo secure_algo; @@ -10006,7 +10006,7 @@ namespace TL /// Constructor for checking the validity of a 2FA SRP password (see SRP) See /// a null value means inputCheckPasswordEmpty [TLDef(0xD27FF082)] - public partial class InputCheckPasswordSRP : IObject + public class InputCheckPasswordSRP : IObject { /// SRP ID public long srp_id; @@ -10017,10 +10017,10 @@ namespace TL } /// Required secure file type Derived classes: , See - public abstract partial class SecureRequiredTypeBase : IObject { } + public abstract class SecureRequiredTypeBase : IObject { } /// Required type See [TLDef(0x829D99DA)] - public partial class SecureRequiredType : SecureRequiredTypeBase + public class SecureRequiredType : SecureRequiredTypeBase { /// Flags, see TL conditional fields public Flags flags; @@ -10039,7 +10039,7 @@ namespace TL } /// One of See [TLDef(0x027477B4)] - public partial class SecureRequiredTypeOneOf : SecureRequiredTypeBase + public class SecureRequiredTypeOneOf : SecureRequiredTypeBase { /// Secure required value types public SecureRequiredTypeBase[] types; @@ -10048,7 +10048,7 @@ namespace TL /// Telegram passport configuration See /// a null value means help.passportConfigNotModified [TLDef(0xA098D6AF)] - public partial class Help_PassportConfig : IObject + public class Help_PassportConfig : IObject { /// Hash for pagination, for more info click here public int hash; @@ -10058,7 +10058,7 @@ namespace TL /// Event that occured in the application. See [TLDef(0x1D1B1245)] - public partial class InputAppEvent : IObject + public class InputAppEvent : IObject { /// Client's exact timestamp for the event public double time; @@ -10071,7 +10071,7 @@ namespace TL } /// JSON key: value pair Derived classes: See - public abstract partial class JSONObjectValue : IObject { } + public abstract class JSONObjectValue : IObject { } /// JSON key: value pair See [TLDef(0xC0DE1BD9)] public partial class JsonObjectValue : JSONObjectValue @@ -10083,7 +10083,7 @@ namespace TL } /// JSON value Derived classes: , , , , , See - public abstract partial class JSONValue : IObject { } + public abstract class JSONValue : IObject { } /// null JSON value See [TLDef(0x3F6D7B68)] public partial class JsonNull : JSONValue { } @@ -10125,7 +10125,7 @@ namespace TL /// Table cell See [TLDef(0x34566B6A)] - public partial class PageTableCell : IObject + public class PageTableCell : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10159,7 +10159,7 @@ namespace TL /// Table row See [TLDef(0xE0C0C5E5)] - public partial class PageTableRow : IObject + public class PageTableRow : IObject { /// Table cells public PageTableCell[] cells; @@ -10167,7 +10167,7 @@ namespace TL /// Page caption See [TLDef(0x6F747657)] - public partial class PageCaption : IObject + public class PageCaption : IObject { /// Caption public RichText text; @@ -10176,38 +10176,38 @@ namespace TL } /// Item in block list Derived classes: , See - public abstract partial class PageListItem : IObject { } + public abstract class PageListItem : IObject { } /// List item See [TLDef(0xB92FB6CD)] - public partial class PageListItemText : PageListItem + public class PageListItemText : PageListItem { /// Text public RichText text; } /// List item See [TLDef(0x25E073FC)] - public partial class PageListItemBlocks : PageListItem + public class PageListItemBlocks : PageListItem { /// Blocks public PageBlock[] blocks; } /// Represents an instant view ordered list Derived classes: , See - public abstract partial class PageListOrderedItem : IObject + public abstract class PageListOrderedItem : IObject { /// Number of element within ordered list public string num; } /// Ordered list of text items See [TLDef(0x5E068047, inheritBefore = true)] - public partial class PageListOrderedItemText : PageListOrderedItem + public class PageListOrderedItemText : PageListOrderedItem { /// Text public RichText text; } /// Ordered list of IV blocks See [TLDef(0x98DD8936, inheritBefore = true)] - public partial class PageListOrderedItemBlocks : PageListOrderedItem + public class PageListOrderedItemBlocks : PageListOrderedItem { /// Item contents public PageBlock[] blocks; @@ -10215,7 +10215,7 @@ namespace TL /// Related article See [TLDef(0xB390DC08)] - public partial class PageRelatedArticle : IObject + public class PageRelatedArticle : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10251,7 +10251,7 @@ namespace TL /// Instant view page See [TLDef(0x98657F0D)] - public partial class Page : IObject + public class Page : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10281,7 +10281,7 @@ namespace TL /// Localized name for telegram support See [TLDef(0x8C05F1C9)] - public partial class Help_SupportName : IObject + public class Help_SupportName : IObject { /// Localized name public string name; @@ -10290,7 +10290,7 @@ namespace TL /// Internal use See /// a null value means help.userInfoEmpty [TLDef(0x01EB3758)] - public partial class Help_UserInfo : IObject + public class Help_UserInfo : IObject { /// Info public string message; @@ -10304,7 +10304,7 @@ namespace TL /// A possible answer of a poll See [TLDef(0x6CA9C2E9)] - public partial class PollAnswer : IObject + public class PollAnswer : IObject { /// Textual representation of the answer public string text; @@ -10314,7 +10314,7 @@ namespace TL /// Poll See [TLDef(0x86E18161)] - public partial class Poll : IObject + public class Poll : IObject { /// ID of the poll public long id; @@ -10348,7 +10348,7 @@ namespace TL /// A poll answer, and how users voted on it See [TLDef(0x3B6DDAD2)] - public partial class PollAnswerVoters : IObject + public class PollAnswerVoters : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10368,7 +10368,7 @@ namespace TL /// Results of poll See [TLDef(0xDCB82EA3)] - public partial class PollResults : IObject + public class PollResults : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10400,7 +10400,7 @@ namespace TL /// Number of online users in a chat See [TLDef(0xF041E250)] - public partial class ChatOnlines : IObject + public class ChatOnlines : IObject { /// Number of online users public int onlines; @@ -10408,7 +10408,7 @@ namespace TL /// URL with chat statistics See [TLDef(0x47A971E0)] - public partial class StatsURL : IObject + public class StatsURL : IObject { /// Chat statistics public string url; @@ -10416,7 +10416,7 @@ namespace TL /// Represents the rights of an admin in a channel/supergroup. See [TLDef(0x5FB224D5)] - public partial class ChatAdminRights : IObject + public class ChatAdminRights : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10450,7 +10450,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 partial class ChatBannedRights : IObject + public class ChatBannedRights : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10487,10 +10487,10 @@ namespace TL } /// Wallpaper Derived classes: , , See - public abstract partial class InputWallPaperBase : IObject { } + public abstract class InputWallPaperBase : IObject { } /// Wallpaper See [TLDef(0xE630B979)] - public partial class InputWallPaper : InputWallPaperBase + public class InputWallPaper : InputWallPaperBase { /// Wallpaper ID public long id; @@ -10499,14 +10499,14 @@ namespace TL } /// Wallpaper by slug (a unique ID) See [TLDef(0x72091C80)] - public partial class InputWallPaperSlug : InputWallPaperBase + public 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 partial class InputWallPaperNoFile : InputWallPaperBase + public class InputWallPaperNoFile : InputWallPaperBase { /// Wallpaper ID public long id; @@ -10515,7 +10515,7 @@ namespace TL /// Installed wallpapers See /// a null value means account.wallPapersNotModified [TLDef(0xCDC3858C)] - public partial class Account_WallPapers : IObject + public class Account_WallPapers : IObject { /// Hash for pagination, for more info click here public long hash; @@ -10525,7 +10525,7 @@ namespace TL /// Settings used by telegram servers for sending the confirm code. See [TLDef(0xDEBEBE83)] - public partial class CodeSettings : IObject + public class CodeSettings : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10543,7 +10543,7 @@ namespace TL /// Wallpaper settings See [TLDef(0x1DC1BCA4)] - public partial class WallPaperSettings : IObject + public class WallPaperSettings : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10581,7 +10581,7 @@ namespace TL /// Autodownload settings See [TLDef(0xE04232F3)] - public partial class AutoDownloadSettings : IObject + public class AutoDownloadSettings : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10609,7 +10609,7 @@ namespace TL /// Media autodownload settings See [TLDef(0x63CACF26)] - public partial class Account_AutoDownloadSettings : IObject + public class Account_AutoDownloadSettings : IObject { /// Low data usage preset public AutoDownloadSettings low; @@ -10621,7 +10621,7 @@ namespace TL /// Emoji keyword See [TLDef(0xD5B3B9F9)] - public partial class EmojiKeyword : IObject + public class EmojiKeyword : IObject { /// Keyword public string keyword; @@ -10630,11 +10630,11 @@ namespace TL } /// Deleted emoji keyword See [TLDef(0x236DF622)] - public partial class EmojiKeywordDeleted : EmojiKeyword { } + public class EmojiKeywordDeleted : EmojiKeyword { } /// Changes to emoji keywords See [TLDef(0x5CC761BD)] - public partial class EmojiKeywordsDifference : IObject + public class EmojiKeywordsDifference : IObject { /// Language code for keywords public string lang_code; @@ -10648,7 +10648,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 partial class EmojiURL : IObject + public 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; @@ -10656,7 +10656,7 @@ namespace TL /// Emoji language See [TLDef(0xB3FB5361)] - public partial class EmojiLanguage : IObject + public class EmojiLanguage : IObject { /// Language code public string lang_code; @@ -10664,7 +10664,7 @@ namespace TL /// Folder See [TLDef(0xFF544E65)] - public partial class Folder : IObject + public class Folder : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10690,7 +10690,7 @@ namespace TL /// Peer in a folder See [TLDef(0xFBD2C296)] - public partial class InputFolderPeer : IObject + public class InputFolderPeer : IObject { /// Peer public InputPeer peer; @@ -10700,7 +10700,7 @@ namespace TL /// Peer in a folder See [TLDef(0xE9BAA668)] - public partial class FolderPeer : IObject + public class FolderPeer : IObject { /// Folder peer info public Peer peer; @@ -10710,7 +10710,7 @@ namespace TL /// Indicates how many results would be found by a messages.search call with the same parameters See [TLDef(0xE844EBFF)] - public partial class Messages_SearchCounter : IObject + public class Messages_SearchCounter : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10727,10 +10727,10 @@ namespace TL } /// URL authorization result Derived classes: , , See - public abstract partial class UrlAuthResult : IObject { } + public abstract class UrlAuthResult : IObject { } /// Details about the authorization request, for more info click here ยป See [TLDef(0x92D33A0E)] - public partial class UrlAuthResultRequest : UrlAuthResult + public class UrlAuthResultRequest : UrlAuthResult { /// Flags, see TL conditional fields public Flags flags; @@ -10747,19 +10747,19 @@ namespace TL } /// Details about an accepted authorization request, for more info click here ยป See [TLDef(0x8F8C0E4E)] - public partial class UrlAuthResultAccepted : UrlAuthResult + public class UrlAuthResultAccepted : UrlAuthResult { /// The URL name of the website on which the user has logged in. public string url; } /// Details about an accepted authorization request, for more info click here ยป See [TLDef(0xA9D6DB1F)] - public partial class UrlAuthResultDefault : UrlAuthResult { } + public class UrlAuthResultDefault : UrlAuthResult { } /// Geographical location of supergroup (geogroups) See /// a null value means channelLocationEmpty [TLDef(0x209B82DB)] - public partial class ChannelLocation : IObject + public class ChannelLocation : IObject { /// Geographical location of supergrup public GeoPoint geo_point; @@ -10768,14 +10768,14 @@ namespace TL } /// Geolocated peer Derived classes: , See - public abstract partial class PeerLocatedBase : IObject + public abstract class PeerLocatedBase : IObject { /// Validity period of current data public abstract DateTime Expires { get; } } /// Peer geolocated nearby See [TLDef(0xCA461B5D)] - public partial class PeerLocated : PeerLocatedBase + public class PeerLocated : PeerLocatedBase { /// Peer public Peer peer; @@ -10789,7 +10789,7 @@ namespace TL } /// Current peer See [TLDef(0xF8EC284B)] - public partial class PeerSelfLocated : PeerLocatedBase + public class PeerSelfLocated : PeerLocatedBase { /// Expiry of geolocation info for current peer public DateTime expires; @@ -10800,7 +10800,7 @@ namespace TL /// Restriction reason. See [TLDef(0xD072ACB4)] - public partial class RestrictionReason : IObject + public 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; @@ -10811,10 +10811,10 @@ namespace TL } /// Cloud theme Derived classes: , See - public abstract partial class InputThemeBase : IObject { } + public abstract class InputThemeBase : IObject { } /// Theme See [TLDef(0x3C5693E9)] - public partial class InputTheme : InputThemeBase + public class InputTheme : InputThemeBase { /// ID public long id; @@ -10823,7 +10823,7 @@ namespace TL } /// Theme by theme ID See [TLDef(0xF5890DF1)] - public partial class InputThemeSlug : InputThemeBase + public class InputThemeSlug : InputThemeBase { /// Unique theme ID public string slug; @@ -10831,7 +10831,7 @@ namespace TL /// Theme See [TLDef(0xA00E67D6)] - public partial class Theme : IObject + public class Theme : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10873,7 +10873,7 @@ namespace TL /// Installed themes See /// a null value means account.themesNotModified [TLDef(0x9A3D8C6D)] - public partial class Account_Themes : IObject + public class Account_Themes : IObject { /// Hash for pagination, for more info click here public long hash; @@ -10882,10 +10882,10 @@ namespace TL } /// Login token (for QR code login) Derived classes: , , See - public abstract partial class Auth_LoginTokenBase : IObject { } + public abstract class Auth_LoginTokenBase : IObject { } /// Login token (for QR code login) See [TLDef(0x629F1980)] - public partial class Auth_LoginToken : Auth_LoginTokenBase + public class Auth_LoginToken : Auth_LoginTokenBase { /// Expiry date of QR code public DateTime expires; @@ -10894,7 +10894,7 @@ namespace TL } /// Repeat the query to the specified DC See [TLDef(0x068E9916)] - public partial class Auth_LoginTokenMigrateTo : Auth_LoginTokenBase + public class Auth_LoginTokenMigrateTo : Auth_LoginTokenBase { /// DC ID public int dc_id; @@ -10903,7 +10903,7 @@ namespace TL } /// Login via token (QR code) succeded! See [TLDef(0x390D5C5E)] - public partial class Auth_LoginTokenSuccess : Auth_LoginTokenBase + public class Auth_LoginTokenSuccess : Auth_LoginTokenBase { /// Authorization info public Auth_AuthorizationBase authorization; @@ -10911,7 +10911,7 @@ namespace TL /// Sensitive content settings See [TLDef(0x57E28221)] - public partial class Account_ContentSettings : IObject + public class Account_ContentSettings : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10927,7 +10927,7 @@ namespace TL /// Inactive chat list See [TLDef(0xA927FEC5)] - public partial class Messages_InactiveChats : IObject, IPeerResolver + public class Messages_InactiveChats : IObject, IPeerResolver { /// When was the chat last active public int[] dates; @@ -10956,7 +10956,7 @@ namespace TL /// Theme settings See [TLDef(0x8FDE504F)] - public partial class InputThemeSettings : IObject + public class InputThemeSettings : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10988,7 +10988,7 @@ namespace TL /// Theme settings See [TLDef(0xFA58B6D4)] - public partial class ThemeSettings : IObject + public class ThemeSettings : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -11017,10 +11017,10 @@ namespace TL } /// Webpage attributes Derived classes: See - public abstract partial class WebPageAttribute : IObject { } + public abstract class WebPageAttribute : IObject { } /// Page theme See [TLDef(0x54B56617)] - public partial class WebPageAttributeTheme : WebPageAttribute + public class WebPageAttributeTheme : WebPageAttribute { /// Flags, see TL conditional fields public Flags flags; @@ -11039,7 +11039,7 @@ namespace TL } /// How a user voted in a poll Derived classes: , , See - public abstract partial class MessageUserVoteBase : IObject + public abstract class MessageUserVoteBase : IObject { /// User ID public abstract long UserId { get; } @@ -11048,7 +11048,7 @@ namespace TL } /// How a user voted in a poll See [TLDef(0x34D247B4)] - public partial class MessageUserVote : MessageUserVoteBase + public class MessageUserVote : MessageUserVoteBase { /// User ID public long user_id; @@ -11064,7 +11064,7 @@ namespace TL } /// How a user voted in a poll (reduced constructor, returned if an option was provided to messages.getPollVotes) See [TLDef(0x3CA5B0EC)] - public partial class MessageUserVoteInputOption : MessageUserVoteBase + public class MessageUserVoteInputOption : MessageUserVoteBase { /// The user that voted for the queried option public long user_id; @@ -11078,7 +11078,7 @@ namespace TL } /// How a user voted in a multiple-choice poll See [TLDef(0x8A65E557)] - public partial class MessageUserVoteMultiple : MessageUserVoteBase + public class MessageUserVoteMultiple : MessageUserVoteBase { /// User ID public long user_id; @@ -11095,7 +11095,7 @@ namespace TL /// How users voted in a poll See [TLDef(0x0823F649)] - public partial class Messages_VotesList : IObject + public class Messages_VotesList : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -11117,7 +11117,7 @@ namespace TL /// Credit card info URL provided by the bank See [TLDef(0xF568028A)] - public partial class BankCardOpenUrl : IObject + public class BankCardOpenUrl : IObject { /// Info URL public string url; @@ -11127,7 +11127,7 @@ namespace TL /// Credit card info, provided by the card's bank(s) See [TLDef(0x3E24E573)] - public partial class Payments_BankCardData : IObject + public class Payments_BankCardData : IObject { /// Credit card title public string title; @@ -11137,7 +11137,7 @@ namespace TL /// Dialog filter AKA folder See [TLDef(0x7438F7E8)] - public partial class DialogFilter : IObject + public class DialogFilter : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -11179,7 +11179,7 @@ namespace TL /// Suggested folders See [TLDef(0x77744D4A)] - public partial class DialogFilterSuggested : IObject + public class DialogFilterSuggested : IObject { /// Folder info public DialogFilter filter; @@ -11189,7 +11189,7 @@ namespace TL /// Channel statistics date range See [TLDef(0xB637EDAF)] - public partial class StatsDateRangeDays : IObject + public class StatsDateRangeDays : IObject { /// Initial date public DateTime min_date; @@ -11199,7 +11199,7 @@ namespace TL /// Statistics value couple; initial and final value for period of time currently in consideration See [TLDef(0xCB43ACDE)] - public partial class StatsAbsValueAndPrev : IObject + public class StatsAbsValueAndPrev : IObject { /// Current value public double current; @@ -11209,7 +11209,7 @@ namespace TL /// Channel statistics percentage.
Compute the percentage simply by doing part * total / 100 See
[TLDef(0xCBCE2FE0)] - public partial class StatsPercentValue : IObject + public class StatsPercentValue : IObject { /// Partial value public double part; @@ -11218,24 +11218,24 @@ namespace TL } /// Channel statistics graph Derived classes: , , See - public abstract partial class StatsGraphBase : IObject { } + public abstract class StatsGraphBase : IObject { } /// This channel statistics graph must be generated asynchronously using stats.loadAsyncGraph to reduce server load See [TLDef(0x4A27EB2D)] - public partial class StatsGraphAsync : StatsGraphBase + public 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 partial class StatsGraphError : StatsGraphBase + public class StatsGraphError : StatsGraphBase { /// The error public string error; } /// Channel statistics graph See [TLDef(0x8EA464B6)] - public partial class StatsGraph : StatsGraphBase + public class StatsGraph : StatsGraphBase { /// Flags, see TL conditional fields public Flags flags; @@ -11253,7 +11253,7 @@ namespace TL /// Message interaction counters See [TLDef(0xAD4FC9BD)] - public partial class MessageInteractionCounters : IObject + public class MessageInteractionCounters : IObject { /// Message ID public int msg_id; @@ -11265,7 +11265,7 @@ namespace TL /// Channel statistics. See [TLDef(0xBDF78394)] - public partial class Stats_BroadcastStats : IObject + public class Stats_BroadcastStats : IObject { /// Period in consideration public StatsDateRangeDays period; @@ -11300,17 +11300,17 @@ namespace TL } /// Info about pinned MTProxy or Public Service Announcement peers. Derived classes: , See - public abstract partial class Help_PromoDataBase : IObject { } + public abstract class Help_PromoDataBase : IObject { } /// No PSA/MTProxy info is available See [TLDef(0x98F6AC75)] - public partial class Help_PromoDataEmpty : Help_PromoDataBase + public 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 partial class Help_PromoData : Help_PromoDataBase + public class Help_PromoData : Help_PromoDataBase { /// Flags, see TL conditional fields public Flags flags; @@ -11342,7 +11342,7 @@ namespace TL /// Animated profile picture in MPEG4 format See [TLDef(0xDE33B094)] - public partial class VideoSize : IObject + public class VideoSize : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -11366,7 +11366,7 @@ namespace TL /// Information about an active user in a supergroup See [TLDef(0x9D04AF9B)] - public partial class StatsGroupTopPoster : IObject + public class StatsGroupTopPoster : IObject { /// User ID public long user_id; @@ -11378,7 +11378,7 @@ namespace TL /// Information about an active admin in a supergroup See [TLDef(0xD7584C87)] - public partial class StatsGroupTopAdmin : IObject + public class StatsGroupTopAdmin : IObject { /// User ID public long user_id; @@ -11392,7 +11392,7 @@ namespace TL /// Information about an active supergroup inviter See [TLDef(0x535F779D)] - public partial class StatsGroupTopInviter : IObject + public class StatsGroupTopInviter : IObject { /// User ID public long user_id; @@ -11402,7 +11402,7 @@ namespace TL /// Supergroup statistics See [TLDef(0xEF7FF916)] - public partial class Stats_MegagroupStats : IObject + public class Stats_MegagroupStats : IObject { /// Period in consideration public StatsDateRangeDays period; @@ -11442,7 +11442,7 @@ namespace TL /// Global privacy settings See [TLDef(0xBEA2F424)] - public partial class GlobalPrivacySettings : IObject + public class GlobalPrivacySettings : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -11458,7 +11458,7 @@ namespace TL /// Country code and phone number pattern of a specific country See [TLDef(0x4203C5EF)] - public partial class Help_CountryCode : IObject + public class Help_CountryCode : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -11480,7 +11480,7 @@ namespace TL /// Name, ISO code, localized name and phone codes/patterns of a specific country See [TLDef(0xC3878E23)] - public partial class Help_Country : IObject + public class Help_Country : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -11505,7 +11505,7 @@ namespace TL /// Name, ISO code, localized name and phone codes/patterns of all available countries See /// a null value means help.countriesListNotModified [TLDef(0x87D0759E)] - public partial class Help_CountriesList : IObject + public class Help_CountriesList : IObject { /// Name, ISO code, localized name and phone codes/patterns of all available countries public Help_Country[] countries; @@ -11515,7 +11515,7 @@ namespace TL /// View, forward counter + info about replies of a specific message See [TLDef(0x455B853D)] - public partial class MessageViews : IObject + public class MessageViews : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -11539,7 +11539,7 @@ namespace TL /// View, forward counter + info about replies See [TLDef(0xB6C4F543)] - public partial class Messages_MessageViews : IObject, IPeerResolver + public class Messages_MessageViews : IObject, IPeerResolver { /// View, forward counter + info about replies public MessageViews[] views; @@ -11553,7 +11553,7 @@ namespace TL /// Information about a message thread See [TLDef(0xA6341782)] - public partial class Messages_DiscussionMessage : IObject, IPeerResolver + public class Messages_DiscussionMessage : IObject, IPeerResolver { /// Flags, see TL conditional fields public Flags flags; @@ -11587,7 +11587,7 @@ namespace TL /// Message replies and thread information See [TLDef(0xA6D57763)] - public partial class MessageReplyHeader : IObject + public class MessageReplyHeader : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -11609,7 +11609,7 @@ namespace TL /// Info about the comment section of a channel post, or a simple message thread See [TLDef(0x83D60FC2)] - public partial class MessageReplies : IObject + public class MessageReplies : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -11641,7 +11641,7 @@ namespace TL /// Information about a blocked peer See [TLDef(0xE8FD8014)] - public partial class PeerBlocked : IObject + public class PeerBlocked : IObject { /// Peer ID public Peer peer_id; @@ -11651,14 +11651,14 @@ namespace TL /// Message statistics See [TLDef(0x8999F295)] - public partial class Stats_MessageStats : IObject + public class Stats_MessageStats : IObject { /// Message view graph public StatsGraphBase views_graph; } /// A group call Derived classes: , See - public abstract partial class GroupCallBase : IObject + public abstract class GroupCallBase : IObject { /// Group call ID public abstract long ID { get; } @@ -11667,7 +11667,7 @@ namespace TL } /// An ended group call See [TLDef(0x7780BCB4)] - public partial class GroupCallDiscarded : GroupCallBase + public class GroupCallDiscarded : GroupCallBase { /// Group call ID public long id; @@ -11683,7 +11683,7 @@ namespace TL } /// Info about a group call or livestream See [TLDef(0xD597650C)] - public partial class GroupCall : GroupCallBase + public class GroupCall : GroupCallBase { /// Flags, see TL conditional fields public Flags flags; @@ -11742,7 +11742,7 @@ namespace TL /// Points to a specific group call See [TLDef(0xD8AA840F)] - public partial class InputGroupCall : IObject + public class InputGroupCall : IObject { /// Group call ID public long id; @@ -11752,7 +11752,7 @@ namespace TL /// Info about a group call participant See [TLDef(0xEBA636FE)] - public partial class GroupCallParticipant : IObject + public class GroupCallParticipant : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -11814,7 +11814,7 @@ namespace TL /// Contains info about a group call, and partial info about its participants. See [TLDef(0x9E727AAD)] - public partial class Phone_GroupCall : IObject, IPeerResolver + public class Phone_GroupCall : IObject, IPeerResolver { /// Info about the group call public GroupCallBase call; @@ -11832,7 +11832,7 @@ namespace TL /// Info about the participants of a group call or livestream See [TLDef(0xF47751B6)] - public partial class Phone_GroupParticipants : IObject, IPeerResolver + public class Phone_GroupParticipants : IObject, IPeerResolver { /// Number of participants public int count; @@ -11867,7 +11867,7 @@ namespace TL /// ID of a specific chat import session, click here for more info ยป. See [TLDef(0x1662AF0B)] - public partial class Messages_HistoryImport : IObject + public class Messages_HistoryImport : IObject { /// History import ID public long id; @@ -11875,7 +11875,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 partial class Messages_HistoryImportParsed : IObject + public class Messages_HistoryImportParsed : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -11895,7 +11895,7 @@ namespace TL /// Messages found and affected by changes See [TLDef(0xEF8D3E6C)] - public partial class Messages_AffectedFoundMessages : IObject + public class Messages_AffectedFoundMessages : IObject { /// Event count after generation public int pts; @@ -11909,7 +11909,7 @@ namespace TL /// When and which user joined the chat using a chat invite See [TLDef(0x8C5ADFD9)] - public partial class ChatInviteImporter : IObject + public class ChatInviteImporter : IObject { public Flags flags; /// The user @@ -11931,7 +11931,7 @@ namespace TL /// Info about chat invites exported by a certain admin. See [TLDef(0xBDC62DCC)] - public partial class Messages_ExportedChatInvites : IObject + public class Messages_ExportedChatInvites : IObject { /// Number of invites exported by the admin public int count; @@ -11942,7 +11942,7 @@ namespace TL } /// Contains info about a chat invite, and eventually a pointer to the newest chat invite. Derived classes: , See - public abstract partial class Messages_ExportedChatInviteBase : IObject + public abstract class Messages_ExportedChatInviteBase : IObject { /// Info about the chat invite public abstract ExportedChatInvite Invite { get; } @@ -11951,7 +11951,7 @@ namespace TL } /// Info about a chat invite See [TLDef(0x1871BE50)] - public partial class Messages_ExportedChatInvite : Messages_ExportedChatInviteBase + public class Messages_ExportedChatInvite : Messages_ExportedChatInviteBase { /// Info about the chat invite public ExportedChatInvite invite; @@ -11965,7 +11965,7 @@ namespace TL } /// The specified chat invite was replaced with another one See [TLDef(0x222600EF)] - public partial class Messages_ExportedChatInviteReplaced : Messages_ExportedChatInviteBase + public class Messages_ExportedChatInviteReplaced : Messages_ExportedChatInviteBase { /// The replaced chat invite public ExportedChatInvite invite; @@ -11982,7 +11982,7 @@ namespace TL /// Info about the users that joined the chat using a specific chat invite See [TLDef(0x81B6B00A)] - public partial class Messages_ChatInviteImporters : IObject + public class Messages_ChatInviteImporters : IObject { /// Number of users that joined public int count; @@ -11994,7 +11994,7 @@ namespace TL /// Info about chat invites generated by admins. See [TLDef(0xF2ECEF23)] - public partial class ChatAdminWithInvites : IObject + public class ChatAdminWithInvites : IObject { /// The admin public long admin_id; @@ -12006,7 +12006,7 @@ namespace TL /// Info about chat invites generated by admins. See [TLDef(0xB69B72D7)] - public partial class Messages_ChatAdminsWithInvites : IObject + public class Messages_ChatAdminsWithInvites : IObject { /// Info about chat invites generated by admins. public ChatAdminWithInvites[] admins; @@ -12016,7 +12016,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 partial class Messages_CheckedHistoryImportPeer : IObject + public class Messages_CheckedHistoryImportPeer : IObject { /// A confirmation text to be shown to the user, upon importing chat history ยป. public string confirm_text; @@ -12024,7 +12024,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 partial class Phone_JoinAsPeers : IObject, IPeerResolver + public class Phone_JoinAsPeers : IObject, IPeerResolver { /// Peers public Peer[] peers; @@ -12038,7 +12038,7 @@ namespace TL /// An invite to a group call or livestream See [TLDef(0x204BD158)] - public partial class Phone_ExportedGroupCallInvite : IObject + public class Phone_ExportedGroupCallInvite : IObject { /// Invite link public string link; @@ -12046,7 +12046,7 @@ namespace TL /// Describes a group of video synchronization source identifiers See [TLDef(0xDCB118B7)] - public partial class GroupCallParticipantVideoSourceGroup : IObject + public class GroupCallParticipantVideoSourceGroup : IObject { /// SDP semantics public string semantics; @@ -12056,7 +12056,7 @@ namespace TL /// Info about a video stream See [TLDef(0x67753AC8)] - public partial class GroupCallParticipantVideo : IObject + public class GroupCallParticipantVideo : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -12078,67 +12078,67 @@ namespace TL /// A suggested short name for a stickerpack See [TLDef(0x85FEA03F)] - public partial class Stickers_SuggestedShortName : IObject + public class Stickers_SuggestedShortName : IObject { /// Suggested short name public string short_name; } /// Represents a scope where the bot commands, specified using bots.setBotCommands will be valid. Derived classes: , , , , , , See - public abstract partial class BotCommandScope : IObject { } + public abstract class BotCommandScope : IObject { } /// The commands will be valid in all dialogs See [TLDef(0x2F6CB2AB)] - public partial class BotCommandScopeDefault : BotCommandScope { } + public class BotCommandScopeDefault : BotCommandScope { } /// The specified bot commands will only be valid in all private chats with users. See [TLDef(0x3C4F04D8)] - public partial class BotCommandScopeUsers : BotCommandScope { } + public class BotCommandScopeUsers : BotCommandScope { } /// The specified bot commands will be valid in all groups and supergroups. See [TLDef(0x6FE1A881)] - public partial class BotCommandScopeChats : BotCommandScope { } + public class BotCommandScopeChats : BotCommandScope { } /// The specified bot commands will be valid only for chat administrators, in all groups and supergroups. See [TLDef(0xB9AA606A)] - public partial class BotCommandScopeChatAdmins : BotCommandScope { } + public class BotCommandScopeChatAdmins : BotCommandScope { } /// The specified bot commands will be valid only in a specific dialog. See [TLDef(0xDB9D897D)] - public partial class BotCommandScopePeer : BotCommandScope + public 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 partial class BotCommandScopePeerAdmins : BotCommandScopePeer { } + public 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 partial class BotCommandScopePeerUser : BotCommandScopePeer + public class BotCommandScopePeerUser : BotCommandScopePeer { /// The user public InputUserBase user_id; } /// Result of an account.resetPassword request. Derived classes: , , See - public abstract partial class Account_ResetPasswordResult : IObject { } + public abstract 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 partial class Account_ResetPasswordFailedWait : Account_ResetPasswordResult + public 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 partial class Account_ResetPasswordRequestedWait : Account_ResetPasswordResult + public 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 partial class Account_ResetPasswordOk : Account_ResetPasswordResult { } + public class Account_ResetPasswordOk : Account_ResetPasswordResult { } /// A sponsored message See [TLDef(0xD151E19A)] - public partial class SponsoredMessage : IObject + public class SponsoredMessage : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -12167,7 +12167,7 @@ namespace TL /// A set of sponsored messages associated to a channel See [TLDef(0x65A4C7D5)] - public partial class Messages_SponsoredMessages : IObject, IPeerResolver + public class Messages_SponsoredMessages : IObject, IPeerResolver { /// Sponsored messages public SponsoredMessage[] messages; @@ -12181,7 +12181,7 @@ namespace TL /// See [TLDef(0xC9B0539F)] - public partial class SearchResultsCalendarPeriod : IObject + public class SearchResultsCalendarPeriod : IObject { public DateTime date; public int min_msg_id; @@ -12191,7 +12191,7 @@ namespace TL /// See [TLDef(0x147EE23C)] - public partial class Messages_SearchResultsCalendar : IObject, IPeerResolver + public class Messages_SearchResultsCalendar : IObject, IPeerResolver { public Flags flags; public int count; @@ -12214,10 +12214,10 @@ namespace TL } /// See - public abstract partial class SearchResultsPosition : IObject { } + public abstract class SearchResultsPosition : IObject { } /// See [TLDef(0x7F648B67)] - public partial class SearchResultPosition : SearchResultsPosition + public class SearchResultPosition : SearchResultsPosition { public int msg_id; public DateTime date; @@ -12226,7 +12226,7 @@ namespace TL /// See [TLDef(0x53B22BAF)] - public partial class Messages_SearchResultsPositions : IObject + public class Messages_SearchResultsPositions : IObject { public int count; public SearchResultsPosition[] positions; @@ -12234,63 +12234,26 @@ namespace TL // ---functions--- - public static class Schema + public static class SchemaExtensions { - [TLDef(0xCB9F372D)] - public partial class InvokeAfterMsg_ : IMethod - { - public long msg_id; - public IMethod query; - } /// Invokes a query after successfull completion of one of the previous queries. See /// Message identifier on which a current query depends /// The query itself public static Task InvokeAfterMsg(this Client client, long msg_id, IMethod query) - => client.CallAsync(new InvokeAfterMsg_ + => client.CallAsync(new InvokeAfterMsg { msg_id = msg_id, query = query, }); - - [TLDef(0x3DC4B4F0)] - public partial class InvokeAfterMsgs_ : IMethod - { - public long[] msg_ids; - public IMethod query; - } /// Invokes a query after a successfull completion of previous queries See /// List of messages on which a current query depends /// The query itself public static Task InvokeAfterMsgs(this Client client, long[] msg_ids, IMethod query) - => client.CallAsync(new InvokeAfterMsgs_ + => client.CallAsync(new InvokeAfterMsgs { msg_ids = msg_ids, query = query, }); - - [TLDef(0xC1CD5EA9)] - public partial class InitConnection_ : IMethod - { - public Flags flags; - public int api_id; - public string device_model; - public string system_version; - public string app_version; - public string system_lang_code; - public string lang_pack; - public string lang_code; - [IfFlag(0)] public InputClientProxy proxy; - [IfFlag(1)] public JSONValue params_; - public IMethod query; - - [Flags] public enum Flags - { - /// Field has a value - has_proxy = 0x1, - /// Field has a value - has_params = 0x2, - } - } /// Initialize connection See Possible codes: 400 (details) /// Application identifier (see. App configuration) /// Device model @@ -12303,9 +12266,9 @@ namespace TL /// Additional initConnection parameters.
For now, only the tz_offset field is supported, for specifying timezone offset in seconds. /// The query itself public static Task InitConnection(this Client client, int api_id, string device_model, string system_version, string app_version, string system_lang_code, string lang_pack, string lang_code, IMethod query, InputClientProxy proxy = null, JSONValue params_ = null) - => client.CallAsync(new InitConnection_ + => client.CallAsync(new InitConnection { - flags = (InitConnection_.Flags)((proxy != null ? 0x1 : 0) | (params_ != null ? 0x2 : 0)), + flags = (InitConnection.Flags)((proxy != null ? 0x1 : 0) | (params_ != null ? 0x2 : 0)), api_id = api_id, device_model = device_model, system_version = system_version, @@ -12317,382 +12280,207 @@ namespace TL params_ = params_, query = query, }); - - [TLDef(0xDA9B0D0D)] - public partial class InvokeWithLayer_ : IMethod - { - public int layer; - public IMethod query; - } /// Invoke the specified query using the specified API layer See Possible codes: 400,403 (details) /// The layer to use /// The query public static Task InvokeWithLayer(this Client client, int layer, IMethod query) - => client.CallAsync(new InvokeWithLayer_ + => client.CallAsync(new InvokeWithLayer { layer = layer, query = query, }); - - [TLDef(0xBF9459B7)] - public partial class InvokeWithoutUpdates_ : IMethod - { - public IMethod query; - } /// Invoke a request without subscribing the used connection for updates (this is enabled by default for file queries). See /// The query public static Task InvokeWithoutUpdates(this Client client, IMethod query) - => client.CallAsync(new InvokeWithoutUpdates_ + => client.CallAsync(new InvokeWithoutUpdates { query = query, }); - - [TLDef(0x365275F2)] - public partial class InvokeWithMessagesRange_ : IMethod - { - public MessageRange range; - public IMethod query; - } /// Invoke with the given message range See /// Message range /// Query public static Task InvokeWithMessagesRange(this Client client, MessageRange range, IMethod query) - => client.CallAsync(new InvokeWithMessagesRange_ + => client.CallAsync(new InvokeWithMessagesRange { range = range, query = query, }); - - [TLDef(0xACA9FD2E)] - public partial class InvokeWithTakeout_ : IMethod - { - public long takeout_id; - public IMethod query; - } /// Invoke a method within a takeout session See /// Takeout session ID /// Query public static Task InvokeWithTakeout(this Client client, long takeout_id, IMethod query) - => client.CallAsync(new InvokeWithTakeout_ + => client.CallAsync(new InvokeWithTakeout { takeout_id = takeout_id, query = query, }); - - [TLDef(0xA677244F)] - public partial class Auth_SendCode_ : IMethod - { - public string phone_number; - public int api_id; - public string api_hash; - public CodeSettings settings; - } /// Send the verification code for login See Possible codes: 303,400,401,406 (details) /// Phone number in international format /// Application identifier (see App configuration) /// Application secret hash (see App configuration) /// Settings for the code type to send public static Task Auth_SendCode(this Client client, string phone_number, int api_id, string api_hash, CodeSettings settings) - => client.CallAsync(new Auth_SendCode_ + => client.CallAsync(new Auth_SendCode { phone_number = phone_number, api_id = api_id, api_hash = api_hash, settings = settings, }); - - [TLDef(0x80EEE427)] - public partial class Auth_SignUp_ : IMethod - { - public string phone_number; - public string phone_code_hash; - public string first_name; - public string last_name; - } /// Registers a validated phone number in the system. See Possible codes: 400 (details) /// Phone number in the international format /// SMS-message ID /// New user first name /// New user last name public static Task Auth_SignUp(this Client client, string phone_number, string phone_code_hash, string first_name, string last_name) - => client.CallAsync(new Auth_SignUp_ + => client.CallAsync(new Auth_SignUp { phone_number = phone_number, phone_code_hash = phone_code_hash, first_name = first_name, last_name = last_name, }); - - [TLDef(0xBCD51581)] - public partial class Auth_SignIn_ : IMethod - { - public string phone_number; - public string phone_code_hash; - public string phone_code; - } /// Signs in a user with a validated phone number. See Possible codes: 400 (details) /// Phone number in the international format /// SMS-message ID, obtained from auth.sendCode /// Valid numerical code from the SMS-message public static Task Auth_SignIn(this Client client, string phone_number, string phone_code_hash, string phone_code) - => client.CallAsync(new Auth_SignIn_ + => client.CallAsync(new Auth_SignIn { phone_number = phone_number, phone_code_hash = phone_code_hash, phone_code = phone_code, }); - - [TLDef(0x5717DA40)] - public partial class Auth_LogOut_ : IMethod { } /// Logs out the user. See [bots: โœ“] public static Task Auth_LogOut(this Client client) - => client.CallAsync(new Auth_LogOut_ + => client.CallAsync(new Auth_LogOut { }); - - [TLDef(0x9FAB0D1A)] - public partial class Auth_ResetAuthorizations_ : IMethod { } /// Terminates all user's authorized sessions except for the current one. See Possible codes: 406 (details) public static Task Auth_ResetAuthorizations(this Client client) - => client.CallAsync(new Auth_ResetAuthorizations_ + => client.CallAsync(new Auth_ResetAuthorizations { }); - - [TLDef(0xE5BFFFCD)] - public partial class Auth_ExportAuthorization_ : IMethod - { - public int dc_id; - } /// Returns data for copying authorization to another data-centre. See [bots: โœ“] Possible codes: 400 (details) /// Number of a target data-centre public static Task Auth_ExportAuthorization(this Client client, int dc_id) - => client.CallAsync(new Auth_ExportAuthorization_ + => client.CallAsync(new Auth_ExportAuthorization { dc_id = dc_id, }); - - [TLDef(0xA57A7DAD)] - public partial class Auth_ImportAuthorization_ : IMethod - { - public long id; - public byte[] bytes; - } /// Logs in a user using a key transmitted from his native data-centre. See [bots: โœ“] Possible codes: 400 (details) /// User ID /// Authorization key public static Task Auth_ImportAuthorization(this Client client, long id, byte[] bytes) - => client.CallAsync(new Auth_ImportAuthorization_ + => client.CallAsync(new Auth_ImportAuthorization { id = id, bytes = bytes, }); - - [TLDef(0xCDD42A05)] - public partial class Auth_BindTempAuthKey_ : IMethod - { - public long perm_auth_key_id; - public long nonce; - public DateTime expires_at; - public byte[] encrypted_message; - } /// Binds a temporary authorization key temp_auth_key_id to the permanent authorization key perm_auth_key_id. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one. See [bots: โœ“] Possible codes: 400 (details) /// Permanent auth_key_id to bind to /// Random long from Binding message contents /// Unix timestamp to invalidate temporary key, see Binding message contents /// See Generating encrypted_message public static Task Auth_BindTempAuthKey(this Client client, long perm_auth_key_id, long nonce, DateTime expires_at, byte[] encrypted_message) - => client.CallAsync(new Auth_BindTempAuthKey_ + => client.CallAsync(new Auth_BindTempAuthKey { perm_auth_key_id = perm_auth_key_id, nonce = nonce, expires_at = expires_at, encrypted_message = encrypted_message, }); - - [TLDef(0x67A3FF2C)] - public partial class Auth_ImportBotAuthorization_ : IMethod - { - public int flags; - public int api_id; - public string api_hash; - public string bot_auth_token; - } /// Login as a bot See [bots: โœ“] Possible codes: 400,401 (details) /// Application identifier (see. App configuration) /// Application identifier hash (see. App configuration) /// Bot token (see bots) public static Task Auth_ImportBotAuthorization(this Client client, int flags, int api_id, string api_hash, string bot_auth_token) - => client.CallAsync(new Auth_ImportBotAuthorization_ + => client.CallAsync(new Auth_ImportBotAuthorization { flags = flags, api_id = api_id, api_hash = api_hash, bot_auth_token = bot_auth_token, }); - - [TLDef(0xD18B4D16)] - public partial class Auth_CheckPassword_ : IMethod - { - public InputCheckPasswordSRP password; - } /// Try logging to an account protected by a 2FA password. See Possible codes: 400 (details) /// The account's password (see SRP) public static Task Auth_CheckPassword(this Client client, InputCheckPasswordSRP password) - => client.CallAsync(new Auth_CheckPassword_ + => client.CallAsync(new Auth_CheckPassword { password = password, }); - - [TLDef(0xD897BC66)] - public partial class Auth_RequestPasswordRecovery_ : IMethod { } /// Request recovery code of a 2FA password, only for accounts with a recovery email configured. See Possible codes: 400 (details) public static Task Auth_RequestPasswordRecovery(this Client client) - => client.CallAsync(new Auth_RequestPasswordRecovery_ + => client.CallAsync(new Auth_RequestPasswordRecovery { }); - - [TLDef(0x37096C70)] - public partial class Auth_RecoverPassword_ : IMethod - { - public Flags flags; - public string code; - [IfFlag(0)] public Account_PasswordInputSettings new_settings; - - [Flags] public enum Flags - { - /// Field has a value - has_new_settings = 0x1, - } - } /// Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery. See Possible codes: 400 (details) /// Code received via email /// New password public static Task Auth_RecoverPassword(this Client client, string code, Account_PasswordInputSettings new_settings = null) - => client.CallAsync(new Auth_RecoverPassword_ + => client.CallAsync(new Auth_RecoverPassword { - flags = (Auth_RecoverPassword_.Flags)(new_settings != null ? 0x1 : 0), + flags = (Auth_RecoverPassword.Flags)(new_settings != null ? 0x1 : 0), code = code, new_settings = new_settings, }); - - [TLDef(0x3EF1A9BF)] - public partial class Auth_ResendCode_ : IMethod - { - public string phone_number; - public string phone_code_hash; - } /// Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info. See Possible codes: 400,406 (details) /// The phone number /// The phone code hash obtained from auth.sendCode public static Task Auth_ResendCode(this Client client, string phone_number, string phone_code_hash) - => client.CallAsync(new Auth_ResendCode_ + => client.CallAsync(new Auth_ResendCode { phone_number = phone_number, phone_code_hash = phone_code_hash, }); - - [TLDef(0x1F040578)] - public partial class Auth_CancelCode_ : IMethod - { - public string phone_number; - public string phone_code_hash; - } /// Cancel the login verification code See Possible codes: 400 (details) /// Phone number /// Phone code hash from auth.sendCode public static Task Auth_CancelCode(this Client client, string phone_number, string phone_code_hash) - => client.CallAsync(new Auth_CancelCode_ + => client.CallAsync(new Auth_CancelCode { phone_number = phone_number, phone_code_hash = phone_code_hash, }); - - [TLDef(0x8E48A188)] - public partial class Auth_DropTempAuthKeys_ : IMethod - { - public long[] except_auth_keys; - } /// Delete all temporary authorization keys except for the ones specified See [bots: โœ“] /// The auth keys that shouldn't be dropped. public static Task Auth_DropTempAuthKeys(this Client client, long[] except_auth_keys) - => client.CallAsync(new Auth_DropTempAuthKeys_ + => client.CallAsync(new Auth_DropTempAuthKeys { except_auth_keys = except_auth_keys, }); - - [TLDef(0xB7E085FE)] - public partial class Auth_ExportLoginToken_ : IMethod - { - public int api_id; - public string api_hash; - public long[] except_ids; - } /// Generate a login token, for login via QR code.
The generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken URL in the QR code. See Possible codes: 400 (details)
/// Application identifier (see. App configuration) /// Application identifier hash (see. App configuration) /// List of already logged-in user IDs, to prevent logging in twice with the same user public static Task Auth_ExportLoginToken(this Client client, int api_id, string api_hash, long[] except_ids) - => client.CallAsync(new Auth_ExportLoginToken_ + => client.CallAsync(new Auth_ExportLoginToken { api_id = api_id, api_hash = api_hash, except_ids = except_ids, }); - - [TLDef(0x95AC5CE4)] - public partial class Auth_ImportLoginToken_ : IMethod - { - public byte[] token; - } /// Login using a redirected login token, generated in case of DC mismatch during QR code login. See Possible codes: 400 (details) /// Login token public static Task Auth_ImportLoginToken(this Client client, byte[] token) - => client.CallAsync(new Auth_ImportLoginToken_ + => client.CallAsync(new Auth_ImportLoginToken { token = token, }); - - [TLDef(0xE894AD4D)] - public partial class Auth_AcceptLoginToken_ : IMethod - { - public byte[] token; - } /// Accept QR code login token, logging in the app that generated it. See Possible codes: 400 (details) /// Login token embedded in QR code, for more info, see login via QR code. public static Task Auth_AcceptLoginToken(this Client client, byte[] token) - => client.CallAsync(new Auth_AcceptLoginToken_ + => client.CallAsync(new Auth_AcceptLoginToken { token = token, }); - - [TLDef(0x0D36BF79)] - public partial class Auth_CheckRecoveryPassword_ : IMethod - { - public string code; - } /// Check if the 2FA recovery code sent using auth.requestPasswordRecovery is valid, before passing it to auth.recoverPassword. See Possible codes: 400 (details) /// Code received via email public static Task Auth_CheckRecoveryPassword(this Client client, string code) - => client.CallAsync(new Auth_CheckRecoveryPassword_ + => client.CallAsync(new Auth_CheckRecoveryPassword { code = code, }); - - [TLDef(0xEC86017A)] - public partial class Account_RegisterDevice_ : IMethod - { - public Flags flags; - public int token_type; - public string token; - public bool app_sandbox; - public byte[] secret; - public long[] other_uids; - - [Flags] public enum Flags - { - no_muted = 0x1, - } - } /// Register device to receive PUSH notifications See Possible codes: 400 (details) /// Avoid receiving (silent and invisible background) notifications. Useful to save battery. /// Device token type.
Possible values:
1 - APNS (device token for apple push)
2 - FCM (firebase token for google firebase)
3 - MPNS (channel URI for microsoft push)
4 - Simple push (endpoint for firefox's simple push API)
5 - Ubuntu phone (token for ubuntu push)
6 - Blackberry (token for blackberry push)
7 - Unused
8 - WNS (windows push)
9 - APNS VoIP (token for apple push VoIP)
10 - Web push (web push, see below)
11 - MPNS VoIP (token for microsoft push VoIP)
12 - Tizen (token for tizen push)

For 10 web push, the token must be a JSON-encoded object containing the keys described in PUSH updates @@ -12701,499 +12489,277 @@ namespace TL /// For FCM and APNS VoIP, optional encryption key used to encrypt push notifications /// List of user identifiers of other users currently using the client public static Task Account_RegisterDevice(this Client client, int token_type, string token, bool app_sandbox, byte[] secret, long[] other_uids, bool no_muted = false) - => client.CallAsync(new Account_RegisterDevice_ + => client.CallAsync(new Account_RegisterDevice { - flags = (Account_RegisterDevice_.Flags)(no_muted ? 0x1 : 0), + flags = (Account_RegisterDevice.Flags)(no_muted ? 0x1 : 0), token_type = token_type, token = token, app_sandbox = app_sandbox, secret = secret, other_uids = other_uids, }); - - [TLDef(0x6A0D3206)] - public partial class Account_UnregisterDevice_ : IMethod - { - public int token_type; - public string token; - public long[] other_uids; - } /// Deletes a device by its token, stops sending PUSH-notifications to it. See Possible codes: 400 (details) /// Device token type.
Possible values:
1 - APNS (device token for apple push)
2 - FCM (firebase token for google firebase)
3 - MPNS (channel URI for microsoft push)
4 - Simple push (endpoint for firefox's simple push API)
5 - Ubuntu phone (token for ubuntu push)
6 - Blackberry (token for blackberry push)
7 - Unused
8 - WNS (windows push)
9 - APNS VoIP (token for apple push VoIP)
10 - Web push (web push, see below)
11 - MPNS VoIP (token for microsoft push VoIP)
12 - Tizen (token for tizen push)

For 10 web push, the token must be a JSON-encoded object containing the keys described in PUSH updates /// Device token /// List of user identifiers of other users currently using the client public static Task Account_UnregisterDevice(this Client client, int token_type, string token, long[] other_uids) - => client.CallAsync(new Account_UnregisterDevice_ + => client.CallAsync(new Account_UnregisterDevice { token_type = token_type, token = token, other_uids = other_uids, }); - - [TLDef(0x84BE5B93)] - public partial class Account_UpdateNotifySettings_ : IMethod - { - public InputNotifyPeerBase peer; - public InputPeerNotifySettings settings; - } /// Edits notification settings from a given user/group, from all users/all groups. See Possible codes: 400 (details) /// Notification source /// Notification settings public static Task Account_UpdateNotifySettings(this Client client, InputNotifyPeerBase peer, InputPeerNotifySettings settings) - => client.CallAsync(new Account_UpdateNotifySettings_ + => client.CallAsync(new Account_UpdateNotifySettings { peer = peer, settings = settings, }); - - [TLDef(0x12B3AD31)] - public partial class Account_GetNotifySettings_ : IMethod - { - public InputNotifyPeerBase peer; - } /// Gets current notification settings for a given user/group, from all users/all groups. See Possible codes: 400 (details) /// Notification source public static Task Account_GetNotifySettings(this Client client, InputNotifyPeerBase peer) - => client.CallAsync(new Account_GetNotifySettings_ + => client.CallAsync(new Account_GetNotifySettings { peer = peer, }); - - [TLDef(0xDB7E1747)] - public partial class Account_ResetNotifySettings_ : IMethod { } /// Resets all notification settings from users and groups. See public static Task Account_ResetNotifySettings(this Client client) - => client.CallAsync(new Account_ResetNotifySettings_ + => client.CallAsync(new Account_ResetNotifySettings { }); - - [TLDef(0x78515775)] - public partial class Account_UpdateProfile_ : IMethod - { - public Flags flags; - [IfFlag(0)] public string first_name; - [IfFlag(1)] public string last_name; - [IfFlag(2)] public string about; - - [Flags] public enum Flags - { - /// Field has a value - has_first_name = 0x1, - /// Field has a value - has_last_name = 0x2, - /// Field has a value - has_about = 0x4, - } - } /// Updates user profile. See Possible codes: 400 (details) /// New user first name /// New user last name /// New bio public static Task Account_UpdateProfile(this Client client, string first_name = null, string last_name = null, string about = null) - => client.CallAsync(new Account_UpdateProfile_ + => client.CallAsync(new Account_UpdateProfile { - flags = (Account_UpdateProfile_.Flags)((first_name != null ? 0x1 : 0) | (last_name != null ? 0x2 : 0) | (about != null ? 0x4 : 0)), + flags = (Account_UpdateProfile.Flags)((first_name != null ? 0x1 : 0) | (last_name != null ? 0x2 : 0) | (about != null ? 0x4 : 0)), first_name = first_name, last_name = last_name, about = about, }); - - [TLDef(0x6628562C)] - public partial class Account_UpdateStatus_ : IMethod - { - public bool offline; - } /// Updates online user status. See /// If is transmitted, user status will change to . public static Task Account_UpdateStatus(this Client client, bool offline) - => client.CallAsync(new Account_UpdateStatus_ + => client.CallAsync(new Account_UpdateStatus { offline = offline, }); - - [TLDef(0x07967D36)] - public partial class Account_GetWallPapers_ : IMethod - { - public long hash; - } /// Returns a list of available wallpapers. See /// Hash for pagination, for more info click here /// a null value means account.wallPapersNotModified public static Task Account_GetWallPapers(this Client client, long hash) - => client.CallAsync(new Account_GetWallPapers_ + => client.CallAsync(new Account_GetWallPapers { hash = hash, }); - - [TLDef(0xC5BA3D86)] - public partial class Account_ReportPeer_ : IMethod - { - public InputPeer peer; - public ReportReason reason; - public string message; - } /// Report a peer for violation of telegram's Terms of Service See Possible codes: 400 (details) /// The peer to report /// The reason why this peer is being reported /// Comment for report moderation public static Task Account_ReportPeer(this Client client, InputPeer peer, ReportReason reason, string message) - => client.CallAsync(new Account_ReportPeer_ + => client.CallAsync(new Account_ReportPeer { peer = peer, reason = reason, message = message, }); - - [TLDef(0x2714D86C)] - public partial class Account_CheckUsername_ : IMethod - { - public string username; - } /// Validates a username and checks availability. See Possible codes: 400 (details) /// username
Accepted characters: A-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters. public static Task Account_CheckUsername(this Client client, string username) - => client.CallAsync(new Account_CheckUsername_ + => client.CallAsync(new Account_CheckUsername { username = username, }); - - [TLDef(0x3E0BDD7C)] - public partial class Account_UpdateUsername_ : IMethod - { - public string username; - } /// Changes username for the current user. See Possible codes: 400,401 (details) /// username or empty string if username is to be removed
Accepted characters: a-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters. public static Task Account_UpdateUsername(this Client client, string username) - => client.CallAsync(new Account_UpdateUsername_ + => client.CallAsync(new Account_UpdateUsername { username = username, }); - - [TLDef(0xDADBC950)] - public partial class Account_GetPrivacy_ : IMethod - { - public InputPrivacyKey key; - } /// Get privacy settings of current account See Possible codes: 400 (details) /// Peer category whose privacy settings should be fetched public static Task Account_GetPrivacy(this Client client, InputPrivacyKey key) - => client.CallAsync(new Account_GetPrivacy_ + => client.CallAsync(new Account_GetPrivacy { key = key, }); - - [TLDef(0xC9F81CE8)] - public partial class Account_SetPrivacy_ : IMethod - { - public InputPrivacyKey key; - public InputPrivacyRule[] rules; - } /// Change privacy settings of current account See Possible codes: 400 (details) /// Peers to which the privacy rules apply /// New privacy rules public static Task Account_SetPrivacy(this Client client, InputPrivacyKey key, InputPrivacyRule[] rules) - => client.CallAsync(new Account_SetPrivacy_ + => client.CallAsync(new Account_SetPrivacy { key = key, rules = rules, }); - - [TLDef(0x418D4E0B)] - public partial class Account_DeleteAccount_ : IMethod - { - public string reason; - } /// Delete the user's account from the telegram servers. Can be used, for example, to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured. See Possible codes: 420 (details) /// Why is the account being deleted, can be empty public static Task Account_DeleteAccount(this Client client, string reason) - => client.CallAsync(new Account_DeleteAccount_ + => client.CallAsync(new Account_DeleteAccount { reason = reason, }); - - [TLDef(0x08FC711D)] - public partial class Account_GetAccountTTL_ : IMethod { } /// Get days to live of account See public static Task Account_GetAccountTTL(this Client client) - => client.CallAsync(new Account_GetAccountTTL_ + => client.CallAsync(new Account_GetAccountTTL { }); - - [TLDef(0x2442485E)] - public partial class Account_SetAccountTTL_ : IMethod - { - public AccountDaysTTL ttl; - } /// Set account self-destruction period See Possible codes: 400 (details) /// Time to live in days public static Task Account_SetAccountTTL(this Client client, AccountDaysTTL ttl) - => client.CallAsync(new Account_SetAccountTTL_ + => client.CallAsync(new Account_SetAccountTTL { ttl = ttl, }); - - [TLDef(0x82574AE5)] - public partial class Account_SendChangePhoneCode_ : IMethod - { - public string phone_number; - public CodeSettings settings; - } /// Verify a new phone number to associate to the current account See Possible codes: 400,406 (details) /// New phone number /// Phone code settings public static Task Account_SendChangePhoneCode(this Client client, string phone_number, CodeSettings settings) - => client.CallAsync(new Account_SendChangePhoneCode_ + => client.CallAsync(new Account_SendChangePhoneCode { phone_number = phone_number, settings = settings, }); - - [TLDef(0x70C32EDB)] - public partial class Account_ChangePhone_ : IMethod - { - public string phone_number; - public string phone_code_hash; - public string phone_code; - } /// Change the phone number of the current account See Possible codes: 400 (details) /// New phone number /// Phone code hash received when calling account.sendChangePhoneCode /// Phone code received when calling account.sendChangePhoneCode public static Task Account_ChangePhone(this Client client, string phone_number, string phone_code_hash, string phone_code) - => client.CallAsync(new Account_ChangePhone_ + => client.CallAsync(new Account_ChangePhone { phone_number = phone_number, phone_code_hash = phone_code_hash, phone_code = phone_code, }); - - [TLDef(0x38DF3532)] - public partial class Account_UpdateDeviceLocked_ : IMethod - { - public int period; - } /// When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications. See /// Inactivity period after which to start hiding message texts in PUSH notifications. public static Task Account_UpdateDeviceLocked(this Client client, int period) - => client.CallAsync(new Account_UpdateDeviceLocked_ + => client.CallAsync(new Account_UpdateDeviceLocked { period = period, }); - - [TLDef(0xE320C158)] - public partial class Account_GetAuthorizations_ : IMethod { } /// Get logged-in sessions See public static Task Account_GetAuthorizations(this Client client) - => client.CallAsync(new Account_GetAuthorizations_ + => client.CallAsync(new Account_GetAuthorizations { }); - - [TLDef(0xDF77F3BC)] - public partial class Account_ResetAuthorization_ : IMethod - { - public long hash; - } /// Log out an active authorized session by its hash See Possible codes: 400,406 (details) /// Session hash public static Task Account_ResetAuthorization(this Client client, long hash) - => client.CallAsync(new Account_ResetAuthorization_ + => client.CallAsync(new Account_ResetAuthorization { hash = hash, }); - - [TLDef(0x548A30F5)] - public partial class Account_GetPassword_ : IMethod { } /// Obtain configuration for two-factor authorization with password See public static Task Account_GetPassword(this Client client) - => client.CallAsync(new Account_GetPassword_ + => client.CallAsync(new Account_GetPassword { }); - - [TLDef(0x9CD4EAF9)] - public partial class Account_GetPasswordSettings_ : IMethod - { - public InputCheckPasswordSRP password; - } /// Get private info associated to the password info (recovery email, telegram passport info & so on) See Possible codes: 400 (details) /// The password (see SRP) public static Task Account_GetPasswordSettings(this Client client, InputCheckPasswordSRP password) - => client.CallAsync(new Account_GetPasswordSettings_ + => client.CallAsync(new Account_GetPasswordSettings { password = password, }); - - [TLDef(0xA59B102F)] - public partial class Account_UpdatePasswordSettings_ : IMethod - { - public InputCheckPasswordSRP password; - public Account_PasswordInputSettings new_settings; - } /// Set a new 2FA password See Possible codes: 400 (details) /// The old password (see SRP) /// The new password (see SRP) public static Task Account_UpdatePasswordSettings(this Client client, InputCheckPasswordSRP password, Account_PasswordInputSettings new_settings) - => client.CallAsync(new Account_UpdatePasswordSettings_ + => client.CallAsync(new Account_UpdatePasswordSettings { password = password, new_settings = new_settings, }); - - [TLDef(0x1B3FAA88)] - public partial class Account_SendConfirmPhoneCode_ : IMethod - { - public string hash; - public CodeSettings settings; - } /// Send confirmation code to cancel account deletion, for more info click here ยป See Possible codes: 400 (details) /// The hash from the service notification, for more info click here ยป /// Phone code settings public static Task Account_SendConfirmPhoneCode(this Client client, string hash, CodeSettings settings) - => client.CallAsync(new Account_SendConfirmPhoneCode_ + => client.CallAsync(new Account_SendConfirmPhoneCode { hash = hash, settings = settings, }); - - [TLDef(0x5F2178C3)] - public partial class Account_ConfirmPhone_ : IMethod - { - public string phone_code_hash; - public string phone_code; - } /// Confirm a phone number to cancel account deletion, for more info click here ยป See Possible codes: 400 (details) /// Phone code hash, for more info click here ยป /// SMS code, for more info click here ยป public static Task Account_ConfirmPhone(this Client client, string phone_code_hash, string phone_code) - => client.CallAsync(new Account_ConfirmPhone_ + => client.CallAsync(new Account_ConfirmPhone { phone_code_hash = phone_code_hash, phone_code = phone_code, }); - - [TLDef(0x449E0B51)] - public partial class Account_GetTmpPassword_ : IMethod - { - public InputCheckPasswordSRP password; - public int period; - } /// Get temporary payment password See Possible codes: 400 (details) /// SRP password parameters /// Time during which the temporary password will be valid, in seconds; should be between 60 and 86400 public static Task Account_GetTmpPassword(this Client client, InputCheckPasswordSRP password, int period) - => client.CallAsync(new Account_GetTmpPassword_ + => client.CallAsync(new Account_GetTmpPassword { password = password, period = period, }); - - [TLDef(0x182E6D6F)] - public partial class Account_GetWebAuthorizations_ : IMethod { } /// Get web login widget authorizations See public static Task Account_GetWebAuthorizations(this Client client) - => client.CallAsync(new Account_GetWebAuthorizations_ + => client.CallAsync(new Account_GetWebAuthorizations { }); - - [TLDef(0x2D01B9EF)] - public partial class Account_ResetWebAuthorization_ : IMethod - { - public long hash; - } /// Log out an active web telegram login session See Possible codes: 400 (details) /// hash public static Task Account_ResetWebAuthorization(this Client client, long hash) - => client.CallAsync(new Account_ResetWebAuthorization_ + => client.CallAsync(new Account_ResetWebAuthorization { hash = hash, }); - - [TLDef(0x682D2594)] - public partial class Account_ResetWebAuthorizations_ : IMethod { } /// Reset all active web telegram login sessions See public static Task Account_ResetWebAuthorizations(this Client client) - => client.CallAsync(new Account_ResetWebAuthorizations_ + => client.CallAsync(new Account_ResetWebAuthorizations { }); - - [TLDef(0xB288BC7D)] - public partial class Account_GetAllSecureValues_ : IMethod { } /// Get all saved Telegram Passport documents, for more info see the passport docs ยป See public static Task Account_GetAllSecureValues(this Client client) - => client.CallAsync(new Account_GetAllSecureValues_ + => client.CallAsync(new Account_GetAllSecureValues { }); - - [TLDef(0x73665BC2)] - public partial class Account_GetSecureValue_ : IMethod - { - public SecureValueType[] types; - } /// Get saved Telegram Passport document, for more info see the passport docs ยป See /// Requested value types public static Task Account_GetSecureValue(this Client client, SecureValueType[] types) - => client.CallAsync(new Account_GetSecureValue_ + => client.CallAsync(new Account_GetSecureValue { types = types, }); - - [TLDef(0x899FE31D)] - public partial class Account_SaveSecureValue_ : IMethod - { - public InputSecureValue value; - public long secure_secret_id; - } /// Securely save Telegram Passport document, for more info see the passport docs ยป See Possible codes: 400 (details) /// Secure value, for more info see the passport docs ยป /// Passport secret hash, for more info see the passport docs ยป public static Task Account_SaveSecureValue(this Client client, InputSecureValue value, long secure_secret_id) - => client.CallAsync(new Account_SaveSecureValue_ + => client.CallAsync(new Account_SaveSecureValue { value = value, secure_secret_id = secure_secret_id, }); - - [TLDef(0xB880BC4B)] - public partial class Account_DeleteSecureValue_ : IMethod - { - public SecureValueType[] types; - } /// Delete stored Telegram Passport documents, for more info see the passport docs ยป See /// Document types to delete public static Task Account_DeleteSecureValue(this Client client, SecureValueType[] types) - => client.CallAsync(new Account_DeleteSecureValue_ + => client.CallAsync(new Account_DeleteSecureValue { types = types, }); - - [TLDef(0xA929597A)] - public partial class Account_GetAuthorizationForm_ : IMethod - { - public long bot_id; - public string scope; - public string public_key; - } /// Returns a Telegram Passport authorization form for sharing data with a service See Possible codes: 400 (details) /// User identifier of the service's bot /// Telegram Passport element types requested by the service /// Service's public key public static Task Account_GetAuthorizationForm(this Client client, long bot_id, string scope, string public_key) - => client.CallAsync(new Account_GetAuthorizationForm_ + => client.CallAsync(new Account_GetAuthorizationForm { bot_id = bot_id, scope = scope, public_key = public_key, }); - - [TLDef(0xF3ED4C73)] - public partial class Account_AcceptAuthorization_ : IMethod - { - public long bot_id; - public string scope; - public string public_key; - public SecureValueHash[] value_hashes; - public SecureCredentialsEncrypted credentials; - } /// Sends a Telegram Passport authorization form, effectively sharing data with the service See /// Bot ID /// Telegram Passport element types requested by the service @@ -13201,7 +12767,7 @@ namespace TL /// Types of values sent and their hashes /// Encrypted values public static Task Account_AcceptAuthorization(this Client client, long bot_id, string scope, string public_key, SecureValueHash[] value_hashes, SecureCredentialsEncrypted credentials) - => client.CallAsync(new Account_AcceptAuthorization_ + => client.CallAsync(new Account_AcceptAuthorization { bot_id = bot_id, scope = scope, @@ -13209,87 +12775,42 @@ namespace TL value_hashes = value_hashes, credentials = credentials, }); - - [TLDef(0xA5A356F9)] - public partial class Account_SendVerifyPhoneCode_ : IMethod - { - public string phone_number; - public CodeSettings settings; - } /// Send the verification phone code for telegram passport. See Possible codes: 400 (details) /// The phone number to verify /// Phone code settings public static Task Account_SendVerifyPhoneCode(this Client client, string phone_number, CodeSettings settings) - => client.CallAsync(new Account_SendVerifyPhoneCode_ + => client.CallAsync(new Account_SendVerifyPhoneCode { phone_number = phone_number, settings = settings, }); - - [TLDef(0x4DD3A7F6)] - public partial class Account_VerifyPhone_ : IMethod - { - public string phone_number; - public string phone_code_hash; - public string phone_code; - } /// Verify a phone number for telegram passport. See Possible codes: 400 (details) /// Phone number /// Phone code hash received from the call to account.sendVerifyPhoneCode /// Code received after the call to account.sendVerifyPhoneCode public static Task Account_VerifyPhone(this Client client, string phone_number, string phone_code_hash, string phone_code) - => client.CallAsync(new Account_VerifyPhone_ + => client.CallAsync(new Account_VerifyPhone { phone_number = phone_number, phone_code_hash = phone_code_hash, phone_code = phone_code, }); - - [TLDef(0x7011509F)] - public partial class Account_SendVerifyEmailCode_ : IMethod - { - public string email; - } /// Send the verification email code for telegram passport. See Possible codes: 400 (details) /// The email where to send the code public static Task Account_SendVerifyEmailCode(this Client client, string email) - => client.CallAsync(new Account_SendVerifyEmailCode_ + => client.CallAsync(new Account_SendVerifyEmailCode { email = email, }); - - [TLDef(0xECBA39DB)] - public partial class Account_VerifyEmail_ : IMethod - { - public string email; - public string code; - } /// Verify an email address for telegram passport. See Possible codes: 400 (details) /// The email to verify /// The verification code that was received public static Task Account_VerifyEmail(this Client client, string email, string code) - => client.CallAsync(new Account_VerifyEmail_ + => client.CallAsync(new Account_VerifyEmail { email = email, code = code, }); - - [TLDef(0xF05B4804)] - public partial class Account_InitTakeoutSession_ : IMethod - { - public Flags flags; - [IfFlag(5)] public int file_max_size; - - [Flags] public enum Flags - { - contacts = 0x1, - message_users = 0x2, - message_chats = 0x4, - message_megagroups = 0x8, - message_channels = 0x10, - files = 0x20, - } - } /// Initialize account takeout session See Possible codes: 420 (details) /// Whether to export contacts /// Whether to export messages in private chats @@ -13299,294 +12820,142 @@ namespace TL /// Whether to export files /// Maximum size of files to export public static Task Account_InitTakeoutSession(this Client client, bool contacts = false, bool message_users = false, bool message_chats = false, bool message_megagroups = false, bool message_channels = false, bool files = false, int? file_max_size = null) - => client.CallAsync(new Account_InitTakeoutSession_ + => client.CallAsync(new Account_InitTakeoutSession { - flags = (Account_InitTakeoutSession_.Flags)((contacts ? 0x1 : 0) | (message_users ? 0x2 : 0) | (message_chats ? 0x4 : 0) | (message_megagroups ? 0x8 : 0) | (message_channels ? 0x10 : 0) | (files ? 0x20 : 0) | (file_max_size != null ? 0x20 : 0)), + flags = (Account_InitTakeoutSession.Flags)((contacts ? 0x1 : 0) | (message_users ? 0x2 : 0) | (message_chats ? 0x4 : 0) | (message_megagroups ? 0x8 : 0) | (message_channels ? 0x10 : 0) | (files ? 0x20 : 0) | (file_max_size != null ? 0x20 : 0)), file_max_size = file_max_size.GetValueOrDefault(), }); - - [TLDef(0x1D2652EE)] - public partial class Account_FinishTakeoutSession_ : IMethod - { - public Flags flags; - - [Flags] public enum Flags - { - success = 0x1, - } - } /// Finish account takeout session See Possible codes: 403 (details) /// Data exported successfully public static Task Account_FinishTakeoutSession(this Client client, bool success = false) - => client.CallAsync(new Account_FinishTakeoutSession_ + => client.CallAsync(new Account_FinishTakeoutSession { - flags = (Account_FinishTakeoutSession_.Flags)(success ? 0x1 : 0), + flags = (Account_FinishTakeoutSession.Flags)(success ? 0x1 : 0), }); - - [TLDef(0x8FDF1920)] - public partial class Account_ConfirmPasswordEmail_ : IMethod - { - public string code; - } /// Verify an email to use as 2FA recovery method. See Possible codes: 400 (details) /// The phone code that was received after setting a recovery email public static Task Account_ConfirmPasswordEmail(this Client client, string code) - => client.CallAsync(new Account_ConfirmPasswordEmail_ + => client.CallAsync(new Account_ConfirmPasswordEmail { code = code, }); - - [TLDef(0x7A7F2A15)] - public partial class Account_ResendPasswordEmail_ : IMethod { } /// Resend the code to verify an email to use as 2FA recovery method. See public static Task Account_ResendPasswordEmail(this Client client) - => client.CallAsync(new Account_ResendPasswordEmail_ + => client.CallAsync(new Account_ResendPasswordEmail { }); - - [TLDef(0xC1CBD5B6)] - public partial class Account_CancelPasswordEmail_ : IMethod { } /// Cancel the code that was sent to verify an email to use as 2FA recovery method. See public static Task Account_CancelPasswordEmail(this Client client) - => client.CallAsync(new Account_CancelPasswordEmail_ + => client.CallAsync(new Account_CancelPasswordEmail { }); - - [TLDef(0x9F07C728)] - public partial class Account_GetContactSignUpNotification_ : IMethod { } /// Whether the user will receive notifications when contacts sign up See public static Task Account_GetContactSignUpNotification(this Client client) - => client.CallAsync(new Account_GetContactSignUpNotification_ + => client.CallAsync(new Account_GetContactSignUpNotification { }); - - [TLDef(0xCFF43F61)] - public partial class Account_SetContactSignUpNotification_ : IMethod - { - public bool silent; - } /// Toggle contact sign up notifications See /// Whether to disable contact sign up notifications public static Task Account_SetContactSignUpNotification(this Client client, bool silent) - => client.CallAsync(new Account_SetContactSignUpNotification_ + => client.CallAsync(new Account_SetContactSignUpNotification { silent = silent, }); - - [TLDef(0x53577479)] - public partial class Account_GetNotifyExceptions_ : IMethod - { - public Flags flags; - [IfFlag(0)] public InputNotifyPeerBase peer; - - [Flags] public enum Flags - { - /// Field has a value - has_peer = 0x1, - compare_sound = 0x2, - } - } /// Returns list of chats with non-default notification settings See /// If true, chats with non-default sound will also be returned /// If specified, only chats of the specified category will be returned public static Task Account_GetNotifyExceptions(this Client client, bool compare_sound = false, InputNotifyPeerBase peer = null) - => client.CallAsync(new Account_GetNotifyExceptions_ + => client.CallAsync(new Account_GetNotifyExceptions { - flags = (Account_GetNotifyExceptions_.Flags)((compare_sound ? 0x2 : 0) | (peer != null ? 0x1 : 0)), + flags = (Account_GetNotifyExceptions.Flags)((compare_sound ? 0x2 : 0) | (peer != null ? 0x1 : 0)), peer = peer, }); - - [TLDef(0xFC8DDBEA)] - public partial class Account_GetWallPaper_ : IMethod - { - public InputWallPaperBase wallpaper; - } /// Get info about a certain wallpaper See Possible codes: 400 (details) /// The wallpaper to get info about public static Task Account_GetWallPaper(this Client client, InputWallPaperBase wallpaper) - => client.CallAsync(new Account_GetWallPaper_ + => client.CallAsync(new Account_GetWallPaper { wallpaper = wallpaper, }); - - [TLDef(0xDD853661)] - public partial class Account_UploadWallPaper_ : IMethod - { - public InputFileBase file; - public string mime_type; - public WallPaperSettings settings; - } /// Create and upload a new wallpaper See Possible codes: 400 (details) /// The JPG/PNG wallpaper /// MIME type of uploaded wallpaper /// Wallpaper settings public static Task Account_UploadWallPaper(this Client client, InputFileBase file, string mime_type, WallPaperSettings settings) - => client.CallAsync(new Account_UploadWallPaper_ + => client.CallAsync(new Account_UploadWallPaper { file = file, mime_type = mime_type, settings = settings, }); - - [TLDef(0x6C5A5B37)] - public partial class Account_SaveWallPaper_ : IMethod - { - public InputWallPaperBase wallpaper; - public bool unsave; - public WallPaperSettings settings; - } /// Install/uninstall wallpaper See Possible codes: 400 (details) /// Wallpaper to save /// Uninstall wallpaper? /// Wallpaper settings public static Task Account_SaveWallPaper(this Client client, InputWallPaperBase wallpaper, bool unsave, WallPaperSettings settings) - => client.CallAsync(new Account_SaveWallPaper_ + => client.CallAsync(new Account_SaveWallPaper { wallpaper = wallpaper, unsave = unsave, settings = settings, }); - - [TLDef(0xFEED5769)] - public partial class Account_InstallWallPaper_ : IMethod - { - public InputWallPaperBase wallpaper; - public WallPaperSettings settings; - } /// Install wallpaper See Possible codes: 400 (details) /// Wallpaper to install /// Wallpaper settings public static Task Account_InstallWallPaper(this Client client, InputWallPaperBase wallpaper, WallPaperSettings settings) - => client.CallAsync(new Account_InstallWallPaper_ + => client.CallAsync(new Account_InstallWallPaper { wallpaper = wallpaper, settings = settings, }); - - [TLDef(0xBB3B9804)] - public partial class Account_ResetWallPapers_ : IMethod { } /// Delete installed wallpapers See public static Task Account_ResetWallPapers(this Client client) - => client.CallAsync(new Account_ResetWallPapers_ + => client.CallAsync(new Account_ResetWallPapers { }); - - [TLDef(0x56DA0B3F)] - public partial class Account_GetAutoDownloadSettings_ : IMethod { } /// Get media autodownload settings See public static Task Account_GetAutoDownloadSettings(this Client client) - => client.CallAsync(new Account_GetAutoDownloadSettings_ + => client.CallAsync(new Account_GetAutoDownloadSettings { }); - - [TLDef(0x76F36233)] - public partial class Account_SaveAutoDownloadSettings_ : IMethod - { - public Flags flags; - public AutoDownloadSettings settings; - - [Flags] public enum Flags - { - low = 0x1, - high = 0x2, - } - } /// Change media autodownload settings See /// Whether to save settings in the low data usage preset /// Whether to save settings in the high data usage preset /// Media autodownload settings public static Task Account_SaveAutoDownloadSettings(this Client client, AutoDownloadSettings settings, bool low = false, bool high = false) - => client.CallAsync(new Account_SaveAutoDownloadSettings_ + => client.CallAsync(new Account_SaveAutoDownloadSettings { - flags = (Account_SaveAutoDownloadSettings_.Flags)((low ? 0x1 : 0) | (high ? 0x2 : 0)), + flags = (Account_SaveAutoDownloadSettings.Flags)((low ? 0x1 : 0) | (high ? 0x2 : 0)), settings = settings, }); - - [TLDef(0x1C3DB333)] - public partial class Account_UploadTheme_ : IMethod - { - public Flags flags; - public InputFileBase file; - [IfFlag(0)] public InputFileBase thumb; - public string file_name; - public string mime_type; - - [Flags] public enum Flags - { - /// Field has a value - has_thumb = 0x1, - } - } /// Upload theme See Possible codes: 400 (details) /// Theme file uploaded as described in files ยป /// Thumbnail /// File name /// MIME type, must be application/x-tgtheme-{format}, where format depends on the client public static Task Account_UploadTheme(this Client client, InputFileBase file, string file_name, string mime_type, InputFileBase thumb = null) - => client.CallAsync(new Account_UploadTheme_ + => client.CallAsync(new Account_UploadTheme { - flags = (Account_UploadTheme_.Flags)(thumb != null ? 0x1 : 0), + flags = (Account_UploadTheme.Flags)(thumb != null ? 0x1 : 0), file = file, thumb = thumb, file_name = file_name, mime_type = mime_type, }); - - [TLDef(0x652E4400)] - public partial class Account_CreateTheme_ : IMethod - { - public Flags flags; - public string slug; - public string title; - [IfFlag(2)] public InputDocument document; - [IfFlag(3)] public InputThemeSettings[] settings; - - [Flags] public enum Flags - { - /// Field has a value - has_document = 0x4, - /// Field has a value - has_settings = 0x8, - } - } /// Create a theme See Possible codes: 400 (details) /// Unique theme ID /// Theme name /// Theme file /// Theme settings public static Task Account_CreateTheme(this Client client, string slug, string title, InputDocument document = null, InputThemeSettings[] settings = null) - => client.CallAsync(new Account_CreateTheme_ + => client.CallAsync(new Account_CreateTheme { - flags = (Account_CreateTheme_.Flags)((document != null ? 0x4 : 0) | (settings != null ? 0x8 : 0)), + flags = (Account_CreateTheme.Flags)((document != null ? 0x4 : 0) | (settings != null ? 0x8 : 0)), slug = slug, title = title, document = document, settings = settings, }); - - [TLDef(0x2BF40CCC)] - public partial class Account_UpdateTheme_ : IMethod - { - public Flags flags; - public string format; - public InputThemeBase theme; - [IfFlag(0)] public string slug; - [IfFlag(1)] public string title; - [IfFlag(2)] public InputDocument document; - [IfFlag(3)] public InputThemeSettings[] settings; - - [Flags] public enum Flags - { - /// Field has a value - has_slug = 0x1, - /// Field has a value - has_title = 0x2, - /// Field has a value - has_document = 0x4, - /// Field has a value - has_settings = 0x8, - } - } /// Update theme See Possible codes: 400 (details) /// Theme format, a string that identifies the theming engines supported by the client /// Theme to update @@ -13595,9 +12964,9 @@ namespace TL /// Theme file /// Theme settings public static Task Account_UpdateTheme(this Client client, string format, InputThemeBase theme, string slug = null, string title = null, InputDocument document = null, InputThemeSettings[] settings = null) - => client.CallAsync(new Account_UpdateTheme_ + => client.CallAsync(new Account_UpdateTheme { - flags = (Account_UpdateTheme_.Flags)((slug != null ? 0x1 : 0) | (title != null ? 0x2 : 0) | (document != null ? 0x4 : 0) | (settings != null ? 0x8 : 0)), + flags = (Account_UpdateTheme.Flags)((slug != null ? 0x1 : 0) | (title != null ? 0x2 : 0) | (document != null ? 0x4 : 0) | (settings != null ? 0x8 : 0)), format = format, theme = theme, slug = slug, @@ -13605,410 +12974,213 @@ namespace TL document = document, settings = settings, }); - - [TLDef(0xF257106C)] - public partial class Account_SaveTheme_ : IMethod - { - public InputThemeBase theme; - public bool unsave; - } /// Save a theme See /// Theme to save /// Unsave public static Task Account_SaveTheme(this Client client, InputThemeBase theme, bool unsave) - => client.CallAsync(new Account_SaveTheme_ + => client.CallAsync(new Account_SaveTheme { theme = theme, unsave = unsave, }); - - [TLDef(0xC727BB3B)] - public partial class Account_InstallTheme_ : IMethod - { - public Flags flags; - [IfFlag(1)] public InputThemeBase theme; - [IfFlag(2)] public string format; - [IfFlag(3)] public BaseTheme base_theme; - - [Flags] public enum Flags - { - dark = 0x1, - /// Field has a value - has_theme = 0x2, - /// Field has a value - has_format = 0x4, - /// Field has a value - has_base_theme = 0x8, - } - } /// Install a theme See /// Whether to install the dark version /// Theme format, a string that identifies the theming engines supported by the client /// Theme to install public static Task Account_InstallTheme(this Client client, bool dark = false, InputThemeBase theme = null, string format = null, BaseTheme base_theme = default) - => client.CallAsync(new Account_InstallTheme_ + => client.CallAsync(new Account_InstallTheme { - flags = (Account_InstallTheme_.Flags)((dark ? 0x1 : 0) | (theme != null ? 0x2 : 0) | (format != null ? 0x4 : 0) | (base_theme != default ? 0x8 : 0)), + flags = (Account_InstallTheme.Flags)((dark ? 0x1 : 0) | (theme != null ? 0x2 : 0) | (format != null ? 0x4 : 0) | (base_theme != default ? 0x8 : 0)), theme = theme, format = format, base_theme = base_theme, }); - - [TLDef(0x8D9D742B)] - public partial class Account_GetTheme_ : IMethod - { - public string format; - public InputThemeBase theme; - public long document_id; - } /// Get theme information See Possible codes: 400 (details) /// Theme format, a string that identifies the theming engines supported by the client /// Theme /// Document ID public static Task Account_GetTheme(this Client client, string format, InputThemeBase theme, long document_id) - => client.CallAsync(new Account_GetTheme_ + => client.CallAsync(new Account_GetTheme { format = format, theme = theme, document_id = document_id, }); - - [TLDef(0x7206E458)] - public partial class Account_GetThemes_ : IMethod - { - public string format; - public long hash; - } /// Get installed themes See /// Theme format, a string that identifies the theming engines supported by the client /// Hash for pagination, for more info click here /// a null value means account.themesNotModified public static Task Account_GetThemes(this Client client, string format, long hash) - => client.CallAsync(new Account_GetThemes_ + => client.CallAsync(new Account_GetThemes { format = format, hash = hash, }); - - [TLDef(0xB574B16B)] - public partial class Account_SetContentSettings_ : IMethod - { - public Flags flags; - - [Flags] public enum Flags - { - sensitive_enabled = 0x1, - } - } /// Set sensitive content settings (for viewing or hiding NSFW content) See Possible codes: 403 (details) /// Enable NSFW content public static Task Account_SetContentSettings(this Client client, bool sensitive_enabled = false) - => client.CallAsync(new Account_SetContentSettings_ + => client.CallAsync(new Account_SetContentSettings { - flags = (Account_SetContentSettings_.Flags)(sensitive_enabled ? 0x1 : 0), + flags = (Account_SetContentSettings.Flags)(sensitive_enabled ? 0x1 : 0), }); - - [TLDef(0x8B9B4DAE)] - public partial class Account_GetContentSettings_ : IMethod { } /// Get sensitive content settings See public static Task Account_GetContentSettings(this Client client) - => client.CallAsync(new Account_GetContentSettings_ + => client.CallAsync(new Account_GetContentSettings { }); - - [TLDef(0x65AD71DC)] - public partial class Account_GetMultiWallPapers_ : IMethod - { - public InputWallPaperBase[] wallpapers; - } /// Get info about multiple wallpapers See /// Wallpapers to fetch info about public static Task Account_GetMultiWallPapers(this Client client, InputWallPaperBase[] wallpapers) - => client.CallAsync(new Account_GetMultiWallPapers_ + => client.CallAsync(new Account_GetMultiWallPapers { wallpapers = wallpapers, }); - - [TLDef(0xEB2B4CF6)] - public partial class Account_GetGlobalPrivacySettings_ : IMethod { } /// Get global privacy settings See public static Task Account_GetGlobalPrivacySettings(this Client client) - => client.CallAsync(new Account_GetGlobalPrivacySettings_ + => client.CallAsync(new Account_GetGlobalPrivacySettings { }); - - [TLDef(0x1EDAAAC2)] - public partial class Account_SetGlobalPrivacySettings_ : IMethod - { - public GlobalPrivacySettings settings; - } /// Set global privacy settings See Possible codes: 400 (details) /// Global privacy settings public static Task Account_SetGlobalPrivacySettings(this Client client, GlobalPrivacySettings settings) - => client.CallAsync(new Account_SetGlobalPrivacySettings_ + => client.CallAsync(new Account_SetGlobalPrivacySettings { settings = settings, }); - - [TLDef(0xFA8CC6F5)] - public partial class Account_ReportProfilePhoto_ : IMethod - { - public InputPeer peer; - public InputPhoto photo_id; - public ReportReason reason; - public string message; - } /// Report a profile photo of a dialog See /// The dialog /// Dialog photo ID /// Report reason /// Comment for report moderation public static Task Account_ReportProfilePhoto(this Client client, InputPeer peer, InputPhoto photo_id, ReportReason reason, string message) - => client.CallAsync(new Account_ReportProfilePhoto_ + => client.CallAsync(new Account_ReportProfilePhoto { peer = peer, photo_id = photo_id, reason = reason, message = message, }); - - [TLDef(0x9308CE1B)] - public partial class Account_ResetPassword_ : IMethod { } /// Initiate a 2FA password reset: can only be used if the user is already logged-in, see here for more info ยป See public static Task Account_ResetPassword(this Client client) - => client.CallAsync(new Account_ResetPassword_ + => client.CallAsync(new Account_ResetPassword { }); - - [TLDef(0x4C9409F6)] - public partial class Account_DeclinePasswordReset_ : IMethod { } /// Abort a pending 2FA password reset, see here for more info ยป See Possible codes: 400 (details) public static Task Account_DeclinePasswordReset(this Client client) - => client.CallAsync(new Account_DeclinePasswordReset_ + => client.CallAsync(new Account_DeclinePasswordReset { }); - - [TLDef(0xD638DE89)] - public partial class Account_GetChatThemes_ : IMethod - { - public long hash; - } /// Get all available chat themes See /// Hash for pagination, for more info click here /// a null value means account.themesNotModified public static Task Account_GetChatThemes(this Client client, long hash) - => client.CallAsync(new Account_GetChatThemes_ + => client.CallAsync(new Account_GetChatThemes { hash = hash, }); - - [TLDef(0x0D91A548)] - public partial class Users_GetUsers_ : IMethod - { - public InputUserBase[] id; - } /// Returns basic user info according to their identifiers. See [bots: โœ“] Possible codes: 400,401 (details) /// List of user identifiers public static Task Users_GetUsers(this Client client, InputUserBase[] id) - => client.CallAsync(new Users_GetUsers_ + => client.CallAsync(new Users_GetUsers { id = id, }); - - [TLDef(0xCA30A5B1)] - public partial class Users_GetFullUser_ : IMethod - { - public InputUserBase id; - } /// Returns extended user info by ID. See [bots: โœ“] Possible codes: 400 (details) /// User ID public static Task Users_GetFullUser(this Client client, InputUserBase id) - => client.CallAsync(new Users_GetFullUser_ + => client.CallAsync(new Users_GetFullUser { id = id, }); - - [TLDef(0x90C894B5)] - public partial class Users_SetSecureValueErrors_ : IMethod - { - public InputUserBase id; - public SecureValueErrorBase[] errors; - } /// Notify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change). See [bots: โœ“] Possible codes: 400 (details) /// The user /// Errors public static Task Users_SetSecureValueErrors(this Client client, InputUserBase id, SecureValueErrorBase[] errors) - => client.CallAsync(new Users_SetSecureValueErrors_ + => client.CallAsync(new Users_SetSecureValueErrors { id = id, errors = errors, }); - - [TLDef(0x7ADC669D)] - public partial class Contacts_GetContactIDs_ : IMethod - { - public long hash; - } /// Get contact by telegram IDs See /// Hash for pagination, for more info click here public static Task Contacts_GetContactIDs(this Client client, long hash) - => client.CallAsync(new Contacts_GetContactIDs_ + => client.CallAsync(new Contacts_GetContactIDs { hash = hash, }); - - [TLDef(0xC4A353EE)] - public partial class Contacts_GetStatuses_ : IMethod { } /// Returns the list of contact statuses. See public static Task Contacts_GetStatuses(this Client client) - => client.CallAsync(new Contacts_GetStatuses_ + => client.CallAsync(new Contacts_GetStatuses { }); - - [TLDef(0x5DD69E12)] - public partial class Contacts_GetContacts_ : IMethod - { - public long hash; - } /// Returns the current user's contact list. See /// If there already is a full contact list on the client, a hash of a the list of contact IDs in ascending order may be passed in this parameter. If the contact set was not changed, will be returned. /// a null value means contacts.contactsNotModified public static Task Contacts_GetContacts(this Client client, long hash) - => client.CallAsync(new Contacts_GetContacts_ + => client.CallAsync(new Contacts_GetContacts { hash = hash, }); - - [TLDef(0x2C800BE5)] - public partial class Contacts_ImportContacts_ : IMethod - { - public InputContact[] contacts; - } /// Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info. See /// List of contacts to import public static Task Contacts_ImportContacts(this Client client, InputContact[] contacts) - => client.CallAsync(new Contacts_ImportContacts_ + => client.CallAsync(new Contacts_ImportContacts { contacts = contacts, }); - - [TLDef(0x096A0E00)] - public partial class Contacts_DeleteContacts_ : IMethod - { - public InputUserBase[] id; - } /// Deletes several contacts from the list. See /// User ID list public static Task Contacts_DeleteContacts(this Client client, InputUserBase[] id) - => client.CallAsync(new Contacts_DeleteContacts_ + => client.CallAsync(new Contacts_DeleteContacts { id = id, }); - - [TLDef(0x1013FD9E)] - public partial class Contacts_DeleteByPhones_ : IMethod - { - public string[] phones; - } /// Delete contacts by phone number See /// Phone numbers public static Task Contacts_DeleteByPhones(this Client client, string[] phones) - => client.CallAsync(new Contacts_DeleteByPhones_ + => client.CallAsync(new Contacts_DeleteByPhones { phones = phones, }); - - [TLDef(0x68CC1411)] - public partial class Contacts_Block_ : IMethod - { - public InputPeer id; - } /// Adds the user to the blacklist. See Possible codes: 400 (details) /// User ID public static Task Contacts_Block(this Client client, InputPeer id) - => client.CallAsync(new Contacts_Block_ + => client.CallAsync(new Contacts_Block { id = id, }); - - [TLDef(0xBEA65D50)] - public partial class Contacts_Unblock_ : IMethod - { - public InputPeer id; - } /// Deletes the user from the blacklist. See Possible codes: 400 (details) /// User ID public static Task Contacts_Unblock(this Client client, InputPeer id) - => client.CallAsync(new Contacts_Unblock_ + => client.CallAsync(new Contacts_Unblock { id = id, }); - - [TLDef(0xF57C350F)] - public partial class Contacts_GetBlocked_ : IMethod - { - public int offset; - public int limit; - } /// Returns the list of blocked users. See /// The number of list elements to be skipped /// The number of list elements to be returned public static Task Contacts_GetBlocked(this Client client, int offset, int limit) - => client.CallAsync(new Contacts_GetBlocked_ + => client.CallAsync(new Contacts_GetBlocked { offset = offset, limit = limit, }); - - [TLDef(0x11F812D8)] - public partial class Contacts_Search_ : IMethod - { - public string q; - public int limit; - } /// Returns users found by username substring. See Possible codes: 400 (details) /// Target substring /// Maximum number of users to be returned public static Task Contacts_Search(this Client client, string q, int limit) - => client.CallAsync(new Contacts_Search_ + => client.CallAsync(new Contacts_Search { q = q, limit = limit, }); - - [TLDef(0xF93CCBA3)] - public partial class Contacts_ResolveUsername_ : IMethod - { - public string username; - } /// Resolve a @username to get peer info See [bots: โœ“] Possible codes: 400,401 (details) /// @username to resolve public static Task Contacts_ResolveUsername(this Client client, string username) - => client.CallAsync(new Contacts_ResolveUsername_ + => client.CallAsync(new Contacts_ResolveUsername { username = username, }); - - [TLDef(0x973478B6)] - public partial class Contacts_GetTopPeers_ : IMethod - { - public Flags flags; - public int offset; - public int limit; - public long hash; - - [Flags] public enum Flags - { - correspondents = 0x1, - bots_pm = 0x2, - bots_inline = 0x4, - phone_calls = 0x8, - forward_users = 0x10, - forward_chats = 0x20, - groups = 0x400, - channels = 0x8000, - } - } /// Get most used peers See Possible codes: 400 (details) /// Users we've chatted most frequently with /// Most used bots @@ -14023,73 +13195,39 @@ namespace TL /// Hash for pagination, for more info click here /// a null value means contacts.topPeersNotModified public static Task Contacts_GetTopPeers(this Client client, int offset, int limit, long hash, bool correspondents = false, bool bots_pm = false, bool bots_inline = false, bool phone_calls = false, bool forward_users = false, bool forward_chats = false, bool groups = false, bool channels = false) - => client.CallAsync(new Contacts_GetTopPeers_ + => client.CallAsync(new Contacts_GetTopPeers { - flags = (Contacts_GetTopPeers_.Flags)((correspondents ? 0x1 : 0) | (bots_pm ? 0x2 : 0) | (bots_inline ? 0x4 : 0) | (phone_calls ? 0x8 : 0) | (forward_users ? 0x10 : 0) | (forward_chats ? 0x20 : 0) | (groups ? 0x400 : 0) | (channels ? 0x8000 : 0)), + flags = (Contacts_GetTopPeers.Flags)((correspondents ? 0x1 : 0) | (bots_pm ? 0x2 : 0) | (bots_inline ? 0x4 : 0) | (phone_calls ? 0x8 : 0) | (forward_users ? 0x10 : 0) | (forward_chats ? 0x20 : 0) | (groups ? 0x400 : 0) | (channels ? 0x8000 : 0)), offset = offset, limit = limit, hash = hash, }); - - [TLDef(0x1AE373AC)] - public partial class Contacts_ResetTopPeerRating_ : IMethod - { - public TopPeerCategory category; - public InputPeer peer; - } /// Reset rating of top peer See Possible codes: 400 (details) /// Top peer category /// Peer whose rating should be reset public static Task Contacts_ResetTopPeerRating(this Client client, TopPeerCategory category, InputPeer peer) - => client.CallAsync(new Contacts_ResetTopPeerRating_ + => client.CallAsync(new Contacts_ResetTopPeerRating { category = category, peer = peer, }); - - [TLDef(0x879537F1)] - public partial class Contacts_ResetSaved_ : IMethod { } /// Delete saved contacts See public static Task Contacts_ResetSaved(this Client client) - => client.CallAsync(new Contacts_ResetSaved_ + => client.CallAsync(new Contacts_ResetSaved { }); - - [TLDef(0x82F1E39F)] - public partial class Contacts_GetSaved_ : IMethod { } /// Get all contacts See Possible codes: 403 (details) public static Task Contacts_GetSaved(this Client client) - => client.CallAsync(new Contacts_GetSaved_ + => client.CallAsync(new Contacts_GetSaved { }); - - [TLDef(0x8514BDDA)] - public partial class Contacts_ToggleTopPeers_ : IMethod - { - public bool enabled; - } /// Enable/disable top peers See /// Enable/disable public static Task Contacts_ToggleTopPeers(this Client client, bool enabled) - => client.CallAsync(new Contacts_ToggleTopPeers_ + => client.CallAsync(new Contacts_ToggleTopPeers { enabled = enabled, }); - - [TLDef(0xE8F463D0)] - public partial class Contacts_AddContact_ : IMethod - { - public Flags flags; - public InputUserBase id; - public string first_name; - public string last_name; - public string phone; - - [Flags] public enum Flags - { - add_phone_privacy_exception = 0x1, - } - } /// Add an existing telegram user as contact. See Possible codes: 400 (details) /// Allow the other user to see our phone number? /// Telegram ID of the other user @@ -14097,110 +13235,50 @@ namespace TL /// Last name /// User's phone number public static Task Contacts_AddContact(this Client client, InputUserBase id, string first_name, string last_name, string phone, bool add_phone_privacy_exception = false) - => client.CallAsync(new Contacts_AddContact_ + => client.CallAsync(new Contacts_AddContact { - flags = (Contacts_AddContact_.Flags)(add_phone_privacy_exception ? 0x1 : 0), + flags = (Contacts_AddContact.Flags)(add_phone_privacy_exception ? 0x1 : 0), id = id, first_name = first_name, last_name = last_name, phone = phone, }); - - [TLDef(0xF831A20F)] - public partial class Contacts_AcceptContact_ : IMethod - { - public InputUserBase id; - } /// If the of a new user allow us to add him as contact, add that user as contact See Possible codes: 400 (details) /// The user to add as contact public static Task Contacts_AcceptContact(this Client client, InputUserBase id) - => client.CallAsync(new Contacts_AcceptContact_ + => client.CallAsync(new Contacts_AcceptContact { id = id, }); - - [TLDef(0xD348BC44)] - public partial class Contacts_GetLocated_ : IMethod - { - public Flags flags; - public InputGeoPoint geo_point; - [IfFlag(0)] public int self_expires; - - [Flags] public enum Flags - { - /// Field has a value - has_self_expires = 0x1, - background = 0x2, - } - } /// Get contacts near you See Possible codes: 400,406 (details) /// While the geolocation of the current user is public, clients should update it in the background every half-an-hour or so, while setting this flag.
Do this only if the new location is more than 1 KM away from the previous one, or if the previous location is unknown. /// Geolocation /// If set, the geolocation of the current user will be public for the specified number of seconds; pass 0x7fffffff to disable expiry, 0 to make the current geolocation private; if the flag isn't set, no changes will be applied. public static Task Contacts_GetLocated(this Client client, InputGeoPoint geo_point, bool background = false, int? self_expires = null) - => client.CallAsync(new Contacts_GetLocated_ + => client.CallAsync(new Contacts_GetLocated { - flags = (Contacts_GetLocated_.Flags)((background ? 0x2 : 0) | (self_expires != null ? 0x1 : 0)), + flags = (Contacts_GetLocated.Flags)((background ? 0x2 : 0) | (self_expires != null ? 0x1 : 0)), geo_point = geo_point, self_expires = self_expires.GetValueOrDefault(), }); - - [TLDef(0x29A8962C)] - public partial class Contacts_BlockFromReplies_ : IMethod - { - public Flags flags; - public int msg_id; - - [Flags] public enum Flags - { - delete_message = 0x1, - delete_history = 0x2, - report_spam = 0x4, - } - } /// Stop getting notifications about thread replies of a certain user in @replies See /// Whether to delete the specified message as well /// Whether to delete all @replies messages from this user as well /// Whether to also report this user for spam /// ID of the message in the @replies chat public static Task Contacts_BlockFromReplies(this Client client, int msg_id, bool delete_message = false, bool delete_history = false, bool report_spam = false) - => client.CallAsync(new Contacts_BlockFromReplies_ + => client.CallAsync(new Contacts_BlockFromReplies { - flags = (Contacts_BlockFromReplies_.Flags)((delete_message ? 0x1 : 0) | (delete_history ? 0x2 : 0) | (report_spam ? 0x4 : 0)), + flags = (Contacts_BlockFromReplies.Flags)((delete_message ? 0x1 : 0) | (delete_history ? 0x2 : 0) | (report_spam ? 0x4 : 0)), msg_id = msg_id, }); - - [TLDef(0x63C66506)] - public partial class Messages_GetMessages_ : IMethod - { - public InputMessage[] id; - } /// Returns the list of messages by their IDs. See [bots: โœ“] /// Message ID list public static Task Messages_GetMessages(this Client client, InputMessage[] id) - => client.CallAsync(new Messages_GetMessages_ + => client.CallAsync(new Messages_GetMessages { id = id, }); - - [TLDef(0xA0F4CB4F)] - public partial class Messages_GetDialogs_ : IMethod - { - public Flags flags; - [IfFlag(1)] public int folder_id; - public DateTime offset_date; - public int offset_id; - public InputPeer offset_peer; - public int limit; - public long hash; - - [Flags] public enum Flags - { - exclude_pinned = 0x1, - /// Field has a value - has_folder_id = 0x2, - } - } /// Returns the current user dialog list. See Possible codes: 400 (details) /// Exclude pinned dialogs /// Peer folder ID, for more info click here @@ -14210,9 +13288,9 @@ namespace TL /// Number of list elements to be returned /// Hash for pagination, for more info click here public static Task Messages_GetDialogs(this Client client, DateTime offset_date, int offset_id, InputPeer offset_peer, int limit, long hash, bool exclude_pinned = false, int? folder_id = null) - => client.CallAsync(new Messages_GetDialogs_ + => client.CallAsync(new Messages_GetDialogs { - flags = (Messages_GetDialogs_.Flags)((exclude_pinned ? 0x1 : 0) | (folder_id != null ? 0x2 : 0)), + flags = (Messages_GetDialogs.Flags)((exclude_pinned ? 0x1 : 0) | (folder_id != null ? 0x2 : 0)), folder_id = folder_id.GetValueOrDefault(), offset_date = offset_date, offset_id = offset_id, @@ -14220,19 +13298,6 @@ namespace TL limit = limit, hash = hash, }); - - [TLDef(0x4423E6C5)] - public partial class Messages_GetHistory_ : IMethod - { - public InputPeer peer; - public int offset_id; - public DateTime offset_date; - public int add_offset; - public int limit; - public int max_id; - public int min_id; - public long hash; - } /// Gets back the conversation history with one interlocutor / within a chat See Possible codes: 400,401 (details) /// Target peer /// Only return messages starting from the specified message ID @@ -14243,7 +13308,7 @@ namespace TL /// If a positive value was transferred, the method will return only messages with IDs more than min_id /// Result hash public static Task Messages_GetHistory(this Client client, InputPeer peer, int offset_id, DateTime offset_date, int add_offset, int limit, int max_id, int min_id, long hash) - => client.CallAsync(new Messages_GetHistory_ + => client.CallAsync(new Messages_GetHistory { peer = peer, offset_id = offset_id, @@ -14254,33 +13319,6 @@ namespace TL min_id = min_id, hash = hash, }); - - [TLDef(0xA0FDA762)] - public partial class Messages_Search_ : IMethod - { - public Flags flags; - public InputPeer peer; - public string q; - [IfFlag(0)] public InputPeer from_id; - [IfFlag(1)] public int top_msg_id; - public MessagesFilter filter; - public DateTime min_date; - public DateTime max_date; - public int offset_id; - public int add_offset; - public int limit; - public int max_id; - public int min_id; - public long hash; - - [Flags] public enum Flags - { - /// Field has a value - has_from_id = 0x1, - /// Field has a value - has_top_msg_id = 0x2, - } - } /// Gets back found messages See Possible codes: 400 (details) /// User or chat, histories with which are searched, or constructor for global search /// Text search request @@ -14296,9 +13334,9 @@ namespace TL /// Minimum message ID to return /// Hash public static Task Messages_Search(this Client client, InputPeer peer, string q, MessagesFilter filter, DateTime min_date, DateTime max_date, int offset_id, int add_offset, int limit, int max_id, int min_id, long hash, InputPeer from_id = null, int? top_msg_id = null) - => client.CallAsync(new Messages_Search_ + => client.CallAsync(new Messages_Search { - flags = (Messages_Search_.Flags)((from_id != null ? 0x1 : 0) | (top_msg_id != null ? 0x2 : 0)), + flags = (Messages_Search.Flags)((from_id != null ? 0x1 : 0) | (top_msg_id != null ? 0x2 : 0)), peer = peer, q = q, from_id = from_id, @@ -14313,146 +13351,57 @@ namespace TL min_id = min_id, hash = hash, }); - - [TLDef(0x0E306D3A)] - public partial class Messages_ReadHistory_ : IMethod - { - public InputPeer peer; - public int max_id; - } /// Marks message history as read. See Possible codes: 400 (details) /// Target user or group /// If a positive value is passed, only messages with identifiers less or equal than the given one will be read public static Task Messages_ReadHistory(this Client client, InputPeer peer, int max_id) - => client.CallAsync(new Messages_ReadHistory_ + => client.CallAsync(new Messages_ReadHistory { peer = peer, max_id = max_id, }); - - [TLDef(0xB08F922A)] - public partial class Messages_DeleteHistory_ : IMethod - { - public Flags flags; - public InputPeer peer; - public int max_id; - [IfFlag(2)] public DateTime min_date; - [IfFlag(3)] public DateTime max_date; - - [Flags] public enum Flags - { - just_clear = 0x1, - revoke = 0x2, - /// Field has a value - has_min_date = 0x4, - /// Field has a value - has_max_date = 0x8, - } - } /// Deletes communication history. See Possible codes: 400 (details) /// Just clear history for the current user, without actually removing messages for every chat user /// Whether to delete the message history for all chat participants /// User or chat, communication history of which will be deleted /// Maximum ID of message to delete public static Task Messages_DeleteHistory(this Client client, InputPeer peer, int max_id, bool just_clear = false, bool revoke = false, DateTime? min_date = null, DateTime? max_date = null) - => client.CallAsync(new Messages_DeleteHistory_ + => client.CallAsync(new Messages_DeleteHistory { - flags = (Messages_DeleteHistory_.Flags)((just_clear ? 0x1 : 0) | (revoke ? 0x2 : 0) | (min_date != null ? 0x4 : 0) | (max_date != null ? 0x8 : 0)), + flags = (Messages_DeleteHistory.Flags)((just_clear ? 0x1 : 0) | (revoke ? 0x2 : 0) | (min_date != null ? 0x4 : 0) | (max_date != null ? 0x8 : 0)), peer = peer, max_id = max_id, min_date = min_date.GetValueOrDefault(), max_date = max_date.GetValueOrDefault(), }); - - [TLDef(0xE58E95D2)] - public partial class Messages_DeleteMessages_ : IMethod - { - public Flags flags; - public int[] id; - - [Flags] public enum Flags - { - revoke = 0x1, - } - } /// Deletes messages by their identifiers. See [bots: โœ“] Possible codes: 403 (details) /// Whether to delete messages for all participants of the chat /// Message ID list public static Task Messages_DeleteMessages(this Client client, int[] id, bool revoke = false) - => client.CallAsync(new Messages_DeleteMessages_ + => client.CallAsync(new Messages_DeleteMessages { - flags = (Messages_DeleteMessages_.Flags)(revoke ? 0x1 : 0), + flags = (Messages_DeleteMessages.Flags)(revoke ? 0x1 : 0), id = id, }); - - [TLDef(0x05A954C0)] - public partial class Messages_ReceivedMessages_ : IMethod - { - public int max_id; - } /// Confirms receipt of messages by a client, cancels PUSH-notification sending. See /// Maximum message ID available in a client. public static Task Messages_ReceivedMessages(this Client client, int max_id) - => client.CallAsync(new Messages_ReceivedMessages_ + => client.CallAsync(new Messages_ReceivedMessages { max_id = max_id, }); - - [TLDef(0x58943EE2)] - public partial class Messages_SetTyping_ : IMethod - { - public Flags flags; - public InputPeer peer; - [IfFlag(0)] public int top_msg_id; - public SendMessageAction action; - - [Flags] public enum Flags - { - /// Field has a value - has_top_msg_id = 0x1, - } - } /// Sends a current user typing event (see for all event types) to a conversation partner or group. See [bots: โœ“] Possible codes: 400,403 (details) /// Target user or group /// Thread ID /// Type of action
Parameter added in Layer 17. public static Task Messages_SetTyping(this Client client, InputPeer peer, SendMessageAction action, int? top_msg_id = null) - => client.CallAsync(new Messages_SetTyping_ + => client.CallAsync(new Messages_SetTyping { - flags = (Messages_SetTyping_.Flags)(top_msg_id != null ? 0x1 : 0), + flags = (Messages_SetTyping.Flags)(top_msg_id != null ? 0x1 : 0), peer = peer, top_msg_id = top_msg_id.GetValueOrDefault(), action = action, }); - - [TLDef(0x520C3870)] - public partial class Messages_SendMessage_ : IMethod - { - public Flags flags; - public InputPeer peer; - [IfFlag(0)] public int reply_to_msg_id; - public string message; - public long random_id; - [IfFlag(2)] public ReplyMarkup reply_markup; - [IfFlag(3)] public MessageEntity[] entities; - [IfFlag(10)] public DateTime schedule_date; - - [Flags] public enum Flags - { - /// Field has a value - has_reply_to_msg_id = 0x1, - no_webpage = 0x2, - /// Field has a value - has_reply_markup = 0x4, - /// Field has a value - has_entities = 0x8, - silent = 0x20, - background = 0x40, - clear_draft = 0x80, - /// Field has a value - has_schedule_date = 0x400, - } - } /// Sends a message to a chat See [bots: โœ“] Possible codes: 400,401,403,420 (details) /// Set this flag to disable generation of the webpage preview /// Send this message silently (no notifications for the receivers) @@ -14466,9 +13415,9 @@ namespace TL /// Message entities for sending styled text /// Scheduled message date for scheduled messages public static Task Messages_SendMessage(this Client client, InputPeer peer, string message, long random_id, bool no_webpage = false, bool silent = false, bool background = false, bool clear_draft = false, int? reply_to_msg_id = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null) - => client.CallAsync(new Messages_SendMessage_ + => client.CallAsync(new Messages_SendMessage { - flags = (Messages_SendMessage_.Flags)((no_webpage ? 0x2 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x400 : 0)), + flags = (Messages_SendMessage.Flags)((no_webpage ? 0x2 : 0) | (silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x400 : 0)), peer = peer, reply_to_msg_id = reply_to_msg_id.GetValueOrDefault(), message = message, @@ -14477,35 +13426,6 @@ namespace TL entities = entities, schedule_date = schedule_date.GetValueOrDefault(), }); - - [TLDef(0x3491EBA9)] - public partial class Messages_SendMedia_ : IMethod - { - public Flags flags; - public InputPeer peer; - [IfFlag(0)] public int reply_to_msg_id; - public InputMedia media; - public string message; - public long random_id; - [IfFlag(2)] public ReplyMarkup reply_markup; - [IfFlag(3)] public MessageEntity[] entities; - [IfFlag(10)] public DateTime schedule_date; - - [Flags] public enum Flags - { - /// Field has a value - has_reply_to_msg_id = 0x1, - /// Field has a value - has_reply_markup = 0x4, - /// Field has a value - has_entities = 0x8, - silent = 0x20, - background = 0x40, - clear_draft = 0x80, - /// Field has a value - has_schedule_date = 0x400, - } - } /// Send a media See [bots: โœ“] Possible codes: 400,403,420 (details) /// Send message silently (no notification should be triggered) /// Send message in background @@ -14519,9 +13439,9 @@ namespace TL /// Message entities for styled text /// Scheduled message date for scheduled messages public static Task Messages_SendMedia(this Client client, InputPeer peer, InputMedia media, string message, long random_id, bool silent = false, bool background = false, bool clear_draft = false, int? reply_to_msg_id = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null) - => client.CallAsync(new Messages_SendMedia_ + => client.CallAsync(new Messages_SendMedia { - flags = (Messages_SendMedia_.Flags)((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x400 : 0)), + flags = (Messages_SendMedia.Flags)((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x400 : 0)), peer = peer, reply_to_msg_id = reply_to_msg_id.GetValueOrDefault(), media = media, @@ -14531,28 +13451,6 @@ namespace TL entities = entities, schedule_date = schedule_date.GetValueOrDefault(), }); - - [TLDef(0xD9FEE60E)] - public partial class Messages_ForwardMessages_ : IMethod - { - public Flags flags; - public InputPeer from_peer; - public int[] id; - public long[] random_id; - public InputPeer to_peer; - [IfFlag(10)] public DateTime schedule_date; - - [Flags] public enum Flags - { - silent = 0x20, - background = 0x40, - with_my_score = 0x100, - /// Field has a value - has_schedule_date = 0x400, - drop_author = 0x800, - drop_media_captions = 0x1000, - } - } /// Forwards messages by their IDs. See [bots: โœ“] Possible codes: 400,403,420 (details) /// Whether to send messages silently (no notification will be triggered on the destination clients) /// Whether to send the message in background @@ -14565,329 +13463,176 @@ namespace TL /// Destination peer /// Scheduled message date for scheduled messages public static Task Messages_ForwardMessages(this Client client, InputPeer from_peer, int[] id, long[] random_id, InputPeer to_peer, bool silent = false, bool background = false, bool with_my_score = false, bool drop_author = false, bool drop_media_captions = false, DateTime? schedule_date = null) - => client.CallAsync(new Messages_ForwardMessages_ + => client.CallAsync(new Messages_ForwardMessages { - flags = (Messages_ForwardMessages_.Flags)((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (with_my_score ? 0x100 : 0) | (drop_author ? 0x800 : 0) | (drop_media_captions ? 0x1000 : 0) | (schedule_date != null ? 0x400 : 0)), + flags = (Messages_ForwardMessages.Flags)((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (with_my_score ? 0x100 : 0) | (drop_author ? 0x800 : 0) | (drop_media_captions ? 0x1000 : 0) | (schedule_date != null ? 0x400 : 0)), from_peer = from_peer, id = id, random_id = random_id, to_peer = to_peer, schedule_date = schedule_date.GetValueOrDefault(), }); - - [TLDef(0xCF1592DB)] - public partial class Messages_ReportSpam_ : IMethod - { - public InputPeer peer; - } /// Report a new incoming chat for spam, if the of the chat allow us to do that See Possible codes: 400 (details) /// Peer to report public static Task Messages_ReportSpam(this Client client, InputPeer peer) - => client.CallAsync(new Messages_ReportSpam_ + => client.CallAsync(new Messages_ReportSpam { peer = peer, }); - - [TLDef(0x3672E09C)] - public partial class Messages_GetPeerSettings_ : IMethod - { - public InputPeer peer; - } /// Get peer settings See Possible codes: 400 (details) /// The peer public static Task Messages_GetPeerSettings(this Client client, InputPeer peer) - => client.CallAsync(new Messages_GetPeerSettings_ + => client.CallAsync(new Messages_GetPeerSettings { peer = peer, }); - - [TLDef(0x8953AB4E)] - public partial class Messages_Report_ : IMethod - { - public InputPeer peer; - public int[] id; - public ReportReason reason; - public string message; - } /// Report a message in a chat for violation of telegram's Terms of Service See Possible codes: 400 (details) /// Peer /// IDs of messages to report /// Why are these messages being reported /// Comment for report moderation public static Task Messages_Report(this Client client, InputPeer peer, int[] id, ReportReason reason, string message) - => client.CallAsync(new Messages_Report_ + => client.CallAsync(new Messages_Report { peer = peer, id = id, reason = reason, message = message, }); - - [TLDef(0x49E9528F)] - public partial class Messages_GetChats_ : IMethod - { - public long[] id; - } /// Returns chat basic info on their IDs. See [bots: โœ“] Possible codes: 400 (details) /// List of chat IDs public static Task Messages_GetChats(this Client client, long[] id) - => client.CallAsync(new Messages_GetChats_ + => client.CallAsync(new Messages_GetChats { id = id, }); - - [TLDef(0xAEB00B34)] - public partial class Messages_GetFullChat_ : IMethod - { - public long chat_id; - } /// Returns full chat info according to its ID. See [bots: โœ“] Possible codes: 400 (details) /// Chat ID public static Task Messages_GetFullChat(this Client client, long chat_id) - => client.CallAsync(new Messages_GetFullChat_ + => client.CallAsync(new Messages_GetFullChat { chat_id = chat_id, }); - - [TLDef(0x73783FFD)] - public partial class Messages_EditChatTitle_ : IMethod - { - public long chat_id; - public string title; - } /// Chanages chat name and sends a service message on it. See [bots: โœ“] Possible codes: 400 (details) /// Chat ID /// New chat name, different from the old one public static Task Messages_EditChatTitle(this Client client, long chat_id, string title) - => client.CallAsync(new Messages_EditChatTitle_ + => client.CallAsync(new Messages_EditChatTitle { chat_id = chat_id, title = title, }); - - [TLDef(0x35DDD674)] - public partial class Messages_EditChatPhoto_ : IMethod - { - public long chat_id; - public InputChatPhotoBase photo; - } /// Changes chat photo and sends a service message on it See [bots: โœ“] Possible codes: 400 (details) /// Chat ID /// Photo to be set public static Task Messages_EditChatPhoto(this Client client, long chat_id, InputChatPhotoBase photo) - => client.CallAsync(new Messages_EditChatPhoto_ + => client.CallAsync(new Messages_EditChatPhoto { chat_id = chat_id, photo = photo, }); - - [TLDef(0xF24753E3)] - public partial class Messages_AddChatUser_ : IMethod - { - public long chat_id; - public InputUserBase user_id; - public int fwd_limit; - } /// Adds a user to a chat and sends a service message on it. See Possible codes: 400,403 (details) /// Chat ID /// User ID to be added /// Number of last messages to be forwarded public static Task Messages_AddChatUser(this Client client, long chat_id, InputUserBase user_id, int fwd_limit) - => client.CallAsync(new Messages_AddChatUser_ + => client.CallAsync(new Messages_AddChatUser { chat_id = chat_id, user_id = user_id, fwd_limit = fwd_limit, }); - - [TLDef(0xA2185CAB)] - public partial class Messages_DeleteChatUser_ : IMethod - { - public Flags flags; - public long chat_id; - public InputUserBase user_id; - - [Flags] public enum Flags - { - revoke_history = 0x1, - } - } /// Deletes a user from a chat and sends a service message on it. See [bots: โœ“] Possible codes: 400 (details) /// Remove the entire chat history of the specified user in this chat. /// Chat ID /// User ID to be deleted public static Task Messages_DeleteChatUser(this Client client, long chat_id, InputUserBase user_id, bool revoke_history = false) - => client.CallAsync(new Messages_DeleteChatUser_ + => client.CallAsync(new Messages_DeleteChatUser { - flags = (Messages_DeleteChatUser_.Flags)(revoke_history ? 0x1 : 0), + flags = (Messages_DeleteChatUser.Flags)(revoke_history ? 0x1 : 0), chat_id = chat_id, user_id = user_id, }); - - [TLDef(0x09CB126E)] - public partial class Messages_CreateChat_ : IMethod - { - public InputUserBase[] users; - public string title; - } /// Creates a new chat. See Possible codes: 400,403 (details) /// List of user IDs to be invited /// Chat name public static Task Messages_CreateChat(this Client client, InputUserBase[] users, string title) - => client.CallAsync(new Messages_CreateChat_ + => client.CallAsync(new Messages_CreateChat { users = users, title = title, }); - - [TLDef(0x26CF8950)] - public partial class Messages_GetDhConfig_ : IMethod - { - public int version; - public int random_length; - } /// Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. See Possible codes: 400 (details) /// Value of the version parameter from , avialable at the client /// Length of the required random sequence public static Task Messages_GetDhConfig(this Client client, int version, int random_length) - => client.CallAsync(new Messages_GetDhConfig_ + => client.CallAsync(new Messages_GetDhConfig { version = version, random_length = random_length, }); - - [TLDef(0xF64DAF43)] - public partial class Messages_RequestEncryption_ : IMethod - { - public InputUserBase user_id; - public int random_id; - public byte[] g_a; - } /// Sends a request to start a secret chat to the user. See Possible codes: 400 (details) /// User ID /// Unique client request ID required to prevent resending. This also doubles as the chat ID. /// A = g ^ a mod p, see Wikipedia public static Task Messages_RequestEncryption(this Client client, InputUserBase user_id, int random_id, byte[] g_a) - => client.CallAsync(new Messages_RequestEncryption_ + => client.CallAsync(new Messages_RequestEncryption { user_id = user_id, random_id = random_id, g_a = g_a, }); - - [TLDef(0x3DBC0415)] - public partial class Messages_AcceptEncryption_ : IMethod - { - public InputEncryptedChat peer; - public byte[] g_b; - public long key_fingerprint; - } /// Confirms creation of a secret chat See Possible codes: 400 (details) /// Secret chat ID /// B = g ^ b mod p, see Wikipedia /// 64-bit fingerprint of the received key public static Task Messages_AcceptEncryption(this Client client, InputEncryptedChat peer, byte[] g_b, long key_fingerprint) - => client.CallAsync(new Messages_AcceptEncryption_ + => client.CallAsync(new Messages_AcceptEncryption { peer = peer, g_b = g_b, key_fingerprint = key_fingerprint, }); - - [TLDef(0xF393AEA0)] - public partial class Messages_DiscardEncryption_ : IMethod - { - public Flags flags; - public int chat_id; - - [Flags] public enum Flags - { - delete_history = 0x1, - } - } /// Cancels a request for creation and/or delete info on secret chat. See Possible codes: 400 (details) /// Whether to delete the entire chat history for the other user as well /// Secret chat ID public static Task Messages_DiscardEncryption(this Client client, int chat_id, bool delete_history = false) - => client.CallAsync(new Messages_DiscardEncryption_ + => client.CallAsync(new Messages_DiscardEncryption { - flags = (Messages_DiscardEncryption_.Flags)(delete_history ? 0x1 : 0), + flags = (Messages_DiscardEncryption.Flags)(delete_history ? 0x1 : 0), chat_id = chat_id, }); - - [TLDef(0x791451ED)] - public partial class Messages_SetEncryptedTyping_ : IMethod - { - public InputEncryptedChat peer; - public bool typing; - } /// Send typing event by the current user to a secret chat. See Possible codes: 400 (details) /// Secret chat ID /// Typing.
Possible values:
, if the user started typing and more than 5 seconds have passed since the last request
, if the user stopped typing public static Task Messages_SetEncryptedTyping(this Client client, InputEncryptedChat peer, bool typing) - => client.CallAsync(new Messages_SetEncryptedTyping_ + => client.CallAsync(new Messages_SetEncryptedTyping { peer = peer, typing = typing, }); - - [TLDef(0x7F4B690A)] - public partial class Messages_ReadEncryptedHistory_ : IMethod - { - public InputEncryptedChat peer; - public DateTime max_date; - } /// Marks message history within a secret chat as read. See Possible codes: 400 (details) /// Secret chat ID /// Maximum date value for received messages in history public static Task Messages_ReadEncryptedHistory(this Client client, InputEncryptedChat peer, DateTime max_date) - => client.CallAsync(new Messages_ReadEncryptedHistory_ + => client.CallAsync(new Messages_ReadEncryptedHistory { peer = peer, max_date = max_date, }); - - [TLDef(0x44FA7A15)] - public partial class Messages_SendEncrypted_ : IMethod - { - public Flags flags; - public InputEncryptedChat peer; - public long random_id; - public byte[] data; - - [Flags] public enum Flags - { - silent = 0x1, - } - } /// Sends a text message to a secret chat. See Possible codes: 400,403 (details) /// Send encrypted message without a notification /// Secret chat ID /// Unique client message ID, necessary to avoid message resending /// TL-serialization of type, encrypted with a key that was created during chat initialization public static Task Messages_SendEncrypted(this Client client, InputEncryptedChat peer, long random_id, byte[] data, bool silent = false) - => client.CallAsync(new Messages_SendEncrypted_ + => client.CallAsync(new Messages_SendEncrypted { - flags = (Messages_SendEncrypted_.Flags)(silent ? 0x1 : 0), + flags = (Messages_SendEncrypted.Flags)(silent ? 0x1 : 0), peer = peer, random_id = random_id, data = data, }); - - [TLDef(0x5559481D)] - public partial class Messages_SendEncryptedFile_ : IMethod - { - public Flags flags; - public InputEncryptedChat peer; - public long random_id; - public byte[] data; - public InputEncryptedFileBase file; - - [Flags] public enum Flags - { - silent = 0x1, - } - } /// Sends a message with a file attachment to a secret chat See Possible codes: 400 (details) /// Whether to send the file without triggering a notification /// Secret chat ID @@ -14895,326 +13640,168 @@ namespace TL /// TL-serialization of type, encrypted with a key generated during chat initialization /// File attachment for the secret chat public static Task Messages_SendEncryptedFile(this Client client, InputEncryptedChat peer, long random_id, byte[] data, InputEncryptedFileBase file, bool silent = false) - => client.CallAsync(new Messages_SendEncryptedFile_ + => client.CallAsync(new Messages_SendEncryptedFile { - flags = (Messages_SendEncryptedFile_.Flags)(silent ? 0x1 : 0), + flags = (Messages_SendEncryptedFile.Flags)(silent ? 0x1 : 0), peer = peer, random_id = random_id, data = data, file = file, }); - - [TLDef(0x32D439A4)] - public partial class Messages_SendEncryptedService_ : IMethod - { - public InputEncryptedChat peer; - public long random_id; - public byte[] data; - } /// Sends a service message to a secret chat. See Possible codes: 400,403 (details) /// Secret chat ID /// Unique client message ID required to prevent message resending /// TL-serialization of type, encrypted with a key generated during chat initialization public static Task Messages_SendEncryptedService(this Client client, InputEncryptedChat peer, long random_id, byte[] data) - => client.CallAsync(new Messages_SendEncryptedService_ + => client.CallAsync(new Messages_SendEncryptedService { peer = peer, random_id = random_id, data = data, }); - - [TLDef(0x55A5BB66)] - public partial class Messages_ReceivedQueue_ : IMethod - { - public int max_qts; - } /// Confirms receipt of messages in a secret chat by client, cancels push notifications. See Possible codes: 400 (details) /// Maximum qts value available at the client public static Task Messages_ReceivedQueue(this Client client, int max_qts) - => client.CallAsync(new Messages_ReceivedQueue_ + => client.CallAsync(new Messages_ReceivedQueue { max_qts = max_qts, }); - - [TLDef(0x4B0C8C0F)] - public partial class Messages_ReportEncryptedSpam_ : IMethod - { - public InputEncryptedChat peer; - } /// Report a secret chat for spam See Possible codes: 400 (details) /// The secret chat to report public static Task Messages_ReportEncryptedSpam(this Client client, InputEncryptedChat peer) - => client.CallAsync(new Messages_ReportEncryptedSpam_ + => client.CallAsync(new Messages_ReportEncryptedSpam { peer = peer, }); - - [TLDef(0x36A73F77)] - public partial class Messages_ReadMessageContents_ : IMethod - { - public int[] id; - } /// Notifies the sender about the recipient having listened a voice message or watched a video. See /// Message ID list public static Task Messages_ReadMessageContents(this Client client, int[] id) - => client.CallAsync(new Messages_ReadMessageContents_ + => client.CallAsync(new Messages_ReadMessageContents { id = id, }); - - [TLDef(0xD5A5D3A1)] - public partial class Messages_GetStickers_ : IMethod - { - public string emoticon; - public long hash; - } /// Get stickers by emoji See Possible codes: 400 (details) /// The emoji /// Hash for pagination, for more info click here /// a null value means messages.stickersNotModified public static Task Messages_GetStickers(this Client client, string emoticon, long hash) - => client.CallAsync(new Messages_GetStickers_ + => client.CallAsync(new Messages_GetStickers { emoticon = emoticon, hash = hash, }); - - [TLDef(0xB8A0A1A8)] - public partial class Messages_GetAllStickers_ : IMethod - { - public long hash; - } /// Get all installed stickers See /// Hash for pagination, for more info click here /// a null value means messages.allStickersNotModified public static Task Messages_GetAllStickers(this Client client, long hash) - => client.CallAsync(new Messages_GetAllStickers_ + => client.CallAsync(new Messages_GetAllStickers { hash = hash, }); - - [TLDef(0x8B68B0CC)] - public partial class Messages_GetWebPagePreview_ : IMethod - { - public Flags flags; - public string message; - [IfFlag(3)] public MessageEntity[] entities; - - [Flags] public enum Flags - { - /// Field has a value - has_entities = 0x8, - } - } /// Get preview of webpage See Possible codes: 400 (details) /// Message from which to extract the preview /// Message entities for styled text /// a null value means messageMediaEmpty public static Task Messages_GetWebPagePreview(this Client client, string message, MessageEntity[] entities = null) - => client.CallAsync(new Messages_GetWebPagePreview_ + => client.CallAsync(new Messages_GetWebPagePreview { - flags = (Messages_GetWebPagePreview_.Flags)(entities != null ? 0x8 : 0), + flags = (Messages_GetWebPagePreview.Flags)(entities != null ? 0x8 : 0), message = message, entities = entities, }); - - [TLDef(0xA02CE5D5)] - public partial class Messages_ExportChatInvite_ : IMethod - { - public Flags flags; - public InputPeer peer; - [IfFlag(0)] public DateTime expire_date; - [IfFlag(1)] public int usage_limit; - [IfFlag(4)] public string title; - - [Flags] public enum Flags - { - /// Field has a value - has_expire_date = 0x1, - /// Field has a value - has_usage_limit = 0x2, - legacy_revoke_permanent = 0x4, - request_needed = 0x8, - /// Field has a value - has_title = 0x10, - } - } /// Export an invite link for a chat See [bots: โœ“] Possible codes: 400,403 (details) /// Legacy flag, reproducing legacy behavior of this method: if set, revokes all previous links before creating a new one. Kept for bot API BC, should not be used by modern clients. /// Chat /// Expiration date /// Maximum number of users that can join using this link public static Task Messages_ExportChatInvite(this Client client, InputPeer peer, bool legacy_revoke_permanent = false, bool request_needed = false, DateTime? expire_date = null, int? usage_limit = null, string title = null) - => client.CallAsync(new Messages_ExportChatInvite_ + => client.CallAsync(new Messages_ExportChatInvite { - flags = (Messages_ExportChatInvite_.Flags)((legacy_revoke_permanent ? 0x4 : 0) | (request_needed ? 0x8 : 0) | (expire_date != null ? 0x1 : 0) | (usage_limit != null ? 0x2 : 0) | (title != null ? 0x10 : 0)), + flags = (Messages_ExportChatInvite.Flags)((legacy_revoke_permanent ? 0x4 : 0) | (request_needed ? 0x8 : 0) | (expire_date != null ? 0x1 : 0) | (usage_limit != null ? 0x2 : 0) | (title != null ? 0x10 : 0)), peer = peer, expire_date = expire_date.GetValueOrDefault(), usage_limit = usage_limit.GetValueOrDefault(), title = title, }); - - [TLDef(0x3EADB1BB)] - public partial class Messages_CheckChatInvite_ : IMethod - { - public string hash; - } /// Check the validity of a chat invite link and get basic info about it See Possible codes: 400 (details) /// Invite hash in t.me/joinchat/hash public static Task Messages_CheckChatInvite(this Client client, string hash) - => client.CallAsync(new Messages_CheckChatInvite_ + => client.CallAsync(new Messages_CheckChatInvite { hash = hash, }); - - [TLDef(0x6C50051C)] - public partial class Messages_ImportChatInvite_ : IMethod - { - public string hash; - } /// Import a chat invite and join a private chat/supergroup/channel See Possible codes: 400 (details) /// hash from t.me/joinchat/hash public static Task Messages_ImportChatInvite(this Client client, string hash) - => client.CallAsync(new Messages_ImportChatInvite_ + => client.CallAsync(new Messages_ImportChatInvite { hash = hash, }); - - [TLDef(0x2619A90E)] - public partial class Messages_GetStickerSet_ : IMethod - { - public InputStickerSet stickerset; - } /// Get info about a stickerset See [bots: โœ“] Possible codes: 400 (details) /// Stickerset public static Task Messages_GetStickerSet(this Client client, InputStickerSet stickerset) - => client.CallAsync(new Messages_GetStickerSet_ + => client.CallAsync(new Messages_GetStickerSet { stickerset = stickerset, }); - - [TLDef(0xC78FE460)] - public partial class Messages_InstallStickerSet_ : IMethod - { - public InputStickerSet stickerset; - public bool archived; - } /// Install a stickerset See Possible codes: 400 (details) /// Stickerset to install /// Whether to archive stickerset public static Task Messages_InstallStickerSet(this Client client, InputStickerSet stickerset, bool archived) - => client.CallAsync(new Messages_InstallStickerSet_ + => client.CallAsync(new Messages_InstallStickerSet { stickerset = stickerset, archived = archived, }); - - [TLDef(0xF96E55DE)] - public partial class Messages_UninstallStickerSet_ : IMethod - { - public InputStickerSet stickerset; - } /// Uninstall a stickerset See Possible codes: 400 (details) /// The stickerset to uninstall public static Task Messages_UninstallStickerSet(this Client client, InputStickerSet stickerset) - => client.CallAsync(new Messages_UninstallStickerSet_ + => client.CallAsync(new Messages_UninstallStickerSet { stickerset = stickerset, }); - - [TLDef(0xE6DF7378)] - public partial class Messages_StartBot_ : IMethod - { - public InputUserBase bot; - public InputPeer peer; - public long random_id; - public string start_param; - } /// Start a conversation with a bot using a deep linking parameter See Possible codes: 400 (details) /// The bot /// The chat where to start the bot, can be the bot's private chat or a group /// Random ID to avoid resending the same message /// Deep linking parameter public static Task Messages_StartBot(this Client client, InputUserBase bot, InputPeer peer, long random_id, string start_param) - => client.CallAsync(new Messages_StartBot_ + => client.CallAsync(new Messages_StartBot { bot = bot, peer = peer, random_id = random_id, start_param = start_param, }); - - [TLDef(0x5784D3E1)] - public partial class Messages_GetMessagesViews_ : IMethod - { - public InputPeer peer; - public int[] id; - public bool increment; - } /// Get and increase the view counter of a message sent or forwarded from a channel See Possible codes: 400 (details) /// Peer where the message was found /// ID of message /// Whether to mark the message as viewed and increment the view counter public static Task Messages_GetMessagesViews(this Client client, InputPeer peer, int[] id, bool increment) - => client.CallAsync(new Messages_GetMessagesViews_ + => client.CallAsync(new Messages_GetMessagesViews { peer = peer, id = id, increment = increment, }); - - [TLDef(0xA85BD1C2)] - public partial class Messages_EditChatAdmin_ : IMethod - { - public long chat_id; - public InputUserBase user_id; - public bool is_admin; - } /// Make a user admin in a legacy group. See Possible codes: 400 (details) /// The ID of the group /// The user to make admin /// Whether to make him admin public static Task Messages_EditChatAdmin(this Client client, long chat_id, InputUserBase user_id, bool is_admin) - => client.CallAsync(new Messages_EditChatAdmin_ + => client.CallAsync(new Messages_EditChatAdmin { chat_id = chat_id, user_id = user_id, is_admin = is_admin, }); - - [TLDef(0xA2875319)] - public partial class Messages_MigrateChat_ : IMethod - { - public long chat_id; - } /// Turn a legacy group into a supergroup See Possible codes: 400,403 (details) /// Legacy group to migrate public static Task Messages_MigrateChat(this Client client, long chat_id) - => client.CallAsync(new Messages_MigrateChat_ + => client.CallAsync(new Messages_MigrateChat { chat_id = chat_id, }); - - [TLDef(0x4BC6589A)] - public partial class Messages_SearchGlobal_ : IMethod - { - public Flags flags; - [IfFlag(0)] public int folder_id; - public string q; - public MessagesFilter filter; - public DateTime min_date; - public DateTime max_date; - public int offset_rate; - public InputPeer offset_peer; - public int offset_id; - public int limit; - - [Flags] public enum Flags - { - /// Field has a value - has_folder_id = 0x1, - } - } /// Search for messages and peers globally See Possible codes: 400 (details) /// Peer folder ID, for more info click here /// Query @@ -15226,9 +13813,9 @@ namespace TL /// Offsets for pagination, for more info click here /// Offsets for pagination, for more info click here public static Task Messages_SearchGlobal(this Client client, string q, MessagesFilter filter, DateTime min_date, DateTime max_date, int offset_rate, InputPeer offset_peer, int offset_id, int limit, int? folder_id = null) - => client.CallAsync(new Messages_SearchGlobal_ + => client.CallAsync(new Messages_SearchGlobal { - flags = (Messages_SearchGlobal_.Flags)(folder_id != null ? 0x1 : 0), + flags = (Messages_SearchGlobal.Flags)(folder_id != null ? 0x1 : 0), folder_id = folder_id.GetValueOrDefault(), q = q, filter = filter, @@ -15239,93 +13826,43 @@ namespace TL offset_id = offset_id, limit = limit, }); - - [TLDef(0x78337739)] - public partial class Messages_ReorderStickerSets_ : IMethod - { - public Flags flags; - public long[] order; - - [Flags] public enum Flags - { - masks = 0x1, - } - } /// Reorder installed stickersets See /// Reorder mask stickersets /// New stickerset order by stickerset IDs public static Task Messages_ReorderStickerSets(this Client client, long[] order, bool masks = false) - => client.CallAsync(new Messages_ReorderStickerSets_ + => client.CallAsync(new Messages_ReorderStickerSets { - flags = (Messages_ReorderStickerSets_.Flags)(masks ? 0x1 : 0), + flags = (Messages_ReorderStickerSets.Flags)(masks ? 0x1 : 0), order = order, }); - - [TLDef(0x338E2464)] - public partial class Messages_GetDocumentByHash_ : IMethod - { - public byte[] sha256; - public int size; - public string mime_type; - } /// Get a document by its SHA256 hash, mainly used for gifs See [bots: โœ“] Possible codes: 400 (details) /// SHA256 of file /// Size of the file in bytes /// Mime type public static Task Messages_GetDocumentByHash(this Client client, byte[] sha256, int size, string mime_type) - => client.CallAsync(new Messages_GetDocumentByHash_ + => client.CallAsync(new Messages_GetDocumentByHash { sha256 = sha256, size = size, mime_type = mime_type, }); - - [TLDef(0x5CF09635)] - public partial class Messages_GetSavedGifs_ : IMethod - { - public long hash; - } /// Get saved GIFs See /// Hash for pagination, for more info click here /// a null value means messages.savedGifsNotModified public static Task Messages_GetSavedGifs(this Client client, long hash) - => client.CallAsync(new Messages_GetSavedGifs_ + => client.CallAsync(new Messages_GetSavedGifs { hash = hash, }); - - [TLDef(0x327A30CB)] - public partial class Messages_SaveGif_ : IMethod - { - public InputDocument id; - public bool unsave; - } /// Add GIF to saved gifs list See Possible codes: 400 (details) /// GIF to save /// Whether to remove GIF from saved gifs list public static Task Messages_SaveGif(this Client client, InputDocument id, bool unsave) - => client.CallAsync(new Messages_SaveGif_ + => client.CallAsync(new Messages_SaveGif { id = id, unsave = unsave, }); - - [TLDef(0x514E999D)] - public partial class Messages_GetInlineBotResults_ : IMethod - { - public Flags flags; - public InputUserBase bot; - public InputPeer peer; - [IfFlag(0)] public InputGeoPoint geo_point; - public string query; - public string offset; - - [Flags] public enum Flags - { - /// Field has a value - has_geo_point = 0x1, - } - } /// Query an inline bot See Possible codes: -503,400 (details) /// The bot to query /// The currently opened chat @@ -15333,36 +13870,15 @@ namespace TL /// The query /// The offset within the results, will be passed directly as-is to the bot. public static Task Messages_GetInlineBotResults(this Client client, InputUserBase bot, InputPeer peer, string query, string offset, InputGeoPoint geo_point = null) - => client.CallAsync(new Messages_GetInlineBotResults_ + => client.CallAsync(new Messages_GetInlineBotResults { - flags = (Messages_GetInlineBotResults_.Flags)(geo_point != null ? 0x1 : 0), + flags = (Messages_GetInlineBotResults.Flags)(geo_point != null ? 0x1 : 0), bot = bot, peer = peer, geo_point = geo_point, query = query, offset = offset, }); - - [TLDef(0xEB5EA206)] - public partial class Messages_SetInlineBotResults_ : IMethod - { - public Flags flags; - public long query_id; - public InputBotInlineResultBase[] results; - public DateTime cache_time; - [IfFlag(2)] public string next_offset; - [IfFlag(3)] public InlineBotSwitchPM switch_pm; - - [Flags] public enum Flags - { - gallery = 0x1, - private_ = 0x2, - /// Field has a value - has_next_offset = 0x4, - /// Field has a value - has_switch_pm = 0x8, - } - } /// Answer an inline query, for bots only See [bots: โœ“] Possible codes: 400,403 (details) /// Set this flag if the results are composed of media files /// Set this flag if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query @@ -15372,39 +13888,15 @@ namespace TL /// Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you donโ€˜t support pagination. Offset length canโ€™t exceed 64 bytes. /// If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter. public static Task Messages_SetInlineBotResults(this Client client, long query_id, InputBotInlineResultBase[] results, DateTime cache_time, bool gallery = false, bool private_ = false, string next_offset = null, InlineBotSwitchPM switch_pm = null) - => client.CallAsync(new Messages_SetInlineBotResults_ + => client.CallAsync(new Messages_SetInlineBotResults { - flags = (Messages_SetInlineBotResults_.Flags)((gallery ? 0x1 : 0) | (private_ ? 0x2 : 0) | (next_offset != null ? 0x4 : 0) | (switch_pm != null ? 0x8 : 0)), + flags = (Messages_SetInlineBotResults.Flags)((gallery ? 0x1 : 0) | (private_ ? 0x2 : 0) | (next_offset != null ? 0x4 : 0) | (switch_pm != null ? 0x8 : 0)), query_id = query_id, results = results, cache_time = cache_time, next_offset = next_offset, switch_pm = switch_pm, }); - - [TLDef(0x220815B0)] - public partial class Messages_SendInlineBotResult_ : IMethod - { - public Flags flags; - public InputPeer peer; - [IfFlag(0)] public int reply_to_msg_id; - public long random_id; - public long query_id; - public string id; - [IfFlag(10)] public DateTime schedule_date; - - [Flags] public enum Flags - { - /// Field has a value - has_reply_to_msg_id = 0x1, - silent = 0x20, - background = 0x40, - clear_draft = 0x80, - /// Field has a value - has_schedule_date = 0x400, - hide_via = 0x800, - } - } /// Send a result obtained using messages.getInlineBotResults. See Possible codes: 400,403,420 (details) /// Whether to send the message silently (no notification will be triggered on the other client) /// Whether to send the message in background @@ -15417,9 +13909,9 @@ namespace TL /// Result ID from messages.getInlineBotResults /// Scheduled message date for scheduled messages public static Task Messages_SendInlineBotResult(this Client client, InputPeer peer, long random_id, long query_id, string id, bool silent = false, bool background = false, bool clear_draft = false, bool hide_via = false, int? reply_to_msg_id = null, DateTime? schedule_date = null) - => client.CallAsync(new Messages_SendInlineBotResult_ + => client.CallAsync(new Messages_SendInlineBotResult { - flags = (Messages_SendInlineBotResult_.Flags)((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (hide_via ? 0x800 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (schedule_date != null ? 0x400 : 0)), + flags = (Messages_SendInlineBotResult.Flags)((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (hide_via ? 0x800 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (schedule_date != null ? 0x400 : 0)), peer = peer, reply_to_msg_id = reply_to_msg_id.GetValueOrDefault(), random_id = random_id, @@ -15427,50 +13919,15 @@ namespace TL id = id, schedule_date = schedule_date.GetValueOrDefault(), }); - - [TLDef(0xFDA68D36)] - public partial class Messages_GetMessageEditData_ : IMethod - { - public InputPeer peer; - public int id; - } /// Find out if a media message's caption can be edited See Possible codes: 400,403 (details) /// Peer where the media was sent /// ID of message public static Task Messages_GetMessageEditData(this Client client, InputPeer peer, int id) - => client.CallAsync(new Messages_GetMessageEditData_ + => client.CallAsync(new Messages_GetMessageEditData { peer = peer, id = id, }); - - [TLDef(0x48F71778)] - public partial class Messages_EditMessage_ : IMethod - { - public Flags flags; - public InputPeer peer; - public int id; - [IfFlag(11)] public string message; - [IfFlag(14)] public InputMedia media; - [IfFlag(2)] public ReplyMarkup reply_markup; - [IfFlag(3)] public MessageEntity[] entities; - [IfFlag(15)] public DateTime schedule_date; - - [Flags] public enum Flags - { - no_webpage = 0x2, - /// Field has a value - has_reply_markup = 0x4, - /// Field has a value - has_entities = 0x8, - /// Field has a value - has_message = 0x800, - /// Field has a value - has_media = 0x4000, - /// Field has a value - has_schedule_date = 0x8000, - } - } /// Edit message See [bots: โœ“] Possible codes: 400,403 (details) /// Disable webpage preview /// Where was the message sent @@ -15481,9 +13938,9 @@ namespace TL /// Message entities for styled text /// Scheduled message date for scheduled messages public static Task Messages_EditMessage(this Client client, InputPeer peer, int id, bool no_webpage = false, string message = null, InputMedia media = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null, DateTime? schedule_date = null) - => client.CallAsync(new Messages_EditMessage_ + => client.CallAsync(new Messages_EditMessage { - flags = (Messages_EditMessage_.Flags)((no_webpage ? 0x2 : 0) | (message != null ? 0x800 : 0) | (media != null ? 0x4000 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x8000 : 0)), + flags = (Messages_EditMessage.Flags)((no_webpage ? 0x2 : 0) | (message != null ? 0x800 : 0) | (media != null ? 0x4000 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0) | (schedule_date != null ? 0x8000 : 0)), peer = peer, id = id, message = message, @@ -15492,30 +13949,6 @@ namespace TL entities = entities, schedule_date = schedule_date.GetValueOrDefault(), }); - - [TLDef(0x83557DBA)] - public partial class Messages_EditInlineBotMessage_ : IMethod - { - public Flags flags; - public InputBotInlineMessageIDBase id; - [IfFlag(11)] public string message; - [IfFlag(14)] public InputMedia media; - [IfFlag(2)] public ReplyMarkup reply_markup; - [IfFlag(3)] public MessageEntity[] entities; - - [Flags] public enum Flags - { - no_webpage = 0x2, - /// Field has a value - has_reply_markup = 0x4, - /// Field has a value - has_entities = 0x8, - /// Field has a value - has_message = 0x800, - /// Field has a value - has_media = 0x4000, - } - } /// Edit an inline bot message See [bots: โœ“] Possible codes: 400 (details) /// Disable webpage preview /// Sent inline message ID @@ -15524,34 +13957,15 @@ namespace TL /// Reply markup for inline keyboards /// Message entities for styled text public static Task Messages_EditInlineBotMessage(this Client client, InputBotInlineMessageIDBase id, bool no_webpage = false, string message = null, InputMedia media = null, ReplyMarkup reply_markup = null, MessageEntity[] entities = null) - => client.CallAsync(new Messages_EditInlineBotMessage_ + => client.CallAsync(new Messages_EditInlineBotMessage { - flags = (Messages_EditInlineBotMessage_.Flags)((no_webpage ? 0x2 : 0) | (message != null ? 0x800 : 0) | (media != null ? 0x4000 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0)), + flags = (Messages_EditInlineBotMessage.Flags)((no_webpage ? 0x2 : 0) | (message != null ? 0x800 : 0) | (media != null ? 0x4000 : 0) | (reply_markup != null ? 0x4 : 0) | (entities != null ? 0x8 : 0)), id = id, message = message, media = media, reply_markup = reply_markup, entities = entities, }); - - [TLDef(0x9342CA07)] - public partial class Messages_GetBotCallbackAnswer_ : IMethod - { - public Flags flags; - public InputPeer peer; - public int msg_id; - [IfFlag(0)] public byte[] data; - [IfFlag(2)] public InputCheckPasswordSRP password; - - [Flags] public enum Flags - { - /// Field has a value - has_data = 0x1, - game = 0x2, - /// Field has a value - has_password = 0x4, - } - } /// Press an inline callback button and get a callback answer from the bot See Possible codes: -503,400 (details) /// Whether this is a "play game" button /// Where was the inline keyboard sent @@ -15559,33 +13973,14 @@ namespace TL /// Callback data /// For buttons , the SRP payload generated using SRP. public static Task Messages_GetBotCallbackAnswer(this Client client, InputPeer peer, int msg_id, bool game = false, byte[] data = null, InputCheckPasswordSRP password = null) - => client.CallAsync(new Messages_GetBotCallbackAnswer_ + => client.CallAsync(new Messages_GetBotCallbackAnswer { - flags = (Messages_GetBotCallbackAnswer_.Flags)((game ? 0x2 : 0) | (data != null ? 0x1 : 0) | (password != null ? 0x4 : 0)), + flags = (Messages_GetBotCallbackAnswer.Flags)((game ? 0x2 : 0) | (data != null ? 0x1 : 0) | (password != null ? 0x4 : 0)), peer = peer, msg_id = msg_id, data = data, password = password, }); - - [TLDef(0xD58F130A)] - public partial class Messages_SetBotCallbackAnswer_ : IMethod - { - public Flags flags; - public long query_id; - [IfFlag(0)] public string message; - [IfFlag(2)] public string url; - public DateTime cache_time; - - [Flags] public enum Flags - { - /// Field has a value - has_message = 0x1, - alert = 0x2, - /// Field has a value - has_url = 0x4, - } - } /// Set the callback answer to a user button press (bots only) See [bots: โœ“] Possible codes: 400 (details) /// Whether to show the message as a popup instead of a toast notification /// Query ID @@ -15593,46 +13988,21 @@ namespace TL /// URL to open /// Cache validity public static Task Messages_SetBotCallbackAnswer(this Client client, long query_id, DateTime cache_time, bool alert = false, string message = null, string url = null) - => client.CallAsync(new Messages_SetBotCallbackAnswer_ + => client.CallAsync(new Messages_SetBotCallbackAnswer { - flags = (Messages_SetBotCallbackAnswer_.Flags)((alert ? 0x2 : 0) | (message != null ? 0x1 : 0) | (url != null ? 0x4 : 0)), + flags = (Messages_SetBotCallbackAnswer.Flags)((alert ? 0x2 : 0) | (message != null ? 0x1 : 0) | (url != null ? 0x4 : 0)), query_id = query_id, message = message, url = url, cache_time = cache_time, }); - - [TLDef(0xE470BCFD)] - public partial class Messages_GetPeerDialogs_ : IMethod - { - public InputDialogPeerBase[] peers; - } /// Get dialog info of specified peers See Possible codes: 400 (details) /// Peers public static Task Messages_GetPeerDialogs(this Client client, InputDialogPeerBase[] peers) - => client.CallAsync(new Messages_GetPeerDialogs_ + => client.CallAsync(new Messages_GetPeerDialogs { peers = peers, }); - - [TLDef(0xBC39E14B)] - public partial class Messages_SaveDraft_ : IMethod - { - public Flags flags; - [IfFlag(0)] public int reply_to_msg_id; - public InputPeer peer; - public string message; - [IfFlag(3)] public MessageEntity[] entities; - - [Flags] public enum Flags - { - /// Field has a value - has_reply_to_msg_id = 0x1, - no_webpage = 0x2, - /// Field has a value - has_entities = 0x8, - } - } /// Save a message draft associated to a chat. See Possible codes: 400 (details) /// Disable generation of the webpage preview /// Message ID the message should reply to @@ -15640,179 +14010,87 @@ namespace TL /// The draft /// Message entities for styled text public static Task Messages_SaveDraft(this Client client, InputPeer peer, string message, bool no_webpage = false, int? reply_to_msg_id = null, MessageEntity[] entities = null) - => client.CallAsync(new Messages_SaveDraft_ + => client.CallAsync(new Messages_SaveDraft { - flags = (Messages_SaveDraft_.Flags)((no_webpage ? 0x2 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (entities != null ? 0x8 : 0)), + flags = (Messages_SaveDraft.Flags)((no_webpage ? 0x2 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (entities != null ? 0x8 : 0)), reply_to_msg_id = reply_to_msg_id.GetValueOrDefault(), peer = peer, message = message, entities = entities, }); - - [TLDef(0x6A3F8D65)] - public partial class Messages_GetAllDrafts_ : IMethod { } /// Save get all message drafts. See public static Task Messages_GetAllDrafts(this Client client) - => client.CallAsync(new Messages_GetAllDrafts_ + => client.CallAsync(new Messages_GetAllDrafts { }); - - [TLDef(0x64780B14)] - public partial class Messages_GetFeaturedStickers_ : IMethod - { - public long hash; - } /// Get featured stickers See /// Hash for pagination, for more info click here public static Task Messages_GetFeaturedStickers(this Client client, long hash) - => client.CallAsync(new Messages_GetFeaturedStickers_ + => client.CallAsync(new Messages_GetFeaturedStickers { hash = hash, }); - - [TLDef(0x5B118126)] - public partial class Messages_ReadFeaturedStickers_ : IMethod - { - public long[] id; - } /// Mark new featured stickers as read See /// IDs of stickersets to mark as read public static Task Messages_ReadFeaturedStickers(this Client client, long[] id) - => client.CallAsync(new Messages_ReadFeaturedStickers_ + => client.CallAsync(new Messages_ReadFeaturedStickers { id = id, }); - - [TLDef(0x9DA9403B)] - public partial class Messages_GetRecentStickers_ : IMethod - { - public Flags flags; - public long hash; - - [Flags] public enum Flags - { - attached = 0x1, - } - } /// Get recent stickers See /// Get stickers recently attached to photo or video files /// Hash for pagination, for more info click here /// a null value means messages.recentStickersNotModified public static Task Messages_GetRecentStickers(this Client client, long hash, bool attached = false) - => client.CallAsync(new Messages_GetRecentStickers_ + => client.CallAsync(new Messages_GetRecentStickers { - flags = (Messages_GetRecentStickers_.Flags)(attached ? 0x1 : 0), + flags = (Messages_GetRecentStickers.Flags)(attached ? 0x1 : 0), hash = hash, }); - - [TLDef(0x392718F8)] - public partial class Messages_SaveRecentSticker_ : IMethod - { - public Flags flags; - public InputDocument id; - public bool unsave; - - [Flags] public enum Flags - { - attached = 0x1, - } - } /// Add/remove sticker from recent stickers list See Possible codes: 400 (details) /// Whether to add/remove stickers recently attached to photo or video files /// Sticker /// Whether to save or unsave the sticker public static Task Messages_SaveRecentSticker(this Client client, InputDocument id, bool unsave, bool attached = false) - => client.CallAsync(new Messages_SaveRecentSticker_ + => client.CallAsync(new Messages_SaveRecentSticker { - flags = (Messages_SaveRecentSticker_.Flags)(attached ? 0x1 : 0), + flags = (Messages_SaveRecentSticker.Flags)(attached ? 0x1 : 0), id = id, unsave = unsave, }); - - [TLDef(0x8999602D)] - public partial class Messages_ClearRecentStickers_ : IMethod - { - public Flags flags; - - [Flags] public enum Flags - { - attached = 0x1, - } - } /// Clear recent stickers See /// Set this flag to clear the list of stickers recently attached to photo or video files public static Task Messages_ClearRecentStickers(this Client client, bool attached = false) - => client.CallAsync(new Messages_ClearRecentStickers_ + => client.CallAsync(new Messages_ClearRecentStickers { - flags = (Messages_ClearRecentStickers_.Flags)(attached ? 0x1 : 0), + flags = (Messages_ClearRecentStickers.Flags)(attached ? 0x1 : 0), }); - - [TLDef(0x57F17692)] - public partial class Messages_GetArchivedStickers_ : IMethod - { - public Flags flags; - public long offset_id; - public int limit; - - [Flags] public enum Flags - { - masks = 0x1, - } - } /// Get all archived stickers See /// Get mask stickers /// Offsets for pagination, for more info click here /// Maximum number of results to return, see pagination public static Task Messages_GetArchivedStickers(this Client client, long offset_id, int limit, bool masks = false) - => client.CallAsync(new Messages_GetArchivedStickers_ + => client.CallAsync(new Messages_GetArchivedStickers { - flags = (Messages_GetArchivedStickers_.Flags)(masks ? 0x1 : 0), + flags = (Messages_GetArchivedStickers.Flags)(masks ? 0x1 : 0), offset_id = offset_id, limit = limit, }); - - [TLDef(0x640F82B8)] - public partial class Messages_GetMaskStickers_ : IMethod - { - public long hash; - } /// Get installed mask stickers See /// Hash for pagination, for more info click here /// a null value means messages.allStickersNotModified public static Task Messages_GetMaskStickers(this Client client, long hash) - => client.CallAsync(new Messages_GetMaskStickers_ + => client.CallAsync(new Messages_GetMaskStickers { hash = hash, }); - - [TLDef(0xCC5B67CC)] - public partial class Messages_GetAttachedStickers_ : IMethod - { - public InputStickeredMedia media; - } /// Get stickers attached to a photo or video See /// Stickered media public static Task Messages_GetAttachedStickers(this Client client, InputStickeredMedia media) - => client.CallAsync(new Messages_GetAttachedStickers_ + => client.CallAsync(new Messages_GetAttachedStickers { media = media, }); - - [TLDef(0x8EF8ECC0)] - public partial class Messages_SetGameScore_ : IMethod - { - public Flags flags; - public InputPeer peer; - public int id; - public InputUserBase user_id; - public int score; - - [Flags] public enum Flags - { - edit_message = 0x1, - force = 0x2, - } - } /// Use this method to set the score of the specified user in a game sent as a normal message (bots only). See [bots: โœ“] Possible codes: 400 (details) /// Set this flag if the game message should be automatically edited to include the current scoreboard /// Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters @@ -15821,29 +14099,14 @@ namespace TL /// User identifier /// New score public static Task Messages_SetGameScore(this Client client, InputPeer peer, int id, InputUserBase user_id, int score, bool edit_message = false, bool force = false) - => client.CallAsync(new Messages_SetGameScore_ + => client.CallAsync(new Messages_SetGameScore { - flags = (Messages_SetGameScore_.Flags)((edit_message ? 0x1 : 0) | (force ? 0x2 : 0)), + flags = (Messages_SetGameScore.Flags)((edit_message ? 0x1 : 0) | (force ? 0x2 : 0)), peer = peer, id = id, user_id = user_id, score = score, }); - - [TLDef(0x15AD9F64)] - public partial class Messages_SetInlineGameScore_ : IMethod - { - public Flags flags; - public InputBotInlineMessageIDBase id; - public InputUserBase user_id; - public int score; - - [Flags] public enum Flags - { - edit_message = 0x1, - force = 0x2, - } - } /// Use this method to set the score of the specified user in a game sent as an inline message (bots only). See [bots: โœ“] Possible codes: 400 (details) /// Set this flag if the game message should be automatically edited to include the current scoreboard /// Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters @@ -15851,286 +14114,148 @@ namespace TL /// User identifier /// New score public static Task Messages_SetInlineGameScore(this Client client, InputBotInlineMessageIDBase id, InputUserBase user_id, int score, bool edit_message = false, bool force = false) - => client.CallAsync(new Messages_SetInlineGameScore_ + => client.CallAsync(new Messages_SetInlineGameScore { - flags = (Messages_SetInlineGameScore_.Flags)((edit_message ? 0x1 : 0) | (force ? 0x2 : 0)), + flags = (Messages_SetInlineGameScore.Flags)((edit_message ? 0x1 : 0) | (force ? 0x2 : 0)), id = id, user_id = user_id, score = score, }); - - [TLDef(0xE822649D)] - public partial class Messages_GetGameHighScores_ : IMethod - { - public InputPeer peer; - public int id; - public InputUserBase user_id; - } /// Get highscores of a game See [bots: โœ“] Possible codes: 400 (details) /// Where was the game sent /// ID of message with game media attachment /// Get high scores made by a certain user public static Task Messages_GetGameHighScores(this Client client, InputPeer peer, int id, InputUserBase user_id) - => client.CallAsync(new Messages_GetGameHighScores_ + => client.CallAsync(new Messages_GetGameHighScores { peer = peer, id = id, user_id = user_id, }); - - [TLDef(0x0F635E1B)] - public partial class Messages_GetInlineGameHighScores_ : IMethod - { - public InputBotInlineMessageIDBase id; - public InputUserBase user_id; - } /// Get highscores of a game sent using an inline bot See [bots: โœ“] Possible codes: 400 (details) /// ID of inline message /// Get high scores of a certain user public static Task Messages_GetInlineGameHighScores(this Client client, InputBotInlineMessageIDBase id, InputUserBase user_id) - => client.CallAsync(new Messages_GetInlineGameHighScores_ + => client.CallAsync(new Messages_GetInlineGameHighScores { id = id, user_id = user_id, }); - - [TLDef(0xE40CA104)] - public partial class Messages_GetCommonChats_ : IMethod - { - public InputUserBase user_id; - public long max_id; - public int limit; - } /// Get chats in common with a user See Possible codes: 400 (details) /// User ID /// Maximum ID of chat to return (see pagination) /// Maximum number of results to return, see pagination public static Task Messages_GetCommonChats(this Client client, InputUserBase user_id, long max_id, int limit) - => client.CallAsync(new Messages_GetCommonChats_ + => client.CallAsync(new Messages_GetCommonChats { user_id = user_id, max_id = max_id, limit = limit, }); - - [TLDef(0x875F74BE)] - public partial class Messages_GetAllChats_ : IMethod - { - public long[] except_ids; - } /// Get all chats, channels and supergroups See /// Except these chats/channels/supergroups public static Task Messages_GetAllChats(this Client client, long[] except_ids) - => client.CallAsync(new Messages_GetAllChats_ + => client.CallAsync(new Messages_GetAllChats { except_ids = except_ids, }); - - [TLDef(0x32CA8F91)] - public partial class Messages_GetWebPage_ : IMethod - { - public string url; - public int hash; - } /// Get instant view page See Possible codes: 400 (details) /// URL of IV page to fetch /// Hash for pagination, for more info click here public static Task Messages_GetWebPage(this Client client, string url, int hash) - => client.CallAsync(new Messages_GetWebPage_ + => client.CallAsync(new Messages_GetWebPage { url = url, hash = hash, }); - - [TLDef(0xA731E257)] - public partial class Messages_ToggleDialogPin_ : IMethod - { - public Flags flags; - public InputDialogPeerBase peer; - - [Flags] public enum Flags - { - pinned = 0x1, - } - } /// Pin/unpin a dialog See Possible codes: 400 (details) /// Whether to pin or unpin the dialog /// The dialog to pin public static Task Messages_ToggleDialogPin(this Client client, InputDialogPeerBase peer, bool pinned = false) - => client.CallAsync(new Messages_ToggleDialogPin_ + => client.CallAsync(new Messages_ToggleDialogPin { - flags = (Messages_ToggleDialogPin_.Flags)(pinned ? 0x1 : 0), + flags = (Messages_ToggleDialogPin.Flags)(pinned ? 0x1 : 0), peer = peer, }); - - [TLDef(0x3B1ADF37)] - public partial class Messages_ReorderPinnedDialogs_ : IMethod - { - public Flags flags; - public int folder_id; - public InputDialogPeerBase[] order; - - [Flags] public enum Flags - { - force = 0x1, - } - } /// Reorder pinned dialogs See Possible codes: 400 (details) /// If set, dialogs pinned server-side but not present in the order field will be unpinned. /// Peer folder ID, for more info click here /// New dialog order public static Task Messages_ReorderPinnedDialogs(this Client client, int folder_id, InputDialogPeerBase[] order, bool force = false) - => client.CallAsync(new Messages_ReorderPinnedDialogs_ + => client.CallAsync(new Messages_ReorderPinnedDialogs { - flags = (Messages_ReorderPinnedDialogs_.Flags)(force ? 0x1 : 0), + flags = (Messages_ReorderPinnedDialogs.Flags)(force ? 0x1 : 0), folder_id = folder_id, order = order, }); - - [TLDef(0xD6B94DF2)] - public partial class Messages_GetPinnedDialogs_ : IMethod - { - public int folder_id; - } /// Get pinned dialogs See Possible codes: 400 (details) /// Peer folder ID, for more info click here public static Task Messages_GetPinnedDialogs(this Client client, int folder_id) - => client.CallAsync(new Messages_GetPinnedDialogs_ + => client.CallAsync(new Messages_GetPinnedDialogs { folder_id = folder_id, }); - - [TLDef(0xE5F672FA)] - public partial class Messages_SetBotShippingResults_ : IMethod - { - public Flags flags; - public long query_id; - [IfFlag(0)] public string error; - [IfFlag(1)] public ShippingOption[] shipping_options; - - [Flags] public enum Flags - { - /// Field has a value - has_error = 0x1, - /// Field has a value - has_shipping_options = 0x2, - } - } /// If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an update. Use this method to reply to shipping queries. See [bots: โœ“] Possible codes: 400 (details) /// Unique identifier for the query to be answered /// Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user. /// A vector of available shipping options. public static Task Messages_SetBotShippingResults(this Client client, long query_id, string error = null, ShippingOption[] shipping_options = null) - => client.CallAsync(new Messages_SetBotShippingResults_ + => client.CallAsync(new Messages_SetBotShippingResults { - flags = (Messages_SetBotShippingResults_.Flags)((error != null ? 0x1 : 0) | (shipping_options != null ? 0x2 : 0)), + flags = (Messages_SetBotShippingResults.Flags)((error != null ? 0x1 : 0) | (shipping_options != null ? 0x2 : 0)), query_id = query_id, error = error, shipping_options = shipping_options, }); - - [TLDef(0x09C2DD95)] - public partial class Messages_SetBotPrecheckoutResults_ : IMethod - { - public Flags flags; - public long query_id; - [IfFlag(0)] public string error; - - [Flags] public enum Flags - { - /// Field has a value - has_error = 0x1, - success = 0x2, - } - } /// Once the user has confirmed their payment and shipping details, the bot receives an update.
Use this method to respond to such pre-checkout queries.
Note: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent. See [bots: โœ“] Possible codes: 400 (details)
/// Set this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the error field, instead /// Unique identifier for the query to be answered /// Required if the success isn't set. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!"). Telegram will display this message to the user. public static Task Messages_SetBotPrecheckoutResults(this Client client, long query_id, bool success = false, string error = null) - => client.CallAsync(new Messages_SetBotPrecheckoutResults_ + => client.CallAsync(new Messages_SetBotPrecheckoutResults { - flags = (Messages_SetBotPrecheckoutResults_.Flags)((success ? 0x2 : 0) | (error != null ? 0x1 : 0)), + flags = (Messages_SetBotPrecheckoutResults.Flags)((success ? 0x2 : 0) | (error != null ? 0x1 : 0)), query_id = query_id, error = error, }); - - [TLDef(0x519BC2B1)] - public partial class Messages_UploadMedia_ : IMethod - { - public InputPeer peer; - public InputMedia media; - } /// Upload a file and associate it to a chat (without actually sending it to the chat) See [bots: โœ“] Possible codes: 400,403 (details) /// The chat, can be an for bots /// File uploaded in chunks as described in files ยป /// a null value means messageMediaEmpty public static Task Messages_UploadMedia(this Client client, InputPeer peer, InputMedia media) - => client.CallAsync(new Messages_UploadMedia_ + => client.CallAsync(new Messages_UploadMedia { peer = peer, media = media, }); - - [TLDef(0xC97DF020)] - public partial class Messages_SendScreenshotNotification_ : IMethod - { - public InputPeer peer; - public int reply_to_msg_id; - public long random_id; - } /// Notify the other user in a private chat that a screenshot of the chat was taken See Possible codes: 400 (details) /// Other user /// ID of message that was screenshotted, can be 0 /// Random ID to avoid message resending public static Task Messages_SendScreenshotNotification(this Client client, InputPeer peer, int reply_to_msg_id, long random_id) - => client.CallAsync(new Messages_SendScreenshotNotification_ + => client.CallAsync(new Messages_SendScreenshotNotification { peer = peer, reply_to_msg_id = reply_to_msg_id, random_id = random_id, }); - - [TLDef(0x04F1AAA9)] - public partial class Messages_GetFavedStickers_ : IMethod - { - public long hash; - } /// Get faved stickers See /// Hash for pagination, for more info click here /// a null value means messages.favedStickersNotModified public static Task Messages_GetFavedStickers(this Client client, long hash) - => client.CallAsync(new Messages_GetFavedStickers_ + => client.CallAsync(new Messages_GetFavedStickers { hash = hash, }); - - [TLDef(0xB9FFC55B)] - public partial class Messages_FaveSticker_ : IMethod - { - public InputDocument id; - public bool unfave; - } /// Mark a sticker as favorite See Possible codes: 400 (details) /// Sticker to mark as favorite /// Unfavorite public static Task Messages_FaveSticker(this Client client, InputDocument id, bool unfave) - => client.CallAsync(new Messages_FaveSticker_ + => client.CallAsync(new Messages_FaveSticker { id = id, unfave = unfave, }); - - [TLDef(0x46578472)] - public partial class Messages_GetUnreadMentions_ : IMethod - { - public InputPeer peer; - public int offset_id; - public int add_offset; - public int limit; - public int max_id; - public int min_id; - } /// Get unread messages where we were mentioned See Possible codes: 400 (details) /// Peer where to look for mentions /// Offsets for pagination, for more info click here @@ -16139,7 +14264,7 @@ namespace TL /// Maximum message ID to return, see pagination /// Minimum message ID to return, see pagination public static Task Messages_GetUnreadMentions(this Client client, InputPeer peer, int offset_id, int add_offset, int limit, int max_id, int min_id) - => client.CallAsync(new Messages_GetUnreadMentions_ + => client.CallAsync(new Messages_GetUnreadMentions { peer = peer, offset_id = offset_id, @@ -16148,59 +14273,24 @@ namespace TL max_id = max_id, min_id = min_id, }); - - [TLDef(0x0F0189D3)] - public partial class Messages_ReadMentions_ : IMethod - { - public InputPeer peer; - } /// Mark mentions as read See Possible codes: 400 (details) /// Dialog public static Task Messages_ReadMentions(this Client client, InputPeer peer) - => client.CallAsync(new Messages_ReadMentions_ + => client.CallAsync(new Messages_ReadMentions { peer = peer, }); - - [TLDef(0x702A40E0)] - public partial class Messages_GetRecentLocations_ : IMethod - { - public InputPeer peer; - public int limit; - public long hash; - } /// Get live location history of a certain user See /// User /// Maximum number of results to return, see pagination /// Hash for pagination, for more info click here public static Task Messages_GetRecentLocations(this Client client, InputPeer peer, int limit, long hash) - => client.CallAsync(new Messages_GetRecentLocations_ + => client.CallAsync(new Messages_GetRecentLocations { peer = peer, limit = limit, hash = hash, }); - - [TLDef(0xCC0110CB)] - public partial class Messages_SendMultiMedia_ : IMethod - { - public Flags flags; - public InputPeer peer; - [IfFlag(0)] public int reply_to_msg_id; - public InputSingleMedia[] multi_media; - [IfFlag(10)] public DateTime schedule_date; - - [Flags] public enum Flags - { - /// Field has a value - has_reply_to_msg_id = 0x1, - silent = 0x20, - background = 0x40, - clear_draft = 0x80, - /// Field has a value - has_schedule_date = 0x400, - } - } /// Send an album or grouped media See [bots: โœ“] Possible codes: 400,420 (details) /// Whether to send the album silently (no notification triggered) /// Send in background? @@ -16210,116 +14300,60 @@ namespace TL /// The medias to send /// Scheduled message date for scheduled messages public static Task Messages_SendMultiMedia(this Client client, InputPeer peer, InputSingleMedia[] multi_media, bool silent = false, bool background = false, bool clear_draft = false, int? reply_to_msg_id = null, DateTime? schedule_date = null) - => client.CallAsync(new Messages_SendMultiMedia_ + => client.CallAsync(new Messages_SendMultiMedia { - flags = (Messages_SendMultiMedia_.Flags)((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (schedule_date != null ? 0x400 : 0)), + flags = (Messages_SendMultiMedia.Flags)((silent ? 0x20 : 0) | (background ? 0x40 : 0) | (clear_draft ? 0x80 : 0) | (reply_to_msg_id != null ? 0x1 : 0) | (schedule_date != null ? 0x400 : 0)), peer = peer, reply_to_msg_id = reply_to_msg_id.GetValueOrDefault(), multi_media = multi_media, schedule_date = schedule_date.GetValueOrDefault(), }); - - [TLDef(0x5057C497)] - public partial class Messages_UploadEncryptedFile_ : IMethod - { - public InputEncryptedChat peer; - public InputEncryptedFileBase file; - } /// Upload encrypted file and associate it to a secret chat See /// The secret chat to associate the file to /// The file /// a null value means encryptedFileEmpty public static Task Messages_UploadEncryptedFile(this Client client, InputEncryptedChat peer, InputEncryptedFileBase file) - => client.CallAsync(new Messages_UploadEncryptedFile_ + => client.CallAsync(new Messages_UploadEncryptedFile { peer = peer, file = file, }); - - [TLDef(0x35705B8A)] - public partial class Messages_SearchStickerSets_ : IMethod - { - public Flags flags; - public string q; - public long hash; - - [Flags] public enum Flags - { - exclude_featured = 0x1, - } - } /// Search for stickersets See /// Exclude featured stickersets from results /// Query string /// Hash for pagination, for more info click here /// a null value means messages.foundStickerSetsNotModified public static Task Messages_SearchStickerSets(this Client client, string q, long hash, bool exclude_featured = false) - => client.CallAsync(new Messages_SearchStickerSets_ + => client.CallAsync(new Messages_SearchStickerSets { - flags = (Messages_SearchStickerSets_.Flags)(exclude_featured ? 0x1 : 0), + flags = (Messages_SearchStickerSets.Flags)(exclude_featured ? 0x1 : 0), q = q, hash = hash, }); - - [TLDef(0x1CFF7E08)] - public partial class Messages_GetSplitRanges_ : IMethod { } /// Get message ranges for saving the user's chat history See public static Task Messages_GetSplitRanges(this Client client) - => client.CallAsync(new Messages_GetSplitRanges_ + => client.CallAsync(new Messages_GetSplitRanges { }); - - [TLDef(0xC286D98F)] - public partial class Messages_MarkDialogUnread_ : IMethod - { - public Flags flags; - public InputDialogPeerBase peer; - - [Flags] public enum Flags - { - unread = 0x1, - } - } /// Manually mark dialog as unread See /// Mark as unread/read /// Dialog public static Task Messages_MarkDialogUnread(this Client client, InputDialogPeerBase peer, bool unread = false) - => client.CallAsync(new Messages_MarkDialogUnread_ + => client.CallAsync(new Messages_MarkDialogUnread { - flags = (Messages_MarkDialogUnread_.Flags)(unread ? 0x1 : 0), + flags = (Messages_MarkDialogUnread.Flags)(unread ? 0x1 : 0), peer = peer, }); - - [TLDef(0x22E24E22)] - public partial class Messages_GetDialogUnreadMarks_ : IMethod { } /// Get dialogs manually marked as unread See public static Task Messages_GetDialogUnreadMarks(this Client client) - => client.CallAsync(new Messages_GetDialogUnreadMarks_ + => client.CallAsync(new Messages_GetDialogUnreadMarks { }); - - [TLDef(0x7E58EE9C)] - public partial class Messages_ClearAllDrafts_ : IMethod { } /// Clear all drafts. See public static Task Messages_ClearAllDrafts(this Client client) - => client.CallAsync(new Messages_ClearAllDrafts_ + => client.CallAsync(new Messages_ClearAllDrafts { }); - - [TLDef(0xD2AAF7EC)] - public partial class Messages_UpdatePinnedMessage_ : IMethod - { - public Flags flags; - public InputPeer peer; - public int id; - - [Flags] public enum Flags - { - silent = 0x1, - unpin = 0x2, - pm_oneside = 0x4, - } - } /// Pin a message See [bots: โœ“] Possible codes: 400,403 (details) /// Pin the message silently, without triggering a notification /// Whether the message should unpinned or pinned @@ -16327,214 +14361,110 @@ namespace TL /// The peer where to pin the message /// The message to pin or unpin public static Task Messages_UpdatePinnedMessage(this Client client, InputPeer peer, int id, bool silent = false, bool unpin = false, bool pm_oneside = false) - => client.CallAsync(new Messages_UpdatePinnedMessage_ + => client.CallAsync(new Messages_UpdatePinnedMessage { - flags = (Messages_UpdatePinnedMessage_.Flags)((silent ? 0x1 : 0) | (unpin ? 0x2 : 0) | (pm_oneside ? 0x4 : 0)), + flags = (Messages_UpdatePinnedMessage.Flags)((silent ? 0x1 : 0) | (unpin ? 0x2 : 0) | (pm_oneside ? 0x4 : 0)), peer = peer, id = id, }); - - [TLDef(0x10EA6184)] - public partial class Messages_SendVote_ : IMethod - { - public InputPeer peer; - public int msg_id; - public byte[][] options; - } /// Vote in a See Possible codes: 400 (details) /// The chat where the poll was sent /// The message ID of the poll /// The options that were chosen public static Task Messages_SendVote(this Client client, InputPeer peer, int msg_id, byte[][] options) - => client.CallAsync(new Messages_SendVote_ + => client.CallAsync(new Messages_SendVote { peer = peer, msg_id = msg_id, options = options, }); - - [TLDef(0x73BB643B)] - public partial class Messages_GetPollResults_ : IMethod - { - public InputPeer peer; - public int msg_id; - } /// Get poll results See Possible codes: 400 (details) /// Peer where the poll was found /// Message ID of poll message public static Task Messages_GetPollResults(this Client client, InputPeer peer, int msg_id) - => client.CallAsync(new Messages_GetPollResults_ + => client.CallAsync(new Messages_GetPollResults { peer = peer, msg_id = msg_id, }); - - [TLDef(0x6E2BE050)] - public partial class Messages_GetOnlines_ : IMethod - { - public InputPeer peer; - } /// Get count of online users in a chat See Possible codes: 400 (details) /// The chat public static Task Messages_GetOnlines(this Client client, InputPeer peer) - => client.CallAsync(new Messages_GetOnlines_ + => client.CallAsync(new Messages_GetOnlines { peer = peer, }); - - [TLDef(0xDEF60797)] - public partial class Messages_EditChatAbout_ : IMethod - { - public InputPeer peer; - public string about; - } /// Edit the description of a group/supergroup/channel. See [bots: โœ“] Possible codes: 400,403 (details) /// The group/supergroup/channel. /// The new description public static Task Messages_EditChatAbout(this Client client, InputPeer peer, string about) - => client.CallAsync(new Messages_EditChatAbout_ + => client.CallAsync(new Messages_EditChatAbout { peer = peer, about = about, }); - - [TLDef(0xA5866B41)] - public partial class Messages_EditChatDefaultBannedRights_ : IMethod - { - public InputPeer peer; - public ChatBannedRights banned_rights; - } /// Edit the default banned rights of a channel/supergroup/group. See [bots: โœ“] Possible codes: 400,403 (details) /// The peer /// The new global rights public static Task Messages_EditChatDefaultBannedRights(this Client client, InputPeer peer, ChatBannedRights banned_rights) - => client.CallAsync(new Messages_EditChatDefaultBannedRights_ + => client.CallAsync(new Messages_EditChatDefaultBannedRights { peer = peer, banned_rights = banned_rights, }); - - [TLDef(0x35A0E062)] - public partial class Messages_GetEmojiKeywords_ : IMethod - { - public string lang_code; - } /// Get localized emoji keywords See /// Language code public static Task Messages_GetEmojiKeywords(this Client client, string lang_code) - => client.CallAsync(new Messages_GetEmojiKeywords_ + => client.CallAsync(new Messages_GetEmojiKeywords { lang_code = lang_code, }); - - [TLDef(0x1508B6AF)] - public partial class Messages_GetEmojiKeywordsDifference_ : IMethod - { - public string lang_code; - public int from_version; - } /// Get changed emoji keywords See /// Language code /// Previous emoji keyword localization version public static Task Messages_GetEmojiKeywordsDifference(this Client client, string lang_code, int from_version) - => client.CallAsync(new Messages_GetEmojiKeywordsDifference_ + => client.CallAsync(new Messages_GetEmojiKeywordsDifference { lang_code = lang_code, from_version = from_version, }); - - [TLDef(0x4E9963B2)] - public partial class Messages_GetEmojiKeywordsLanguages_ : IMethod - { - public string[] lang_codes; - } /// Get info about an emoji keyword localization See /// Language codes public static Task Messages_GetEmojiKeywordsLanguages(this Client client, string[] lang_codes) - => client.CallAsync(new Messages_GetEmojiKeywordsLanguages_ + => client.CallAsync(new Messages_GetEmojiKeywordsLanguages { lang_codes = lang_codes, }); - - [TLDef(0xD5B10C26)] - public partial class Messages_GetEmojiURL_ : IMethod - { - public string lang_code; - } /// Returns 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 /// Language code for which the emoji replacements will be suggested public static Task Messages_GetEmojiURL(this Client client, string lang_code) - => client.CallAsync(new Messages_GetEmojiURL_ + => client.CallAsync(new Messages_GetEmojiURL { lang_code = lang_code, }); - - [TLDef(0x732EEF00)] - public partial class Messages_GetSearchCounters_ : IMethod - { - public InputPeer peer; - public MessagesFilter[] filters; - } /// Get the number of results that would be found by a messages.search call with the same parameters See Possible codes: 400 (details) /// Peer where to search /// Search filters public static Task Messages_GetSearchCounters(this Client client, InputPeer peer, MessagesFilter[] filters) - => client.CallAsync(new Messages_GetSearchCounters_ + => client.CallAsync(new Messages_GetSearchCounters { peer = peer, filters = filters, }); - - [TLDef(0x198FB446)] - public partial class Messages_RequestUrlAuth_ : IMethod - { - public Flags flags; - [IfFlag(1)] public InputPeer peer; - [IfFlag(1)] public int msg_id; - [IfFlag(1)] public int button_id; - [IfFlag(2)] public string url; - - [Flags] public enum Flags - { - /// Field has a value - has_peer = 0x2, - /// Field has a value - has_url = 0x4, - } - } /// Get more info about a Seamless Telegram Login authorization request, for more info click here ยป See /// Peer where the message is located /// The message /// The ID of the button with the authorization request /// URL used for link URL authorization, click here for more info ยป public static Task Messages_RequestUrlAuth(this Client client, InputPeer peer = null, int? msg_id = null, int? button_id = null, string url = null) - => client.CallAsync(new Messages_RequestUrlAuth_ + => client.CallAsync(new Messages_RequestUrlAuth { - flags = (Messages_RequestUrlAuth_.Flags)((peer != null ? 0x2 : 0) | (msg_id != null ? 0x2 : 0) | (button_id != null ? 0x2 : 0) | (url != null ? 0x4 : 0)), + flags = (Messages_RequestUrlAuth.Flags)((peer != null ? 0x2 : 0) | (msg_id != null ? 0x2 : 0) | (button_id != null ? 0x2 : 0) | (url != null ? 0x4 : 0)), peer = peer, msg_id = msg_id.GetValueOrDefault(), button_id = button_id.GetValueOrDefault(), url = url, }); - - [TLDef(0xB12C7125)] - public partial class Messages_AcceptUrlAuth_ : IMethod - { - public Flags flags; - [IfFlag(1)] public InputPeer peer; - [IfFlag(1)] public int msg_id; - [IfFlag(1)] public int button_id; - [IfFlag(2)] public string url; - - [Flags] public enum Flags - { - write_allowed = 0x1, - /// Field has a value - has_peer = 0x2, - /// Field has a value - has_url = 0x4, - } - } /// Use this to accept a Seamless Telegram Login authorization request, for more info click here ยป See /// Set this flag to allow the bot to send messages to you (if requested) /// The location of the message @@ -16542,110 +14472,57 @@ namespace TL /// ID of the login button /// URL used for link URL authorization, click here for more info ยป public static Task Messages_AcceptUrlAuth(this Client client, bool write_allowed = false, InputPeer peer = null, int? msg_id = null, int? button_id = null, string url = null) - => client.CallAsync(new Messages_AcceptUrlAuth_ + => client.CallAsync(new Messages_AcceptUrlAuth { - flags = (Messages_AcceptUrlAuth_.Flags)((write_allowed ? 0x1 : 0) | (peer != null ? 0x2 : 0) | (msg_id != null ? 0x2 : 0) | (button_id != null ? 0x2 : 0) | (url != null ? 0x4 : 0)), + flags = (Messages_AcceptUrlAuth.Flags)((write_allowed ? 0x1 : 0) | (peer != null ? 0x2 : 0) | (msg_id != null ? 0x2 : 0) | (button_id != null ? 0x2 : 0) | (url != null ? 0x4 : 0)), peer = peer, msg_id = msg_id.GetValueOrDefault(), button_id = button_id.GetValueOrDefault(), url = url, }); - - [TLDef(0x4FACB138)] - public partial class Messages_HidePeerSettingsBar_ : IMethod - { - public InputPeer peer; - } /// Should be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the . See /// Peer public static Task Messages_HidePeerSettingsBar(this Client client, InputPeer peer) - => client.CallAsync(new Messages_HidePeerSettingsBar_ + => client.CallAsync(new Messages_HidePeerSettingsBar { peer = peer, }); - - [TLDef(0xF516760B)] - public partial class Messages_GetScheduledHistory_ : IMethod - { - public InputPeer peer; - public long hash; - } /// Get scheduled messages See Possible codes: 400 (details) /// Peer /// Hash for pagination, for more info click here public static Task Messages_GetScheduledHistory(this Client client, InputPeer peer, long hash) - => client.CallAsync(new Messages_GetScheduledHistory_ + => client.CallAsync(new Messages_GetScheduledHistory { peer = peer, hash = hash, }); - - [TLDef(0xBDBB0464)] - public partial class Messages_GetScheduledMessages_ : IMethod - { - public InputPeer peer; - public int[] id; - } /// Get scheduled messages See Possible codes: 400 (details) /// Peer /// IDs of scheduled messages public static Task Messages_GetScheduledMessages(this Client client, InputPeer peer, int[] id) - => client.CallAsync(new Messages_GetScheduledMessages_ + => client.CallAsync(new Messages_GetScheduledMessages { peer = peer, id = id, }); - - [TLDef(0xBD38850A)] - public partial class Messages_SendScheduledMessages_ : IMethod - { - public InputPeer peer; - public int[] id; - } /// Send scheduled messages right away See Possible codes: 400 (details) /// Peer /// Scheduled message IDs public static Task Messages_SendScheduledMessages(this Client client, InputPeer peer, int[] id) - => client.CallAsync(new Messages_SendScheduledMessages_ + => client.CallAsync(new Messages_SendScheduledMessages { peer = peer, id = id, }); - - [TLDef(0x59AE2B16)] - public partial class Messages_DeleteScheduledMessages_ : IMethod - { - public InputPeer peer; - public int[] id; - } /// Delete scheduled messages See /// Peer /// Scheduled message IDs public static Task Messages_DeleteScheduledMessages(this Client client, InputPeer peer, int[] id) - => client.CallAsync(new Messages_DeleteScheduledMessages_ + => client.CallAsync(new Messages_DeleteScheduledMessages { peer = peer, id = id, }); - - [TLDef(0xB86E380E)] - public partial class Messages_GetPollVotes_ : IMethod - { - public Flags flags; - public InputPeer peer; - public int id; - [IfFlag(0)] public byte[] option; - [IfFlag(1)] public string offset; - public int limit; - - [Flags] public enum Flags - { - /// Field has a value - has_option = 0x1, - /// Field has a value - has_offset = 0x2, - } - } /// Get poll results for non-anonymous polls See Possible codes: 400,403 (details) /// Chat where the poll was sent /// Message ID @@ -16653,126 +14530,64 @@ namespace TL /// Offset for results, taken from the next_offset field of , initially an empty string.
Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in if it is empty, to avoid an infinite loop. /// Number of results to return public static Task Messages_GetPollVotes(this Client client, InputPeer peer, int id, int limit, byte[] option = null, string offset = null) - => client.CallAsync(new Messages_GetPollVotes_ + => client.CallAsync(new Messages_GetPollVotes { - flags = (Messages_GetPollVotes_.Flags)((option != null ? 0x1 : 0) | (offset != null ? 0x2 : 0)), + flags = (Messages_GetPollVotes.Flags)((option != null ? 0x1 : 0) | (offset != null ? 0x2 : 0)), peer = peer, id = id, option = option, offset = offset, limit = limit, }); - - [TLDef(0xB5052FEA)] - public partial class Messages_ToggleStickerSets_ : IMethod - { - public Flags flags; - public InputStickerSet[] stickersets; - - [Flags] public enum Flags - { - uninstall = 0x1, - archive = 0x2, - unarchive = 0x4, - } - } /// Apply changes to multiple stickersets See /// Uninstall the specified stickersets /// Archive the specified stickersets /// Unarchive the specified stickersets /// Stickersets to act upon public static Task Messages_ToggleStickerSets(this Client client, InputStickerSet[] stickersets, bool uninstall = false, bool archive = false, bool unarchive = false) - => client.CallAsync(new Messages_ToggleStickerSets_ + => client.CallAsync(new Messages_ToggleStickerSets { - flags = (Messages_ToggleStickerSets_.Flags)((uninstall ? 0x1 : 0) | (archive ? 0x2 : 0) | (unarchive ? 0x4 : 0)), + flags = (Messages_ToggleStickerSets.Flags)((uninstall ? 0x1 : 0) | (archive ? 0x2 : 0) | (unarchive ? 0x4 : 0)), stickersets = stickersets, }); - - [TLDef(0xF19ED96D)] - public partial class Messages_GetDialogFilters_ : IMethod { } /// Get folders See public static Task Messages_GetDialogFilters(this Client client) - => client.CallAsync(new Messages_GetDialogFilters_ + => client.CallAsync(new Messages_GetDialogFilters { }); - - [TLDef(0xA29CD42C)] - public partial class Messages_GetSuggestedDialogFilters_ : IMethod { } /// Get suggested folders See public static Task Messages_GetSuggestedDialogFilters(this Client client) - => client.CallAsync(new Messages_GetSuggestedDialogFilters_ + => client.CallAsync(new Messages_GetSuggestedDialogFilters { }); - - [TLDef(0x1AD4A04A)] - public partial class Messages_UpdateDialogFilter_ : IMethod - { - public Flags flags; - public int id; - [IfFlag(0)] public DialogFilter filter; - - [Flags] public enum Flags - { - /// Field has a value - has_filter = 0x1, - } - } /// Update folder See Possible codes: 400 (details) /// Folder ID /// Folder info public static Task Messages_UpdateDialogFilter(this Client client, int id, DialogFilter filter = null) - => client.CallAsync(new Messages_UpdateDialogFilter_ + => client.CallAsync(new Messages_UpdateDialogFilter { - flags = (Messages_UpdateDialogFilter_.Flags)(filter != null ? 0x1 : 0), + flags = (Messages_UpdateDialogFilter.Flags)(filter != null ? 0x1 : 0), id = id, filter = filter, }); - - [TLDef(0xC563C1E4)] - public partial class Messages_UpdateDialogFiltersOrder_ : IMethod - { - public int[] order; - } /// Reorder folders See /// New folder order public static Task Messages_UpdateDialogFiltersOrder(this Client client, int[] order) - => client.CallAsync(new Messages_UpdateDialogFiltersOrder_ + => client.CallAsync(new Messages_UpdateDialogFiltersOrder { order = order, }); - - [TLDef(0x7ED094A1)] - public partial class Messages_GetOldFeaturedStickers_ : IMethod - { - public int offset; - public int limit; - public long hash; - } /// Method for fetching previously featured stickers See /// Offset /// Maximum number of results to return, see pagination /// Hash for pagination, for more info click here public static Task Messages_GetOldFeaturedStickers(this Client client, int offset, int limit, long hash) - => client.CallAsync(new Messages_GetOldFeaturedStickers_ + => client.CallAsync(new Messages_GetOldFeaturedStickers { offset = offset, limit = limit, hash = hash, }); - - [TLDef(0x22DDD30C)] - public partial class Messages_GetReplies_ : IMethod - { - public InputPeer peer; - public int msg_id; - public int offset_id; - public DateTime offset_date; - public int add_offset; - public int limit; - public int max_id; - public int min_id; - public long hash; - } /// Get messages in a reply thread See Possible codes: 400 (details) /// Peer /// Message ID @@ -16784,7 +14599,7 @@ namespace TL /// If a positive value was transferred, the method will return only messages with ID bigger than min_id /// Hash for pagination, for more info click here public static Task Messages_GetReplies(this Client client, InputPeer peer, int msg_id, int offset_id, DateTime offset_date, int add_offset, int limit, int max_id, int min_id, long hash) - => client.CallAsync(new Messages_GetReplies_ + => client.CallAsync(new Messages_GetReplies { peer = peer, msg_id = msg_id, @@ -16796,126 +14611,65 @@ namespace TL min_id = min_id, hash = hash, }); - - [TLDef(0x446972FD)] - public partial class Messages_GetDiscussionMessage_ : IMethod - { - public InputPeer peer; - public int msg_id; - } /// Get discussion message from the associated discussion group of a channel to show it on top of the comment section, without actually joining the group See Possible codes: 400 (details) /// Channel ID /// Message ID public static Task Messages_GetDiscussionMessage(this Client client, InputPeer peer, int msg_id) - => client.CallAsync(new Messages_GetDiscussionMessage_ + => client.CallAsync(new Messages_GetDiscussionMessage { peer = peer, msg_id = msg_id, }); - - [TLDef(0xF731A9F4)] - public partial class Messages_ReadDiscussion_ : IMethod - { - public InputPeer peer; - public int msg_id; - public int read_max_id; - } /// Mark a thread as read See Possible codes: 400 (details) /// Group ID /// ID of message that started the thread /// ID up to which thread messages were read public static Task Messages_ReadDiscussion(this Client client, InputPeer peer, int msg_id, int read_max_id) - => client.CallAsync(new Messages_ReadDiscussion_ + => client.CallAsync(new Messages_ReadDiscussion { peer = peer, msg_id = msg_id, read_max_id = read_max_id, }); - - [TLDef(0xF025BC8B)] - public partial class Messages_UnpinAllMessages_ : IMethod - { - public InputPeer peer; - } /// Unpin all pinned messages See [bots: โœ“] /// Chat where to unpin public static Task Messages_UnpinAllMessages(this Client client, InputPeer peer) - => client.CallAsync(new Messages_UnpinAllMessages_ + => client.CallAsync(new Messages_UnpinAllMessages { peer = peer, }); - - [TLDef(0x5BD0EE50)] - public partial class Messages_DeleteChat_ : IMethod - { - public long chat_id; - } /// Delete a chat See Possible codes: 400 (details) /// Chat ID public static Task Messages_DeleteChat(this Client client, long chat_id) - => client.CallAsync(new Messages_DeleteChat_ + => client.CallAsync(new Messages_DeleteChat { chat_id = chat_id, }); - - [TLDef(0xF9CBE409)] - public partial class Messages_DeletePhoneCallHistory_ : IMethod - { - public Flags flags; - - [Flags] public enum Flags - { - revoke = 0x1, - } - } /// Delete the entire phone call history. See /// Whether to remove phone call history for participants as well public static Task Messages_DeletePhoneCallHistory(this Client client, bool revoke = false) - => client.CallAsync(new Messages_DeletePhoneCallHistory_ + => client.CallAsync(new Messages_DeletePhoneCallHistory { - flags = (Messages_DeletePhoneCallHistory_.Flags)(revoke ? 0x1 : 0), + flags = (Messages_DeletePhoneCallHistory.Flags)(revoke ? 0x1 : 0), }); - - [TLDef(0x43FE19F3)] - public partial class Messages_CheckHistoryImport_ : IMethod - { - public string import_head; - } /// Obtains information about a chat export file, generated by a foreign chat app, click here for more info about imported chats ยป. See /// Beginning of the message file; up to 100 lines. public static Task Messages_CheckHistoryImport(this Client client, string import_head) - => client.CallAsync(new Messages_CheckHistoryImport_ + => client.CallAsync(new Messages_CheckHistoryImport { import_head = import_head, }); - - [TLDef(0x34090C3B)] - public partial class Messages_InitHistoryImport_ : IMethod - { - public InputPeer peer; - public InputFileBase file; - public int media_count; - } /// Import chat history from a foreign chat app into a specific Telegram chat, click here for more info about imported chats ยป. See Possible codes: 400,406 (details) /// The Telegram chat where the history should be imported. /// File with messages to import. /// Number of media files associated with the chat that will be uploaded using messages.uploadImportedMedia. public static Task Messages_InitHistoryImport(this Client client, InputPeer peer, InputFileBase file, int media_count) - => client.CallAsync(new Messages_InitHistoryImport_ + => client.CallAsync(new Messages_InitHistoryImport { peer = peer, file = file, media_count = media_count, }); - - [TLDef(0x2A862092)] - public partial class Messages_UploadImportedMedia_ : IMethod - { - public InputPeer peer; - public long import_id; - public string file_name; - public InputMedia media; - } /// Upload a media file associated with an imported chat, click here for more info ยป. See /// The Telegram chat where the media will be imported /// Identifier of a history import session, returned by messages.initHistoryImport @@ -16923,47 +14677,22 @@ namespace TL /// Media metadata /// a null value means messageMediaEmpty public static Task Messages_UploadImportedMedia(this Client client, InputPeer peer, long import_id, string file_name, InputMedia media) - => client.CallAsync(new Messages_UploadImportedMedia_ + => client.CallAsync(new Messages_UploadImportedMedia { peer = peer, import_id = import_id, file_name = file_name, media = media, }); - - [TLDef(0xB43DF344)] - public partial class Messages_StartHistoryImport_ : IMethod - { - public InputPeer peer; - public long import_id; - } /// Complete the history import process, importing all messages into the chat.
To be called only after initializing the import with messages.initHistoryImport and uploading all files using messages.uploadImportedMedia. See Possible codes: 400 (details)
/// The Telegram chat where the messages should be imported, click here for more info ยป /// Identifier of a history import session, returned by messages.initHistoryImport. public static Task Messages_StartHistoryImport(this Client client, InputPeer peer, long import_id) - => client.CallAsync(new Messages_StartHistoryImport_ + => client.CallAsync(new Messages_StartHistoryImport { peer = peer, import_id = import_id, }); - - [TLDef(0xA2B5A3F6)] - public partial class Messages_GetExportedChatInvites_ : IMethod - { - public Flags flags; - public InputPeer peer; - public InputUserBase admin_id; - [IfFlag(2)] public DateTime offset_date; - [IfFlag(2)] public string offset_link; - public int limit; - - [Flags] public enum Flags - { - /// Field has a value - has_offset_date = 0x4, - revoked = 0x8, - } - } /// Get info about the chat invites of a specific chat See /// Whether to fetch revoked chat invites /// Chat @@ -16972,56 +14701,24 @@ namespace TL /// Offsets for pagination, for more info click here /// Maximum number of results to return, see pagination public static Task Messages_GetExportedChatInvites(this Client client, InputPeer peer, InputUserBase admin_id, int limit, bool revoked = false, DateTime? offset_date = null, string offset_link = null) - => client.CallAsync(new Messages_GetExportedChatInvites_ + => client.CallAsync(new Messages_GetExportedChatInvites { - flags = (Messages_GetExportedChatInvites_.Flags)((revoked ? 0x8 : 0) | (offset_date != null ? 0x4 : 0) | (offset_link != null ? 0x4 : 0)), + flags = (Messages_GetExportedChatInvites.Flags)((revoked ? 0x8 : 0) | (offset_date != null ? 0x4 : 0) | (offset_link != null ? 0x4 : 0)), peer = peer, admin_id = admin_id, offset_date = offset_date.GetValueOrDefault(), offset_link = offset_link, limit = limit, }); - - [TLDef(0x73746F5C)] - public partial class Messages_GetExportedChatInvite_ : IMethod - { - public InputPeer peer; - public string link; - } /// Get info about a chat invite See /// Chat /// Invite link public static Task Messages_GetExportedChatInvite(this Client client, InputPeer peer, string link) - => client.CallAsync(new Messages_GetExportedChatInvite_ + => client.CallAsync(new Messages_GetExportedChatInvite { peer = peer, link = link, }); - - [TLDef(0xBDCA2F75)] - public partial class Messages_EditExportedChatInvite_ : IMethod - { - public Flags flags; - public InputPeer peer; - public string link; - [IfFlag(0)] public DateTime expire_date; - [IfFlag(1)] public int usage_limit; - [IfFlag(3)] public bool request_needed; - [IfFlag(4)] public string title; - - [Flags] public enum Flags - { - /// Field has a value - has_expire_date = 0x1, - /// Field has a value - has_usage_limit = 0x2, - revoked = 0x4, - /// Field has a value - has_request_needed = 0x8, - /// Field has a value - has_title = 0x10, - } - } /// Edit an exported chat invite See [bots: โœ“] Possible codes: 400 (details) /// Whether to revoke the chat invite /// Chat @@ -17029,9 +14726,9 @@ namespace TL /// New expiration date /// Maximum number of users that can join using this link public static Task Messages_EditExportedChatInvite(this Client client, InputPeer peer, string link, bool revoked = false, DateTime? expire_date = null, int? usage_limit = null, bool? request_needed = default, string title = null) - => client.CallAsync(new Messages_EditExportedChatInvite_ + => client.CallAsync(new Messages_EditExportedChatInvite { - flags = (Messages_EditExportedChatInvite_.Flags)((revoked ? 0x4 : 0) | (expire_date != null ? 0x1 : 0) | (usage_limit != null ? 0x2 : 0) | (request_needed != default ? 0x8 : 0) | (title != null ? 0x10 : 0)), + flags = (Messages_EditExportedChatInvite.Flags)((revoked ? 0x4 : 0) | (expire_date != null ? 0x1 : 0) | (usage_limit != null ? 0x2 : 0) | (request_needed != default ? 0x8 : 0) | (title != null ? 0x10 : 0)), peer = peer, link = link, expire_date = expire_date.GetValueOrDefault(), @@ -17039,72 +14736,31 @@ namespace TL request_needed = request_needed.GetValueOrDefault(), title = title, }); - - [TLDef(0x56987BD5)] - public partial class Messages_DeleteRevokedExportedChatInvites_ : IMethod - { - public InputPeer peer; - public InputUserBase admin_id; - } /// Delete all revoked chat invites See /// Chat /// ID of the admin that originally generated the revoked chat invites public static Task Messages_DeleteRevokedExportedChatInvites(this Client client, InputPeer peer, InputUserBase admin_id) - => client.CallAsync(new Messages_DeleteRevokedExportedChatInvites_ + => client.CallAsync(new Messages_DeleteRevokedExportedChatInvites { peer = peer, admin_id = admin_id, }); - - [TLDef(0xD464A42B)] - public partial class Messages_DeleteExportedChatInvite_ : IMethod - { - public InputPeer peer; - public string link; - } /// Delete a chat invite See /// Peer /// Invite link public static Task Messages_DeleteExportedChatInvite(this Client client, InputPeer peer, string link) - => client.CallAsync(new Messages_DeleteExportedChatInvite_ + => client.CallAsync(new Messages_DeleteExportedChatInvite { peer = peer, link = link, }); - - [TLDef(0x3920E6EF)] - public partial class Messages_GetAdminsWithInvites_ : IMethod - { - public InputPeer peer; - } /// Get info about chat invites generated by admins. See /// Chat public static Task Messages_GetAdminsWithInvites(this Client client, InputPeer peer) - => client.CallAsync(new Messages_GetAdminsWithInvites_ + => client.CallAsync(new Messages_GetAdminsWithInvites { peer = peer, }); - - [TLDef(0xDF04DD4E)] - public partial class Messages_GetChatInviteImporters_ : IMethod - { - public Flags flags; - public InputPeer peer; - [IfFlag(1)] public string link; - [IfFlag(2)] public string q; - public DateTime offset_date; - public InputUserBase offset_user; - public int limit; - - [Flags] public enum Flags - { - requested = 0x1, - /// Field has a value - has_link = 0x2, - /// Field has a value - has_q = 0x4, - } - } /// Get info about the users that joined the chat using a specific chat invite See /// Chat /// Invite link @@ -17112,9 +14768,9 @@ namespace TL /// User ID for pagination /// Maximum number of results to return, see pagination public static Task Messages_GetChatInviteImporters(this Client client, InputPeer peer, DateTime offset_date, InputUserBase offset_user, int limit, bool requested = false, string link = null, string q = null) - => client.CallAsync(new Messages_GetChatInviteImporters_ + => client.CallAsync(new Messages_GetChatInviteImporters { - flags = (Messages_GetChatInviteImporters_.Flags)((requested ? 0x1 : 0) | (link != null ? 0x2 : 0) | (q != null ? 0x4 : 0)), + flags = (Messages_GetChatInviteImporters.Flags)((requested ? 0x1 : 0) | (link != null ? 0x2 : 0) | (q != null ? 0x4 : 0)), peer = peer, link = link, q = q, @@ -17122,177 +14778,85 @@ namespace TL offset_user = offset_user, limit = limit, }); - - [TLDef(0xB80E5FE4)] - public partial class Messages_SetHistoryTTL_ : IMethod - { - public InputPeer peer; - public int period; - } /// Set maximum Time-To-Live of all messages in the specified chat See Possible codes: 400 (details) /// The dialog /// Automatically delete all messages sent in the chat after this many seconds public static Task Messages_SetHistoryTTL(this Client client, InputPeer peer, int period) - => client.CallAsync(new Messages_SetHistoryTTL_ + => client.CallAsync(new Messages_SetHistoryTTL { peer = peer, period = period, }); - - [TLDef(0x5DC60F03)] - public partial class Messages_CheckHistoryImportPeer_ : IMethod - { - public InputPeer peer; - } /// Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info ยป. See Possible codes: 400 (details) /// The chat where we want to import history ยป. public static Task Messages_CheckHistoryImportPeer(this Client client, InputPeer peer) - => client.CallAsync(new Messages_CheckHistoryImportPeer_ + => client.CallAsync(new Messages_CheckHistoryImportPeer { peer = peer, }); - - [TLDef(0xE63BE13F)] - public partial class Messages_SetChatTheme_ : IMethod - { - public InputPeer peer; - public string emoticon; - } /// Change the chat theme of a certain chat See Possible codes: 400 (details) /// Private chat where to change theme /// Emoji, identifying a specific chat theme; a list of chat themes can be fetched using account.getChatThemes public static Task Messages_SetChatTheme(this Client client, InputPeer peer, string emoticon) - => client.CallAsync(new Messages_SetChatTheme_ + => client.CallAsync(new Messages_SetChatTheme { peer = peer, emoticon = emoticon, }); - - [TLDef(0x2C6F97B7)] - public partial class Messages_GetMessageReadParticipants_ : IMethod - { - public InputPeer peer; - public int msg_id; - } /// Get which users read a specific message: only available for groups and supergroups with less than chat_read_mark_size_threshold members, read receipts will be stored for chat_read_mark_expire_period seconds after the message was sent, see client configuration for more info ยป. See Possible codes: 400 (details) /// Dialog /// Message ID public static Task Messages_GetMessageReadParticipants(this Client client, InputPeer peer, int msg_id) - => client.CallAsync(new Messages_GetMessageReadParticipants_ + => client.CallAsync(new Messages_GetMessageReadParticipants { peer = peer, msg_id = msg_id, }); - - [TLDef(0x49F0BDE9)] - public partial class Messages_GetSearchResultsCalendar_ : IMethod - { - public InputPeer peer; - public MessagesFilter filter; - public int offset_id; - public DateTime offset_date; - } /// See public static Task Messages_GetSearchResultsCalendar(this Client client, InputPeer peer, MessagesFilter filter, int offset_id, DateTime offset_date) - => client.CallAsync(new Messages_GetSearchResultsCalendar_ + => client.CallAsync(new Messages_GetSearchResultsCalendar { peer = peer, filter = filter, offset_id = offset_id, offset_date = offset_date, }); - - [TLDef(0x6E9583A3)] - public partial class Messages_GetSearchResultsPositions_ : IMethod - { - public InputPeer peer; - public MessagesFilter filter; - public int offset_id; - public int limit; - } /// See public static Task Messages_GetSearchResultsPositions(this Client client, InputPeer peer, MessagesFilter filter, int offset_id, int limit) - => client.CallAsync(new Messages_GetSearchResultsPositions_ + => client.CallAsync(new Messages_GetSearchResultsPositions { peer = peer, filter = filter, offset_id = offset_id, limit = limit, }); - - [TLDef(0x7FE7E815)] - public partial class Messages_HideChatJoinRequest_ : IMethod - { - public Flags flags; - public InputPeer peer; - public InputUserBase user_id; - - [Flags] public enum Flags - { - approved = 0x1, - } - } /// See public static Task Messages_HideChatJoinRequest(this Client client, InputPeer peer, InputUserBase user_id, bool approved = false) - => client.CallAsync(new Messages_HideChatJoinRequest_ + => client.CallAsync(new Messages_HideChatJoinRequest { - flags = (Messages_HideChatJoinRequest_.Flags)(approved ? 0x1 : 0), + flags = (Messages_HideChatJoinRequest.Flags)(approved ? 0x1 : 0), peer = peer, user_id = user_id, }); - - [TLDef(0xEDD4882A)] - public partial class Updates_GetState_ : IMethod { } /// Returns a current state of updates. See [bots: โœ“] public static Task Updates_GetState(this Client client) - => client.CallAsync(new Updates_GetState_ + => client.CallAsync(new Updates_GetState { }); - - [TLDef(0x25939651)] - public partial class Updates_GetDifference_ : IMethod - { - public Flags flags; - public int pts; - [IfFlag(0)] public int pts_total_limit; - public DateTime date; - public int qts; - - [Flags] public enum Flags - { - /// Field has a value - has_pts_total_limit = 0x1, - } - } /// Get new updates. See [bots: โœ“] Possible codes: 400,401,403 (details) /// PTS, see updates. /// For fast updating: if provided and pts + pts_total_limit < remote pts, will be returned.
Simply tells the server to not return the difference if it is bigger than pts_total_limit
If the remote pts is too big (> ~4000000), this field will default to 1000000 /// date, see updates. /// QTS, see updates. public static Task Updates_GetDifference(this Client client, int pts, DateTime date, int qts, int? pts_total_limit = null) - => client.CallAsync(new Updates_GetDifference_ + => client.CallAsync(new Updates_GetDifference { - flags = (Updates_GetDifference_.Flags)(pts_total_limit != null ? 0x1 : 0), + flags = (Updates_GetDifference.Flags)(pts_total_limit != null ? 0x1 : 0), pts = pts, pts_total_limit = pts_total_limit.GetValueOrDefault(), date = date, qts = qts, }); - - [TLDef(0x03173D78)] - public partial class Updates_GetChannelDifference_ : IMethod - { - public Flags flags; - public InputChannelBase channel; - public ChannelMessagesFilter filter; - public int pts; - public int limit; - - [Flags] public enum Flags - { - force = 0x1, - } - } /// Returns the difference between the current state of updates of a certain channel and transmitted. See [bots: โœ“] Possible codes: 400,403 (details) /// Set to true to skip some possibly unneeded updates and reduce server-side load /// The channel @@ -17300,127 +14864,64 @@ namespace TL /// Persistent timestamp (see updates) /// How many updates to fetch, max 100000
Ordinary (non-bot) users are supposed to pass 10-100 public static Task Updates_GetChannelDifference(this Client client, InputChannelBase channel, ChannelMessagesFilter filter, int pts, int limit, bool force = false) - => client.CallAsync(new Updates_GetChannelDifference_ + => client.CallAsync(new Updates_GetChannelDifference { - flags = (Updates_GetChannelDifference_.Flags)(force ? 0x1 : 0), + flags = (Updates_GetChannelDifference.Flags)(force ? 0x1 : 0), channel = channel, filter = filter, pts = pts, limit = limit, }); - - [TLDef(0x72D4742C)] - public partial class Photos_UpdateProfilePhoto_ : IMethod - { - public InputPhoto id; - } /// Installs a previously uploaded photo as a profile photo. See Possible codes: 400 (details) /// Input photo public static Task Photos_UpdateProfilePhoto(this Client client, InputPhoto id) - => client.CallAsync(new Photos_UpdateProfilePhoto_ + => client.CallAsync(new Photos_UpdateProfilePhoto { id = id, }); - - [TLDef(0x89F30F69)] - public partial class Photos_UploadProfilePhoto_ : IMethod - { - public Flags flags; - [IfFlag(0)] public InputFileBase file; - [IfFlag(1)] public InputFileBase video; - [IfFlag(2)] public double video_start_ts; - - [Flags] public enum Flags - { - /// Field has a value - has_file = 0x1, - /// Field has a value - has_video = 0x2, - /// Field has a value - has_video_start_ts = 0x4, - } - } /// Updates current user profile photo. See Possible codes: 400 (details) /// File saved in parts by means of upload.saveFilePart method /// Animated profile picture video /// Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview. public static Task Photos_UploadProfilePhoto(this Client client, InputFileBase file = null, InputFileBase video = null, double? video_start_ts = null) - => client.CallAsync(new Photos_UploadProfilePhoto_ + => client.CallAsync(new Photos_UploadProfilePhoto { - flags = (Photos_UploadProfilePhoto_.Flags)((file != null ? 0x1 : 0) | (video != null ? 0x2 : 0) | (video_start_ts != null ? 0x4 : 0)), + flags = (Photos_UploadProfilePhoto.Flags)((file != null ? 0x1 : 0) | (video != null ? 0x2 : 0) | (video_start_ts != null ? 0x4 : 0)), file = file, video = video, video_start_ts = video_start_ts.GetValueOrDefault(), }); - - [TLDef(0x87CF7F2F)] - public partial class Photos_DeletePhotos_ : IMethod - { - public InputPhoto[] id; - } /// Deletes profile photos. See /// Input photos to delete public static Task Photos_DeletePhotos(this Client client, InputPhoto[] id) - => client.CallAsync(new Photos_DeletePhotos_ + => client.CallAsync(new Photos_DeletePhotos { id = id, }); - - [TLDef(0x91CD32A8)] - public partial class Photos_GetUserPhotos_ : IMethod - { - public InputUserBase user_id; - public int offset; - public long max_id; - public int limit; - } /// Returns the list of user photos. See [bots: โœ“] Possible codes: 400 (details) /// User ID /// Number of list elements to be skipped /// If a positive value was transferred, the method will return only photos with IDs less than the set one /// Number of list elements to be returned public static Task Photos_GetUserPhotos(this Client client, InputUserBase user_id, int offset, long max_id, int limit) - => client.CallAsync(new Photos_GetUserPhotos_ + => client.CallAsync(new Photos_GetUserPhotos { user_id = user_id, offset = offset, max_id = max_id, limit = limit, }); - - [TLDef(0xB304A621)] - public partial class Upload_SaveFilePart_ : IMethod - { - public long file_id; - public int file_part; - public byte[] bytes; - } /// Saves a part of file for futher sending to one of the methods. See [bots: โœ“] Possible codes: 400 (details) /// Random file identifier created by the client /// Numerical order of a part /// Binary data, contend of a part public static Task Upload_SaveFilePart(this Client client, long file_id, int file_part, byte[] bytes) - => client.CallAsync(new Upload_SaveFilePart_ + => client.CallAsync(new Upload_SaveFilePart { file_id = file_id, file_part = file_part, bytes = bytes, }); - - [TLDef(0xB15A9AFC)] - public partial class Upload_GetFile_ : IMethod - { - public Flags flags; - public InputFileLocationBase location; - public int offset; - public int limit; - - [Flags] public enum Flags - { - precise = 0x1, - cdn_supported = 0x2, - } - } /// Returns content of a whole file or its part. See [bots: โœ“] Possible codes: 400,401,406 (details) /// Disable some checks on limit and offset values, useful for example to stream videos by keyframes /// Whether the current client supports CDN downloads @@ -17428,476 +14929,274 @@ namespace TL /// Number of bytes to be skipped /// Number of bytes to be returned public static Task Upload_GetFile(this Client client, InputFileLocationBase location, int offset, int limit, bool precise = false, bool cdn_supported = false) - => client.CallAsync(new Upload_GetFile_ + => client.CallAsync(new Upload_GetFile { - flags = (Upload_GetFile_.Flags)((precise ? 0x1 : 0) | (cdn_supported ? 0x2 : 0)), + flags = (Upload_GetFile.Flags)((precise ? 0x1 : 0) | (cdn_supported ? 0x2 : 0)), location = location, offset = offset, limit = limit, }); - - [TLDef(0xDE7B673D)] - public partial class Upload_SaveBigFilePart_ : IMethod - { - public long file_id; - public int file_part; - public int file_total_parts; - public byte[] bytes; - } /// Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. See [bots: โœ“] Possible codes: 400 (details) /// Random file id, created by the client /// Part sequence number /// Total number of parts /// Binary data, part contents public static Task Upload_SaveBigFilePart(this Client client, long file_id, int file_part, int file_total_parts, byte[] bytes) - => client.CallAsync(new Upload_SaveBigFilePart_ + => client.CallAsync(new Upload_SaveBigFilePart { file_id = file_id, file_part = file_part, file_total_parts = file_total_parts, bytes = bytes, }); - - [TLDef(0x24E6818D)] - public partial class Upload_GetWebFile_ : IMethod - { - public InputWebFileLocationBase location; - public int offset; - public int limit; - } /// Returns content of an HTTP file or a part, by proxying the request through telegram. See Possible codes: 400 (details) /// The file to download /// Number of bytes to be skipped /// Number of bytes to be returned public static Task Upload_GetWebFile(this Client client, InputWebFileLocationBase location, int offset, int limit) - => client.CallAsync(new Upload_GetWebFile_ + => client.CallAsync(new Upload_GetWebFile { location = location, offset = offset, limit = limit, }); - - [TLDef(0x2000BCC3)] - public partial class Upload_GetCdnFile_ : IMethod - { - public byte[] file_token; - public int offset; - public int limit; - } /// Download a CDN file. See /// File token /// Offset of chunk to download /// Length of chunk to download public static Task Upload_GetCdnFile(this Client client, byte[] file_token, int offset, int limit) - => client.CallAsync(new Upload_GetCdnFile_ + => client.CallAsync(new Upload_GetCdnFile { file_token = file_token, offset = offset, limit = limit, }); - - [TLDef(0x9B2754A8)] - public partial class Upload_ReuploadCdnFile_ : IMethod - { - public byte[] file_token; - public byte[] request_token; - } /// Request a reupload of a certain file to a CDN DC. See [bots: โœ“] Possible codes: 400 (details) /// File token /// Request token public static Task Upload_ReuploadCdnFile(this Client client, byte[] file_token, byte[] request_token) - => client.CallAsync(new Upload_ReuploadCdnFile_ + => client.CallAsync(new Upload_ReuploadCdnFile { file_token = file_token, request_token = request_token, }); - - [TLDef(0x4DA54231)] - public partial class Upload_GetCdnFileHashes_ : IMethod - { - public byte[] file_token; - public int offset; - } /// Get SHA256 hashes for verifying downloaded CDN files See [bots: โœ“] Possible codes: 400 (details) /// File /// Offset from which to start getting hashes public static Task Upload_GetCdnFileHashes(this Client client, byte[] file_token, int offset) - => client.CallAsync(new Upload_GetCdnFileHashes_ + => client.CallAsync(new Upload_GetCdnFileHashes { file_token = file_token, offset = offset, }); - - [TLDef(0xC7025931)] - public partial class Upload_GetFileHashes_ : IMethod - { - public InputFileLocationBase location; - public int offset; - } /// Get SHA256 hashes for verifying downloaded files See [bots: โœ“] Possible codes: 400 (details) /// File /// Offset from which to get file hashes public static Task Upload_GetFileHashes(this Client client, InputFileLocationBase location, int offset) - => client.CallAsync(new Upload_GetFileHashes_ + => client.CallAsync(new Upload_GetFileHashes { location = location, offset = offset, }); - - [TLDef(0xC4F9186B)] - public partial class Help_GetConfig_ : IMethod { } /// Returns current configuration, including data center configuration. See [bots: โœ“] Possible codes: 400,403 (details) public static Task Help_GetConfig(this Client client) - => client.CallAsync(new Help_GetConfig_ + => client.CallAsync(new Help_GetConfig { }); - - [TLDef(0x1FB33026)] - public partial class Help_GetNearestDc_ : IMethod { } /// Returns info on data centre nearest to the user. See public static Task Help_GetNearestDc(this Client client) - => client.CallAsync(new Help_GetNearestDc_ + => client.CallAsync(new Help_GetNearestDc { }); - - [TLDef(0x522D5A7D)] - public partial class Help_GetAppUpdate_ : IMethod - { - public string source; - } /// Returns information on update availability for the current application. See /// Source /// a null value means help.noAppUpdate public static Task Help_GetAppUpdate(this Client client, string source) - => client.CallAsync(new Help_GetAppUpdate_ + => client.CallAsync(new Help_GetAppUpdate { source = source, }); - - [TLDef(0x4D392343)] - public partial class Help_GetInviteText_ : IMethod { } /// Returns localized text of a text message with an invitation. See public static Task Help_GetInviteText(this Client client) - => client.CallAsync(new Help_GetInviteText_ + => client.CallAsync(new Help_GetInviteText { }); - - [TLDef(0x9CDF08CD)] - public partial class Help_GetSupport_ : IMethod { } /// Returns the support user for the 'ask a question' feature. See public static Task Help_GetSupport(this Client client) - => client.CallAsync(new Help_GetSupport_ + => client.CallAsync(new Help_GetSupport { }); - - [TLDef(0x9010EF6F)] - public partial class Help_GetAppChangelog_ : IMethod - { - public string prev_app_version; - } /// Get changelog of current app.
Typically, an constructor will be returned, containing one or more updates with app-specific changelogs. See
/// Previous app version public static Task Help_GetAppChangelog(this Client client, string prev_app_version) - => client.CallAsync(new Help_GetAppChangelog_ + => client.CallAsync(new Help_GetAppChangelog { prev_app_version = prev_app_version, }); - - [TLDef(0xEC22CFCD)] - public partial class Help_SetBotUpdatesStatus_ : IMethod - { - public int pending_updates_count; - public string message; - } /// Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only See [bots: โœ“] /// Number of pending updates /// Error message, if present public static Task Help_SetBotUpdatesStatus(this Client client, int pending_updates_count, string message) - => client.CallAsync(new Help_SetBotUpdatesStatus_ + => client.CallAsync(new Help_SetBotUpdatesStatus { pending_updates_count = pending_updates_count, message = message, }); - - [TLDef(0x52029342)] - public partial class Help_GetCdnConfig_ : IMethod { } /// Get configuration for CDN file downloads. See [bots: โœ“] Possible codes: 401 (details) public static Task Help_GetCdnConfig(this Client client) - => client.CallAsync(new Help_GetCdnConfig_ + => client.CallAsync(new Help_GetCdnConfig { }); - - [TLDef(0x3DC0F114)] - public partial class Help_GetRecentMeUrls_ : IMethod - { - public string referer; - } /// Get recently used t.me links See /// Referer public static Task Help_GetRecentMeUrls(this Client client, string referer) - => client.CallAsync(new Help_GetRecentMeUrls_ + => client.CallAsync(new Help_GetRecentMeUrls { referer = referer, }); - - [TLDef(0x2CA51FD1)] - public partial class Help_GetTermsOfServiceUpdate_ : IMethod { } /// Look for updates of telegram's terms of service See public static Task Help_GetTermsOfServiceUpdate(this Client client) - => client.CallAsync(new Help_GetTermsOfServiceUpdate_ + => client.CallAsync(new Help_GetTermsOfServiceUpdate { }); - - [TLDef(0xEE72F79A)] - public partial class Help_AcceptTermsOfService_ : IMethod - { - public DataJSON id; - } /// Accept the new terms of service See /// ID of terms of service public static Task Help_AcceptTermsOfService(this Client client, DataJSON id) - => client.CallAsync(new Help_AcceptTermsOfService_ + => client.CallAsync(new Help_AcceptTermsOfService { id = id, }); - - [TLDef(0x3FEDC75F)] - public partial class Help_GetDeepLinkInfo_ : IMethod - { - public string path; - } /// Get info about a t.me link See /// Path in t.me/path /// a null value means help.deepLinkInfoEmpty public static Task Help_GetDeepLinkInfo(this Client client, string path) - => client.CallAsync(new Help_GetDeepLinkInfo_ + => client.CallAsync(new Help_GetDeepLinkInfo { path = path, }); - - [TLDef(0x98914110)] - public partial class Help_GetAppConfig_ : IMethod { } /// Get app-specific configuration, see client configuration for more info on the result. See public static Task Help_GetAppConfig(this Client client) - => client.CallAsync(new Help_GetAppConfig_ + => client.CallAsync(new Help_GetAppConfig { }); - - [TLDef(0x6F02F748)] - public partial class Help_SaveAppLog_ : IMethod - { - public InputAppEvent[] events; - } /// Saves logs of application on the server. See /// List of input events public static Task Help_SaveAppLog(this Client client, InputAppEvent[] events) - => client.CallAsync(new Help_SaveAppLog_ + => client.CallAsync(new Help_SaveAppLog { events = events, }); - - [TLDef(0xC661AD08)] - public partial class Help_GetPassportConfig_ : IMethod - { - public int hash; - } /// Get passport configuration See /// Hash for pagination, for more info click here /// a null value means help.passportConfigNotModified public static Task Help_GetPassportConfig(this Client client, int hash) - => client.CallAsync(new Help_GetPassportConfig_ + => client.CallAsync(new Help_GetPassportConfig { hash = hash, }); - - [TLDef(0xD360E72C)] - public partial class Help_GetSupportName_ : IMethod { } /// Get localized name of the telegram support user See Possible codes: 403 (details) public static Task Help_GetSupportName(this Client client) - => client.CallAsync(new Help_GetSupportName_ + => client.CallAsync(new Help_GetSupportName { }); - - [TLDef(0x038A08D3)] - public partial class Help_GetUserInfo_ : IMethod - { - public InputUserBase user_id; - } /// Internal use See Possible codes: 403 (details) /// User ID /// a null value means help.userInfoEmpty public static Task Help_GetUserInfo(this Client client, InputUserBase user_id) - => client.CallAsync(new Help_GetUserInfo_ + => client.CallAsync(new Help_GetUserInfo { user_id = user_id, }); - - [TLDef(0x66B91B70)] - public partial class Help_EditUserInfo_ : IMethod - { - public InputUserBase user_id; - public string message; - public MessageEntity[] entities; - } /// Internal use See Possible codes: 400 (details) /// User /// Message /// Message entities for styled text /// a null value means help.userInfoEmpty public static Task Help_EditUserInfo(this Client client, InputUserBase user_id, string message, MessageEntity[] entities) - => client.CallAsync(new Help_EditUserInfo_ + => client.CallAsync(new Help_EditUserInfo { user_id = user_id, message = message, entities = entities, }); - - [TLDef(0xC0977421)] - public partial class Help_GetPromoData_ : IMethod { } /// Get MTProxy/Public Service Announcement information See public static Task Help_GetPromoData(this Client client) - => client.CallAsync(new Help_GetPromoData_ + => client.CallAsync(new Help_GetPromoData { }); - - [TLDef(0x1E251C95)] - public partial class Help_HidePromoData_ : IMethod - { - public InputPeer peer; - } /// Hide MTProxy/Public Service Announcement information See /// Peer to hide public static Task Help_HidePromoData(this Client client, InputPeer peer) - => client.CallAsync(new Help_HidePromoData_ + => client.CallAsync(new Help_HidePromoData { peer = peer, }); - - [TLDef(0xF50DBAA1)] - public partial class Help_DismissSuggestion_ : IMethod - { - public InputPeer peer; - public string suggestion; - } /// Dismiss a suggestion, see here for more info ยป. See /// In the case of pending suggestions in , the channel ID. /// Suggestion, see here for more info ยป. public static Task Help_DismissSuggestion(this Client client, InputPeer peer, string suggestion) - => client.CallAsync(new Help_DismissSuggestion_ + => client.CallAsync(new Help_DismissSuggestion { peer = peer, suggestion = suggestion, }); - - [TLDef(0x735787A8)] - public partial class Help_GetCountriesList_ : IMethod - { - public string lang_code; - public int hash; - } /// Get name, ISO code, localized name and phone codes/patterns of all available countries See /// Language code of the current user /// Hash for pagination, for more info click here /// a null value means help.countriesListNotModified public static Task Help_GetCountriesList(this Client client, string lang_code, int hash) - => client.CallAsync(new Help_GetCountriesList_ + => client.CallAsync(new Help_GetCountriesList { lang_code = lang_code, hash = hash, }); - - [TLDef(0xCC104937)] - public partial class Channels_ReadHistory_ : IMethod - { - public InputChannelBase channel; - public int max_id; - } /// Mark channel/supergroup history as read See Possible codes: 400 (details) /// Channel/supergroup /// ID of message up to which messages should be marked as read public static Task Channels_ReadHistory(this Client client, InputChannelBase channel, int max_id) - => client.CallAsync(new Channels_ReadHistory_ + => client.CallAsync(new Channels_ReadHistory { channel = channel, max_id = max_id, }); - - [TLDef(0x84C1FD4E)] - public partial class Channels_DeleteMessages_ : IMethod - { - public InputChannelBase channel; - public int[] id; - } /// Delete messages in a channel/supergroup See [bots: โœ“] Possible codes: 400,403 (details) /// Channel/supergroup /// IDs of messages to delete public static Task Channels_DeleteMessages(this Client client, InputChannelBase channel, int[] id) - => client.CallAsync(new Channels_DeleteMessages_ + => client.CallAsync(new Channels_DeleteMessages { channel = channel, id = id, }); - - [TLDef(0xD10DD71B)] - public partial class Channels_DeleteUserHistory_ : IMethod - { - public InputChannelBase channel; - public InputUserBase user_id; - } /// Delete all messages sent by a certain user in a supergroup See Possible codes: 400,403 (details) /// Supergroup /// User whose messages should be deleted public static Task Channels_DeleteUserHistory(this Client client, InputChannelBase channel, InputUserBase user_id) - => client.CallAsync(new Channels_DeleteUserHistory_ + => client.CallAsync(new Channels_DeleteUserHistory { channel = channel, user_id = user_id, }); - - [TLDef(0xFE087810)] - public partial class Channels_ReportSpam_ : IMethod - { - public InputChannelBase channel; - public InputUserBase user_id; - public int[] id; - } /// Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup See Possible codes: 400 (details) /// Supergroup /// ID of the user that sent the spam messages /// IDs of spam messages public static Task Channels_ReportSpam(this Client client, InputChannelBase channel, InputUserBase user_id, int[] id) - => client.CallAsync(new Channels_ReportSpam_ + => client.CallAsync(new Channels_ReportSpam { channel = channel, user_id = user_id, id = id, }); - - [TLDef(0xAD8C9A23)] - public partial class Channels_GetMessages_ : IMethod - { - public InputChannelBase channel; - public InputMessage[] id; - } /// Get channel/supergroup messages See [bots: โœ“] Possible codes: 400 (details) /// Channel/supergroup /// IDs of messages to get public static Task Channels_GetMessages(this Client client, InputChannelBase channel, InputMessage[] id) - => client.CallAsync(new Channels_GetMessages_ + => client.CallAsync(new Channels_GetMessages { channel = channel, id = id, }); - - [TLDef(0x77CED9D0)] - public partial class Channels_GetParticipants_ : IMethod - { - public InputChannelBase channel; - public ChannelParticipantsFilter filter; - public int offset; - public int limit; - public long hash; - } /// Get the participants of a supergroup/channel See [bots: โœ“] Possible codes: 400 (details) /// Channel /// Which participant types to fetch @@ -17906,7 +15205,7 @@ namespace TL /// Hash /// a null value means channels.channelParticipantsNotModified public static Task Channels_GetParticipants(this Client client, InputChannelBase channel, ChannelParticipantsFilter filter, int offset, int limit, long hash) - => client.CallAsync(new Channels_GetParticipants_ + => client.CallAsync(new Channels_GetParticipants { channel = channel, filter = filter, @@ -17914,67 +15213,29 @@ namespace TL limit = limit, hash = hash, }); - - [TLDef(0xA0AB6CC6)] - public partial class Channels_GetParticipant_ : IMethod - { - public InputChannelBase channel; - public InputPeer participant; - } /// Get info about a channel/supergroup participant See [bots: โœ“] Possible codes: 400 (details) /// Channel/supergroup /// Participant to get info about public static Task Channels_GetParticipant(this Client client, InputChannelBase channel, InputPeer participant) - => client.CallAsync(new Channels_GetParticipant_ + => client.CallAsync(new Channels_GetParticipant { channel = channel, participant = participant, }); - - [TLDef(0x0A7F6BBB)] - public partial class Channels_GetChannels_ : IMethod - { - public InputChannelBase[] id; - } /// Get info about channels/supergroups See [bots: โœ“] Possible codes: 400 (details) /// IDs of channels/supergroups to get info about public static Task Channels_GetChannels(this Client client, InputChannelBase[] id) - => client.CallAsync(new Channels_GetChannels_ + => client.CallAsync(new Channels_GetChannels { id = id, }); - - [TLDef(0x08736A09)] - public partial class Channels_GetFullChannel_ : IMethod - { - public InputChannelBase channel; - } /// Get full info about a channel See [bots: โœ“] Possible codes: 400,403 (details) /// The channel to get info about public static Task Channels_GetFullChannel(this Client client, InputChannelBase channel) - => client.CallAsync(new Channels_GetFullChannel_ + => client.CallAsync(new Channels_GetFullChannel { channel = channel, }); - - [TLDef(0x3D5FB10F)] - public partial class Channels_CreateChannel_ : IMethod - { - public Flags flags; - public string title; - public string about; - [IfFlag(2)] public InputGeoPoint geo_point; - [IfFlag(2)] public string address; - - [Flags] public enum Flags - { - broadcast = 0x1, - megagroup = 0x2, - /// Field has a value - has_geo_point = 0x4, - for_import = 0x8, - } - } /// Create a supergroup/channel. See Possible codes: 400,403 (details) /// Whether to create a channel /// Whether to create a supergroup @@ -17984,257 +15245,133 @@ namespace TL /// Geogroup location /// Geogroup address public static Task Channels_CreateChannel(this Client client, string title, string about, bool broadcast = false, bool megagroup = false, bool for_import = false, InputGeoPoint geo_point = null, string address = null) - => client.CallAsync(new Channels_CreateChannel_ + => client.CallAsync(new Channels_CreateChannel { - flags = (Channels_CreateChannel_.Flags)((broadcast ? 0x1 : 0) | (megagroup ? 0x2 : 0) | (for_import ? 0x8 : 0) | (geo_point != null ? 0x4 : 0) | (address != null ? 0x4 : 0)), + flags = (Channels_CreateChannel.Flags)((broadcast ? 0x1 : 0) | (megagroup ? 0x2 : 0) | (for_import ? 0x8 : 0) | (geo_point != null ? 0x4 : 0) | (address != null ? 0x4 : 0)), title = title, about = about, geo_point = geo_point, address = address, }); - - [TLDef(0xD33C8902)] - public partial class Channels_EditAdmin_ : IMethod - { - public InputChannelBase channel; - public InputUserBase user_id; - public ChatAdminRights admin_rights; - public string rank; - } /// Modify the admin rights of a user in a supergroup/channel. See [bots: โœ“] Possible codes: 400,403,406 (details) /// The supergroup/channel. /// The ID of the user whose admin rights should be modified /// The admin rights /// Indicates the role (rank) of the admin in the group: just an arbitrary string public static Task Channels_EditAdmin(this Client client, InputChannelBase channel, InputUserBase user_id, ChatAdminRights admin_rights, string rank) - => client.CallAsync(new Channels_EditAdmin_ + => client.CallAsync(new Channels_EditAdmin { channel = channel, user_id = user_id, admin_rights = admin_rights, rank = rank, }); - - [TLDef(0x566DECD0)] - public partial class Channels_EditTitle_ : IMethod - { - public InputChannelBase channel; - public string title; - } /// Edit the name of a channel/supergroup See [bots: โœ“] Possible codes: 400,403 (details) /// Channel/supergroup /// New name public static Task Channels_EditTitle(this Client client, InputChannelBase channel, string title) - => client.CallAsync(new Channels_EditTitle_ + => client.CallAsync(new Channels_EditTitle { channel = channel, title = title, }); - - [TLDef(0xF12E57C9)] - public partial class Channels_EditPhoto_ : IMethod - { - public InputChannelBase channel; - public InputChatPhotoBase photo; - } /// Change the photo of a channel/supergroup See [bots: โœ“] Possible codes: 400,403 (details) /// Channel/supergroup whose photo should be edited /// New photo public static Task Channels_EditPhoto(this Client client, InputChannelBase channel, InputChatPhotoBase photo) - => client.CallAsync(new Channels_EditPhoto_ + => client.CallAsync(new Channels_EditPhoto { channel = channel, photo = photo, }); - - [TLDef(0x10E6BD2C)] - public partial class Channels_CheckUsername_ : IMethod - { - public InputChannelBase channel; - public string username; - } /// Check if a username is free and can be assigned to a channel/supergroup See Possible codes: 400 (details) /// The channel/supergroup that will assigned the specified username /// The username to check public static Task Channels_CheckUsername(this Client client, InputChannelBase channel, string username) - => client.CallAsync(new Channels_CheckUsername_ + => client.CallAsync(new Channels_CheckUsername { channel = channel, username = username, }); - - [TLDef(0x3514B3DE)] - public partial class Channels_UpdateUsername_ : IMethod - { - public InputChannelBase channel; - public string username; - } /// Change the username of a supergroup/channel See Possible codes: 400,403 (details) /// Channel /// New username public static Task Channels_UpdateUsername(this Client client, InputChannelBase channel, string username) - => client.CallAsync(new Channels_UpdateUsername_ + => client.CallAsync(new Channels_UpdateUsername { channel = channel, username = username, }); - - [TLDef(0x24B524C5)] - public partial class Channels_JoinChannel_ : IMethod - { - public InputChannelBase channel; - } /// Join a channel/supergroup See Possible codes: 400 (details) /// Channel/supergroup to join public static Task Channels_JoinChannel(this Client client, InputChannelBase channel) - => client.CallAsync(new Channels_JoinChannel_ + => client.CallAsync(new Channels_JoinChannel { channel = channel, }); - - [TLDef(0xF836AA95)] - public partial class Channels_LeaveChannel_ : IMethod - { - public InputChannelBase channel; - } /// Leave a channel/supergroup See [bots: โœ“] Possible codes: 400,403 (details) /// Channel/supergroup to leave public static Task Channels_LeaveChannel(this Client client, InputChannelBase channel) - => client.CallAsync(new Channels_LeaveChannel_ + => client.CallAsync(new Channels_LeaveChannel { channel = channel, }); - - [TLDef(0x199F3A6C)] - public partial class Channels_InviteToChannel_ : IMethod - { - public InputChannelBase channel; - public InputUserBase[] users; - } /// Invite users to a channel/supergroup See Possible codes: 400,403 (details) /// Channel/supergroup /// Users to invite public static Task Channels_InviteToChannel(this Client client, InputChannelBase channel, InputUserBase[] users) - => client.CallAsync(new Channels_InviteToChannel_ + => client.CallAsync(new Channels_InviteToChannel { channel = channel, users = users, }); - - [TLDef(0xC0111FE3)] - public partial class Channels_DeleteChannel_ : IMethod - { - public InputChannelBase channel; - } /// Delete a channel/supergroup See Possible codes: 400,403 (details) /// Channel/supergroup to delete public static Task Channels_DeleteChannel(this Client client, InputChannelBase channel) - => client.CallAsync(new Channels_DeleteChannel_ + => client.CallAsync(new Channels_DeleteChannel { channel = channel, }); - - [TLDef(0xE63FADEB)] - public partial class Channels_ExportMessageLink_ : IMethod - { - public Flags flags; - public InputChannelBase channel; - public int id; - - [Flags] public enum Flags - { - grouped = 0x1, - thread = 0x2, - } - } /// Get link and embed info of a message in a channel/supergroup See Possible codes: 400 (details) /// Whether to include other grouped media (for albums) /// Whether to also include a thread ID, if available, inside of the link /// Channel /// Message ID public static Task Channels_ExportMessageLink(this Client client, InputChannelBase channel, int id, bool grouped = false, bool thread = false) - => client.CallAsync(new Channels_ExportMessageLink_ + => client.CallAsync(new Channels_ExportMessageLink { - flags = (Channels_ExportMessageLink_.Flags)((grouped ? 0x1 : 0) | (thread ? 0x2 : 0)), + flags = (Channels_ExportMessageLink.Flags)((grouped ? 0x1 : 0) | (thread ? 0x2 : 0)), channel = channel, id = id, }); - - [TLDef(0x1F69B606)] - public partial class Channels_ToggleSignatures_ : IMethod - { - public InputChannelBase channel; - public bool enabled; - } /// Enable/disable message signatures in channels See Possible codes: 400 (details) /// Channel /// Value public static Task Channels_ToggleSignatures(this Client client, InputChannelBase channel, bool enabled) - => client.CallAsync(new Channels_ToggleSignatures_ + => client.CallAsync(new Channels_ToggleSignatures { channel = channel, enabled = enabled, }); - - [TLDef(0xF8B036AF)] - public partial class Channels_GetAdminedPublicChannels_ : IMethod - { - public Flags flags; - - [Flags] public enum Flags - { - by_location = 0x1, - check_limit = 0x2, - } - } /// Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of his channels/supergroups/geogroups. See Possible codes: 400 (details) /// Get geogroups /// If set and the user has reached the limit of owned public channels/supergroups/geogroups, instead of returning the channel list one of the specified errors will be returned.
Useful to check if a new public channel can indeed be created, even before asking the user to enter a channel username to use in channels.checkUsername/channels.updateUsername. public static Task Channels_GetAdminedPublicChannels(this Client client, bool by_location = false, bool check_limit = false) - => client.CallAsync(new Channels_GetAdminedPublicChannels_ + => client.CallAsync(new Channels_GetAdminedPublicChannels { - flags = (Channels_GetAdminedPublicChannels_.Flags)((by_location ? 0x1 : 0) | (check_limit ? 0x2 : 0)), + flags = (Channels_GetAdminedPublicChannels.Flags)((by_location ? 0x1 : 0) | (check_limit ? 0x2 : 0)), }); - - [TLDef(0x96E6CD81)] - public partial class Channels_EditBanned_ : IMethod - { - public InputChannelBase channel; - public InputPeer participant; - public ChatBannedRights banned_rights; - } /// Ban/unban/kick a user in a supergroup/channel. See [bots: โœ“] Possible codes: 400,403 (details) /// The supergroup/channel. /// Participant to ban /// The banned rights public static Task Channels_EditBanned(this Client client, InputChannelBase channel, InputPeer participant, ChatBannedRights banned_rights) - => client.CallAsync(new Channels_EditBanned_ + => client.CallAsync(new Channels_EditBanned { channel = channel, participant = participant, banned_rights = banned_rights, }); - - [TLDef(0x33DDF480)] - public partial class Channels_GetAdminLog_ : IMethod - { - public Flags flags; - public InputChannelBase channel; - public string q; - [IfFlag(0)] public ChannelAdminLogEventsFilter events_filter; - [IfFlag(1)] public InputUserBase[] admins; - public long max_id; - public long min_id; - public int limit; - - [Flags] public enum Flags - { - /// Field has a value - has_events_filter = 0x1, - /// Field has a value - has_admins = 0x2, - } - } /// Get the admin log of a channel/supergroup See Possible codes: 400,403 (details) /// Channel /// Search query, can be empty @@ -18244,9 +15381,9 @@ namespace TL /// Minimum ID of message to return (see pagination) /// Maximum number of results to return, see pagination public static Task Channels_GetAdminLog(this Client client, InputChannelBase channel, string q, long max_id, long min_id, int limit, ChannelAdminLogEventsFilter events_filter = null, InputUserBase[] admins = null) - => client.CallAsync(new Channels_GetAdminLog_ + => client.CallAsync(new Channels_GetAdminLog { - flags = (Channels_GetAdminLog_.Flags)((events_filter != null ? 0x1 : 0) | (admins != null ? 0x2 : 0)), + flags = (Channels_GetAdminLog.Flags)((events_filter != null ? 0x1 : 0) | (admins != null ? 0x2 : 0)), channel = channel, q = q, events_filter = events_filter, @@ -18255,386 +15392,202 @@ namespace TL min_id = min_id, limit = limit, }); - - [TLDef(0xEA8CA4F9)] - public partial class Channels_SetStickers_ : IMethod - { - public InputChannelBase channel; - public InputStickerSet stickerset; - } /// Associate a stickerset to the supergroup See [bots: โœ“] Possible codes: 400,406 (details) /// Supergroup /// The stickerset to associate public static Task Channels_SetStickers(this Client client, InputChannelBase channel, InputStickerSet stickerset) - => client.CallAsync(new Channels_SetStickers_ + => client.CallAsync(new Channels_SetStickers { channel = channel, stickerset = stickerset, }); - - [TLDef(0xEAB5DC38)] - public partial class Channels_ReadMessageContents_ : IMethod - { - public InputChannelBase channel; - public int[] id; - } /// Mark channel/supergroup message contents as read See Possible codes: 400 (details) /// Channel/supergroup /// IDs of messages whose contents should be marked as read public static Task Channels_ReadMessageContents(this Client client, InputChannelBase channel, int[] id) - => client.CallAsync(new Channels_ReadMessageContents_ + => client.CallAsync(new Channels_ReadMessageContents { channel = channel, id = id, }); - - [TLDef(0xAF369D42)] - public partial class Channels_DeleteHistory_ : IMethod - { - public InputChannelBase channel; - public int max_id; - } /// Delete the history of a supergroup See Possible codes: 400 (details) /// Supergroup whose history must be deleted /// ID of message up to which the history must be deleted public static Task Channels_DeleteHistory(this Client client, InputChannelBase channel, int max_id) - => client.CallAsync(new Channels_DeleteHistory_ + => client.CallAsync(new Channels_DeleteHistory { channel = channel, max_id = max_id, }); - - [TLDef(0xEABBB94C)] - public partial class Channels_TogglePreHistoryHidden_ : IMethod - { - public InputChannelBase channel; - public bool enabled; - } /// Hide/unhide message history for new channel/supergroup users See Possible codes: 400 (details) /// Channel/supergroup /// Hide/unhide public static Task Channels_TogglePreHistoryHidden(this Client client, InputChannelBase channel, bool enabled) - => client.CallAsync(new Channels_TogglePreHistoryHidden_ + => client.CallAsync(new Channels_TogglePreHistoryHidden { channel = channel, enabled = enabled, }); - - [TLDef(0x8341ECC0)] - public partial class Channels_GetLeftChannels_ : IMethod - { - public int offset; - } /// Get a list of channels/supergroups we left See Possible codes: 403 (details) /// Offset for pagination public static Task Channels_GetLeftChannels(this Client client, int offset) - => client.CallAsync(new Channels_GetLeftChannels_ + => client.CallAsync(new Channels_GetLeftChannels { offset = offset, }); - - [TLDef(0xF5DAD378)] - public partial class Channels_GetGroupsForDiscussion_ : IMethod { } /// Get all groups that can be used as discussion groups. See public static Task Channels_GetGroupsForDiscussion(this Client client) - => client.CallAsync(new Channels_GetGroupsForDiscussion_ + => client.CallAsync(new Channels_GetGroupsForDiscussion { }); - - [TLDef(0x40582BB2)] - public partial class Channels_SetDiscussionGroup_ : IMethod - { - public InputChannelBase broadcast; - public InputChannelBase group; - } /// Associate a group to a channel as discussion group for that channel See Possible codes: 400 (details) /// Channel /// Discussion group to associate to the channel public static Task Channels_SetDiscussionGroup(this Client client, InputChannelBase broadcast, InputChannelBase group) - => client.CallAsync(new Channels_SetDiscussionGroup_ + => client.CallAsync(new Channels_SetDiscussionGroup { broadcast = broadcast, group = group, }); - - [TLDef(0x8F38CD1F)] - public partial class Channels_EditCreator_ : IMethod - { - public InputChannelBase channel; - public InputUserBase user_id; - public InputCheckPasswordSRP password; - } /// Transfer channel ownership See Possible codes: 400,403 (details) /// Channel /// New channel owner /// 2FA password of account public static Task Channels_EditCreator(this Client client, InputChannelBase channel, InputUserBase user_id, InputCheckPasswordSRP password) - => client.CallAsync(new Channels_EditCreator_ + => client.CallAsync(new Channels_EditCreator { channel = channel, user_id = user_id, password = password, }); - - [TLDef(0x58E63F6D)] - public partial class Channels_EditLocation_ : IMethod - { - public InputChannelBase channel; - public InputGeoPoint geo_point; - public string address; - } /// Edit location of geogroup See Possible codes: 400 (details) /// Geogroup /// New geolocation /// Address string public static Task Channels_EditLocation(this Client client, InputChannelBase channel, InputGeoPoint geo_point, string address) - => client.CallAsync(new Channels_EditLocation_ + => client.CallAsync(new Channels_EditLocation { channel = channel, geo_point = geo_point, address = address, }); - - [TLDef(0xEDD49EF0)] - public partial class Channels_ToggleSlowMode_ : IMethod - { - public InputChannelBase channel; - public int seconds; - } /// Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds See Possible codes: 400 (details) /// The supergroup /// Users will only be able to send one message every seconds seconds, 0 to disable the limitation public static Task Channels_ToggleSlowMode(this Client client, InputChannelBase channel, int seconds) - => client.CallAsync(new Channels_ToggleSlowMode_ + => client.CallAsync(new Channels_ToggleSlowMode { channel = channel, seconds = seconds, }); - - [TLDef(0x11E831EE)] - public partial class Channels_GetInactiveChannels_ : IMethod { } /// Get inactive channels and supergroups See public static Task Channels_GetInactiveChannels(this Client client) - => client.CallAsync(new Channels_GetInactiveChannels_ + => client.CallAsync(new Channels_GetInactiveChannels { }); - - [TLDef(0x0B290C69)] - public partial class Channels_ConvertToGigagroup_ : IMethod - { - public InputChannelBase channel; - } /// See public static Task Channels_ConvertToGigagroup(this Client client, InputChannelBase channel) - => client.CallAsync(new Channels_ConvertToGigagroup_ + => client.CallAsync(new Channels_ConvertToGigagroup { channel = channel, }); - - [TLDef(0xBEAEDB94)] - public partial class Channels_ViewSponsoredMessage_ : IMethod - { - public InputChannelBase channel; - public byte[] random_id; - } /// Mark a specific sponsored message as read See Possible codes: 400 (details) /// Peer /// Message ID public static Task Channels_ViewSponsoredMessage(this Client client, InputChannelBase channel, byte[] random_id) - => client.CallAsync(new Channels_ViewSponsoredMessage_ + => client.CallAsync(new Channels_ViewSponsoredMessage { channel = channel, random_id = random_id, }); - - [TLDef(0xEC210FBF)] - public partial class Channels_GetSponsoredMessages_ : IMethod - { - public InputChannelBase channel; - } /// Get a list of sponsored messages See /// Peer public static Task Channels_GetSponsoredMessages(this Client client, InputChannelBase channel) - => client.CallAsync(new Channels_GetSponsoredMessages_ + => client.CallAsync(new Channels_GetSponsoredMessages { channel = channel, }); - - [TLDef(0xAA2769ED)] - public partial class Bots_SendCustomRequest_ : IMethod - { - public string custom_method; - public DataJSON params_; - } /// Sends a custom request; for bots only See [bots: โœ“] Possible codes: 400 (details) /// The method name /// JSON-serialized method parameters public static Task Bots_SendCustomRequest(this Client client, string custom_method, DataJSON params_) - => client.CallAsync(new Bots_SendCustomRequest_ + => client.CallAsync(new Bots_SendCustomRequest { custom_method = custom_method, params_ = params_, }); - - [TLDef(0xE6213F4D)] - public partial class Bots_AnswerWebhookJSONQuery_ : IMethod - { - public long query_id; - public DataJSON data; - } /// Answers a custom query; for bots only See [bots: โœ“] Possible codes: 400 (details) /// Identifier of a custom query /// JSON-serialized answer to the query public static Task Bots_AnswerWebhookJSONQuery(this Client client, long query_id, DataJSON data) - => client.CallAsync(new Bots_AnswerWebhookJSONQuery_ + => client.CallAsync(new Bots_AnswerWebhookJSONQuery { query_id = query_id, data = data, }); - - [TLDef(0x0517165A)] - public partial class Bots_SetBotCommands_ : IMethod - { - public BotCommandScope scope; - public string lang_code; - public BotCommand[] commands; - } /// Set bot command list See [bots: โœ“] Possible codes: 400 (details) /// Command scope /// Language code /// Bot commands public static Task Bots_SetBotCommands(this Client client, BotCommandScope scope, string lang_code, BotCommand[] commands) - => client.CallAsync(new Bots_SetBotCommands_ + => client.CallAsync(new Bots_SetBotCommands { scope = scope, lang_code = lang_code, commands = commands, }); - - [TLDef(0x3D8DE0F9)] - public partial class Bots_ResetBotCommands_ : IMethod - { - public BotCommandScope scope; - public string lang_code; - } /// Clear bot commands for the specified bot scope and language code See [bots: โœ“] /// Command scope /// Language code public static Task Bots_ResetBotCommands(this Client client, BotCommandScope scope, string lang_code) - => client.CallAsync(new Bots_ResetBotCommands_ + => client.CallAsync(new Bots_ResetBotCommands { scope = scope, lang_code = lang_code, }); - - [TLDef(0xE34C0DD6)] - public partial class Bots_GetBotCommands_ : IMethod - { - public BotCommandScope scope; - public string lang_code; - } /// Obtain a list of bot commands for the specified bot scope and language code See [bots: โœ“] /// Command scope /// Language code public static Task Bots_GetBotCommands(this Client client, BotCommandScope scope, string lang_code) - => client.CallAsync(new Bots_GetBotCommands_ + => client.CallAsync(new Bots_GetBotCommands { scope = scope, lang_code = lang_code, }); - - [TLDef(0x8A333C8D)] - public partial class Payments_GetPaymentForm_ : IMethod - { - public Flags flags; - public InputPeer peer; - public int msg_id; - [IfFlag(0)] public DataJSON theme_params; - - [Flags] public enum Flags - { - /// Field has a value - has_theme_params = 0x1, - } - } /// Get a payment form See Possible codes: 400 (details) /// The peer where the payment form was sent /// Message ID of payment form /// A JSON object with the following keys, containing color theme information (integers, RGB24) to pass to the payment provider, to apply in eventual verification pages:
bg_color - Background color
text_color - Text color
hint_color - Hint text color
link_color - Link color
button_color - Button color
button_text_color - Button text color public static Task Payments_GetPaymentForm(this Client client, InputPeer peer, int msg_id, DataJSON theme_params = null) - => client.CallAsync(new Payments_GetPaymentForm_ + => client.CallAsync(new Payments_GetPaymentForm { - flags = (Payments_GetPaymentForm_.Flags)(theme_params != null ? 0x1 : 0), + flags = (Payments_GetPaymentForm.Flags)(theme_params != null ? 0x1 : 0), peer = peer, msg_id = msg_id, theme_params = theme_params, }); - - [TLDef(0x2478D1CC)] - public partial class Payments_GetPaymentReceipt_ : IMethod - { - public InputPeer peer; - public int msg_id; - } /// Get payment receipt See Possible codes: 400 (details) /// The peer where the payment receipt was sent /// Message ID of receipt public static Task Payments_GetPaymentReceipt(this Client client, InputPeer peer, int msg_id) - => client.CallAsync(new Payments_GetPaymentReceipt_ + => client.CallAsync(new Payments_GetPaymentReceipt { peer = peer, msg_id = msg_id, }); - - [TLDef(0xDB103170)] - public partial class Payments_ValidateRequestedInfo_ : IMethod - { - public Flags flags; - public InputPeer peer; - public int msg_id; - public PaymentRequestedInfo info; - - [Flags] public enum Flags - { - save = 0x1, - } - } /// Submit requested order information for validation See Possible codes: 400 (details) /// Save order information to re-use it for future orders /// Peer where the payment form was sent /// Message ID of payment form /// Requested order information public static Task Payments_ValidateRequestedInfo(this Client client, InputPeer peer, int msg_id, PaymentRequestedInfo info, bool save = false) - => client.CallAsync(new Payments_ValidateRequestedInfo_ + => client.CallAsync(new Payments_ValidateRequestedInfo { - flags = (Payments_ValidateRequestedInfo_.Flags)(save ? 0x1 : 0), + flags = (Payments_ValidateRequestedInfo.Flags)(save ? 0x1 : 0), peer = peer, msg_id = msg_id, info = info, }); - - [TLDef(0x30C3BC9D)] - public partial class Payments_SendPaymentForm_ : IMethod - { - public Flags flags; - public long form_id; - public InputPeer peer; - public int msg_id; - [IfFlag(0)] public string requested_info_id; - [IfFlag(1)] public string shipping_option_id; - public InputPaymentCredentialsBase credentials; - [IfFlag(2)] public long tip_amount; - - [Flags] public enum Flags - { - /// Field has a value - has_requested_info_id = 0x1, - /// Field has a value - has_shipping_option_id = 0x2, - /// Field has a value - has_tip_amount = 0x4, - } - } /// Send compiled payment form See Possible codes: 400 (details) /// Form ID /// The peer where the payment form was sent @@ -18644,9 +15597,9 @@ namespace TL /// Payment credentials /// Tip, in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). public static Task Payments_SendPaymentForm(this Client client, long form_id, InputPeer peer, int msg_id, InputPaymentCredentialsBase credentials, string requested_info_id = null, string shipping_option_id = null, long? tip_amount = null) - => client.CallAsync(new Payments_SendPaymentForm_ + => client.CallAsync(new Payments_SendPaymentForm { - flags = (Payments_SendPaymentForm_.Flags)((requested_info_id != null ? 0x1 : 0) | (shipping_option_id != null ? 0x2 : 0) | (tip_amount != null ? 0x4 : 0)), + flags = (Payments_SendPaymentForm.Flags)((requested_info_id != null ? 0x1 : 0) | (shipping_option_id != null ? 0x2 : 0) | (tip_amount != null ? 0x4 : 0)), form_id = form_id, peer = peer, msg_id = msg_id, @@ -18655,69 +15608,26 @@ namespace TL credentials = credentials, tip_amount = tip_amount.GetValueOrDefault(), }); - - [TLDef(0x227D824B)] - public partial class Payments_GetSavedInfo_ : IMethod { } /// Get saved payment information See public static Task Payments_GetSavedInfo(this Client client) - => client.CallAsync(new Payments_GetSavedInfo_ + => client.CallAsync(new Payments_GetSavedInfo { }); - - [TLDef(0xD83D70C1)] - public partial class Payments_ClearSavedInfo_ : IMethod - { - public Flags flags; - - [Flags] public enum Flags - { - credentials = 0x1, - info = 0x2, - } - } /// Clear saved payment information See /// Remove saved payment credentials /// Clear the last order settings saved by the user public static Task Payments_ClearSavedInfo(this Client client, bool credentials = false, bool info = false) - => client.CallAsync(new Payments_ClearSavedInfo_ + => client.CallAsync(new Payments_ClearSavedInfo { - flags = (Payments_ClearSavedInfo_.Flags)((credentials ? 0x1 : 0) | (info ? 0x2 : 0)), + flags = (Payments_ClearSavedInfo.Flags)((credentials ? 0x1 : 0) | (info ? 0x2 : 0)), }); - - [TLDef(0x2E79D779)] - public partial class Payments_GetBankCardData_ : IMethod - { - public string number; - } /// Get info about a credit card See Possible codes: 400 (details) /// Credit card number public static Task Payments_GetBankCardData(this Client client, string number) - => client.CallAsync(new Payments_GetBankCardData_ + => client.CallAsync(new Payments_GetBankCardData { number = number, }); - - [TLDef(0x9021AB67)] - public partial class Stickers_CreateStickerSet_ : IMethod - { - public Flags flags; - public InputUserBase user_id; - public string title; - public string short_name; - [IfFlag(2)] public InputDocument thumb; - public InputStickerSetItem[] stickers; - [IfFlag(3)] public string software; - - [Flags] public enum Flags - { - masks = 0x1, - animated = 0x2, - /// Field has a value - has_thumb = 0x4, - /// Field has a value - has_software = 0x8, - } - } /// Create a stickerset, bots only. See [bots: โœ“] Possible codes: 400 (details) /// Whether this is a mask stickerset /// Whether this is an animated stickerset @@ -18728,9 +15638,9 @@ namespace TL /// Stickers /// Used when importing stickers using the sticker import SDKs, specifies the name of the software that created the stickers public static Task Stickers_CreateStickerSet(this Client client, InputUserBase user_id, string title, string short_name, InputStickerSetItem[] stickers, bool masks = false, bool animated = false, InputDocument thumb = null, string software = null) - => client.CallAsync(new Stickers_CreateStickerSet_ + => client.CallAsync(new Stickers_CreateStickerSet { - flags = (Stickers_CreateStickerSet_.Flags)((masks ? 0x1 : 0) | (animated ? 0x2 : 0) | (thumb != null ? 0x4 : 0) | (software != null ? 0x8 : 0)), + flags = (Stickers_CreateStickerSet.Flags)((masks ? 0x1 : 0) | (animated ? 0x2 : 0) | (thumb != null ? 0x4 : 0) | (software != null ? 0x8 : 0)), user_id = user_id, title = title, short_name = short_name, @@ -18738,116 +15648,59 @@ namespace TL stickers = stickers, software = software, }); - - [TLDef(0xF7760F51)] - public partial class Stickers_RemoveStickerFromSet_ : IMethod - { - public InputDocument sticker; - } /// Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot. See [bots: โœ“] Possible codes: 400 (details) /// The sticker to remove public static Task Stickers_RemoveStickerFromSet(this Client client, InputDocument sticker) - => client.CallAsync(new Stickers_RemoveStickerFromSet_ + => client.CallAsync(new Stickers_RemoveStickerFromSet { sticker = sticker, }); - - [TLDef(0xFFB6D4CA)] - public partial class Stickers_ChangeStickerPosition_ : IMethod - { - public InputDocument sticker; - public int position; - } /// Changes the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot See [bots: โœ“] Possible codes: 400 (details) /// The sticker /// The new position of the sticker, zero-based public static Task Stickers_ChangeStickerPosition(this Client client, InputDocument sticker, int position) - => client.CallAsync(new Stickers_ChangeStickerPosition_ + => client.CallAsync(new Stickers_ChangeStickerPosition { sticker = sticker, position = position, }); - - [TLDef(0x8653FEBE)] - public partial class Stickers_AddStickerToSet_ : IMethod - { - public InputStickerSet stickerset; - public InputStickerSetItem sticker; - } /// Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot. See [bots: โœ“] Possible codes: 400 (details) /// The stickerset /// The sticker public static Task Stickers_AddStickerToSet(this Client client, InputStickerSet stickerset, InputStickerSetItem sticker) - => client.CallAsync(new Stickers_AddStickerToSet_ + => client.CallAsync(new Stickers_AddStickerToSet { stickerset = stickerset, sticker = sticker, }); - - [TLDef(0x9A364E30)] - public partial class Stickers_SetStickerSetThumb_ : IMethod - { - public InputStickerSet stickerset; - public InputDocument thumb; - } /// Set stickerset thumbnail See [bots: โœ“] Possible codes: 400 (details) /// Stickerset /// Thumbnail public static Task Stickers_SetStickerSetThumb(this Client client, InputStickerSet stickerset, InputDocument thumb) - => client.CallAsync(new Stickers_SetStickerSetThumb_ + => client.CallAsync(new Stickers_SetStickerSetThumb { stickerset = stickerset, thumb = thumb, }); - - [TLDef(0x284B3639)] - public partial class Stickers_CheckShortName_ : IMethod - { - public string short_name; - } /// Check whether the given short name is available See Possible codes: 400 (details) /// Short name public static Task Stickers_CheckShortName(this Client client, string short_name) - => client.CallAsync(new Stickers_CheckShortName_ + => client.CallAsync(new Stickers_CheckShortName { short_name = short_name, }); - - [TLDef(0x4DAFC503)] - public partial class Stickers_SuggestShortName_ : IMethod - { - public string title; - } /// Suggests a short name for a given stickerpack name See Possible codes: 400 (details) /// Sticker pack name public static Task Stickers_SuggestShortName(this Client client, string title) - => client.CallAsync(new Stickers_SuggestShortName_ + => client.CallAsync(new Stickers_SuggestShortName { title = title, }); - - [TLDef(0x55451FA9)] - public partial class Phone_GetCallConfig_ : IMethod { } /// Get phone call configuration to be passed to libtgvoip's shared config See public static Task Phone_GetCallConfig(this Client client) - => client.CallAsync(new Phone_GetCallConfig_ + => client.CallAsync(new Phone_GetCallConfig { }); - - [TLDef(0x42FF96ED)] - public partial class Phone_RequestCall_ : IMethod - { - public Flags flags; - public InputUserBase user_id; - public int random_id; - public byte[] g_a_hash; - public PhoneCallProtocol protocol; - - [Flags] public enum Flags - { - video = 0x1, - } - } /// Start a telegram phone call See Possible codes: 400,403 (details) /// Whether to start a video call /// Destination of the phone call @@ -18855,83 +15708,45 @@ namespace TL /// Parameter for E2E encryption key exchange ยป /// Phone call settings public static Task Phone_RequestCall(this Client client, InputUserBase user_id, int random_id, byte[] g_a_hash, PhoneCallProtocol protocol, bool video = false) - => client.CallAsync(new Phone_RequestCall_ + => client.CallAsync(new Phone_RequestCall { - flags = (Phone_RequestCall_.Flags)(video ? 0x1 : 0), + flags = (Phone_RequestCall.Flags)(video ? 0x1 : 0), user_id = user_id, random_id = random_id, g_a_hash = g_a_hash, protocol = protocol, }); - - [TLDef(0x3BD2B4A0)] - public partial class Phone_AcceptCall_ : IMethod - { - public InputPhoneCall peer; - public byte[] g_b; - public PhoneCallProtocol protocol; - } /// Accept incoming call See Possible codes: 400 (details) /// The call to accept /// Parameter for E2E encryption key exchange ยป /// Phone call settings public static Task Phone_AcceptCall(this Client client, InputPhoneCall peer, byte[] g_b, PhoneCallProtocol protocol) - => client.CallAsync(new Phone_AcceptCall_ + => client.CallAsync(new Phone_AcceptCall { peer = peer, g_b = g_b, protocol = protocol, }); - - [TLDef(0x2EFE1722)] - public partial class Phone_ConfirmCall_ : IMethod - { - public InputPhoneCall peer; - public byte[] g_a; - public long key_fingerprint; - public PhoneCallProtocol protocol; - } /// Complete phone call E2E encryption key exchange ยป See Possible codes: 400 (details) /// The phone call /// Parameter for E2E encryption key exchange ยป /// Key fingerprint /// Phone call settings public static Task Phone_ConfirmCall(this Client client, InputPhoneCall peer, byte[] g_a, long key_fingerprint, PhoneCallProtocol protocol) - => client.CallAsync(new Phone_ConfirmCall_ + => client.CallAsync(new Phone_ConfirmCall { peer = peer, g_a = g_a, key_fingerprint = key_fingerprint, protocol = protocol, }); - - [TLDef(0x17D54F61)] - public partial class Phone_ReceivedCall_ : IMethod - { - public InputPhoneCall peer; - } /// Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended. See Possible codes: 400 (details) /// The phone call we're currently in public static Task Phone_ReceivedCall(this Client client, InputPhoneCall peer) - => client.CallAsync(new Phone_ReceivedCall_ + => client.CallAsync(new Phone_ReceivedCall { peer = peer, }); - - [TLDef(0xB2CBC1C0)] - public partial class Phone_DiscardCall_ : IMethod - { - public Flags flags; - public InputPhoneCall peer; - public int duration; - public PhoneCallDiscardReason reason; - public long connection_id; - - [Flags] public enum Flags - { - video = 0x1, - } - } /// Refuse or end running call See Possible codes: 400 (details) /// Whether this is a video call /// The phone call @@ -18939,123 +15754,59 @@ namespace TL /// Why was the call discarded /// Preferred libtgvoip relay ID public static Task Phone_DiscardCall(this Client client, InputPhoneCall peer, int duration, PhoneCallDiscardReason reason, long connection_id, bool video = false) - => client.CallAsync(new Phone_DiscardCall_ + => client.CallAsync(new Phone_DiscardCall { - flags = (Phone_DiscardCall_.Flags)(video ? 0x1 : 0), + flags = (Phone_DiscardCall.Flags)(video ? 0x1 : 0), peer = peer, duration = duration, reason = reason, connection_id = connection_id, }); - - [TLDef(0x59EAD627)] - public partial class Phone_SetCallRating_ : IMethod - { - public Flags flags; - public InputPhoneCall peer; - public int rating; - public string comment; - - [Flags] public enum Flags - { - user_initiative = 0x1, - } - } /// Rate a call See Possible codes: 400 (details) /// Whether the user decided on their own initiative to rate the call /// The call to rate /// Rating in 1-5 stars /// An additional comment public static Task Phone_SetCallRating(this Client client, InputPhoneCall peer, int rating, string comment, bool user_initiative = false) - => client.CallAsync(new Phone_SetCallRating_ + => client.CallAsync(new Phone_SetCallRating { - flags = (Phone_SetCallRating_.Flags)(user_initiative ? 0x1 : 0), + flags = (Phone_SetCallRating.Flags)(user_initiative ? 0x1 : 0), peer = peer, rating = rating, comment = comment, }); - - [TLDef(0x277ADD7E)] - public partial class Phone_SaveCallDebug_ : IMethod - { - public InputPhoneCall peer; - public DataJSON debug; - } /// Send phone call debug data to server See Possible codes: 400 (details) /// Phone call /// Debug statistics obtained from libtgvoip public static Task Phone_SaveCallDebug(this Client client, InputPhoneCall peer, DataJSON debug) - => client.CallAsync(new Phone_SaveCallDebug_ + => client.CallAsync(new Phone_SaveCallDebug { peer = peer, debug = debug, }); - - [TLDef(0xFF7A9383)] - public partial class Phone_SendSignalingData_ : IMethod - { - public InputPhoneCall peer; - public byte[] data; - } /// Send VoIP signaling data See /// Phone call /// Signaling payload public static Task Phone_SendSignalingData(this Client client, InputPhoneCall peer, byte[] data) - => client.CallAsync(new Phone_SendSignalingData_ + => client.CallAsync(new Phone_SendSignalingData { peer = peer, data = data, }); - - [TLDef(0x48CDC6D8)] - public partial class Phone_CreateGroupCall_ : IMethod - { - public Flags flags; - public InputPeer peer; - public int random_id; - [IfFlag(0)] public string title; - [IfFlag(1)] public DateTime schedule_date; - - [Flags] public enum Flags - { - /// Field has a value - has_title = 0x1, - /// Field has a value - has_schedule_date = 0x2, - } - } /// Create a group call or livestream See Possible codes: 400 (details) /// Associate the group call or livestream to the provided group/supergroup/channel /// Unique client message ID required to prevent creation of duplicate group calls /// Call title /// For scheduled group call or livestreams, the absolute date when the group call will start public static Task Phone_CreateGroupCall(this Client client, InputPeer peer, int random_id, string title = null, DateTime? schedule_date = null) - => client.CallAsync(new Phone_CreateGroupCall_ + => client.CallAsync(new Phone_CreateGroupCall { - flags = (Phone_CreateGroupCall_.Flags)((title != null ? 0x1 : 0) | (schedule_date != null ? 0x2 : 0)), + flags = (Phone_CreateGroupCall.Flags)((title != null ? 0x1 : 0) | (schedule_date != null ? 0x2 : 0)), peer = peer, random_id = random_id, title = title, schedule_date = schedule_date.GetValueOrDefault(), }); - - [TLDef(0xB132FF7B)] - public partial class Phone_JoinGroupCall_ : IMethod - { - public Flags flags; - public InputGroupCall call; - public InputPeer join_as; - [IfFlag(1)] public string invite_hash; - public DataJSON params_; - - [Flags] public enum Flags - { - muted = 0x1, - /// Field has a value - has_invite_hash = 0x2, - video_stopped = 0x4, - } - } /// Join a group call See Possible codes: 400 (details) /// If set, the user will be muted by default upon joining. /// If set, the user's video will be disabled by default upon joining. @@ -19064,111 +15815,59 @@ namespace TL /// The invitation hash from the invite link: https://t.me/username?voicechat=hash /// WebRTC parameters public static Task Phone_JoinGroupCall(this Client client, InputGroupCall call, InputPeer join_as, DataJSON params_, bool muted = false, bool video_stopped = false, string invite_hash = null) - => client.CallAsync(new Phone_JoinGroupCall_ + => client.CallAsync(new Phone_JoinGroupCall { - flags = (Phone_JoinGroupCall_.Flags)((muted ? 0x1 : 0) | (video_stopped ? 0x4 : 0) | (invite_hash != null ? 0x2 : 0)), + flags = (Phone_JoinGroupCall.Flags)((muted ? 0x1 : 0) | (video_stopped ? 0x4 : 0) | (invite_hash != null ? 0x2 : 0)), call = call, join_as = join_as, invite_hash = invite_hash, params_ = params_, }); - - [TLDef(0x500377F9)] - public partial class Phone_LeaveGroupCall_ : IMethod - { - public InputGroupCall call; - public int source; - } /// Leave a group call See /// The group call /// Your source ID public static Task Phone_LeaveGroupCall(this Client client, InputGroupCall call, int source) - => client.CallAsync(new Phone_LeaveGroupCall_ + => client.CallAsync(new Phone_LeaveGroupCall { call = call, source = source, }); - - [TLDef(0x7B393160)] - public partial class Phone_InviteToGroupCall_ : IMethod - { - public InputGroupCall call; - public InputUserBase[] users; - } /// Invite a set of users to a group call. See Possible codes: 403 (details) /// The group call /// The users to invite. public static Task Phone_InviteToGroupCall(this Client client, InputGroupCall call, InputUserBase[] users) - => client.CallAsync(new Phone_InviteToGroupCall_ + => client.CallAsync(new Phone_InviteToGroupCall { call = call, users = users, }); - - [TLDef(0x7A777135)] - public partial class Phone_DiscardGroupCall_ : IMethod - { - public InputGroupCall call; - } /// Terminate a group call See /// The group call to terminate public static Task Phone_DiscardGroupCall(this Client client, InputGroupCall call) - => client.CallAsync(new Phone_DiscardGroupCall_ + => client.CallAsync(new Phone_DiscardGroupCall { call = call, }); - - [TLDef(0x74BBB43D)] - public partial class Phone_ToggleGroupCallSettings_ : IMethod - { - public Flags flags; - public InputGroupCall call; - [IfFlag(0)] public bool join_muted; - - [Flags] public enum Flags - { - /// Field has a value - has_join_muted = 0x1, - reset_invite_hash = 0x2, - } - } /// Change group call settings See Possible codes: 400 (details) /// Invalidate existing invite links /// Group call /// Whether all users will bthat join this group calle muted by default upon joining the group call public static Task Phone_ToggleGroupCallSettings(this Client client, InputGroupCall call, bool reset_invite_hash = false, bool? join_muted = default) - => client.CallAsync(new Phone_ToggleGroupCallSettings_ + => client.CallAsync(new Phone_ToggleGroupCallSettings { - flags = (Phone_ToggleGroupCallSettings_.Flags)((reset_invite_hash ? 0x2 : 0) | (join_muted != default ? 0x1 : 0)), + flags = (Phone_ToggleGroupCallSettings.Flags)((reset_invite_hash ? 0x2 : 0) | (join_muted != default ? 0x1 : 0)), call = call, join_muted = join_muted.GetValueOrDefault(), }); - - [TLDef(0x041845DB)] - public partial class Phone_GetGroupCall_ : IMethod - { - public InputGroupCall call; - public int limit; - } /// Get info about a group call See /// The group call /// Maximum number of results to return, see pagination public static Task Phone_GetGroupCall(this Client client, InputGroupCall call, int limit) - => client.CallAsync(new Phone_GetGroupCall_ + => client.CallAsync(new Phone_GetGroupCall { call = call, limit = limit, }); - - [TLDef(0xC558D8AB)] - public partial class Phone_GetGroupParticipants_ : IMethod - { - public InputGroupCall call; - public InputPeer[] ids; - public int[] sources; - public string offset; - public int limit; - } /// Get group call participants See /// Group call /// If specified, will fetch group participant info about the specified peers @@ -19176,7 +15875,7 @@ namespace TL /// Offset for results, taken from the next_offset field of , initially an empty string.
Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in if it is empty, to avoid an infinite loop. /// Maximum number of results to return,
see pagination public static Task Phone_GetGroupParticipants(this Client client, InputGroupCall call, InputPeer[] ids, int[] sources, string offset, int limit) - => client.CallAsync(new Phone_GetGroupParticipants_ + => client.CallAsync(new Phone_GetGroupParticipants { call = call, ids = ids, @@ -19184,39 +15883,15 @@ namespace TL offset = offset, limit = limit, }); - - [TLDef(0xB59CF977)] - public partial class Phone_CheckGroupCall_ : IMethod - { - public InputGroupCall call; - public int[] sources; - } /// Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs See /// Group call /// Source IDs public static Task Phone_CheckGroupCall(this Client client, InputGroupCall call, int[] sources) - => client.CallAsync(new Phone_CheckGroupCall_ + => client.CallAsync(new Phone_CheckGroupCall { call = call, sources = sources, }); - - [TLDef(0xF128C708)] - public partial class Phone_ToggleGroupCallRecord_ : IMethod - { - public Flags flags; - public InputGroupCall call; - [IfFlag(1)] public string title; - [IfFlag(2)] public bool video_portrait; - - [Flags] public enum Flags - { - start = 0x1, - /// Field has a value - has_title = 0x2, - video = 0x4, - } - } /// Start or stop recording a group call: the recorded audio and video streams will be automatically sent to Saved messages (the chat with ourselves). See /// Whether to start or stop recording /// Whether to also record video streams @@ -19224,43 +15899,13 @@ namespace TL /// Recording title /// If video stream recording is enabled, whether to record in portrait or landscape mode public static Task Phone_ToggleGroupCallRecord(this Client client, InputGroupCall call, bool start = false, bool video = false, string title = null, bool? video_portrait = default) - => client.CallAsync(new Phone_ToggleGroupCallRecord_ + => client.CallAsync(new Phone_ToggleGroupCallRecord { - flags = (Phone_ToggleGroupCallRecord_.Flags)((start ? 0x1 : 0) | (video ? 0x4 : 0) | (title != null ? 0x2 : 0) | (video_portrait != default ? 0x4 : 0)), + flags = (Phone_ToggleGroupCallRecord.Flags)((start ? 0x1 : 0) | (video ? 0x4 : 0) | (title != null ? 0x2 : 0) | (video_portrait != default ? 0x4 : 0)), call = call, title = title, video_portrait = video_portrait.GetValueOrDefault(), }); - - [TLDef(0xA5273ABF)] - public partial class Phone_EditGroupCallParticipant_ : IMethod - { - public Flags flags; - public InputGroupCall call; - public InputPeer participant; - [IfFlag(0)] public bool muted; - [IfFlag(1)] public int volume; - [IfFlag(2)] public bool raise_hand; - [IfFlag(3)] public bool video_stopped; - [IfFlag(4)] public bool video_paused; - [IfFlag(5)] public bool presentation_paused; - - [Flags] public enum Flags - { - /// Field has a value - has_muted = 0x1, - /// Field has a value - has_volume = 0x2, - /// Field has a value - has_raise_hand = 0x4, - /// Field has a value - has_video_stopped = 0x8, - /// Field has a value - has_video_paused = 0x10, - /// Field has a value - has_presentation_paused = 0x20, - } - } /// Edit information about a given group call participant See Possible codes: 400 (details) /// The group call /// The group call participant (can also be the user itself) @@ -19271,9 +15916,9 @@ namespace TL /// Pause or resume the video stream /// Pause or resume the screen sharing stream public static Task Phone_EditGroupCallParticipant(this Client client, InputGroupCall call, InputPeer participant, bool? muted = default, int? volume = null, bool? raise_hand = default, bool? video_stopped = default, bool? video_paused = default, bool? presentation_paused = default) - => client.CallAsync(new Phone_EditGroupCallParticipant_ + => client.CallAsync(new Phone_EditGroupCallParticipant { - flags = (Phone_EditGroupCallParticipant_.Flags)((muted != default ? 0x1 : 0) | (volume != null ? 0x2 : 0) | (raise_hand != default ? 0x4 : 0) | (video_stopped != default ? 0x8 : 0) | (video_paused != default ? 0x10 : 0) | (presentation_paused != default ? 0x20 : 0)), + flags = (Phone_EditGroupCallParticipant.Flags)((muted != default ? 0x1 : 0) | (volume != null ? 0x2 : 0) | (raise_hand != default ? 0x4 : 0) | (video_stopped != default ? 0x8 : 0) | (video_paused != default ? 0x10 : 0) | (presentation_paused != default ? 0x20 : 0)), call = call, participant = participant, muted = muted.GetValueOrDefault(), @@ -19283,316 +15928,161 @@ namespace TL video_paused = video_paused.GetValueOrDefault(), presentation_paused = presentation_paused.GetValueOrDefault(), }); - - [TLDef(0x1CA6AC0A)] - public partial class Phone_EditGroupCallTitle_ : IMethod - { - public InputGroupCall call; - public string title; - } /// Edit the title of a group call or livestream See /// Group call /// New title public static Task Phone_EditGroupCallTitle(this Client client, InputGroupCall call, string title) - => client.CallAsync(new Phone_EditGroupCallTitle_ + => client.CallAsync(new Phone_EditGroupCallTitle { call = call, title = title, }); - - [TLDef(0xEF7C213A)] - public partial class Phone_GetGroupCallJoinAs_ : IMethod - { - public InputPeer peer; - } /// Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel. See /// The dialog whose group call or livestream we're trying to join public static Task Phone_GetGroupCallJoinAs(this Client client, InputPeer peer) - => client.CallAsync(new Phone_GetGroupCallJoinAs_ + => client.CallAsync(new Phone_GetGroupCallJoinAs { peer = peer, }); - - [TLDef(0xE6AA647F)] - public partial class Phone_ExportGroupCallInvite_ : IMethod - { - public Flags flags; - public InputGroupCall call; - - [Flags] public enum Flags - { - can_self_unmute = 0x1, - } - } /// Get an invite link for a group call or livestream See /// For livestreams, if set, users that join using this link will be able to speak without explicitly requesting permission by (for example by raising their hand). /// The group call public static Task Phone_ExportGroupCallInvite(this Client client, InputGroupCall call, bool can_self_unmute = false) - => client.CallAsync(new Phone_ExportGroupCallInvite_ + => client.CallAsync(new Phone_ExportGroupCallInvite { - flags = (Phone_ExportGroupCallInvite_.Flags)(can_self_unmute ? 0x1 : 0), + flags = (Phone_ExportGroupCallInvite.Flags)(can_self_unmute ? 0x1 : 0), call = call, }); - - [TLDef(0x219C34E6)] - public partial class Phone_ToggleGroupCallStartSubscription_ : IMethod - { - public InputGroupCall call; - public bool subscribed; - } /// Subscribe or unsubscribe to a scheduled group call See /// Scheduled group call /// Enable or disable subscription public static Task Phone_ToggleGroupCallStartSubscription(this Client client, InputGroupCall call, bool subscribed) - => client.CallAsync(new Phone_ToggleGroupCallStartSubscription_ + => client.CallAsync(new Phone_ToggleGroupCallStartSubscription { call = call, subscribed = subscribed, }); - - [TLDef(0x5680E342)] - public partial class Phone_StartScheduledGroupCall_ : IMethod - { - public InputGroupCall call; - } /// Start a scheduled group call. See /// The scheduled group call public static Task Phone_StartScheduledGroupCall(this Client client, InputGroupCall call) - => client.CallAsync(new Phone_StartScheduledGroupCall_ + => client.CallAsync(new Phone_StartScheduledGroupCall { call = call, }); - - [TLDef(0x575E1F8C)] - public partial class Phone_SaveDefaultGroupCallJoinAs_ : IMethod - { - public InputPeer peer; - public InputPeer join_as; - } /// Set the default peer that will be used to join a group call in a specific dialog. See /// The dialog /// The default peer that will be used to join group calls in this dialog, presenting yourself as a specific user/channel. public static Task Phone_SaveDefaultGroupCallJoinAs(this Client client, InputPeer peer, InputPeer join_as) - => client.CallAsync(new Phone_SaveDefaultGroupCallJoinAs_ + => client.CallAsync(new Phone_SaveDefaultGroupCallJoinAs { peer = peer, join_as = join_as, }); - - [TLDef(0xCBEA6BC4)] - public partial class Phone_JoinGroupCallPresentation_ : IMethod - { - public InputGroupCall call; - public DataJSON params_; - } /// Start screen sharing in a call See Possible codes: 403 (details) /// The group call /// WebRTC parameters public static Task Phone_JoinGroupCallPresentation(this Client client, InputGroupCall call, DataJSON params_) - => client.CallAsync(new Phone_JoinGroupCallPresentation_ + => client.CallAsync(new Phone_JoinGroupCallPresentation { call = call, params_ = params_, }); - - [TLDef(0x1C50D144)] - public partial class Phone_LeaveGroupCallPresentation_ : IMethod - { - public InputGroupCall call; - } /// Stop screen sharing in a group call See /// The group call public static Task Phone_LeaveGroupCallPresentation(this Client client, InputGroupCall call) - => client.CallAsync(new Phone_LeaveGroupCallPresentation_ + => client.CallAsync(new Phone_LeaveGroupCallPresentation { call = call, }); - - [TLDef(0xF2F2330A)] - public partial class Langpack_GetLangPack_ : IMethod - { - public string lang_pack; - public string lang_code; - } /// Get localization pack strings See Possible codes: 400 (details) /// Language pack name /// Language code public static Task Langpack_GetLangPack(this Client client, string lang_pack, string lang_code) - => client.CallAsync(new Langpack_GetLangPack_ + => client.CallAsync(new Langpack_GetLangPack { lang_pack = lang_pack, lang_code = lang_code, }); - - [TLDef(0xEFEA3803)] - public partial class Langpack_GetStrings_ : IMethod - { - public string lang_pack; - public string lang_code; - public string[] keys; - } /// Get strings from a language pack See Possible codes: 400 (details) /// Language pack name /// Language code /// Strings to get public static Task Langpack_GetStrings(this Client client, string lang_pack, string lang_code, string[] keys) - => client.CallAsync(new Langpack_GetStrings_ + => client.CallAsync(new Langpack_GetStrings { lang_pack = lang_pack, lang_code = lang_code, keys = keys, }); - - [TLDef(0xCD984AA5)] - public partial class Langpack_GetDifference_ : IMethod - { - public string lang_pack; - public string lang_code; - public int from_version; - } /// Get new strings in languagepack See Possible codes: 400 (details) /// Language pack /// Language code /// Previous localization pack version public static Task Langpack_GetDifference(this Client client, string lang_pack, string lang_code, int from_version) - => client.CallAsync(new Langpack_GetDifference_ + => client.CallAsync(new Langpack_GetDifference { lang_pack = lang_pack, lang_code = lang_code, from_version = from_version, }); - - [TLDef(0x42C6978F)] - public partial class Langpack_GetLanguages_ : IMethod - { - public string lang_pack; - } /// Get information about all languages in a localization pack See Possible codes: 400 (details) /// Language pack public static Task Langpack_GetLanguages(this Client client, string lang_pack) - => client.CallAsync(new Langpack_GetLanguages_ + => client.CallAsync(new Langpack_GetLanguages { lang_pack = lang_pack, }); - - [TLDef(0x6A596502)] - public partial class Langpack_GetLanguage_ : IMethod - { - public string lang_pack; - public string lang_code; - } /// Get information about a language in a localization pack See /// Language pack name /// Language code public static Task Langpack_GetLanguage(this Client client, string lang_pack, string lang_code) - => client.CallAsync(new Langpack_GetLanguage_ + => client.CallAsync(new Langpack_GetLanguage { lang_pack = lang_pack, lang_code = lang_code, }); - - [TLDef(0x6847D0AB)] - public partial class Folders_EditPeerFolders_ : IMethod - { - public InputFolderPeer[] folder_peers; - } /// Edit peers in peer folder See Possible codes: 400 (details) /// New peer list public static Task Folders_EditPeerFolders(this Client client, InputFolderPeer[] folder_peers) - => client.CallAsync(new Folders_EditPeerFolders_ + => client.CallAsync(new Folders_EditPeerFolders { folder_peers = folder_peers, }); - - [TLDef(0x1C295881)] - public partial class Folders_DeleteFolder_ : IMethod - { - public int folder_id; - } /// Delete a peer folder See Possible codes: 400 (details) /// Peer folder ID, for more info click here public static Task Folders_DeleteFolder(this Client client, int folder_id) - => client.CallAsync(new Folders_DeleteFolder_ + => client.CallAsync(new Folders_DeleteFolder { folder_id = folder_id, }); - - [TLDef(0xAB42441A)] - public partial class Stats_GetBroadcastStats_ : IMethod - { - public Flags flags; - public InputChannelBase channel; - - [Flags] public enum Flags - { - dark = 0x1, - } - } /// Get channel statistics See Possible codes: 400 (details) /// Whether to enable dark theme for graph colors /// The channel public static Task Stats_GetBroadcastStats(this Client client, InputChannelBase channel, bool dark = false) - => client.CallAsync(new Stats_GetBroadcastStats_ + => client.CallAsync(new Stats_GetBroadcastStats { - flags = (Stats_GetBroadcastStats_.Flags)(dark ? 0x1 : 0), + flags = (Stats_GetBroadcastStats.Flags)(dark ? 0x1 : 0), channel = channel, }); - - [TLDef(0x621D5FA0)] - public partial class Stats_LoadAsyncGraph_ : IMethod - { - public Flags flags; - public string token; - [IfFlag(0)] public long x; - - [Flags] public enum Flags - { - /// Field has a value - has_x = 0x1, - } - } /// Load channel statistics graph asynchronously See Possible codes: 400 (details) /// Graph token from constructor /// Zoom value, if required public static Task Stats_LoadAsyncGraph(this Client client, string token, long? x = null) - => client.CallAsync(new Stats_LoadAsyncGraph_ + => client.CallAsync(new Stats_LoadAsyncGraph { - flags = (Stats_LoadAsyncGraph_.Flags)(x != null ? 0x1 : 0), + flags = (Stats_LoadAsyncGraph.Flags)(x != null ? 0x1 : 0), token = token, x = x.GetValueOrDefault(), }); - - [TLDef(0xDCDF8607)] - public partial class Stats_GetMegagroupStats_ : IMethod - { - public Flags flags; - public InputChannelBase channel; - - [Flags] public enum Flags - { - dark = 0x1, - } - } /// Get supergroup statistics See Possible codes: 400 (details) /// Whether to enable dark theme for graph colors /// Supergroup ID public static Task Stats_GetMegagroupStats(this Client client, InputChannelBase channel, bool dark = false) - => client.CallAsync(new Stats_GetMegagroupStats_ + => client.CallAsync(new Stats_GetMegagroupStats { - flags = (Stats_GetMegagroupStats_.Flags)(dark ? 0x1 : 0), + flags = (Stats_GetMegagroupStats.Flags)(dark ? 0x1 : 0), channel = channel, }); - - [TLDef(0x5630281B)] - public partial class Stats_GetMessagePublicForwards_ : IMethod - { - public InputChannelBase channel; - public int msg_id; - public int offset_rate; - public InputPeer offset_peer; - public int offset_id; - public int limit; - } /// Obtains a list of messages, indicating to which other public channels was a channel message forwarded.
Will return a list of with peer_id equal to the public channel to which this message was forwarded. See Possible codes: 400 (details)
/// Source channel /// Source message ID @@ -19601,7 +16091,7 @@ namespace TL /// Offsets for pagination, for more info click here /// Maximum number of results to return, see pagination public static Task Stats_GetMessagePublicForwards(this Client client, InputChannelBase channel, int msg_id, int offset_rate, InputPeer offset_peer, int offset_id, int limit) - => client.CallAsync(new Stats_GetMessagePublicForwards_ + => client.CallAsync(new Stats_GetMessagePublicForwards { channel = channel, msg_id = msg_id, @@ -19610,29 +16100,3543 @@ namespace TL offset_id = offset_id, limit = limit, }); - - [TLDef(0xB6E0A3F5)] - public partial class Stats_GetMessageStats_ : IMethod - { - public Flags flags; - public InputChannelBase channel; - public int msg_id; - - [Flags] public enum Flags - { - dark = 0x1, - } - } /// Get message statistics See Possible codes: 400 (details) /// Whether to enable dark theme for graph colors /// Channel ID /// Message ID public static Task Stats_GetMessageStats(this Client client, InputChannelBase channel, int msg_id, bool dark = false) - => client.CallAsync(new Stats_GetMessageStats_ + => client.CallAsync(new Stats_GetMessageStats { - flags = (Stats_GetMessageStats_.Flags)(dark ? 0x1 : 0), + flags = (Stats_GetMessageStats.Flags)(dark ? 0x1 : 0), channel = channel, msg_id = msg_id, }); } } + +namespace TL.Methods +{ + [TLDef(0xCB9F372D)] + public class InvokeAfterMsg : IMethod + { + public long msg_id; + public IMethod query; + } + + [TLDef(0x3DC4B4F0)] + public class InvokeAfterMsgs : IMethod + { + public long[] msg_ids; + public IMethod query; + } + + [TLDef(0xC1CD5EA9)] + public class InitConnection : IMethod + { + public Flags flags; + public int api_id; + public string device_model; + public string system_version; + public string app_version; + public string system_lang_code; + public string lang_pack; + public string lang_code; + [IfFlag(0)] public InputClientProxy proxy; + [IfFlag(1)] public JSONValue params_; + public IMethod query; + + [Flags] public enum Flags + { + /// Field has a value + has_proxy = 0x1, + /// Field has a value + has_params = 0x2, + } + } + + [TLDef(0xDA9B0D0D)] + public class InvokeWithLayer : IMethod + { + public int layer; + public IMethod query; + } + + [TLDef(0xBF9459B7)] + public class InvokeWithoutUpdates : IMethod + { + public IMethod query; + } + + [TLDef(0x365275F2)] + public class InvokeWithMessagesRange : IMethod + { + public MessageRange range; + public IMethod query; + } + + [TLDef(0xACA9FD2E)] + public class InvokeWithTakeout : IMethod + { + public long takeout_id; + public IMethod query; + } + + [TLDef(0xA677244F)] + public class Auth_SendCode : IMethod + { + public string phone_number; + public int api_id; + public string api_hash; + public CodeSettings settings; + } + + [TLDef(0x80EEE427)] + public class Auth_SignUp : IMethod + { + public string phone_number; + public string phone_code_hash; + public string first_name; + public string last_name; + } + + [TLDef(0xBCD51581)] + public class Auth_SignIn : IMethod + { + public string phone_number; + public string phone_code_hash; + public string phone_code; + } + + [TLDef(0x5717DA40)] + public class Auth_LogOut : IMethod { } + + [TLDef(0x9FAB0D1A)] + public class Auth_ResetAuthorizations : IMethod { } + + [TLDef(0xE5BFFFCD)] + public class Auth_ExportAuthorization : IMethod + { + public int dc_id; + } + + [TLDef(0xA57A7DAD)] + public class Auth_ImportAuthorization : IMethod + { + public long id; + public byte[] bytes; + } + + [TLDef(0xCDD42A05)] + public class Auth_BindTempAuthKey : IMethod + { + public long perm_auth_key_id; + public long nonce; + public DateTime expires_at; + public byte[] encrypted_message; + } + + [TLDef(0x67A3FF2C)] + public class Auth_ImportBotAuthorization : IMethod + { + public int flags; + public int api_id; + public string api_hash; + public string bot_auth_token; + } + + [TLDef(0xD18B4D16)] + public class Auth_CheckPassword : IMethod + { + public InputCheckPasswordSRP password; + } + + [TLDef(0xD897BC66)] + public class Auth_RequestPasswordRecovery : IMethod { } + + [TLDef(0x37096C70)] + public class Auth_RecoverPassword : IMethod + { + public Flags flags; + public string code; + [IfFlag(0)] public Account_PasswordInputSettings new_settings; + + [Flags] public enum Flags + { + /// Field has a value + has_new_settings = 0x1, + } + } + + [TLDef(0x3EF1A9BF)] + public class Auth_ResendCode : IMethod + { + public string phone_number; + public string phone_code_hash; + } + + [TLDef(0x1F040578)] + public class Auth_CancelCode : IMethod + { + public string phone_number; + public string phone_code_hash; + } + + [TLDef(0x8E48A188)] + public class Auth_DropTempAuthKeys : IMethod + { + public long[] except_auth_keys; + } + + [TLDef(0xB7E085FE)] + public class Auth_ExportLoginToken : IMethod + { + public int api_id; + public string api_hash; + public long[] except_ids; + } + + [TLDef(0x95AC5CE4)] + public class Auth_ImportLoginToken : IMethod + { + public byte[] token; + } + + [TLDef(0xE894AD4D)] + public class Auth_AcceptLoginToken : IMethod + { + public byte[] token; + } + + [TLDef(0x0D36BF79)] + public class Auth_CheckRecoveryPassword : IMethod + { + public string code; + } + + [TLDef(0xEC86017A)] + public class Account_RegisterDevice : IMethod + { + public Flags flags; + public int token_type; + public string token; + public bool app_sandbox; + public byte[] secret; + public long[] other_uids; + + [Flags] public enum Flags + { + no_muted = 0x1, + } + } + + [TLDef(0x6A0D3206)] + public class Account_UnregisterDevice : IMethod + { + public int token_type; + public string token; + public long[] other_uids; + } + + [TLDef(0x84BE5B93)] + public class Account_UpdateNotifySettings : IMethod + { + public InputNotifyPeerBase peer; + public InputPeerNotifySettings settings; + } + + [TLDef(0x12B3AD31)] + public class Account_GetNotifySettings : IMethod + { + public InputNotifyPeerBase peer; + } + + [TLDef(0xDB7E1747)] + public class Account_ResetNotifySettings : IMethod { } + + [TLDef(0x78515775)] + public class Account_UpdateProfile : IMethod + { + public Flags flags; + [IfFlag(0)] public string first_name; + [IfFlag(1)] public string last_name; + [IfFlag(2)] public string about; + + [Flags] public enum Flags + { + /// Field has a value + has_first_name = 0x1, + /// Field has a value + has_last_name = 0x2, + /// Field has a value + has_about = 0x4, + } + } + + [TLDef(0x6628562C)] + public class Account_UpdateStatus : IMethod + { + public bool offline; + } + + [TLDef(0x07967D36)] + public class Account_GetWallPapers : IMethod + { + public long hash; + } + + [TLDef(0xC5BA3D86)] + public class Account_ReportPeer : IMethod + { + public InputPeer peer; + public ReportReason reason; + public string message; + } + + [TLDef(0x2714D86C)] + public class Account_CheckUsername : IMethod + { + public string username; + } + + [TLDef(0x3E0BDD7C)] + public class Account_UpdateUsername : IMethod + { + public string username; + } + + [TLDef(0xDADBC950)] + public class Account_GetPrivacy : IMethod + { + public InputPrivacyKey key; + } + + [TLDef(0xC9F81CE8)] + public class Account_SetPrivacy : IMethod + { + public InputPrivacyKey key; + public InputPrivacyRule[] rules; + } + + [TLDef(0x418D4E0B)] + public class Account_DeleteAccount : IMethod + { + public string reason; + } + + [TLDef(0x08FC711D)] + public class Account_GetAccountTTL : IMethod { } + + [TLDef(0x2442485E)] + public class Account_SetAccountTTL : IMethod + { + public AccountDaysTTL ttl; + } + + [TLDef(0x82574AE5)] + public class Account_SendChangePhoneCode : IMethod + { + public string phone_number; + public CodeSettings settings; + } + + [TLDef(0x70C32EDB)] + public class Account_ChangePhone : IMethod + { + public string phone_number; + public string phone_code_hash; + public string phone_code; + } + + [TLDef(0x38DF3532)] + public class Account_UpdateDeviceLocked : IMethod + { + public int period; + } + + [TLDef(0xE320C158)] + public class Account_GetAuthorizations : IMethod { } + + [TLDef(0xDF77F3BC)] + public class Account_ResetAuthorization : IMethod + { + public long hash; + } + + [TLDef(0x548A30F5)] + public class Account_GetPassword : IMethod { } + + [TLDef(0x9CD4EAF9)] + public class Account_GetPasswordSettings : IMethod + { + public InputCheckPasswordSRP password; + } + + [TLDef(0xA59B102F)] + public class Account_UpdatePasswordSettings : IMethod + { + public InputCheckPasswordSRP password; + public Account_PasswordInputSettings new_settings; + } + + [TLDef(0x1B3FAA88)] + public class Account_SendConfirmPhoneCode : IMethod + { + public string hash; + public CodeSettings settings; + } + + [TLDef(0x5F2178C3)] + public class Account_ConfirmPhone : IMethod + { + public string phone_code_hash; + public string phone_code; + } + + [TLDef(0x449E0B51)] + public class Account_GetTmpPassword : IMethod + { + public InputCheckPasswordSRP password; + public int period; + } + + [TLDef(0x182E6D6F)] + public class Account_GetWebAuthorizations : IMethod { } + + [TLDef(0x2D01B9EF)] + public class Account_ResetWebAuthorization : IMethod + { + public long hash; + } + + [TLDef(0x682D2594)] + public class Account_ResetWebAuthorizations : IMethod { } + + [TLDef(0xB288BC7D)] + public class Account_GetAllSecureValues : IMethod { } + + [TLDef(0x73665BC2)] + public class Account_GetSecureValue : IMethod + { + public SecureValueType[] types; + } + + [TLDef(0x899FE31D)] + public class Account_SaveSecureValue : IMethod + { + public InputSecureValue value; + public long secure_secret_id; + } + + [TLDef(0xB880BC4B)] + public class Account_DeleteSecureValue : IMethod + { + public SecureValueType[] types; + } + + [TLDef(0xA929597A)] + public class Account_GetAuthorizationForm : IMethod + { + public long bot_id; + public string scope; + public string public_key; + } + + [TLDef(0xF3ED4C73)] + public class Account_AcceptAuthorization : IMethod + { + public long bot_id; + public string scope; + public string public_key; + public SecureValueHash[] value_hashes; + public SecureCredentialsEncrypted credentials; + } + + [TLDef(0xA5A356F9)] + public class Account_SendVerifyPhoneCode : IMethod + { + public string phone_number; + public CodeSettings settings; + } + + [TLDef(0x4DD3A7F6)] + public class Account_VerifyPhone : IMethod + { + public string phone_number; + public string phone_code_hash; + public string phone_code; + } + + [TLDef(0x7011509F)] + public class Account_SendVerifyEmailCode : IMethod + { + public string email; + } + + [TLDef(0xECBA39DB)] + public class Account_VerifyEmail : IMethod + { + public string email; + public string code; + } + + [TLDef(0xF05B4804)] + public class Account_InitTakeoutSession : IMethod + { + public Flags flags; + [IfFlag(5)] public int file_max_size; + + [Flags] public enum Flags + { + contacts = 0x1, + message_users = 0x2, + message_chats = 0x4, + message_megagroups = 0x8, + message_channels = 0x10, + files = 0x20, + } + } + + [TLDef(0x1D2652EE)] + public class Account_FinishTakeoutSession : IMethod + { + public Flags flags; + + [Flags] public enum Flags + { + success = 0x1, + } + } + + [TLDef(0x8FDF1920)] + public class Account_ConfirmPasswordEmail : IMethod + { + public string code; + } + + [TLDef(0x7A7F2A15)] + public class Account_ResendPasswordEmail : IMethod { } + + [TLDef(0xC1CBD5B6)] + public class Account_CancelPasswordEmail : IMethod { } + + [TLDef(0x9F07C728)] + public class Account_GetContactSignUpNotification : IMethod { } + + [TLDef(0xCFF43F61)] + public class Account_SetContactSignUpNotification : IMethod + { + public bool silent; + } + + [TLDef(0x53577479)] + public class Account_GetNotifyExceptions : IMethod + { + public Flags flags; + [IfFlag(0)] public InputNotifyPeerBase peer; + + [Flags] public enum Flags + { + /// Field has a value + has_peer = 0x1, + compare_sound = 0x2, + } + } + + [TLDef(0xFC8DDBEA)] + public class Account_GetWallPaper : IMethod + { + public InputWallPaperBase wallpaper; + } + + [TLDef(0xDD853661)] + public class Account_UploadWallPaper : IMethod + { + public InputFileBase file; + public string mime_type; + public WallPaperSettings settings; + } + + [TLDef(0x6C5A5B37)] + public class Account_SaveWallPaper : IMethod + { + public InputWallPaperBase wallpaper; + public bool unsave; + public WallPaperSettings settings; + } + + [TLDef(0xFEED5769)] + public class Account_InstallWallPaper : IMethod + { + public InputWallPaperBase wallpaper; + public WallPaperSettings settings; + } + + [TLDef(0xBB3B9804)] + public class Account_ResetWallPapers : IMethod { } + + [TLDef(0x56DA0B3F)] + public class Account_GetAutoDownloadSettings : IMethod { } + + [TLDef(0x76F36233)] + public class Account_SaveAutoDownloadSettings : IMethod + { + public Flags flags; + public AutoDownloadSettings settings; + + [Flags] public enum Flags + { + low = 0x1, + high = 0x2, + } + } + + [TLDef(0x1C3DB333)] + public class Account_UploadTheme : IMethod + { + public Flags flags; + public InputFileBase file; + [IfFlag(0)] public InputFileBase thumb; + public string file_name; + public string mime_type; + + [Flags] public enum Flags + { + /// Field has a value + has_thumb = 0x1, + } + } + + [TLDef(0x652E4400)] + public class Account_CreateTheme : IMethod + { + public Flags flags; + public string slug; + public string title; + [IfFlag(2)] public InputDocument document; + [IfFlag(3)] public InputThemeSettings[] settings; + + [Flags] public enum Flags + { + /// Field has a value + has_document = 0x4, + /// Field has a value + has_settings = 0x8, + } + } + + [TLDef(0x2BF40CCC)] + public class Account_UpdateTheme : IMethod + { + public Flags flags; + public string format; + public InputThemeBase theme; + [IfFlag(0)] public string slug; + [IfFlag(1)] public string title; + [IfFlag(2)] public InputDocument document; + [IfFlag(3)] public InputThemeSettings[] settings; + + [Flags] public enum Flags + { + /// Field has a value + has_slug = 0x1, + /// Field has a value + has_title = 0x2, + /// Field has a value + has_document = 0x4, + /// Field has a value + has_settings = 0x8, + } + } + + [TLDef(0xF257106C)] + public class Account_SaveTheme : IMethod + { + public InputThemeBase theme; + public bool unsave; + } + + [TLDef(0xC727BB3B)] + public class Account_InstallTheme : IMethod + { + public Flags flags; + [IfFlag(1)] public InputThemeBase theme; + [IfFlag(2)] public string format; + [IfFlag(3)] public BaseTheme base_theme; + + [Flags] public enum Flags + { + dark = 0x1, + /// Field has a value + has_theme = 0x2, + /// Field has a value + has_format = 0x4, + /// Field has a value + has_base_theme = 0x8, + } + } + + [TLDef(0x8D9D742B)] + public class Account_GetTheme : IMethod + { + public string format; + public InputThemeBase theme; + public long document_id; + } + + [TLDef(0x7206E458)] + public class Account_GetThemes : IMethod + { + public string format; + public long hash; + } + + [TLDef(0xB574B16B)] + public class Account_SetContentSettings : IMethod + { + public Flags flags; + + [Flags] public enum Flags + { + sensitive_enabled = 0x1, + } + } + + [TLDef(0x8B9B4DAE)] + public class Account_GetContentSettings : IMethod { } + + [TLDef(0x65AD71DC)] + public class Account_GetMultiWallPapers : IMethod + { + public InputWallPaperBase[] wallpapers; + } + + [TLDef(0xEB2B4CF6)] + public class Account_GetGlobalPrivacySettings : IMethod { } + + [TLDef(0x1EDAAAC2)] + public class Account_SetGlobalPrivacySettings : IMethod + { + public GlobalPrivacySettings settings; + } + + [TLDef(0xFA8CC6F5)] + public class Account_ReportProfilePhoto : IMethod + { + public InputPeer peer; + public InputPhoto photo_id; + public ReportReason reason; + public string message; + } + + [TLDef(0x9308CE1B)] + public class Account_ResetPassword : IMethod { } + + [TLDef(0x4C9409F6)] + public class Account_DeclinePasswordReset : IMethod { } + + [TLDef(0xD638DE89)] + public class Account_GetChatThemes : IMethod + { + public long hash; + } + + [TLDef(0x0D91A548)] + public class Users_GetUsers : IMethod + { + public InputUserBase[] id; + } + + [TLDef(0xCA30A5B1)] + public class Users_GetFullUser : IMethod + { + public InputUserBase id; + } + + [TLDef(0x90C894B5)] + public class Users_SetSecureValueErrors : IMethod + { + public InputUserBase id; + public SecureValueErrorBase[] errors; + } + + [TLDef(0x7ADC669D)] + public class Contacts_GetContactIDs : IMethod + { + public long hash; + } + + [TLDef(0xC4A353EE)] + public class Contacts_GetStatuses : IMethod { } + + [TLDef(0x5DD69E12)] + public class Contacts_GetContacts : IMethod + { + public long hash; + } + + [TLDef(0x2C800BE5)] + public class Contacts_ImportContacts : IMethod + { + public InputContact[] contacts; + } + + [TLDef(0x096A0E00)] + public class Contacts_DeleteContacts : IMethod + { + public InputUserBase[] id; + } + + [TLDef(0x1013FD9E)] + public class Contacts_DeleteByPhones : IMethod + { + public string[] phones; + } + + [TLDef(0x68CC1411)] + public class Contacts_Block : IMethod + { + public InputPeer id; + } + + [TLDef(0xBEA65D50)] + public class Contacts_Unblock : IMethod + { + public InputPeer id; + } + + [TLDef(0xF57C350F)] + public class Contacts_GetBlocked : IMethod + { + public int offset; + public int limit; + } + + [TLDef(0x11F812D8)] + public class Contacts_Search : IMethod + { + public string q; + public int limit; + } + + [TLDef(0xF93CCBA3)] + public class Contacts_ResolveUsername : IMethod + { + public string username; + } + + [TLDef(0x973478B6)] + public class Contacts_GetTopPeers : IMethod + { + public Flags flags; + public int offset; + public int limit; + public long hash; + + [Flags] public enum Flags + { + correspondents = 0x1, + bots_pm = 0x2, + bots_inline = 0x4, + phone_calls = 0x8, + forward_users = 0x10, + forward_chats = 0x20, + groups = 0x400, + channels = 0x8000, + } + } + + [TLDef(0x1AE373AC)] + public class Contacts_ResetTopPeerRating : IMethod + { + public TopPeerCategory category; + public InputPeer peer; + } + + [TLDef(0x879537F1)] + public class Contacts_ResetSaved : IMethod { } + + [TLDef(0x82F1E39F)] + public class Contacts_GetSaved : IMethod { } + + [TLDef(0x8514BDDA)] + public class Contacts_ToggleTopPeers : IMethod + { + public bool enabled; + } + + [TLDef(0xE8F463D0)] + public class Contacts_AddContact : IMethod + { + public Flags flags; + public InputUserBase id; + public string first_name; + public string last_name; + public string phone; + + [Flags] public enum Flags + { + add_phone_privacy_exception = 0x1, + } + } + + [TLDef(0xF831A20F)] + public class Contacts_AcceptContact : IMethod + { + public InputUserBase id; + } + + [TLDef(0xD348BC44)] + public class Contacts_GetLocated : IMethod + { + public Flags flags; + public InputGeoPoint geo_point; + [IfFlag(0)] public int self_expires; + + [Flags] public enum Flags + { + /// Field has a value + has_self_expires = 0x1, + background = 0x2, + } + } + + [TLDef(0x29A8962C)] + public class Contacts_BlockFromReplies : IMethod + { + public Flags flags; + public int msg_id; + + [Flags] public enum Flags + { + delete_message = 0x1, + delete_history = 0x2, + report_spam = 0x4, + } + } + + [TLDef(0x63C66506)] + public class Messages_GetMessages : IMethod + { + public InputMessage[] id; + } + + [TLDef(0xA0F4CB4F)] + public class Messages_GetDialogs : IMethod + { + public Flags flags; + [IfFlag(1)] public int folder_id; + public DateTime offset_date; + public int offset_id; + public InputPeer offset_peer; + public int limit; + public long hash; + + [Flags] public enum Flags + { + exclude_pinned = 0x1, + /// Field has a value + has_folder_id = 0x2, + } + } + + [TLDef(0x4423E6C5)] + public class Messages_GetHistory : IMethod + { + public InputPeer peer; + public int offset_id; + public DateTime offset_date; + public int add_offset; + public int limit; + public int max_id; + public int min_id; + public long hash; + } + + [TLDef(0xA0FDA762)] + public class Messages_Search : IMethod + { + public Flags flags; + public InputPeer peer; + public string q; + [IfFlag(0)] public InputPeer from_id; + [IfFlag(1)] public int top_msg_id; + public MessagesFilter filter; + public DateTime min_date; + public DateTime max_date; + public int offset_id; + public int add_offset; + public int limit; + public int max_id; + public int min_id; + public long hash; + + [Flags] public enum Flags + { + /// Field has a value + has_from_id = 0x1, + /// Field has a value + has_top_msg_id = 0x2, + } + } + + [TLDef(0x0E306D3A)] + public class Messages_ReadHistory : IMethod + { + public InputPeer peer; + public int max_id; + } + + [TLDef(0xB08F922A)] + public class Messages_DeleteHistory : IMethod + { + public Flags flags; + public InputPeer peer; + public int max_id; + [IfFlag(2)] public DateTime min_date; + [IfFlag(3)] public DateTime max_date; + + [Flags] public enum Flags + { + just_clear = 0x1, + revoke = 0x2, + /// Field has a value + has_min_date = 0x4, + /// Field has a value + has_max_date = 0x8, + } + } + + [TLDef(0xE58E95D2)] + public class Messages_DeleteMessages : IMethod + { + public Flags flags; + public int[] id; + + [Flags] public enum Flags + { + revoke = 0x1, + } + } + + [TLDef(0x05A954C0)] + public class Messages_ReceivedMessages : IMethod + { + public int max_id; + } + + [TLDef(0x58943EE2)] + public class Messages_SetTyping : IMethod + { + public Flags flags; + public InputPeer peer; + [IfFlag(0)] public int top_msg_id; + public SendMessageAction action; + + [Flags] public enum Flags + { + /// Field has a value + has_top_msg_id = 0x1, + } + } + + [TLDef(0x520C3870)] + public class Messages_SendMessage : IMethod + { + public Flags flags; + public InputPeer peer; + [IfFlag(0)] public int reply_to_msg_id; + public string message; + public long random_id; + [IfFlag(2)] public ReplyMarkup reply_markup; + [IfFlag(3)] public MessageEntity[] entities; + [IfFlag(10)] public DateTime schedule_date; + + [Flags] public enum Flags + { + /// Field has a value + has_reply_to_msg_id = 0x1, + no_webpage = 0x2, + /// Field has a value + has_reply_markup = 0x4, + /// Field has a value + has_entities = 0x8, + silent = 0x20, + background = 0x40, + clear_draft = 0x80, + /// Field has a value + has_schedule_date = 0x400, + } + } + + [TLDef(0x3491EBA9)] + public class Messages_SendMedia : IMethod + { + public Flags flags; + public InputPeer peer; + [IfFlag(0)] public int reply_to_msg_id; + public InputMedia media; + public string message; + public long random_id; + [IfFlag(2)] public ReplyMarkup reply_markup; + [IfFlag(3)] public MessageEntity[] entities; + [IfFlag(10)] public DateTime schedule_date; + + [Flags] public enum Flags + { + /// Field has a value + has_reply_to_msg_id = 0x1, + /// Field has a value + has_reply_markup = 0x4, + /// Field has a value + has_entities = 0x8, + silent = 0x20, + background = 0x40, + clear_draft = 0x80, + /// Field has a value + has_schedule_date = 0x400, + } + } + + [TLDef(0xD9FEE60E)] + public class Messages_ForwardMessages : IMethod + { + public Flags flags; + public InputPeer from_peer; + public int[] id; + public long[] random_id; + public InputPeer to_peer; + [IfFlag(10)] public DateTime schedule_date; + + [Flags] public enum Flags + { + silent = 0x20, + background = 0x40, + with_my_score = 0x100, + /// Field has a value + has_schedule_date = 0x400, + drop_author = 0x800, + drop_media_captions = 0x1000, + } + } + + [TLDef(0xCF1592DB)] + public class Messages_ReportSpam : IMethod + { + public InputPeer peer; + } + + [TLDef(0x3672E09C)] + public class Messages_GetPeerSettings : IMethod + { + public InputPeer peer; + } + + [TLDef(0x8953AB4E)] + public class Messages_Report : IMethod + { + public InputPeer peer; + public int[] id; + public ReportReason reason; + public string message; + } + + [TLDef(0x49E9528F)] + public class Messages_GetChats : IMethod + { + public long[] id; + } + + [TLDef(0xAEB00B34)] + public class Messages_GetFullChat : IMethod + { + public long chat_id; + } + + [TLDef(0x73783FFD)] + public class Messages_EditChatTitle : IMethod + { + public long chat_id; + public string title; + } + + [TLDef(0x35DDD674)] + public class Messages_EditChatPhoto : IMethod + { + public long chat_id; + public InputChatPhotoBase photo; + } + + [TLDef(0xF24753E3)] + public class Messages_AddChatUser : IMethod + { + public long chat_id; + public InputUserBase user_id; + public int fwd_limit; + } + + [TLDef(0xA2185CAB)] + public class Messages_DeleteChatUser : IMethod + { + public Flags flags; + public long chat_id; + public InputUserBase user_id; + + [Flags] public enum Flags + { + revoke_history = 0x1, + } + } + + [TLDef(0x09CB126E)] + public class Messages_CreateChat : IMethod + { + public InputUserBase[] users; + public string title; + } + + [TLDef(0x26CF8950)] + public class Messages_GetDhConfig : IMethod + { + public int version; + public int random_length; + } + + [TLDef(0xF64DAF43)] + public class Messages_RequestEncryption : IMethod + { + public InputUserBase user_id; + public int random_id; + public byte[] g_a; + } + + [TLDef(0x3DBC0415)] + public class Messages_AcceptEncryption : IMethod + { + public InputEncryptedChat peer; + public byte[] g_b; + public long key_fingerprint; + } + + [TLDef(0xF393AEA0)] + public class Messages_DiscardEncryption : IMethod + { + public Flags flags; + public int chat_id; + + [Flags] public enum Flags + { + delete_history = 0x1, + } + } + + [TLDef(0x791451ED)] + public class Messages_SetEncryptedTyping : IMethod + { + public InputEncryptedChat peer; + public bool typing; + } + + [TLDef(0x7F4B690A)] + public class Messages_ReadEncryptedHistory : IMethod + { + public InputEncryptedChat peer; + public DateTime max_date; + } + + [TLDef(0x44FA7A15)] + public class Messages_SendEncrypted : IMethod + { + public Flags flags; + public InputEncryptedChat peer; + public long random_id; + public byte[] data; + + [Flags] public enum Flags + { + silent = 0x1, + } + } + + [TLDef(0x5559481D)] + public class Messages_SendEncryptedFile : IMethod + { + public Flags flags; + public InputEncryptedChat peer; + public long random_id; + public byte[] data; + public InputEncryptedFileBase file; + + [Flags] public enum Flags + { + silent = 0x1, + } + } + + [TLDef(0x32D439A4)] + public class Messages_SendEncryptedService : IMethod + { + public InputEncryptedChat peer; + public long random_id; + public byte[] data; + } + + [TLDef(0x55A5BB66)] + public class Messages_ReceivedQueue : IMethod + { + public int max_qts; + } + + [TLDef(0x4B0C8C0F)] + public class Messages_ReportEncryptedSpam : IMethod + { + public InputEncryptedChat peer; + } + + [TLDef(0x36A73F77)] + public class Messages_ReadMessageContents : IMethod + { + public int[] id; + } + + [TLDef(0xD5A5D3A1)] + public class Messages_GetStickers : IMethod + { + public string emoticon; + public long hash; + } + + [TLDef(0xB8A0A1A8)] + public class Messages_GetAllStickers : IMethod + { + public long hash; + } + + [TLDef(0x8B68B0CC)] + public class Messages_GetWebPagePreview : IMethod + { + public Flags flags; + public string message; + [IfFlag(3)] public MessageEntity[] entities; + + [Flags] public enum Flags + { + /// Field has a value + has_entities = 0x8, + } + } + + [TLDef(0xA02CE5D5)] + public class Messages_ExportChatInvite : IMethod + { + public Flags flags; + public InputPeer peer; + [IfFlag(0)] public DateTime expire_date; + [IfFlag(1)] public int usage_limit; + [IfFlag(4)] public string title; + + [Flags] public enum Flags + { + /// Field has a value + has_expire_date = 0x1, + /// Field has a value + has_usage_limit = 0x2, + legacy_revoke_permanent = 0x4, + request_needed = 0x8, + /// Field has a value + has_title = 0x10, + } + } + + [TLDef(0x3EADB1BB)] + public class Messages_CheckChatInvite : IMethod + { + public string hash; + } + + [TLDef(0x6C50051C)] + public class Messages_ImportChatInvite : IMethod + { + public string hash; + } + + [TLDef(0x2619A90E)] + public class Messages_GetStickerSet : IMethod + { + public InputStickerSet stickerset; + } + + [TLDef(0xC78FE460)] + public class Messages_InstallStickerSet : IMethod + { + public InputStickerSet stickerset; + public bool archived; + } + + [TLDef(0xF96E55DE)] + public class Messages_UninstallStickerSet : IMethod + { + public InputStickerSet stickerset; + } + + [TLDef(0xE6DF7378)] + public class Messages_StartBot : IMethod + { + public InputUserBase bot; + public InputPeer peer; + public long random_id; + public string start_param; + } + + [TLDef(0x5784D3E1)] + public class Messages_GetMessagesViews : IMethod + { + public InputPeer peer; + public int[] id; + public bool increment; + } + + [TLDef(0xA85BD1C2)] + public class Messages_EditChatAdmin : IMethod + { + public long chat_id; + public InputUserBase user_id; + public bool is_admin; + } + + [TLDef(0xA2875319)] + public class Messages_MigrateChat : IMethod + { + public long chat_id; + } + + [TLDef(0x4BC6589A)] + public class Messages_SearchGlobal : IMethod + { + public Flags flags; + [IfFlag(0)] public int folder_id; + public string q; + public MessagesFilter filter; + public DateTime min_date; + public DateTime max_date; + public int offset_rate; + public InputPeer offset_peer; + public int offset_id; + public int limit; + + [Flags] public enum Flags + { + /// Field has a value + has_folder_id = 0x1, + } + } + + [TLDef(0x78337739)] + public class Messages_ReorderStickerSets : IMethod + { + public Flags flags; + public long[] order; + + [Flags] public enum Flags + { + masks = 0x1, + } + } + + [TLDef(0x338E2464)] + public class Messages_GetDocumentByHash : IMethod + { + public byte[] sha256; + public int size; + public string mime_type; + } + + [TLDef(0x5CF09635)] + public class Messages_GetSavedGifs : IMethod + { + public long hash; + } + + [TLDef(0x327A30CB)] + public class Messages_SaveGif : IMethod + { + public InputDocument id; + public bool unsave; + } + + [TLDef(0x514E999D)] + public class Messages_GetInlineBotResults : IMethod + { + public Flags flags; + public InputUserBase bot; + public InputPeer peer; + [IfFlag(0)] public InputGeoPoint geo_point; + public string query; + public string offset; + + [Flags] public enum Flags + { + /// Field has a value + has_geo_point = 0x1, + } + } + + [TLDef(0xEB5EA206)] + public class Messages_SetInlineBotResults : IMethod + { + public Flags flags; + public long query_id; + public InputBotInlineResultBase[] results; + public DateTime cache_time; + [IfFlag(2)] public string next_offset; + [IfFlag(3)] public InlineBotSwitchPM switch_pm; + + [Flags] public enum Flags + { + gallery = 0x1, + private_ = 0x2, + /// Field has a value + has_next_offset = 0x4, + /// Field has a value + has_switch_pm = 0x8, + } + } + + [TLDef(0x220815B0)] + public class Messages_SendInlineBotResult : IMethod + { + public Flags flags; + public InputPeer peer; + [IfFlag(0)] public int reply_to_msg_id; + public long random_id; + public long query_id; + public string id; + [IfFlag(10)] public DateTime schedule_date; + + [Flags] public enum Flags + { + /// Field has a value + has_reply_to_msg_id = 0x1, + silent = 0x20, + background = 0x40, + clear_draft = 0x80, + /// Field has a value + has_schedule_date = 0x400, + hide_via = 0x800, + } + } + + [TLDef(0xFDA68D36)] + public class Messages_GetMessageEditData : IMethod + { + public InputPeer peer; + public int id; + } + + [TLDef(0x48F71778)] + public class Messages_EditMessage : IMethod + { + public Flags flags; + public InputPeer peer; + public int id; + [IfFlag(11)] public string message; + [IfFlag(14)] public InputMedia media; + [IfFlag(2)] public ReplyMarkup reply_markup; + [IfFlag(3)] public MessageEntity[] entities; + [IfFlag(15)] public DateTime schedule_date; + + [Flags] public enum Flags + { + no_webpage = 0x2, + /// Field has a value + has_reply_markup = 0x4, + /// Field has a value + has_entities = 0x8, + /// Field has a value + has_message = 0x800, + /// Field has a value + has_media = 0x4000, + /// Field has a value + has_schedule_date = 0x8000, + } + } + + [TLDef(0x83557DBA)] + public class Messages_EditInlineBotMessage : IMethod + { + public Flags flags; + public InputBotInlineMessageIDBase id; + [IfFlag(11)] public string message; + [IfFlag(14)] public InputMedia media; + [IfFlag(2)] public ReplyMarkup reply_markup; + [IfFlag(3)] public MessageEntity[] entities; + + [Flags] public enum Flags + { + no_webpage = 0x2, + /// Field has a value + has_reply_markup = 0x4, + /// Field has a value + has_entities = 0x8, + /// Field has a value + has_message = 0x800, + /// Field has a value + has_media = 0x4000, + } + } + + [TLDef(0x9342CA07)] + public class Messages_GetBotCallbackAnswer : IMethod + { + public Flags flags; + public InputPeer peer; + public int msg_id; + [IfFlag(0)] public byte[] data; + [IfFlag(2)] public InputCheckPasswordSRP password; + + [Flags] public enum Flags + { + /// Field has a value + has_data = 0x1, + game = 0x2, + /// Field has a value + has_password = 0x4, + } + } + + [TLDef(0xD58F130A)] + public class Messages_SetBotCallbackAnswer : IMethod + { + public Flags flags; + public long query_id; + [IfFlag(0)] public string message; + [IfFlag(2)] public string url; + public DateTime cache_time; + + [Flags] public enum Flags + { + /// Field has a value + has_message = 0x1, + alert = 0x2, + /// Field has a value + has_url = 0x4, + } + } + + [TLDef(0xE470BCFD)] + public class Messages_GetPeerDialogs : IMethod + { + public InputDialogPeerBase[] peers; + } + + [TLDef(0xBC39E14B)] + public class Messages_SaveDraft : IMethod + { + public Flags flags; + [IfFlag(0)] public int reply_to_msg_id; + public InputPeer peer; + public string message; + [IfFlag(3)] public MessageEntity[] entities; + + [Flags] public enum Flags + { + /// Field has a value + has_reply_to_msg_id = 0x1, + no_webpage = 0x2, + /// Field has a value + has_entities = 0x8, + } + } + + [TLDef(0x6A3F8D65)] + public class Messages_GetAllDrafts : IMethod { } + + [TLDef(0x64780B14)] + public class Messages_GetFeaturedStickers : IMethod + { + public long hash; + } + + [TLDef(0x5B118126)] + public class Messages_ReadFeaturedStickers : IMethod + { + public long[] id; + } + + [TLDef(0x9DA9403B)] + public class Messages_GetRecentStickers : IMethod + { + public Flags flags; + public long hash; + + [Flags] public enum Flags + { + attached = 0x1, + } + } + + [TLDef(0x392718F8)] + public class Messages_SaveRecentSticker : IMethod + { + public Flags flags; + public InputDocument id; + public bool unsave; + + [Flags] public enum Flags + { + attached = 0x1, + } + } + + [TLDef(0x8999602D)] + public class Messages_ClearRecentStickers : IMethod + { + public Flags flags; + + [Flags] public enum Flags + { + attached = 0x1, + } + } + + [TLDef(0x57F17692)] + public class Messages_GetArchivedStickers : IMethod + { + public Flags flags; + public long offset_id; + public int limit; + + [Flags] public enum Flags + { + masks = 0x1, + } + } + + [TLDef(0x640F82B8)] + public class Messages_GetMaskStickers : IMethod + { + public long hash; + } + + [TLDef(0xCC5B67CC)] + public class Messages_GetAttachedStickers : IMethod + { + public InputStickeredMedia media; + } + + [TLDef(0x8EF8ECC0)] + public class Messages_SetGameScore : IMethod + { + public Flags flags; + public InputPeer peer; + public int id; + public InputUserBase user_id; + public int score; + + [Flags] public enum Flags + { + edit_message = 0x1, + force = 0x2, + } + } + + [TLDef(0x15AD9F64)] + public class Messages_SetInlineGameScore : IMethod + { + public Flags flags; + public InputBotInlineMessageIDBase id; + public InputUserBase user_id; + public int score; + + [Flags] public enum Flags + { + edit_message = 0x1, + force = 0x2, + } + } + + [TLDef(0xE822649D)] + public class Messages_GetGameHighScores : IMethod + { + public InputPeer peer; + public int id; + public InputUserBase user_id; + } + + [TLDef(0x0F635E1B)] + public class Messages_GetInlineGameHighScores : IMethod + { + public InputBotInlineMessageIDBase id; + public InputUserBase user_id; + } + + [TLDef(0xE40CA104)] + public class Messages_GetCommonChats : IMethod + { + public InputUserBase user_id; + public long max_id; + public int limit; + } + + [TLDef(0x875F74BE)] + public class Messages_GetAllChats : IMethod + { + public long[] except_ids; + } + + [TLDef(0x32CA8F91)] + public class Messages_GetWebPage : IMethod + { + public string url; + public int hash; + } + + [TLDef(0xA731E257)] + public class Messages_ToggleDialogPin : IMethod + { + public Flags flags; + public InputDialogPeerBase peer; + + [Flags] public enum Flags + { + pinned = 0x1, + } + } + + [TLDef(0x3B1ADF37)] + public class Messages_ReorderPinnedDialogs : IMethod + { + public Flags flags; + public int folder_id; + public InputDialogPeerBase[] order; + + [Flags] public enum Flags + { + force = 0x1, + } + } + + [TLDef(0xD6B94DF2)] + public class Messages_GetPinnedDialogs : IMethod + { + public int folder_id; + } + + [TLDef(0xE5F672FA)] + public class Messages_SetBotShippingResults : IMethod + { + public Flags flags; + public long query_id; + [IfFlag(0)] public string error; + [IfFlag(1)] public ShippingOption[] shipping_options; + + [Flags] public enum Flags + { + /// Field has a value + has_error = 0x1, + /// Field has a value + has_shipping_options = 0x2, + } + } + + [TLDef(0x09C2DD95)] + public class Messages_SetBotPrecheckoutResults : IMethod + { + public Flags flags; + public long query_id; + [IfFlag(0)] public string error; + + [Flags] public enum Flags + { + /// Field has a value + has_error = 0x1, + success = 0x2, + } + } + + [TLDef(0x519BC2B1)] + public class Messages_UploadMedia : IMethod + { + public InputPeer peer; + public InputMedia media; + } + + [TLDef(0xC97DF020)] + public class Messages_SendScreenshotNotification : IMethod + { + public InputPeer peer; + public int reply_to_msg_id; + public long random_id; + } + + [TLDef(0x04F1AAA9)] + public class Messages_GetFavedStickers : IMethod + { + public long hash; + } + + [TLDef(0xB9FFC55B)] + public class Messages_FaveSticker : IMethod + { + public InputDocument id; + public bool unfave; + } + + [TLDef(0x46578472)] + public class Messages_GetUnreadMentions : IMethod + { + public InputPeer peer; + public int offset_id; + public int add_offset; + public int limit; + public int max_id; + public int min_id; + } + + [TLDef(0x0F0189D3)] + public class Messages_ReadMentions : IMethod + { + public InputPeer peer; + } + + [TLDef(0x702A40E0)] + public class Messages_GetRecentLocations : IMethod + { + public InputPeer peer; + public int limit; + public long hash; + } + + [TLDef(0xCC0110CB)] + public class Messages_SendMultiMedia : IMethod + { + public Flags flags; + public InputPeer peer; + [IfFlag(0)] public int reply_to_msg_id; + public InputSingleMedia[] multi_media; + [IfFlag(10)] public DateTime schedule_date; + + [Flags] public enum Flags + { + /// Field has a value + has_reply_to_msg_id = 0x1, + silent = 0x20, + background = 0x40, + clear_draft = 0x80, + /// Field has a value + has_schedule_date = 0x400, + } + } + + [TLDef(0x5057C497)] + public class Messages_UploadEncryptedFile : IMethod + { + public InputEncryptedChat peer; + public InputEncryptedFileBase file; + } + + [TLDef(0x35705B8A)] + public class Messages_SearchStickerSets : IMethod + { + public Flags flags; + public string q; + public long hash; + + [Flags] public enum Flags + { + exclude_featured = 0x1, + } + } + + [TLDef(0x1CFF7E08)] + public class Messages_GetSplitRanges : IMethod { } + + [TLDef(0xC286D98F)] + public class Messages_MarkDialogUnread : IMethod + { + public Flags flags; + public InputDialogPeerBase peer; + + [Flags] public enum Flags + { + unread = 0x1, + } + } + + [TLDef(0x22E24E22)] + public class Messages_GetDialogUnreadMarks : IMethod { } + + [TLDef(0x7E58EE9C)] + public class Messages_ClearAllDrafts : IMethod { } + + [TLDef(0xD2AAF7EC)] + public class Messages_UpdatePinnedMessage : IMethod + { + public Flags flags; + public InputPeer peer; + public int id; + + [Flags] public enum Flags + { + silent = 0x1, + unpin = 0x2, + pm_oneside = 0x4, + } + } + + [TLDef(0x10EA6184)] + public class Messages_SendVote : IMethod + { + public InputPeer peer; + public int msg_id; + public byte[][] options; + } + + [TLDef(0x73BB643B)] + public class Messages_GetPollResults : IMethod + { + public InputPeer peer; + public int msg_id; + } + + [TLDef(0x6E2BE050)] + public class Messages_GetOnlines : IMethod + { + public InputPeer peer; + } + + [TLDef(0xDEF60797)] + public class Messages_EditChatAbout : IMethod + { + public InputPeer peer; + public string about; + } + + [TLDef(0xA5866B41)] + public class Messages_EditChatDefaultBannedRights : IMethod + { + public InputPeer peer; + public ChatBannedRights banned_rights; + } + + [TLDef(0x35A0E062)] + public class Messages_GetEmojiKeywords : IMethod + { + public string lang_code; + } + + [TLDef(0x1508B6AF)] + public class Messages_GetEmojiKeywordsDifference : IMethod + { + public string lang_code; + public int from_version; + } + + [TLDef(0x4E9963B2)] + public class Messages_GetEmojiKeywordsLanguages : IMethod + { + public string[] lang_codes; + } + + [TLDef(0xD5B10C26)] + public class Messages_GetEmojiURL : IMethod + { + public string lang_code; + } + + [TLDef(0x732EEF00)] + public class Messages_GetSearchCounters : IMethod + { + public InputPeer peer; + public MessagesFilter[] filters; + } + + [TLDef(0x198FB446)] + public class Messages_RequestUrlAuth : IMethod + { + public Flags flags; + [IfFlag(1)] public InputPeer peer; + [IfFlag(1)] public int msg_id; + [IfFlag(1)] public int button_id; + [IfFlag(2)] public string url; + + [Flags] public enum Flags + { + /// Field has a value + has_peer = 0x2, + /// Field has a value + has_url = 0x4, + } + } + + [TLDef(0xB12C7125)] + public class Messages_AcceptUrlAuth : IMethod + { + public Flags flags; + [IfFlag(1)] public InputPeer peer; + [IfFlag(1)] public int msg_id; + [IfFlag(1)] public int button_id; + [IfFlag(2)] public string url; + + [Flags] public enum Flags + { + write_allowed = 0x1, + /// Field has a value + has_peer = 0x2, + /// Field has a value + has_url = 0x4, + } + } + + [TLDef(0x4FACB138)] + public class Messages_HidePeerSettingsBar : IMethod + { + public InputPeer peer; + } + + [TLDef(0xF516760B)] + public class Messages_GetScheduledHistory : IMethod + { + public InputPeer peer; + public long hash; + } + + [TLDef(0xBDBB0464)] + public class Messages_GetScheduledMessages : IMethod + { + public InputPeer peer; + public int[] id; + } + + [TLDef(0xBD38850A)] + public class Messages_SendScheduledMessages : IMethod + { + public InputPeer peer; + public int[] id; + } + + [TLDef(0x59AE2B16)] + public class Messages_DeleteScheduledMessages : IMethod + { + public InputPeer peer; + public int[] id; + } + + [TLDef(0xB86E380E)] + public class Messages_GetPollVotes : IMethod + { + public Flags flags; + public InputPeer peer; + public int id; + [IfFlag(0)] public byte[] option; + [IfFlag(1)] public string offset; + public int limit; + + [Flags] public enum Flags + { + /// Field has a value + has_option = 0x1, + /// Field has a value + has_offset = 0x2, + } + } + + [TLDef(0xB5052FEA)] + public class Messages_ToggleStickerSets : IMethod + { + public Flags flags; + public InputStickerSet[] stickersets; + + [Flags] public enum Flags + { + uninstall = 0x1, + archive = 0x2, + unarchive = 0x4, + } + } + + [TLDef(0xF19ED96D)] + public class Messages_GetDialogFilters : IMethod { } + + [TLDef(0xA29CD42C)] + public class Messages_GetSuggestedDialogFilters : IMethod { } + + [TLDef(0x1AD4A04A)] + public class Messages_UpdateDialogFilter : IMethod + { + public Flags flags; + public int id; + [IfFlag(0)] public DialogFilter filter; + + [Flags] public enum Flags + { + /// Field has a value + has_filter = 0x1, + } + } + + [TLDef(0xC563C1E4)] + public class Messages_UpdateDialogFiltersOrder : IMethod + { + public int[] order; + } + + [TLDef(0x7ED094A1)] + public class Messages_GetOldFeaturedStickers : IMethod + { + public int offset; + public int limit; + public long hash; + } + + [TLDef(0x22DDD30C)] + public class Messages_GetReplies : IMethod + { + public InputPeer peer; + public int msg_id; + public int offset_id; + public DateTime offset_date; + public int add_offset; + public int limit; + public int max_id; + public int min_id; + public long hash; + } + + [TLDef(0x446972FD)] + public class Messages_GetDiscussionMessage : IMethod + { + public InputPeer peer; + public int msg_id; + } + + [TLDef(0xF731A9F4)] + public class Messages_ReadDiscussion : IMethod + { + public InputPeer peer; + public int msg_id; + public int read_max_id; + } + + [TLDef(0xF025BC8B)] + public class Messages_UnpinAllMessages : IMethod + { + public InputPeer peer; + } + + [TLDef(0x5BD0EE50)] + public class Messages_DeleteChat : IMethod + { + public long chat_id; + } + + [TLDef(0xF9CBE409)] + public class Messages_DeletePhoneCallHistory : IMethod + { + public Flags flags; + + [Flags] public enum Flags + { + revoke = 0x1, + } + } + + [TLDef(0x43FE19F3)] + public class Messages_CheckHistoryImport : IMethod + { + public string import_head; + } + + [TLDef(0x34090C3B)] + public class Messages_InitHistoryImport : IMethod + { + public InputPeer peer; + public InputFileBase file; + public int media_count; + } + + [TLDef(0x2A862092)] + public class Messages_UploadImportedMedia : IMethod + { + public InputPeer peer; + public long import_id; + public string file_name; + public InputMedia media; + } + + [TLDef(0xB43DF344)] + public class Messages_StartHistoryImport : IMethod + { + public InputPeer peer; + public long import_id; + } + + [TLDef(0xA2B5A3F6)] + public class Messages_GetExportedChatInvites : IMethod + { + public Flags flags; + public InputPeer peer; + public InputUserBase admin_id; + [IfFlag(2)] public DateTime offset_date; + [IfFlag(2)] public string offset_link; + public int limit; + + [Flags] public enum Flags + { + /// Field has a value + has_offset_date = 0x4, + revoked = 0x8, + } + } + + [TLDef(0x73746F5C)] + public class Messages_GetExportedChatInvite : IMethod + { + public InputPeer peer; + public string link; + } + + [TLDef(0xBDCA2F75)] + public class Messages_EditExportedChatInvite : IMethod + { + public Flags flags; + public InputPeer peer; + public string link; + [IfFlag(0)] public DateTime expire_date; + [IfFlag(1)] public int usage_limit; + [IfFlag(3)] public bool request_needed; + [IfFlag(4)] public string title; + + [Flags] public enum Flags + { + /// Field has a value + has_expire_date = 0x1, + /// Field has a value + has_usage_limit = 0x2, + revoked = 0x4, + /// Field has a value + has_request_needed = 0x8, + /// Field has a value + has_title = 0x10, + } + } + + [TLDef(0x56987BD5)] + public class Messages_DeleteRevokedExportedChatInvites : IMethod + { + public InputPeer peer; + public InputUserBase admin_id; + } + + [TLDef(0xD464A42B)] + public class Messages_DeleteExportedChatInvite : IMethod + { + public InputPeer peer; + public string link; + } + + [TLDef(0x3920E6EF)] + public class Messages_GetAdminsWithInvites : IMethod + { + public InputPeer peer; + } + + [TLDef(0xDF04DD4E)] + public class Messages_GetChatInviteImporters : IMethod + { + public Flags flags; + public InputPeer peer; + [IfFlag(1)] public string link; + [IfFlag(2)] public string q; + public DateTime offset_date; + public InputUserBase offset_user; + public int limit; + + [Flags] public enum Flags + { + requested = 0x1, + /// Field has a value + has_link = 0x2, + /// Field has a value + has_q = 0x4, + } + } + + [TLDef(0xB80E5FE4)] + public class Messages_SetHistoryTTL : IMethod + { + public InputPeer peer; + public int period; + } + + [TLDef(0x5DC60F03)] + public class Messages_CheckHistoryImportPeer : IMethod + { + public InputPeer peer; + } + + [TLDef(0xE63BE13F)] + public class Messages_SetChatTheme : IMethod + { + public InputPeer peer; + public string emoticon; + } + + [TLDef(0x2C6F97B7)] + public class Messages_GetMessageReadParticipants : IMethod + { + public InputPeer peer; + public int msg_id; + } + + [TLDef(0x49F0BDE9)] + public class Messages_GetSearchResultsCalendar : IMethod + { + public InputPeer peer; + public MessagesFilter filter; + public int offset_id; + public DateTime offset_date; + } + + [TLDef(0x6E9583A3)] + public class Messages_GetSearchResultsPositions : IMethod + { + public InputPeer peer; + public MessagesFilter filter; + public int offset_id; + public int limit; + } + + [TLDef(0x7FE7E815)] + public class Messages_HideChatJoinRequest : IMethod + { + public Flags flags; + public InputPeer peer; + public InputUserBase user_id; + + [Flags] public enum Flags + { + approved = 0x1, + } + } + + [TLDef(0xEDD4882A)] + public class Updates_GetState : IMethod { } + + [TLDef(0x25939651)] + public class Updates_GetDifference : IMethod + { + public Flags flags; + public int pts; + [IfFlag(0)] public int pts_total_limit; + public DateTime date; + public int qts; + + [Flags] public enum Flags + { + /// Field has a value + has_pts_total_limit = 0x1, + } + } + + [TLDef(0x03173D78)] + public class Updates_GetChannelDifference : IMethod + { + public Flags flags; + public InputChannelBase channel; + public ChannelMessagesFilter filter; + public int pts; + public int limit; + + [Flags] public enum Flags + { + force = 0x1, + } + } + + [TLDef(0x72D4742C)] + public class Photos_UpdateProfilePhoto : IMethod + { + public InputPhoto id; + } + + [TLDef(0x89F30F69)] + public class Photos_UploadProfilePhoto : IMethod + { + public Flags flags; + [IfFlag(0)] public InputFileBase file; + [IfFlag(1)] public InputFileBase video; + [IfFlag(2)] public double video_start_ts; + + [Flags] public enum Flags + { + /// Field has a value + has_file = 0x1, + /// Field has a value + has_video = 0x2, + /// Field has a value + has_video_start_ts = 0x4, + } + } + + [TLDef(0x87CF7F2F)] + public class Photos_DeletePhotos : IMethod + { + public InputPhoto[] id; + } + + [TLDef(0x91CD32A8)] + public class Photos_GetUserPhotos : IMethod + { + public InputUserBase user_id; + public int offset; + public long max_id; + public int limit; + } + + [TLDef(0xB304A621)] + public class Upload_SaveFilePart : IMethod + { + public long file_id; + public int file_part; + public byte[] bytes; + } + + [TLDef(0xB15A9AFC)] + public class Upload_GetFile : IMethod + { + public Flags flags; + public InputFileLocationBase location; + public int offset; + public int limit; + + [Flags] public enum Flags + { + precise = 0x1, + cdn_supported = 0x2, + } + } + + [TLDef(0xDE7B673D)] + public class Upload_SaveBigFilePart : IMethod + { + public long file_id; + public int file_part; + public int file_total_parts; + public byte[] bytes; + } + + [TLDef(0x24E6818D)] + public class Upload_GetWebFile : IMethod + { + public InputWebFileLocationBase location; + public int offset; + public int limit; + } + + [TLDef(0x2000BCC3)] + public class Upload_GetCdnFile : IMethod + { + public byte[] file_token; + public int offset; + public int limit; + } + + [TLDef(0x9B2754A8)] + public class Upload_ReuploadCdnFile : IMethod + { + public byte[] file_token; + public byte[] request_token; + } + + [TLDef(0x4DA54231)] + public class Upload_GetCdnFileHashes : IMethod + { + public byte[] file_token; + public int offset; + } + + [TLDef(0xC7025931)] + public class Upload_GetFileHashes : IMethod + { + public InputFileLocationBase location; + public int offset; + } + + [TLDef(0xC4F9186B)] + public class Help_GetConfig : IMethod { } + + [TLDef(0x1FB33026)] + public class Help_GetNearestDc : IMethod { } + + [TLDef(0x522D5A7D)] + public class Help_GetAppUpdate : IMethod + { + public string source; + } + + [TLDef(0x4D392343)] + public class Help_GetInviteText : IMethod { } + + [TLDef(0x9CDF08CD)] + public class Help_GetSupport : IMethod { } + + [TLDef(0x9010EF6F)] + public class Help_GetAppChangelog : IMethod + { + public string prev_app_version; + } + + [TLDef(0xEC22CFCD)] + public class Help_SetBotUpdatesStatus : IMethod + { + public int pending_updates_count; + public string message; + } + + [TLDef(0x52029342)] + public class Help_GetCdnConfig : IMethod { } + + [TLDef(0x3DC0F114)] + public class Help_GetRecentMeUrls : IMethod + { + public string referer; + } + + [TLDef(0x2CA51FD1)] + public class Help_GetTermsOfServiceUpdate : IMethod { } + + [TLDef(0xEE72F79A)] + public class Help_AcceptTermsOfService : IMethod + { + public DataJSON id; + } + + [TLDef(0x3FEDC75F)] + public class Help_GetDeepLinkInfo : IMethod + { + public string path; + } + + [TLDef(0x98914110)] + public class Help_GetAppConfig : IMethod { } + + [TLDef(0x6F02F748)] + public class Help_SaveAppLog : IMethod + { + public InputAppEvent[] events; + } + + [TLDef(0xC661AD08)] + public class Help_GetPassportConfig : IMethod + { + public int hash; + } + + [TLDef(0xD360E72C)] + public class Help_GetSupportName : IMethod { } + + [TLDef(0x038A08D3)] + public class Help_GetUserInfo : IMethod + { + public InputUserBase user_id; + } + + [TLDef(0x66B91B70)] + public class Help_EditUserInfo : IMethod + { + public InputUserBase user_id; + public string message; + public MessageEntity[] entities; + } + + [TLDef(0xC0977421)] + public class Help_GetPromoData : IMethod { } + + [TLDef(0x1E251C95)] + public class Help_HidePromoData : IMethod + { + public InputPeer peer; + } + + [TLDef(0xF50DBAA1)] + public class Help_DismissSuggestion : IMethod + { + public InputPeer peer; + public string suggestion; + } + + [TLDef(0x735787A8)] + public class Help_GetCountriesList : IMethod + { + public string lang_code; + public int hash; + } + + [TLDef(0xCC104937)] + public class Channels_ReadHistory : IMethod + { + public InputChannelBase channel; + public int max_id; + } + + [TLDef(0x84C1FD4E)] + public class Channels_DeleteMessages : IMethod + { + public InputChannelBase channel; + public int[] id; + } + + [TLDef(0xD10DD71B)] + public class Channels_DeleteUserHistory : IMethod + { + public InputChannelBase channel; + public InputUserBase user_id; + } + + [TLDef(0xFE087810)] + public class Channels_ReportSpam : IMethod + { + public InputChannelBase channel; + public InputUserBase user_id; + public int[] id; + } + + [TLDef(0xAD8C9A23)] + public class Channels_GetMessages : IMethod + { + public InputChannelBase channel; + public InputMessage[] id; + } + + [TLDef(0x77CED9D0)] + public class Channels_GetParticipants : IMethod + { + public InputChannelBase channel; + public ChannelParticipantsFilter filter; + public int offset; + public int limit; + public long hash; + } + + [TLDef(0xA0AB6CC6)] + public class Channels_GetParticipant : IMethod + { + public InputChannelBase channel; + public InputPeer participant; + } + + [TLDef(0x0A7F6BBB)] + public class Channels_GetChannels : IMethod + { + public InputChannelBase[] id; + } + + [TLDef(0x08736A09)] + public class Channels_GetFullChannel : IMethod + { + public InputChannelBase channel; + } + + [TLDef(0x3D5FB10F)] + public class Channels_CreateChannel : IMethod + { + public Flags flags; + public string title; + public string about; + [IfFlag(2)] public InputGeoPoint geo_point; + [IfFlag(2)] public string address; + + [Flags] public enum Flags + { + broadcast = 0x1, + megagroup = 0x2, + /// Field has a value + has_geo_point = 0x4, + for_import = 0x8, + } + } + + [TLDef(0xD33C8902)] + public class Channels_EditAdmin : IMethod + { + public InputChannelBase channel; + public InputUserBase user_id; + public ChatAdminRights admin_rights; + public string rank; + } + + [TLDef(0x566DECD0)] + public class Channels_EditTitle : IMethod + { + public InputChannelBase channel; + public string title; + } + + [TLDef(0xF12E57C9)] + public class Channels_EditPhoto : IMethod + { + public InputChannelBase channel; + public InputChatPhotoBase photo; + } + + [TLDef(0x10E6BD2C)] + public class Channels_CheckUsername : IMethod + { + public InputChannelBase channel; + public string username; + } + + [TLDef(0x3514B3DE)] + public class Channels_UpdateUsername : IMethod + { + public InputChannelBase channel; + public string username; + } + + [TLDef(0x24B524C5)] + public class Channels_JoinChannel : IMethod + { + public InputChannelBase channel; + } + + [TLDef(0xF836AA95)] + public class Channels_LeaveChannel : IMethod + { + public InputChannelBase channel; + } + + [TLDef(0x199F3A6C)] + public class Channels_InviteToChannel : IMethod + { + public InputChannelBase channel; + public InputUserBase[] users; + } + + [TLDef(0xC0111FE3)] + public class Channels_DeleteChannel : IMethod + { + public InputChannelBase channel; + } + + [TLDef(0xE63FADEB)] + public class Channels_ExportMessageLink : IMethod + { + public Flags flags; + public InputChannelBase channel; + public int id; + + [Flags] public enum Flags + { + grouped = 0x1, + thread = 0x2, + } + } + + [TLDef(0x1F69B606)] + public class Channels_ToggleSignatures : IMethod + { + public InputChannelBase channel; + public bool enabled; + } + + [TLDef(0xF8B036AF)] + public class Channels_GetAdminedPublicChannels : IMethod + { + public Flags flags; + + [Flags] public enum Flags + { + by_location = 0x1, + check_limit = 0x2, + } + } + + [TLDef(0x96E6CD81)] + public class Channels_EditBanned : IMethod + { + public InputChannelBase channel; + public InputPeer participant; + public ChatBannedRights banned_rights; + } + + [TLDef(0x33DDF480)] + public class Channels_GetAdminLog : IMethod + { + public Flags flags; + public InputChannelBase channel; + public string q; + [IfFlag(0)] public ChannelAdminLogEventsFilter events_filter; + [IfFlag(1)] public InputUserBase[] admins; + public long max_id; + public long min_id; + public int limit; + + [Flags] public enum Flags + { + /// Field has a value + has_events_filter = 0x1, + /// Field has a value + has_admins = 0x2, + } + } + + [TLDef(0xEA8CA4F9)] + public class Channels_SetStickers : IMethod + { + public InputChannelBase channel; + public InputStickerSet stickerset; + } + + [TLDef(0xEAB5DC38)] + public class Channels_ReadMessageContents : IMethod + { + public InputChannelBase channel; + public int[] id; + } + + [TLDef(0xAF369D42)] + public class Channels_DeleteHistory : IMethod + { + public InputChannelBase channel; + public int max_id; + } + + [TLDef(0xEABBB94C)] + public class Channels_TogglePreHistoryHidden : IMethod + { + public InputChannelBase channel; + public bool enabled; + } + + [TLDef(0x8341ECC0)] + public class Channels_GetLeftChannels : IMethod + { + public int offset; + } + + [TLDef(0xF5DAD378)] + public class Channels_GetGroupsForDiscussion : IMethod { } + + [TLDef(0x40582BB2)] + public class Channels_SetDiscussionGroup : IMethod + { + public InputChannelBase broadcast; + public InputChannelBase group; + } + + [TLDef(0x8F38CD1F)] + public class Channels_EditCreator : IMethod + { + public InputChannelBase channel; + public InputUserBase user_id; + public InputCheckPasswordSRP password; + } + + [TLDef(0x58E63F6D)] + public class Channels_EditLocation : IMethod + { + public InputChannelBase channel; + public InputGeoPoint geo_point; + public string address; + } + + [TLDef(0xEDD49EF0)] + public class Channels_ToggleSlowMode : IMethod + { + public InputChannelBase channel; + public int seconds; + } + + [TLDef(0x11E831EE)] + public class Channels_GetInactiveChannels : IMethod { } + + [TLDef(0x0B290C69)] + public class Channels_ConvertToGigagroup : IMethod + { + public InputChannelBase channel; + } + + [TLDef(0xBEAEDB94)] + public class Channels_ViewSponsoredMessage : IMethod + { + public InputChannelBase channel; + public byte[] random_id; + } + + [TLDef(0xEC210FBF)] + public class Channels_GetSponsoredMessages : IMethod + { + public InputChannelBase channel; + } + + [TLDef(0xAA2769ED)] + public class Bots_SendCustomRequest : IMethod + { + public string custom_method; + public DataJSON params_; + } + + [TLDef(0xE6213F4D)] + public class Bots_AnswerWebhookJSONQuery : IMethod + { + public long query_id; + public DataJSON data; + } + + [TLDef(0x0517165A)] + public class Bots_SetBotCommands : IMethod + { + public BotCommandScope scope; + public string lang_code; + public BotCommand[] commands; + } + + [TLDef(0x3D8DE0F9)] + public class Bots_ResetBotCommands : IMethod + { + public BotCommandScope scope; + public string lang_code; + } + + [TLDef(0xE34C0DD6)] + public class Bots_GetBotCommands : IMethod + { + public BotCommandScope scope; + public string lang_code; + } + + [TLDef(0x8A333C8D)] + public class Payments_GetPaymentForm : IMethod + { + public Flags flags; + public InputPeer peer; + public int msg_id; + [IfFlag(0)] public DataJSON theme_params; + + [Flags] public enum Flags + { + /// Field has a value + has_theme_params = 0x1, + } + } + + [TLDef(0x2478D1CC)] + public class Payments_GetPaymentReceipt : IMethod + { + public InputPeer peer; + public int msg_id; + } + + [TLDef(0xDB103170)] + public class Payments_ValidateRequestedInfo : IMethod + { + public Flags flags; + public InputPeer peer; + public int msg_id; + public PaymentRequestedInfo info; + + [Flags] public enum Flags + { + save = 0x1, + } + } + + [TLDef(0x30C3BC9D)] + public class Payments_SendPaymentForm : IMethod + { + public Flags flags; + public long form_id; + public InputPeer peer; + public int msg_id; + [IfFlag(0)] public string requested_info_id; + [IfFlag(1)] public string shipping_option_id; + public InputPaymentCredentialsBase credentials; + [IfFlag(2)] public long tip_amount; + + [Flags] public enum Flags + { + /// Field has a value + has_requested_info_id = 0x1, + /// Field has a value + has_shipping_option_id = 0x2, + /// Field has a value + has_tip_amount = 0x4, + } + } + + [TLDef(0x227D824B)] + public class Payments_GetSavedInfo : IMethod { } + + [TLDef(0xD83D70C1)] + public class Payments_ClearSavedInfo : IMethod + { + public Flags flags; + + [Flags] public enum Flags + { + credentials = 0x1, + info = 0x2, + } + } + + [TLDef(0x2E79D779)] + public class Payments_GetBankCardData : IMethod + { + public string number; + } + + [TLDef(0x9021AB67)] + public class Stickers_CreateStickerSet : IMethod + { + public Flags flags; + public InputUserBase user_id; + public string title; + public string short_name; + [IfFlag(2)] public InputDocument thumb; + public InputStickerSetItem[] stickers; + [IfFlag(3)] public string software; + + [Flags] public enum Flags + { + masks = 0x1, + animated = 0x2, + /// Field has a value + has_thumb = 0x4, + /// Field has a value + has_software = 0x8, + } + } + + [TLDef(0xF7760F51)] + public class Stickers_RemoveStickerFromSet : IMethod + { + public InputDocument sticker; + } + + [TLDef(0xFFB6D4CA)] + public class Stickers_ChangeStickerPosition : IMethod + { + public InputDocument sticker; + public int position; + } + + [TLDef(0x8653FEBE)] + public class Stickers_AddStickerToSet : IMethod + { + public InputStickerSet stickerset; + public InputStickerSetItem sticker; + } + + [TLDef(0x9A364E30)] + public class Stickers_SetStickerSetThumb : IMethod + { + public InputStickerSet stickerset; + public InputDocument thumb; + } + + [TLDef(0x284B3639)] + public class Stickers_CheckShortName : IMethod + { + public string short_name; + } + + [TLDef(0x4DAFC503)] + public class Stickers_SuggestShortName : IMethod + { + public string title; + } + + [TLDef(0x55451FA9)] + public class Phone_GetCallConfig : IMethod { } + + [TLDef(0x42FF96ED)] + public class Phone_RequestCall : IMethod + { + public Flags flags; + public InputUserBase user_id; + public int random_id; + public byte[] g_a_hash; + public PhoneCallProtocol protocol; + + [Flags] public enum Flags + { + video = 0x1, + } + } + + [TLDef(0x3BD2B4A0)] + public class Phone_AcceptCall : IMethod + { + public InputPhoneCall peer; + public byte[] g_b; + public PhoneCallProtocol protocol; + } + + [TLDef(0x2EFE1722)] + public class Phone_ConfirmCall : IMethod + { + public InputPhoneCall peer; + public byte[] g_a; + public long key_fingerprint; + public PhoneCallProtocol protocol; + } + + [TLDef(0x17D54F61)] + public class Phone_ReceivedCall : IMethod + { + public InputPhoneCall peer; + } + + [TLDef(0xB2CBC1C0)] + public class Phone_DiscardCall : IMethod + { + public Flags flags; + public InputPhoneCall peer; + public int duration; + public PhoneCallDiscardReason reason; + public long connection_id; + + [Flags] public enum Flags + { + video = 0x1, + } + } + + [TLDef(0x59EAD627)] + public class Phone_SetCallRating : IMethod + { + public Flags flags; + public InputPhoneCall peer; + public int rating; + public string comment; + + [Flags] public enum Flags + { + user_initiative = 0x1, + } + } + + [TLDef(0x277ADD7E)] + public class Phone_SaveCallDebug : IMethod + { + public InputPhoneCall peer; + public DataJSON debug; + } + + [TLDef(0xFF7A9383)] + public class Phone_SendSignalingData : IMethod + { + public InputPhoneCall peer; + public byte[] data; + } + + [TLDef(0x48CDC6D8)] + public class Phone_CreateGroupCall : IMethod + { + public Flags flags; + public InputPeer peer; + public int random_id; + [IfFlag(0)] public string title; + [IfFlag(1)] public DateTime schedule_date; + + [Flags] public enum Flags + { + /// Field has a value + has_title = 0x1, + /// Field has a value + has_schedule_date = 0x2, + } + } + + [TLDef(0xB132FF7B)] + public class Phone_JoinGroupCall : IMethod + { + public Flags flags; + public InputGroupCall call; + public InputPeer join_as; + [IfFlag(1)] public string invite_hash; + public DataJSON params_; + + [Flags] public enum Flags + { + muted = 0x1, + /// Field has a value + has_invite_hash = 0x2, + video_stopped = 0x4, + } + } + + [TLDef(0x500377F9)] + public class Phone_LeaveGroupCall : IMethod + { + public InputGroupCall call; + public int source; + } + + [TLDef(0x7B393160)] + public class Phone_InviteToGroupCall : IMethod + { + public InputGroupCall call; + public InputUserBase[] users; + } + + [TLDef(0x7A777135)] + public class Phone_DiscardGroupCall : IMethod + { + public InputGroupCall call; + } + + [TLDef(0x74BBB43D)] + public class Phone_ToggleGroupCallSettings : IMethod + { + public Flags flags; + public InputGroupCall call; + [IfFlag(0)] public bool join_muted; + + [Flags] public enum Flags + { + /// Field has a value + has_join_muted = 0x1, + reset_invite_hash = 0x2, + } + } + + [TLDef(0x041845DB)] + public class Phone_GetGroupCall : IMethod + { + public InputGroupCall call; + public int limit; + } + + [TLDef(0xC558D8AB)] + public class Phone_GetGroupParticipants : IMethod + { + public InputGroupCall call; + public InputPeer[] ids; + public int[] sources; + public string offset; + public int limit; + } + + [TLDef(0xB59CF977)] + public class Phone_CheckGroupCall : IMethod + { + public InputGroupCall call; + public int[] sources; + } + + [TLDef(0xF128C708)] + public class Phone_ToggleGroupCallRecord : IMethod + { + public Flags flags; + public InputGroupCall call; + [IfFlag(1)] public string title; + [IfFlag(2)] public bool video_portrait; + + [Flags] public enum Flags + { + start = 0x1, + /// Field has a value + has_title = 0x2, + video = 0x4, + } + } + + [TLDef(0xA5273ABF)] + public class Phone_EditGroupCallParticipant : IMethod + { + public Flags flags; + public InputGroupCall call; + public InputPeer participant; + [IfFlag(0)] public bool muted; + [IfFlag(1)] public int volume; + [IfFlag(2)] public bool raise_hand; + [IfFlag(3)] public bool video_stopped; + [IfFlag(4)] public bool video_paused; + [IfFlag(5)] public bool presentation_paused; + + [Flags] public enum Flags + { + /// Field has a value + has_muted = 0x1, + /// Field has a value + has_volume = 0x2, + /// Field has a value + has_raise_hand = 0x4, + /// Field has a value + has_video_stopped = 0x8, + /// Field has a value + has_video_paused = 0x10, + /// Field has a value + has_presentation_paused = 0x20, + } + } + + [TLDef(0x1CA6AC0A)] + public class Phone_EditGroupCallTitle : IMethod + { + public InputGroupCall call; + public string title; + } + + [TLDef(0xEF7C213A)] + public class Phone_GetGroupCallJoinAs : IMethod + { + public InputPeer peer; + } + + [TLDef(0xE6AA647F)] + public class Phone_ExportGroupCallInvite : IMethod + { + public Flags flags; + public InputGroupCall call; + + [Flags] public enum Flags + { + can_self_unmute = 0x1, + } + } + + [TLDef(0x219C34E6)] + public class Phone_ToggleGroupCallStartSubscription : IMethod + { + public InputGroupCall call; + public bool subscribed; + } + + [TLDef(0x5680E342)] + public class Phone_StartScheduledGroupCall : IMethod + { + public InputGroupCall call; + } + + [TLDef(0x575E1F8C)] + public class Phone_SaveDefaultGroupCallJoinAs : IMethod + { + public InputPeer peer; + public InputPeer join_as; + } + + [TLDef(0xCBEA6BC4)] + public class Phone_JoinGroupCallPresentation : IMethod + { + public InputGroupCall call; + public DataJSON params_; + } + + [TLDef(0x1C50D144)] + public class Phone_LeaveGroupCallPresentation : IMethod + { + public InputGroupCall call; + } + + [TLDef(0xF2F2330A)] + public class Langpack_GetLangPack : IMethod + { + public string lang_pack; + public string lang_code; + } + + [TLDef(0xEFEA3803)] + public class Langpack_GetStrings : IMethod + { + public string lang_pack; + public string lang_code; + public string[] keys; + } + + [TLDef(0xCD984AA5)] + public class Langpack_GetDifference : IMethod + { + public string lang_pack; + public string lang_code; + public int from_version; + } + + [TLDef(0x42C6978F)] + public class Langpack_GetLanguages : IMethod + { + public string lang_pack; + } + + [TLDef(0x6A596502)] + public class Langpack_GetLanguage : IMethod + { + public string lang_pack; + public string lang_code; + } + + [TLDef(0x6847D0AB)] + public class Folders_EditPeerFolders : IMethod + { + public InputFolderPeer[] folder_peers; + } + + [TLDef(0x1C295881)] + public class Folders_DeleteFolder : IMethod + { + public int folder_id; + } + + [TLDef(0xAB42441A)] + public class Stats_GetBroadcastStats : IMethod + { + public Flags flags; + public InputChannelBase channel; + + [Flags] public enum Flags + { + dark = 0x1, + } + } + + [TLDef(0x621D5FA0)] + public class Stats_LoadAsyncGraph : IMethod + { + public Flags flags; + public string token; + [IfFlag(0)] public long x; + + [Flags] public enum Flags + { + /// Field has a value + has_x = 0x1, + } + } + + [TLDef(0xDCDF8607)] + public class Stats_GetMegagroupStats : IMethod + { + public Flags flags; + public InputChannelBase channel; + + [Flags] public enum Flags + { + dark = 0x1, + } + } + + [TLDef(0x5630281B)] + public class Stats_GetMessagePublicForwards : IMethod + { + public InputChannelBase channel; + public int msg_id; + public int offset_rate; + public InputPeer offset_peer; + public int offset_id; + public int limit; + } + + [TLDef(0xB6E0A3F5)] + public class Stats_GetMessageStats : IMethod + { + public Flags flags; + public InputChannelBase channel; + public int msg_id; + + [Flags] public enum Flags + { + dark = 0x1, + } + } +} diff --git a/src/TL.Secret.cs b/src/TL.Secret.cs index 41db528..cf0bcac 100644 --- a/src/TL.Secret.cs +++ b/src/TL.Secret.cs @@ -4,11 +4,8 @@ using System.Collections.Generic; namespace TL { - using BinaryWriter = System.IO.BinaryWriter; - using Client = WTelegram.Client; - /// Object describes the contents of an encrypted message. See - public abstract partial class DecryptedMessageBase : IObject + public abstract class DecryptedMessageBase : IObject { /// Random message ID, assigned by the author of message.
Must be equal to the ID passed to sending method.
public abstract long RandomId { get; } @@ -16,13 +13,13 @@ namespace TL ///
Object describes media contents of an encrypted message. See /// a null value means decryptedMessageMediaEmpty - public abstract partial class DecryptedMessageMedia : IObject { } + public abstract class DecryptedMessageMedia : IObject { } /// Object describes the action to which a service message is linked. See - public abstract partial class DecryptedMessageAction : IObject { } + public abstract class DecryptedMessageAction : IObject { } /// Indicates the location of a photo, will be deprecated soon See - public abstract partial class FileLocationBase : IObject + public abstract class FileLocationBase : IObject { /// Server volume public abstract long VolumeId { get; } @@ -36,7 +33,7 @@ namespace TL { /// Contents of an encrypted message. See [TLDef(0x1F814F1F)] - public partial class DecryptedMessage : DecryptedMessageBase + public 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; @@ -51,7 +48,7 @@ namespace TL } ///
Contents of an encrypted service message. See [TLDef(0xAA48327D)] - public partial class DecryptedMessageService : DecryptedMessageBase + public 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; @@ -65,7 +62,7 @@ namespace TL ///
Photo attached to an encrypted message. See [TLDef(0x32798A8C)] - public partial class DecryptedMessageMediaPhoto : DecryptedMessageMedia + public class DecryptedMessageMediaPhoto : DecryptedMessageMedia { /// Content of thumbnail file (JPEGfile, quality 55, set in a square 90x90) public byte[] thumb; @@ -86,7 +83,7 @@ namespace TL } /// Video attached to an encrypted message. See [TLDef(0x4CEE6EF3)] - public partial class DecryptedMessageMediaVideo : DecryptedMessageMedia + public class DecryptedMessageMediaVideo : DecryptedMessageMedia { /// Content of thumbnail file (JPEG file, quality 55, set in a square 90x90) public byte[] thumb; @@ -109,7 +106,7 @@ namespace TL } /// GeoPont attached to an encrypted message. See [TLDef(0x35480A59)] - public partial class DecryptedMessageMediaGeoPoint : DecryptedMessageMedia + public class DecryptedMessageMediaGeoPoint : DecryptedMessageMedia { /// Latitude of point public double lat; @@ -118,7 +115,7 @@ namespace TL } /// Contact attached to an encrypted message. See [TLDef(0x588A0A97)] - public partial class DecryptedMessageMediaContact : DecryptedMessageMedia + public class DecryptedMessageMediaContact : DecryptedMessageMedia { /// Phone number public string phone_number; @@ -131,7 +128,7 @@ namespace TL } /// Document attached to a message in a secret chat. See [TLDef(0xB095434B)] - public partial class DecryptedMessageMediaDocument : DecryptedMessageMedia + public class DecryptedMessageMediaDocument : DecryptedMessageMedia { /// Thumbnail-file contents (JPEG-file, quality 55, set in a 90x90 square) public byte[] thumb; @@ -151,7 +148,7 @@ namespace TL } /// Audio file attached to a secret chat message. See [TLDef(0x6080758F)] - public partial class DecryptedMessageMediaAudio : DecryptedMessageMedia + public class DecryptedMessageMediaAudio : DecryptedMessageMedia { /// Audio duration in seconds public int duration; @@ -165,55 +162,55 @@ namespace TL /// Setting of a message lifetime after reading. See [TLDef(0xA1733AEC)] - public partial class DecryptedMessageActionSetMessageTTL : DecryptedMessageAction + public class DecryptedMessageActionSetMessageTTL : DecryptedMessageAction { /// Lifetime in seconds public int ttl_seconds; } /// Messages marked as read. See [TLDef(0x0C4F40BE)] - public partial class DecryptedMessageActionReadMessages : DecryptedMessageAction + public class DecryptedMessageActionReadMessages : DecryptedMessageAction { /// List of message IDs public long[] random_ids; } /// Deleted messages. See [TLDef(0x65614304)] - public partial class DecryptedMessageActionDeleteMessages : DecryptedMessageAction + public class DecryptedMessageActionDeleteMessages : DecryptedMessageAction { /// List of deleted message IDs public long[] random_ids; } /// A screenshot was taken. See [TLDef(0x8AC1F475)] - public partial class DecryptedMessageActionScreenshotMessages : DecryptedMessageAction + public 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 partial class DecryptedMessageActionFlushHistory : DecryptedMessageAction { } + public class DecryptedMessageActionFlushHistory : DecryptedMessageAction { } } namespace Layer17 { /// User is uploading a video. See [TLDef(0x92042FF7)] - public partial class SendMessageUploadVideoAction : SendMessageAction { } + public class SendMessageUploadVideoAction : SendMessageAction { } /// User is uploading a voice message. See [TLDef(0xE6AC8A6F)] - public partial class SendMessageUploadAudioAction : SendMessageAction { } + public class SendMessageUploadAudioAction : SendMessageAction { } /// User is uploading a photo. See [TLDef(0x990A3C1A)] - public partial class SendMessageUploadPhotoAction : SendMessageAction { } + public class SendMessageUploadPhotoAction : SendMessageAction { } /// User is uploading a file. See [TLDef(0x8FAEE98E)] - public partial class SendMessageUploadDocumentAction : SendMessageAction { } + public class SendMessageUploadDocumentAction : SendMessageAction { } /// Contents of an encrypted message. See [TLDef(0x204D3878)] - public partial class DecryptedMessage : DecryptedMessageBase + public 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; @@ -229,7 +226,7 @@ namespace TL } ///
Contents of an encrypted service message. See [TLDef(0x73164160)] - public partial class DecryptedMessageService : DecryptedMessageBase + public 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; @@ -242,7 +239,7 @@ namespace TL ///
Video attached to an encrypted message. See [TLDef(0x524A415D)] - public partial class DecryptedMessageMediaVideo : DecryptedMessageMedia + public class DecryptedMessageMediaVideo : DecryptedMessageMedia { /// Content of thumbnail file (JPEG file, quality 55, set in a square 90x90) public byte[] thumb; @@ -267,7 +264,7 @@ namespace TL } /// Audio file attached to a secret chat message. See [TLDef(0x57E0A9CB)] - public partial class DecryptedMessageMediaAudio : DecryptedMessageMedia + public class DecryptedMessageMediaAudio : DecryptedMessageMedia { /// Audio duration in seconds public int duration; @@ -283,7 +280,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 partial class DecryptedMessageActionResend : DecryptedMessageAction + public class DecryptedMessageActionResend : DecryptedMessageAction { /// out_seq_no of the first message to be resent, with correct parity public int start_seq_no; @@ -292,14 +289,14 @@ 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 partial class DecryptedMessageActionNotifyLayer : DecryptedMessageAction + public class DecryptedMessageActionNotifyLayer : DecryptedMessageAction { /// Layer number, must be 17 or higher (this contructor was introduced in Layer 17). public int layer; } /// User is preparing a message: typing, recording, uploading, etc. See [TLDef(0xCCB27641)] - public partial class DecryptedMessageActionTyping : DecryptedMessageAction + public class DecryptedMessageActionTyping : DecryptedMessageAction { /// Type of action public SendMessageAction action; @@ -307,7 +304,7 @@ namespace TL /// Sets the layer number for the contents of an encrypted message. See [TLDef(0x1BE31789)] - public partial class DecryptedMessageLayer : IObject + public 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; @@ -326,7 +323,7 @@ namespace TL { /// Defines a sticker See [TLDef(0x3A556302)] - public partial class DocumentAttributeSticker : DocumentAttribute + public class DocumentAttributeSticker : DocumentAttribute { /// Alternative emoji representation of sticker public string alt; @@ -335,7 +332,7 @@ namespace TL } /// Represents an audio file See [TLDef(0xDED218E0)] - public partial class DocumentAttributeAudio : DocumentAttribute + public class DocumentAttributeAudio : DocumentAttribute { /// Duration in seconds public int duration; @@ -347,7 +344,7 @@ namespace TL /// Contents of an encrypted message. See [TLDef(0x36B091DE)] - public partial class DecryptedMessage : DecryptedMessageBase + public class DecryptedMessage : DecryptedMessageBase { /// Flags, see TL conditional fields (added in layer 45) public Flags flags; @@ -384,7 +381,7 @@ namespace TL /// Photo attached to an encrypted message. See [TLDef(0xF1FA8D78)] - public partial class DecryptedMessageMediaPhoto : DecryptedMessageMedia + public class DecryptedMessageMediaPhoto : DecryptedMessageMedia { /// Content of thumbnail file (JPEGfile, quality 55, set in a square 90x90) public byte[] thumb; @@ -407,7 +404,7 @@ namespace TL } /// Video attached to an encrypted message. See [TLDef(0x970C8C0E)] - public partial class DecryptedMessageMediaVideo : DecryptedMessageMedia + public class DecryptedMessageMediaVideo : DecryptedMessageMedia { /// Content of thumbnail file (JPEG file, quality 55, set in a square 90x90) public byte[] thumb; @@ -434,7 +431,7 @@ namespace TL } /// Document attached to a message in a secret chat. See [TLDef(0x7AFE8AE2)] - public partial class DecryptedMessageMediaDocument : DecryptedMessageMedia + public class DecryptedMessageMediaDocument : DecryptedMessageMedia { /// Thumbnail-file contents (JPEG-file, quality 55, set in a 90x90 square) public byte[] thumb; @@ -457,7 +454,7 @@ namespace TL } /// Venue See [TLDef(0x8A0DF56F)] - public partial class DecryptedMessageMediaVenue : DecryptedMessageMedia + public class DecryptedMessageMediaVenue : DecryptedMessageMedia { /// Latitude of venue public double lat; @@ -474,7 +471,7 @@ namespace TL } /// Webpage preview See [TLDef(0xE50511D8)] - public partial class DecryptedMessageMediaWebPage : DecryptedMessageMedia + public class DecryptedMessageMediaWebPage : DecryptedMessageMedia { /// URL of webpage public string url; @@ -485,7 +482,7 @@ namespace TL { /// Contents of an encrypted message. See [TLDef(0x91CC4674)] - public partial class DecryptedMessage : DecryptedMessageBase + public class DecryptedMessage : DecryptedMessageBase { /// Flags, see TL conditional fields (added in layer 45) public Flags flags; @@ -529,7 +526,7 @@ namespace TL { /// Request rekeying, see rekeying process See [TLDef(0xF3C9611B)] - public partial class DecryptedMessageActionRequestKey : DecryptedMessageAction + public class DecryptedMessageActionRequestKey : DecryptedMessageAction { /// Exchange ID public long exchange_id; @@ -538,7 +535,7 @@ namespace TL } /// Accept new key See [TLDef(0x6FE1735B)] - public partial class DecryptedMessageActionAcceptKey : DecryptedMessageAction + public class DecryptedMessageActionAcceptKey : DecryptedMessageAction { /// Exchange ID public long exchange_id; @@ -549,14 +546,14 @@ namespace TL } /// Abort rekeying See [TLDef(0xDD05EC6B)] - public partial class DecryptedMessageActionAbortKey : DecryptedMessageAction + public class DecryptedMessageActionAbortKey : DecryptedMessageAction { /// Exchange ID public long exchange_id; } /// Commit new key, see rekeying process See [TLDef(0xEC2E0B9B)] - public partial class DecryptedMessageActionCommitKey : DecryptedMessageAction + public class DecryptedMessageActionCommitKey : DecryptedMessageAction { /// Exchange ID, see rekeying process public long exchange_id; @@ -565,7 +562,7 @@ namespace TL } /// NOOP action See [TLDef(0xA82FDD63)] - public partial class DecryptedMessageActionNoop : DecryptedMessageAction { } + public class DecryptedMessageActionNoop : DecryptedMessageAction { } } namespace Layer23 @@ -607,10 +604,10 @@ namespace TL /// Defines a sticker See [TLDef(0xFB0A5727)] - public partial class DocumentAttributeSticker : DocumentAttribute { } + public class DocumentAttributeSticker : DocumentAttribute { } /// Defines a video See [TLDef(0x5910CCCB)] - public partial class DocumentAttributeVideo : DocumentAttribute + public class DocumentAttributeVideo : DocumentAttribute { /// Duration in seconds public int duration; @@ -621,7 +618,7 @@ namespace TL } /// Represents an audio file See [TLDef(0x051448E5)] - public partial class DocumentAttributeAudio : DocumentAttribute + public class DocumentAttributeAudio : DocumentAttribute { /// Duration in seconds public int duration; @@ -629,7 +626,7 @@ namespace TL /// Non-e2e documented forwarded from non-secret chat See [TLDef(0xFA95B0DD)] - public partial class DecryptedMessageMediaExternalDocument : DecryptedMessageMedia + public class DecryptedMessageMediaExternalDocument : DecryptedMessageMedia { /// Document ID public long id; @@ -651,7 +648,7 @@ namespace TL /// File is currently unavailable. See [TLDef(0x7C596B46)] - public partial class FileLocationUnavailable : FileLocationBase + public class FileLocationUnavailable : FileLocationBase { /// Server volume public long volume_id; @@ -669,7 +666,7 @@ namespace TL } /// File location. See [TLDef(0x53D69076)] - public partial class FileLocation : FileLocationBase + public class FileLocation : FileLocationBase { /// Number of the data center holding the file public int dc_id; @@ -693,7 +690,7 @@ namespace TL { /// User is uploading a round video See [TLDef(0xBB718624)] - public partial class SendMessageUploadRoundAction : SendMessageAction { } + public class SendMessageUploadRoundAction : SendMessageAction { } } namespace Layer46 diff --git a/src/TL.Table.cs b/src/TL.Table.cs index 37e3e53..7e1166f 100644 --- a/src/TL.Table.cs +++ b/src/TL.Table.cs @@ -6,7 +6,7 @@ namespace TL { public static class Layer { - public const int Version = 134; // fetched 31/10/2021 02:19:13 + public const int Version = 134; // fetched 10/11/2021 16:21:52 internal const uint VectorCtor = 0x1CB5C415; internal const uint NullCtor = 0x56730BCC; internal const uint RpcResultCtor = 0xF35C6D01; @@ -34,7 +34,7 @@ namespace TL [0x3BCBF734] = typeof(DhGenOk), [0x46DC1FB9] = typeof(DhGenRetry), [0xA69DAE02] = typeof(DhGenFail), - [0x7ABE77EC] = typeof(MTProto.Ping_), + [0x7ABE77EC] = typeof(Methods.Ping), [0x62D6B459] = typeof(MsgsAck), [0xA7EFF811] = typeof(BadMsgNotification), [0xEDAB447B] = typeof(BadServerSalt),