diff --git a/Examples/Program_DownloadSavedMedia.cs b/Examples/Program_DownloadSavedMedia.cs index f2cde0f..9ae18eb 100644 --- a/Examples/Program_DownloadSavedMedia.cs +++ b/Examples/Program_DownloadSavedMedia.cs @@ -19,7 +19,7 @@ namespace WTelegramClientTest client.Update += Client_Update; Console.ReadKey(); - async void Client_Update(ITLObject arg) + async void Client_Update(IObject arg) { if (arg is not Updates { updates: var updates }) return; foreach (var update in updates) diff --git a/Examples/Program_ListenUpdates.cs b/Examples/Program_ListenUpdates.cs index eb158c1..e4bced0 100644 --- a/Examples/Program_ListenUpdates.cs +++ b/Examples/Program_ListenUpdates.cs @@ -43,7 +43,7 @@ namespace WTelegramClientTest private static string APeer(Peer peer) => peer is null ? null : peer is PeerUser user ? AUser(user.user_id) : peer is PeerChat chat ? AChat(chat.chat_id) : peer is PeerChannel channel ? AChat(channel.channel_id) : $"Peer {peer.ID}"; - private static void Client_Update(ITLObject arg) + private static void Client_Update(IObject arg) { switch (arg) { diff --git a/src/Client.cs b/src/Client.cs index c56611c..7e807d4 100644 --- a/src/Client.cs +++ b/src/Client.cs @@ -23,7 +23,7 @@ namespace WTelegram { /// This event will be called when an unsollicited update/message is sent by Telegram servers /// See Examples/Program_ListenUpdate.cs for how to use this - public event Action Update; + public event Action Update; public delegate Task TcpFactory(string address, int port); /// Used to create a TcpClient connected to the given address/port, or throw an exception on failure public TcpFactory TcpHandler = DefaultTcpHandler; @@ -44,7 +44,7 @@ namespace WTelegram private static readonly byte[] IntermediateHeader = new byte[4] { 0xee, 0xee, 0xee, 0xee }; private TcpClient _tcpClient; private NetworkStream _networkStream; - private ITLObject _lastSentMsg; + private IObject _lastSentMsg; private long _lastRecvMsgId; private readonly List _msgsToAck = new(); private readonly Random _random = new(); @@ -382,7 +382,7 @@ namespace WTelegram var data = new byte[MinBufferSize]; while (!cts.IsCancellationRequested) { - ITLObject obj = null; + IObject obj = null; try { if (await FullReadAsync(stream, data, 4, cts.Token) != 4) @@ -449,7 +449,7 @@ namespace WTelegram } } - internal ITLObject ReadFrame(byte[] data, int dataLen) + internal IObject ReadFrame(byte[] data, int dataLen) { if (dataLen == 4 && data[3] == 0xFF) { @@ -554,7 +554,7 @@ namespace WTelegram return length; } - private async Task SendAsync(ITLObject msg, bool isContent) + private async Task SendAsync(IObject msg, bool isContent) { if (_dcSession.AuthKeyID != 0 && isContent && CheckMsgsToAck() is MsgsAck msgsAck) { @@ -723,7 +723,7 @@ namespace WTelegram return request; } - internal async Task CallBareAsync(ITLMethod request) + internal async Task CallBareAsync(IMethod request) { if (_bareRequest != 0) throw new ApplicationException("A bare request is already undergoing"); var msgId = await SendAsync(request, false); @@ -738,7 +738,7 @@ namespace WTelegram /// Expected type of the returned object /// TL method object /// Wait for the reply and return the resulting object, or throws an RpcException if an error was replied - public async Task CallAsync(ITLMethod request) + public async Task CallAsync(IMethod request) { retry: var msgId = await SendAsync(request, true); @@ -802,7 +802,7 @@ namespace WTelegram } } - private static MsgContainer MakeContainer(params (ITLObject obj, (long msgId, int seqno))[] msgs) + private static MsgContainer MakeContainer(params (IObject obj, (long msgId, int seqno))[] msgs) => new() { messages = msgs.Select(msg => new _Message @@ -813,7 +813,7 @@ namespace WTelegram }).ToArray() }; - private async Task HandleMessageAsync(ITLObject obj) + private async Task HandleMessageAsync(IObject obj) { switch (obj) { @@ -890,7 +890,7 @@ namespace WTelegram } } - private void OnUpdate(ITLObject obj) + private void OnUpdate(IObject obj) { try { @@ -1256,18 +1256,18 @@ namespace WTelegram /// Enable the collection of id/access_hash pairs (experimental) public bool CollectAccessHash { get; set; } readonly Dictionary> _accessHashes = new(); - public IEnumerable> AllAccessHashesFor() where T : ITLObject + public IEnumerable> AllAccessHashesFor() where T : IObject => _accessHashes.GetValueOrDefault(typeof(T)); /// Retrieve the access_hash associated with this id (for a TL class) if it was collected /// This requires to be set to first. ///
See Examples/Program_CollectAccessHash.cs for how to use this
/// a TL object class. For example User, Channel or Photo - public long GetAccessHashFor(long id) where T : ITLObject + public long GetAccessHashFor(long id) where T : IObject { lock (_accessHashes) return _accessHashes.GetOrCreate(typeof(T)).TryGetValue(id, out var access_hash) ? access_hash : 0; } - public void SetAccessHashFor(long id, long access_hash) where T : ITLObject + public void SetAccessHashFor(long id, long access_hash) where T : IObject { lock (_accessHashes) _accessHashes.GetOrCreate(typeof(T))[id] = access_hash; diff --git a/src/Encryption.cs b/src/Encryption.cs index fe94104..4ce24bd 100644 --- a/src/Encryption.cs +++ b/src/Encryption.cs @@ -224,7 +224,7 @@ namespace WTelegram } [TLDef(0x7A19CB76)] //RSA_public_key#7a19cb76 n:bytes e:bytes = RSAPublicKey - public partial class RSAPublicKey : ITLObject { public byte[] n, e; } + public partial class RSAPublicKey : IObject { public byte[] n, e; } public static void LoadPublicKey(string pem) { diff --git a/src/TL.MTProto.cs b/src/TL.MTProto.cs index c100635..2bb2d2e 100644 --- a/src/TL.MTProto.cs +++ b/src/TL.MTProto.cs @@ -9,7 +9,7 @@ namespace TL 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 : ITLObject + public partial 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 : ITLObject + public partial class PQInnerData : IObject { public byte[] pq; public byte[] p; @@ -45,7 +45,7 @@ namespace TL } [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 : ITLObject + public partial class BindAuthKeyInner : IObject { public long nonce; public long temp_auth_key_id; @@ -54,7 +54,7 @@ namespace TL public DateTime expires_at; } - public abstract partial class ServerDHParams : ITLObject + public abstract partial class ServerDHParams : IObject { public Int128 nonce; public Int128 server_nonce; @@ -71,7 +71,7 @@ namespace TL } [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 : ITLObject + public partial 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 : ITLObject + public partial class ClientDHInnerData : IObject { public Int128 nonce; public Int128 server_nonce; @@ -90,7 +90,7 @@ namespace TL public byte[] g_b; } - public abstract partial class SetClientDHParamsAnswer : ITLObject + public abstract partial class SetClientDHParamsAnswer : IObject { public Int128 nonce; public Int128 server_nonce; @@ -122,13 +122,13 @@ namespace TL } [TLDef(0x62D6B459)] //msgs_ack#62d6b459 msg_ids:Vector = MsgsAck - public partial class MsgsAck : ITLObject + public partial class MsgsAck : IObject { public long[] msg_ids; } [TLDef(0xA7EFF811)] //bad_msg_notification#a7eff811 bad_msg_id:long bad_msg_seqno:int error_code:int = BadMsgNotification - public partial class BadMsgNotification : ITLObject + public partial class BadMsgNotification : IObject { public long bad_msg_id; public int bad_msg_seqno; @@ -141,26 +141,26 @@ namespace TL } [TLDef(0xDA69FB52)] //msgs_state_req#da69fb52 msg_ids:Vector = MsgsStateReq - public partial class MsgsStateReq : ITLObject + public partial class MsgsStateReq : IObject { public long[] msg_ids; } [TLDef(0x04DEB57D)] //msgs_state_info#04deb57d req_msg_id:long info:bytes = MsgsStateInfo - public partial class MsgsStateInfo : ITLObject + public partial class MsgsStateInfo : IObject { public long req_msg_id; public byte[] info; } [TLDef(0x8CC0D131)] //msgs_all_info#8cc0d131 msg_ids:Vector info:bytes = MsgsAllInfo - public partial class MsgsAllInfo : ITLObject + public partial class MsgsAllInfo : IObject { public long[] msg_ids; public byte[] info; } - public abstract partial class MsgDetailedInfoBase : ITLObject + public abstract partial class MsgDetailedInfoBase : IObject { public abstract long AnswerMsgId { get; } public abstract int Bytes { get; } @@ -191,19 +191,19 @@ namespace TL } [TLDef(0x7D861A08)] //msg_resend_req#7d861a08 msg_ids:Vector = MsgResendReq - public partial class MsgResendReq : ITLObject + public partial class MsgResendReq : IObject { public long[] msg_ids; } [TLDef(0x2144CA19)] //rpc_error#2144ca19 error_code:int error_message:string = RpcError - public partial class RpcError : ITLObject + public partial class RpcError : IObject { public int error_code; public string error_message; } - public abstract partial class RpcDropAnswer : ITLObject { } + public abstract partial class RpcDropAnswer : IObject { } [TLDef(0x5E2AD36E)] //rpc_answer_unknown#5e2ad36e = RpcDropAnswer public partial class RpcAnswerUnknown : RpcDropAnswer { } [TLDef(0xCD78E586)] //rpc_answer_dropped_running#cd78e586 = RpcDropAnswer @@ -217,7 +217,7 @@ namespace TL } [TLDef(0x0949D9DC)] //future_salt#0949d9dc valid_since:int valid_until:int salt:long = FutureSalt - public partial class FutureSalt : ITLObject + public partial 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 : ITLObject + public partial class FutureSalts : IObject { public long req_msg_id; public DateTime now; @@ -233,13 +233,13 @@ namespace TL } [TLDef(0x347773C5)] //pong#347773c5 msg_id:long ping_id:long = Pong - public partial class Pong : ITLObject + public partial class Pong : IObject { public long msg_id; public long ping_id; } - public abstract partial class DestroySessionRes : ITLObject + public abstract partial class DestroySessionRes : IObject { public long session_id; } @@ -248,7 +248,7 @@ namespace TL [TLDef(0x62D350C9)] //destroy_session_none#62d350c9 session_id:long = DestroySessionRes public partial class DestroySessionNone : DestroySessionRes { } - public abstract partial class NewSession : ITLObject { } + public abstract partial 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 { @@ -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 : ITLObject + public partial class HttpWait : IObject { public int max_delay; public int wait_after; @@ -266,7 +266,7 @@ namespace TL } [TLDef(0xD433AD73)] //ipPort#d433ad73 ipv4:int port:int = IpPort - public partial class IpPort : ITLObject + public partial class IpPort : IObject { public int ipv4; public int port; @@ -278,7 +278,7 @@ namespace TL } [TLDef(0x4679B65F)] //accessPointRule#4679b65f phone_prefix_rules:bytes dc_id:int ips:vector = AccessPointRule - public partial class AccessPointRule : ITLObject + public partial 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 : ITLObject + public partial class Help_ConfigSimple : IObject { public DateTime date; public DateTime expires; @@ -298,7 +298,7 @@ namespace TL public static class MTProto { [TLDef(0x60469778)] //req_pq#60469778 nonce:int128 = ResPQ - public partial class ReqPq_ : ITLMethod + public partial class ReqPq_ : IMethod { public Int128 nonce; } @@ -309,7 +309,7 @@ namespace TL }); [TLDef(0xBE7E8EF1)] //req_pq_multi#be7e8ef1 nonce:int128 = ResPQ - public partial class ReqPqMulti_ : ITLMethod + public partial class ReqPqMulti_ : IMethod { public Int128 nonce; } @@ -320,7 +320,7 @@ namespace TL }); [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_ : ITLMethod + public partial class ReqDHParams_ : IMethod { public Int128 nonce; public Int128 server_nonce; @@ -341,7 +341,7 @@ namespace TL }); [TLDef(0xF5045F1F)] //set_client_DH_params#f5045f1f nonce:int128 server_nonce:int128 encrypted_data:bytes = Set_client_DH_params_answer - public partial class SetClientDHParams_ : ITLMethod + public partial class SetClientDHParams_ : IMethod { public Int128 nonce; public Int128 server_nonce; @@ -356,14 +356,14 @@ namespace TL }); [TLDef(0xD1435160)] //destroy_auth_key#d1435160 = DestroyAuthKeyRes - public partial class DestroyAuthKey_ : ITLMethod { } + public partial class DestroyAuthKey_ : IMethod { } public static Task DestroyAuthKey(this Client client) => client.CallBareAsync(new DestroyAuthKey_ { }); [TLDef(0x58E4A740)] //rpc_drop_answer#58e4a740 req_msg_id:long = RpcDropAnswer - public partial class RpcDropAnswer_ : ITLMethod + public partial class RpcDropAnswer_ : IMethod { public long req_msg_id; } @@ -374,7 +374,7 @@ namespace TL }); [TLDef(0xB921BD04)] //get_future_salts#b921bd04 num:int = FutureSalts - public partial class GetFutureSalts_ : ITLMethod + public partial class GetFutureSalts_ : IMethod { public int num; } @@ -385,7 +385,7 @@ namespace TL }); [TLDef(0x7ABE77EC)] //ping#7abe77ec ping_id:long = Pong - public partial class Ping_ : ITLMethod + public partial class Ping_ : IMethod { public long ping_id; } @@ -396,7 +396,7 @@ namespace TL }); [TLDef(0xF3427B8C)] //ping_delay_disconnect#f3427b8c ping_id:long disconnect_delay:int = Pong - public partial class PingDelayDisconnect_ : ITLMethod + public partial class PingDelayDisconnect_ : IMethod { public long ping_id; public int disconnect_delay; @@ -409,7 +409,7 @@ namespace TL }); [TLDef(0xE7512126)] //destroy_session#e7512126 session_id:long = DestroySessionRes - public partial class DestroySession_ : ITLMethod + public partial class DestroySession_ : IMethod { public long session_id; } diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs index 65e1a20..0f47962 100644 --- a/src/TL.Schema.cs +++ b/src/TL.Schema.cs @@ -19,11 +19,11 @@ namespace TL /// See predefined identifiers. See [TLDef(0x3FEDD339)] - public partial class True : ITLObject { } + public partial class True : IObject { } /// Error. See [TLDef(0xC4B9F9BB)] - public partial class Error : ITLObject + public partial class Error : IObject { /// Error code public int code; @@ -34,11 +34,11 @@ namespace TL /// Corresponds to an arbitrary empty object. See /// a null value means null [TLDef(0x56730BCC)] - public partial class Null : ITLObject { } + public partial class Null : IObject { } /// Peer Derived classes: , , , , , See /// a null value means inputPeerEmpty - public abstract partial class InputPeer : ITLObject { } + public abstract partial class InputPeer : IObject { } /// Defines the current user. See [TLDef(0x7DA07EC9)] public partial class InputPeerSelf : InputPeer { } @@ -92,7 +92,7 @@ namespace TL /// Defines a user for subsequent interaction. Derived classes: , , See /// a null value means inputUserEmpty - public abstract partial class InputUserBase : ITLObject { } + public abstract partial class InputUserBase : IObject { } /// Defines the current user. See [TLDef(0xF7C1B13F)] public partial class InputUserSelf : InputUserBase { } @@ -118,7 +118,7 @@ namespace TL } /// Object defines a contact from the user's phonebook. Derived classes: See - public abstract partial class InputContact : ITLObject { } + public abstract partial 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 @@ -134,7 +134,7 @@ namespace TL } /// Defines a file uploaded by the client. Derived classes: , See - public abstract partial class InputFileBase : ITLObject + public abstract partial class InputFileBase : IObject { /// Random file identifier created by the client public abstract long ID { get; } @@ -184,7 +184,7 @@ namespace TL /// Defines media content of a message. Derived classes: , , , , , , , , , , , , , See /// a null value means inputMediaEmpty - public abstract partial class InputMedia : ITLObject { } + public abstract partial class InputMedia : IObject { } /// Photo See [TLDef(0x1E287D04)] public partial class InputMediaUploadedPhoto : InputMedia @@ -446,7 +446,7 @@ namespace TL /// Defines a new group profile photo. Derived classes: , See /// a null value means inputChatPhotoEmpty - public abstract partial class InputChatPhotoBase : ITLObject { } + public abstract partial class InputChatPhotoBase : IObject { } /// New photo to be set as group profile photo. See [TLDef(0xC642724E)] public partial class InputChatUploadedPhoto : InputChatPhotoBase @@ -481,7 +481,7 @@ namespace TL /// Defines a GeoPoint by its coordinates. See /// a null value means inputGeoPointEmpty [TLDef(0x48222FAF)] - public partial class InputGeoPoint : ITLObject + public partial 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 : ITLObject + public partial class InputPhoto : IObject { /// Photo identifier public long id; @@ -513,7 +513,7 @@ namespace TL } /// Defines the location of a file for download. Derived classes: , , , , , , , , , See - public abstract partial class InputFileLocationBase : ITLObject { } + public abstract partial class InputFileLocationBase : IObject { } /// DEPRECATED location of a photo See [TLDef(0xDFDAABE1)] public partial class InputFileLocation : InputFileLocationBase @@ -642,7 +642,7 @@ namespace TL } /// Chat partner or group. Derived classes: , , See - public abstract partial class Peer : ITLObject { } + public abstract partial class Peer : IObject { } /// Chat partner See [TLDef(0x59511722)] public partial class PeerUser : Peer @@ -691,7 +691,7 @@ namespace TL } /// Object defines a user. Derived classes: , See - public abstract partial class UserBase : ITLObject { } + public abstract partial class UserBase : IObject { } /// Empty constructor, non-existent user. See [TLDef(0xD3BC4B7A)] public partial class UserEmpty : UserBase @@ -786,7 +786,7 @@ namespace TL /// User profile photo. See /// a null value means userProfilePhotoEmpty [TLDef(0x82D1F706)] - public partial class UserProfilePhoto : ITLObject + public partial class UserProfilePhoto : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -808,7 +808,7 @@ namespace TL /// User online status Derived classes: , , , , See /// a null value means userStatusEmpty - public abstract partial class UserStatus : ITLObject { } + public abstract partial class UserStatus : IObject { } /// Online status of the user. See [TLDef(0xEDB93949)] public partial class UserStatusOnline : UserStatus @@ -834,7 +834,7 @@ namespace TL public partial class UserStatusLastMonth : UserStatus { } /// Object defines a group. Derived classes: , , , , See - public abstract partial class ChatBase : ITLObject + public abstract partial class ChatBase : IObject { /// ID of the group public abstract long ID { get; } @@ -1032,7 +1032,7 @@ namespace TL } /// Object containing detailed group info Derived classes: , See - public abstract partial class ChatFullBase : ITLObject + public abstract partial class ChatFullBase : IObject { /// ID of the chat public abstract long ID { get; } @@ -1259,7 +1259,7 @@ namespace TL } /// Details of a group member. Derived classes: , , See - public abstract partial class ChatParticipantBase : ITLObject + public abstract partial class ChatParticipantBase : IObject { /// Member user ID public abstract long UserId { get; } @@ -1295,7 +1295,7 @@ namespace TL } /// Object contains info on group members. Derived classes: , See - public abstract partial class ChatParticipantsBase : ITLObject + public abstract partial class ChatParticipantsBase : IObject { /// Group ID public abstract long ChatId { get; } @@ -1338,7 +1338,7 @@ namespace TL /// Group profile photo. See /// a null value means chatPhotoEmpty [TLDef(0x1C6E1C11)] - public partial class ChatPhoto : ITLObject + public partial 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 : ITLObject + public abstract partial class MessageBase : IObject { /// ID of the message public abstract int ID { get; } @@ -1567,7 +1567,7 @@ namespace TL /// Media Derived classes: , , , , , , , , , , , See /// a null value means messageMediaEmpty - public abstract partial class MessageMedia : ITLObject { } + public abstract partial class MessageMedia : IObject { } /// Attached photo. See [TLDef(0x695150D7)] public partial class MessageMediaPhoto : MessageMedia @@ -1739,7 +1739,7 @@ namespace TL /// Object describing actions connected to a service message. Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , See /// a null value means messageActionEmpty - public abstract partial class MessageAction : ITLObject { } + public abstract partial class MessageAction : IObject { } /// Group created See [TLDef(0xBD47CBAD)] public partial class MessageActionChatCreate : MessageAction @@ -1985,7 +1985,7 @@ namespace TL public partial class MessageActionChatJoinedByRequest : MessageAction { } /// Chat info. Derived classes: , See - public abstract partial class DialogBase : ITLObject + public abstract partial class DialogBase : IObject { /// The chat public abstract Peer Peer { get; } @@ -2072,7 +2072,7 @@ namespace TL } /// Object describes a photo. Derived classes: , See - public abstract partial class PhotoBase : ITLObject { } + public abstract partial class PhotoBase : IObject { } /// Empty constructor, non-existent photo See [TLDef(0x2331B22D)] public partial class PhotoEmpty : PhotoBase @@ -2111,7 +2111,7 @@ namespace TL } /// Location of a certain size of a picture Derived classes: , , , , , See - public abstract partial class PhotoSizeBase : ITLObject + public abstract partial class PhotoSizeBase : IObject { /// Thumbnail type (see. ) public abstract string Type { get; } @@ -2202,7 +2202,7 @@ namespace TL /// GeoPoint. See /// a null value means geoPointEmpty [TLDef(0xB2A2F663)] - public partial class GeoPoint : ITLObject + public partial 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 : ITLObject + public partial class Auth_SentCode : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -2247,7 +2247,7 @@ namespace TL } /// Oject contains info on user authorization. Derived classes: , See - public abstract partial class Auth_AuthorizationBase : ITLObject { } + public abstract partial class Auth_AuthorizationBase : IObject { } /// Contains user authorization info. See [TLDef(0xCD050916)] public partial class Auth_Authorization : Auth_AuthorizationBase @@ -2283,7 +2283,7 @@ namespace TL /// Data for copying of authorization between data centres. See [TLDef(0xB434E2B8)] - public partial class Auth_ExportedAuthorization : ITLObject + public partial class Auth_ExportedAuthorization : IObject { /// current user identifier public long id; @@ -2292,7 +2292,7 @@ namespace TL } /// Object defines the set of users and/or groups that generate notifications. Derived classes: , , , See - public abstract partial class InputNotifyPeerBase : ITLObject { } + public abstract partial class InputNotifyPeerBase : IObject { } /// Notifications generated by a certain user or group. See [TLDef(0xB8BC5B0C)] public partial class InputNotifyPeer : InputNotifyPeerBase @@ -2312,7 +2312,7 @@ namespace TL /// Notification settings. See [TLDef(0x9C3D198E)] - public partial class InputPeerNotifySettings : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public abstract partial class WallPaperBase : IObject { /// Identifier public abstract long ID { get; } @@ -2492,7 +2492,7 @@ namespace TL /// Extended user info See [TLDef(0xD697FF05)] - public partial class UserFull : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class Contacts_ImportedContacts : IObject { /// List of succesfully imported contacts public ImportedContact[] imported; @@ -2609,7 +2609,7 @@ namespace TL /// Full list of blocked users. See [TLDef(0x0ADE1591)] - public partial class Contacts_Blocked : ITLObject + public partial class Contacts_Blocked : IObject { /// List of blocked users public PeerBlocked[] blocked; @@ -2629,7 +2629,7 @@ namespace TL } /// Object contains a list of chats with messages and auxiliary data. Derived classes: , , See - public abstract partial class Messages_DialogsBase : ITLObject + public abstract partial class Messages_DialogsBase : IObject { /// List of chats public abstract DialogBase[] Dialogs { get; } @@ -2679,7 +2679,7 @@ namespace TL } /// Object contains infor on list of messages with auxiliary data. Derived classes: , , , See - public abstract partial class Messages_MessagesBase : ITLObject + public abstract partial class Messages_MessagesBase : IObject { /// List of messages public abstract MessageBase[] Messages { get; } @@ -2771,7 +2771,7 @@ namespace TL /// List of chats with auxiliary data. See [TLDef(0x64FF9FD5)] - public partial class Messages_Chats : ITLObject + public partial class Messages_Chats : IObject { /// List of chats public Dictionary chats; @@ -2786,7 +2786,7 @@ namespace TL /// Extended info on chat and auxiliary data. See [TLDef(0xE5D7D19C)] - public partial class Messages_ChatFull : ITLObject + public partial class Messages_ChatFull : IObject { /// 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 : ITLObject + public partial class Messages_AffectedHistory : IObject { /// Number of events occured in a text box public int pts; @@ -2812,7 +2812,7 @@ namespace TL /// Object describes message filter. Derived classes: , , , , , , , , , , , , , , , See /// a null value means inputMessagesFilterEmpty - public abstract partial class MessagesFilter : ITLObject { } + public abstract partial class MessagesFilter : IObject { } /// Filter for messages containing photos. See [TLDef(0x9609A51C)] public partial class InputMessagesFilterPhotos : MessagesFilter { } @@ -2873,7 +2873,7 @@ namespace TL public partial class InputMessagesFilterPinned : MessagesFilter { } /// Object contains info on events occured. Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , See - public abstract partial class Update : ITLObject { } + public abstract partial class Update : IObject { } /// New message in a private chat or in a legacy group. See [TLDef(0x1F2B0AFD)] public partial class UpdateNewMessage : Update @@ -3987,7 +3987,7 @@ namespace TL /// Updates state. See [TLDef(0xA56C2A3E)] - public partial class Updates_State : ITLObject + public partial class Updates_State : IObject { /// Number of events occured in a text box public int pts; @@ -4002,7 +4002,7 @@ namespace TL } /// Occurred changes. Derived classes: , , , See - public abstract partial class Updates_DifferenceBase : ITLObject + public abstract partial class Updates_DifferenceBase : IObject { /// List of new messages public abstract MessageBase[] NewMessages { get; } @@ -4095,7 +4095,7 @@ namespace TL } /// Object which is perceived by the client without a call on its part when an event occurs. Derived classes: , , , , , , See - public abstract partial class UpdatesBase : ITLObject + public abstract partial class UpdatesBase : IObject { /// date public abstract DateTime Date { get; } @@ -4309,7 +4309,7 @@ namespace TL /// Full list of photos with auxiliary data. See [TLDef(0x8DCA6AA5)] - public partial class Photos_Photos : ITLObject + public partial class Photos_Photos : IObject { /// List of photos public PhotoBase[] photos; @@ -4326,7 +4326,7 @@ namespace TL /// Photo with auxiliary data. See [TLDef(0x20212CA8)] - public partial class Photos_Photo : ITLObject + public partial class Photos_Photo : IObject { /// Photo public PhotoBase photo; @@ -4335,7 +4335,7 @@ namespace TL } /// Contains info on file. Derived classes: , See - public abstract partial class Upload_FileBase : ITLObject { } + public abstract partial class Upload_FileBase : IObject { } /// File content. See [TLDef(0x096A18D5)] public partial class Upload_File : Upload_FileBase @@ -4365,7 +4365,7 @@ namespace TL /// Data centre See [TLDef(0x18B7A10D)] - public partial class DcOption : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class Help_AppUpdate : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -4572,14 +4572,14 @@ namespace TL /// Text of a text message with an invitation to install Telegram. See [TLDef(0x18CB9F78)] - public partial class Help_InviteText : ITLObject + public partial 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 : ITLObject + public abstract partial class EncryptedChatBase : IObject { /// Chat ID public abstract int ID { get; } @@ -4685,7 +4685,7 @@ namespace TL /// Creates an encrypted chat. See [TLDef(0xF141B5E1)] - public partial class InputEncryptedChat : ITLObject + public partial class InputEncryptedChat : IObject { /// Chat ID public int chat_id; @@ -4696,7 +4696,7 @@ namespace TL /// Encrypted file. See /// a null value means encryptedFileEmpty [TLDef(0x4A70994C)] - public partial class EncryptedFile : ITLObject + public partial class EncryptedFile : IObject { /// File ID public long id; @@ -4712,7 +4712,7 @@ namespace TL /// Object sets encrypted file for attachment Derived classes: , , See /// a null value means inputEncryptedFileEmpty - public abstract partial class InputEncryptedFileBase : ITLObject + public abstract partial class InputEncryptedFileBase : IObject { /// Random file ID created by clien public abstract long ID { get; } @@ -4761,7 +4761,7 @@ namespace TL } /// Object contains encrypted message. Derived classes: , See - public abstract partial class EncryptedMessageBase : ITLObject + public abstract partial class EncryptedMessageBase : IObject { /// Random message ID, assigned by the author of message public abstract long RandomId { get; } @@ -4820,7 +4820,7 @@ namespace TL } /// Derived classes: , See - public abstract partial class Messages_DhConfigBase : ITLObject { } + public abstract partial class Messages_DhConfigBase : IObject { } /// Configuring parameters did not change. See [TLDef(0xC0E24635)] public partial class Messages_DhConfigNotModified : Messages_DhConfigBase @@ -4844,7 +4844,7 @@ namespace TL /// Message without file attachemts sent to an encrypted file. See [TLDef(0x560F8935)] - public partial class Messages_SentEncryptedMessage : ITLObject + public partial class Messages_SentEncryptedMessage : IObject { /// Date of sending public DateTime date; @@ -4860,7 +4860,7 @@ namespace TL /// Defines a video for subsequent interaction. See /// a null value means inputDocumentEmpty [TLDef(0x1ABFB575)] - public partial class InputDocument : ITLObject + public partial class InputDocument : IObject { /// Document ID public long id; @@ -4871,7 +4871,7 @@ namespace TL } /// A document. Derived classes: , See - public abstract partial class DocumentBase : ITLObject { } + public abstract partial class DocumentBase : IObject { } /// Empty constructor, document doesn't exist. See [TLDef(0x36F8C871)] public partial class DocumentEmpty : DocumentBase @@ -4917,7 +4917,7 @@ namespace TL /// Info on support user. See [TLDef(0x17C6B5F6)] - public partial class Help_Support : ITLObject + public partial class Help_Support : IObject { /// Phone number public string phone_number; @@ -4926,7 +4926,7 @@ namespace TL } /// Object defines the set of users and/or groups that generate notifications. Derived classes: , , , See - public abstract partial class NotifyPeerBase : ITLObject { } + public abstract partial class NotifyPeerBase : IObject { } /// Notifications generated by a certain user or group. See [TLDef(0x9FD40BD8)] public partial class NotifyPeer : NotifyPeerBase @@ -4945,7 +4945,7 @@ namespace TL public partial 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 : ITLObject { } + public abstract partial class SendMessageAction : IObject { } /// User is typing. See [TLDef(0x16BF744E)] public partial class SendMessageTypingAction : SendMessageAction { } @@ -5039,7 +5039,7 @@ namespace TL /// Users found by name substring and auxiliary data. See [TLDef(0xB3134D9D)] - public partial class Contacts_Found : ITLObject + public partial class Contacts_Found : IObject { /// Personalized results public Peer[] my_results; @@ -5096,7 +5096,7 @@ namespace TL } /// Privacy rule Derived classes: , , , , , , , See - public abstract partial class InputPrivacyRule : ITLObject { } + public abstract partial class InputPrivacyRule : IObject { } /// Allow only contacts See [TLDef(0x0D09E07B)] public partial class InputPrivacyValueAllowContacts : InputPrivacyRule { } @@ -5139,7 +5139,7 @@ namespace TL } /// Privacy rule Derived classes: , , , , , , , See - public abstract partial class PrivacyRule : ITLObject { } + public abstract partial class PrivacyRule : IObject { } /// Allow all contacts See [TLDef(0xFFFE1BAC)] public partial class PrivacyValueAllowContacts : PrivacyRule { } @@ -5183,7 +5183,7 @@ namespace TL /// Privacy rules See [TLDef(0x50A04E45)] - public partial class Account_PrivacyRules : ITLObject + public partial class Account_PrivacyRules : IObject { /// Privacy rules public PrivacyRule[] rules; @@ -5197,14 +5197,14 @@ namespace TL /// Time to live in days of the current account See [TLDef(0xB8D0AFDF)] - public partial class AccountDaysTTL : ITLObject + public partial class AccountDaysTTL : IObject { /// This account will self-destruct in the specified number of days public int days; } /// Various possible attributes of a document (used to define if it's a sticker, a GIF, a video, a mask sticker, an image, an audio, and so on) Derived classes: , , , , , , See - public abstract partial class DocumentAttribute : ITLObject { } + public abstract partial class DocumentAttribute : IObject { } /// Defines the width and height of an image uploaded as document See [TLDef(0x6C37C15C)] public partial class DocumentAttributeImageSize : DocumentAttribute @@ -5300,7 +5300,7 @@ namespace TL /// Found stickers See /// a null value means messages.stickersNotModified [TLDef(0x30A6EC7E)] - public partial class Messages_Stickers : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class Messages_AffectedMessages : IObject { /// Event count after generation public int pts; @@ -5340,7 +5340,7 @@ namespace TL } /// Instant View webpage preview Derived classes: , , , See - public abstract partial class WebPageBase : ITLObject + public abstract partial class WebPageBase : IObject { /// Preview ID public abstract long ID { get; } @@ -5461,7 +5461,7 @@ namespace TL /// Logged-in session See [TLDef(0xAD01D61D)] - public partial class Authorization : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class ReceivedNotifyMessage : IObject { /// Message ID, for which PUSH-notifications were canceled public int id; @@ -5618,7 +5618,7 @@ namespace TL } /// Exported chat invite Derived classes: See - public abstract partial class ExportedChatInvite : ITLObject { } + public abstract partial class ExportedChatInvite : IObject { } /// Exported chat invite See [TLDef(0x0AB4A819)] public partial class ChatInviteExported : ExportedChatInvite @@ -5665,7 +5665,7 @@ namespace TL } /// Chat invite Derived classes: , , See - public abstract partial class ChatInviteBase : ITLObject { } + public abstract partial class ChatInviteBase : IObject { } /// The user has already joined this chat See [TLDef(0x5A686D7C)] public partial class ChatInviteAlready : ChatInviteBase @@ -5718,7 +5718,7 @@ namespace TL /// Represents a stickerset Derived classes: , , , , See /// a null value means inputStickerSetEmpty - public abstract partial class InputStickerSet : ITLObject { } + public abstract partial class InputStickerSet : IObject { } /// Stickerset by ID See [TLDef(0x9DE7A269)] public partial class InputStickerSetID : InputStickerSet @@ -5751,7 +5751,7 @@ namespace TL /// Represents a stickerset (stickerpack) See [TLDef(0xD7DF217A)] - public partial class StickerSet : ITLObject + public partial class StickerSet : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -5795,7 +5795,7 @@ namespace TL /// Stickerset and stickers inside it See [TLDef(0xB60A24A6)] - public partial class Messages_StickerSet : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class BotInfo : IObject { /// ID of the bot public long user_id; @@ -5828,7 +5828,7 @@ namespace TL } /// Bot or inline keyboard buttons Derived classes: , , , , , , , , , , See - public abstract partial class KeyboardButtonBase : ITLObject + public abstract partial class KeyboardButtonBase : IObject { /// Button text public abstract string Text { get; } @@ -5978,14 +5978,14 @@ namespace TL /// Inline keyboard row See [TLDef(0x77608B83)] - public partial class KeyboardButtonRow : ITLObject + public partial 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 : ITLObject { } + public abstract partial class ReplyMarkup : IObject { } /// Hide sent bot keyboard See [TLDef(0xA03E5B85)] public partial class ReplyKeyboardHide : ReplyMarkup @@ -6050,7 +6050,7 @@ namespace TL } /// Message entities, representing styled text in a message Derived classes: , , , , , , , , , , , , , , , , , , See - public abstract partial class MessageEntity : ITLObject + public abstract partial class MessageEntity : IObject { /// Offset of message entity within message (in UTF-8 codepoints) public int offset; @@ -6133,7 +6133,7 @@ namespace TL /// Represents a channel Derived classes: , See /// a null value means inputChannelEmpty - public abstract partial class InputChannelBase : ITLObject + public abstract partial class InputChannelBase : IObject { /// Channel ID public abstract long ChannelId { get; } @@ -6167,7 +6167,7 @@ namespace TL /// Resolved peer See [TLDef(0x7F077AD9)] - public partial class Contacts_ResolvedPeer : ITLObject + public partial class Contacts_ResolvedPeer : IObject { /// The peer public Peer peer; @@ -6181,7 +6181,7 @@ namespace TL /// Indicates a range of chat messages See [TLDef(0x0AE30253)] - public partial class MessageRange : ITLObject + public partial class MessageRange : IObject { /// Start of range (message ID) public int min_id; @@ -6190,7 +6190,7 @@ namespace TL } /// Contains the difference (new messages) between our local channel state and the remote state Derived classes: , , See - public abstract partial class Updates_ChannelDifferenceBase : ITLObject + public abstract partial class Updates_ChannelDifferenceBase : IObject { /// returns a or for the given Peer public abstract IPeerInfo UserOrChat(Peer peer); @@ -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 : ITLObject + public partial class ChannelMessagesFilter : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -6291,7 +6291,7 @@ namespace TL } /// Channel participant Derived classes: , , , , , See - public abstract partial class ChannelParticipantBase : ITLObject { } + public abstract partial class ChannelParticipantBase : IObject { } /// Channel/supergroup participant See [TLDef(0xC00C07C0)] public partial class ChannelParticipant : ChannelParticipantBase @@ -6396,7 +6396,7 @@ namespace TL } /// Filter for fetching channel participants Derived classes: , , , , , , , See - public abstract partial class ChannelParticipantsFilter : ITLObject { } + public abstract partial class ChannelParticipantsFilter : IObject { } /// Fetch only recent participants See [TLDef(0xDE3F3C79)] public partial class ChannelParticipantsRecent : ChannelParticipantsFilter { } @@ -6457,7 +6457,7 @@ namespace TL /// Represents multiple channel participants See /// a null value means channels.channelParticipantsNotModified [TLDef(0x9AB0FEAF)] - public partial class Channels_ChannelParticipants : ITLObject + public partial class Channels_ChannelParticipants : IObject { /// 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 : ITLObject + public partial class Channels_ChannelParticipant : IObject { /// 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 : ITLObject + public partial 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 : ITLObject + public partial class Messages_SavedGifs : IObject { /// Hash for pagination, for more info click here public long hash; @@ -6521,7 +6521,7 @@ namespace TL } /// Represents a sent inline message from the perspective of a bot Derived classes: , , , , , , See - public abstract partial class InputBotInlineMessage : ITLObject + public abstract partial class InputBotInlineMessage : IObject { /// Flags, see TL conditional fields public int flags; @@ -6683,7 +6683,7 @@ namespace TL } /// Inline bot result Derived classes: , , , See - public abstract partial class InputBotInlineResultBase : ITLObject + public abstract partial class InputBotInlineResultBase : IObject { /// ID of result public abstract string ID { get; } @@ -6800,7 +6800,7 @@ namespace TL } /// Inline message Derived classes: , , , , , See - public abstract partial class BotInlineMessage : ITLObject + public abstract partial class BotInlineMessage : IObject { /// Flags, see TL conditional fields public int flags; @@ -6949,7 +6949,7 @@ namespace TL } /// Results of an inline query Derived classes: , See - public abstract partial class BotInlineResultBase : ITLObject + public abstract partial class BotInlineResultBase : IObject { /// Result ID public abstract string ID { get; } @@ -7045,7 +7045,7 @@ namespace TL /// Result of a query to an inline bot See [TLDef(0x947CA848)] - public partial class Messages_BotResults : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class MessageFwdHeader : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -7137,7 +7137,7 @@ namespace TL } /// Type of the verification code that was sent Derived classes: , , , See - public abstract partial class Auth_SentCodeType : ITLObject { } + public abstract partial class Auth_SentCodeType : IObject { } /// The code was sent through the telegram app See [TLDef(0x3DBB5986)] public partial class Auth_SentCodeTypeApp : Auth_SentCodeType @@ -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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public abstract partial class InputBotInlineMessageIDBase : IObject { /// DC ID to use when working with this inline message public abstract int DcId { get; } @@ -7254,7 +7254,7 @@ namespace TL /// The bot requested the user to message him in private See [TLDef(0x3C20629F)] - public partial class InlineBotSwitchPM : ITLObject + public partial class InlineBotSwitchPM : IObject { /// Text for the button that switches the user to a private chat with the bot and sends the bot a start message with the parameter start_parameter (can be empty) public string text; @@ -7264,7 +7264,7 @@ namespace TL /// Dialog info of multiple peers See [TLDef(0x3371C354)] - public partial class Messages_PeerDialogs : ITLObject + public partial class Messages_PeerDialogs : IObject { /// Dialog info public DialogBase[] dialogs; @@ -7282,7 +7282,7 @@ namespace TL /// Top peer See [TLDef(0xEDCDC05B)] - public partial class TopPeer : ITLObject + public partial class TopPeer : IObject { /// Peer public Peer peer; @@ -7313,7 +7313,7 @@ namespace TL /// Top peer category See [TLDef(0xFB834291)] - public partial class TopPeerCategoryPeers : ITLObject + public partial class TopPeerCategoryPeers : IObject { /// Top peer category of peers public TopPeerCategory category; @@ -7325,7 +7325,7 @@ namespace TL /// Derived classes: , See /// a null value means contacts.topPeersNotModified - public abstract partial class Contacts_TopPeersBase : ITLObject { } + public abstract partial class Contacts_TopPeersBase : IObject { } /// Top peers See [TLDef(0x70B772A8)] public partial class Contacts_TopPeers : Contacts_TopPeersBase @@ -7344,7 +7344,7 @@ namespace TL public partial class Contacts_TopPeersDisabled : Contacts_TopPeersBase { } /// Represents a message draft. Derived classes: , See - public abstract partial class DraftMessageBase : ITLObject { } + public abstract partial class DraftMessageBase : IObject { } /// Empty draft See [TLDef(0x1B0C841A)] public partial class DraftMessageEmpty : DraftMessageBase @@ -7387,7 +7387,7 @@ namespace TL } /// Derived classes: , See - public abstract partial class Messages_FeaturedStickersBase : ITLObject { } + public abstract partial class Messages_FeaturedStickersBase : IObject { } /// Featured stickers haven't changed See [TLDef(0xC6DC0C66)] public partial class Messages_FeaturedStickersNotModified : Messages_FeaturedStickersBase @@ -7412,7 +7412,7 @@ namespace TL /// Recently used stickers See /// a null value means messages.recentStickersNotModified [TLDef(0x88D37C56)] - public partial class Messages_RecentStickers : ITLObject + public partial 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 : ITLObject + public partial class Messages_ArchivedStickers : IObject { /// Number of archived stickers public int count; @@ -7435,7 +7435,7 @@ namespace TL } /// Derived classes: , See - public abstract partial class Messages_StickerSetInstallResult : ITLObject { } + public abstract partial class Messages_StickerSetInstallResult : IObject { } /// The stickerset was installed successfully See [TLDef(0x38641628)] public partial class Messages_StickerSetInstallResultSuccess : Messages_StickerSetInstallResult { } @@ -7448,7 +7448,7 @@ namespace TL } /// Stickerset, with a specific sticker as preview Derived classes: , See - public abstract partial class StickerSetCoveredBase : ITLObject + public abstract partial class StickerSetCoveredBase : IObject { /// Stickerset public abstract StickerSet Set { get; } @@ -7480,7 +7480,7 @@ namespace TL /// Position on a photo where a mask should be placed See [TLDef(0xAED6DBB2)] - public partial class MaskCoords : ITLObject + public partial class MaskCoords : IObject { /// Part of the face, relative to which the mask should be placed public int n; @@ -7493,7 +7493,7 @@ namespace TL } /// Represents a media with attached stickers Derived classes: , See - public abstract partial class InputStickeredMedia : ITLObject { } + public abstract partial class InputStickeredMedia : IObject { } /// A photo with stickers attached See [TLDef(0x4A992157)] public partial class InputStickeredMediaPhoto : InputStickeredMedia @@ -7511,7 +7511,7 @@ namespace TL /// Indicates an already sent game See [TLDef(0xBDF9653B)] - public partial class Game : ITLObject + public partial class Game : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -7538,7 +7538,7 @@ namespace TL } /// A game to send Derived classes: , See - public abstract partial class InputGame : ITLObject { } + public abstract partial class InputGame : IObject { } /// Indicates an already sent game See [TLDef(0x032C3E77)] public partial class InputGameID : InputGame @@ -7560,7 +7560,7 @@ namespace TL /// Game highscore See [TLDef(0x73A379EB)] - public partial class HighScore : ITLObject + public partial 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 : ITLObject + public partial class Messages_HighScores : IObject { /// Highscores public HighScore[] scores; @@ -7582,7 +7582,7 @@ namespace TL /// Rich text Derived classes: , , , , , , , , , , , , , , See /// a null value means textEmpty - public abstract partial class RichText : ITLObject { } + public abstract partial class RichText : IObject { } /// Plain text See [TLDef(0x744694E0)] public partial class TextPlain : RichText @@ -7704,7 +7704,7 @@ namespace TL } /// Represents an instant view page element Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , See - public abstract partial class PageBlock : ITLObject { } + public abstract partial class PageBlock : IObject { } /// Unsupported IV element See [TLDef(0x13567E8A)] public partial class PageBlockUnsupported : PageBlock { } @@ -8028,7 +8028,7 @@ namespace TL /// Represents a json-encoded object See [TLDef(0x7D748D04)] - public partial class DataJSON : ITLObject + public partial 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 : ITLObject + public partial class LabeledPrice : IObject { /// Portion label public string label; @@ -8046,7 +8046,7 @@ namespace TL /// Invoice See [TLDef(0x0CD886E0)] - public partial class Invoice : ITLObject + public partial 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 : ITLObject + public partial class PaymentCharge : IObject { /// Telegram payment identifier public string id; @@ -8094,7 +8094,7 @@ namespace TL /// Shipping address See [TLDef(0x1E8CAAEB)] - public partial class PostAddress : ITLObject + public partial 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 : ITLObject + public partial class PaymentRequestedInfo : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -8139,7 +8139,7 @@ namespace TL } /// Saved payment credentials Derived classes: See - public abstract partial class PaymentSavedCredentials : ITLObject { } + public abstract partial class PaymentSavedCredentials : IObject { } /// Saved credit card See [TLDef(0xCDC27A1F)] public partial class PaymentSavedCredentialsCard : PaymentSavedCredentials @@ -8151,7 +8151,7 @@ namespace TL } /// Remote document Derived classes: , See - public abstract partial class WebDocumentBase : ITLObject + public abstract partial class WebDocumentBase : IObject { /// Document URL public abstract string Url { get; } @@ -8211,7 +8211,7 @@ namespace TL /// The document See [TLDef(0x9BED434D)] - public partial class InputWebDocument : ITLObject + public partial class InputWebDocument : IObject { /// Remote document URL to be downloaded using the appropriate method public string url; @@ -8224,7 +8224,7 @@ namespace TL } /// Location of remote file Derived classes: , See - public abstract partial class InputWebFileLocationBase : ITLObject + public abstract partial class InputWebFileLocationBase : IObject { /// Access hash public abstract long AccessHash { get; } @@ -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 : ITLObject + public partial 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 : ITLObject + public partial class Payments_PaymentForm : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -8322,7 +8322,7 @@ namespace TL /// See [TLDef(0xD1451883)] - public partial class Payments_ValidatedRequestedInfo : ITLObject + public partial class Payments_ValidatedRequestedInfo : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -8341,7 +8341,7 @@ namespace TL } /// Derived classes: , See - public abstract partial class Payments_PaymentResultBase : ITLObject { } + public abstract partial class Payments_PaymentResultBase : IObject { } /// Payment result See [TLDef(0x4E5F810D)] public partial class Payments_PaymentResult : Payments_PaymentResultBase @@ -8359,7 +8359,7 @@ namespace TL /// Receipt See [TLDef(0x70C4FE03)] - public partial class Payments_PaymentReceipt : ITLObject + public partial 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 : ITLObject + public partial class Payments_SavedInfo : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -8424,7 +8424,7 @@ namespace TL } /// Payment credentials Derived classes: , , , See - public abstract partial class InputPaymentCredentialsBase : ITLObject { } + public abstract partial class InputPaymentCredentialsBase : IObject { } /// Saved payment credentials See [TLDef(0xC10EB2CF)] public partial class InputPaymentCredentialsSaved : InputPaymentCredentialsBase @@ -8466,7 +8466,7 @@ namespace TL /// Temporary payment password See [TLDef(0xDB64FD34)] - public partial class Account_TmpPassword : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class InputPhoneCall : IObject { /// Call ID public long id; @@ -8517,7 +8517,7 @@ namespace TL } /// Phone call Derived classes: , , , , , See - public abstract partial class PhoneCallBase : ITLObject + public abstract partial class PhoneCallBase : IObject { /// Call ID public abstract long ID { get; } @@ -8694,7 +8694,7 @@ namespace TL } /// Phone call connection Derived classes: , See - public abstract partial class PhoneConnectionBase : ITLObject + public abstract partial class PhoneConnectionBase : IObject { /// Endpoint ID public abstract long ID { get; } @@ -8768,7 +8768,7 @@ namespace TL /// Protocol info for libtgvoip See [TLDef(0xFC878FC8)] - public partial class PhoneCallProtocol : ITLObject + public partial 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 : ITLObject + public partial class Phone_PhoneCall : IObject { /// The VoIP phone call public PhoneCallBase phone_call; @@ -8799,7 +8799,7 @@ namespace TL } /// Represents the download status of a CDN file Derived classes: , See - public abstract partial class Upload_CdnFileBase : ITLObject { } + public abstract partial 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 @@ -8817,7 +8817,7 @@ namespace TL /// Public key to use only during handshakes to CDN DCs. See [TLDef(0xC982EABA)] - public partial class CdnPublicKey : ITLObject + public partial class CdnPublicKey : IObject { /// CDN DC ID public int dc_id; @@ -8827,14 +8827,14 @@ namespace TL /// Configuration for CDN file downloads. See [TLDef(0x5725E40A)] - public partial class CdnConfig : ITLObject + public partial 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 : ITLObject + public abstract partial class LangPackStringBase : IObject { /// Language key public abstract string Key { get; } @@ -8902,7 +8902,7 @@ namespace TL /// Changes to the app's localization pack See [TLDef(0xF385C1F6)] - public partial class LangPackDifference : ITLObject + public partial 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 : ITLObject + public partial class LangPackLanguage : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -8951,7 +8951,7 @@ namespace TL } /// Channel admin log event Derived classes: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , See - public abstract partial class ChannelAdminLogEventAction : ITLObject { } + public abstract partial class ChannelAdminLogEventAction : IObject { } /// Channel/supergroup title was changed See [TLDef(0xE6DFB825)] public partial class ChannelAdminLogEventActionChangeTitle : ChannelAdminLogEventAction @@ -9206,7 +9206,7 @@ namespace TL /// Admin log event See [TLDef(0x1FAD68CD)] - public partial class ChannelAdminLogEvent : ITLObject + public partial 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 : ITLObject + public partial class Channels_AdminLogResults : IObject { /// 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class Messages_FavedStickers : IObject { /// Hash for pagination, for more info click here public long hash; @@ -9300,7 +9300,7 @@ namespace TL } /// Recent t.me urls Derived classes: , , , , See - public abstract partial class RecentMeUrl : ITLObject + public abstract partial class RecentMeUrl : IObject { /// URL public string url; @@ -9339,7 +9339,7 @@ namespace TL /// Recent t.me URLs See [TLDef(0x0E0310D7)] - public partial class Help_RecentMeUrls : ITLObject + public partial class Help_RecentMeUrls : IObject { /// 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 : ITLObject + public partial 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 : ITLObject + public partial class WebAuthorization : IObject { /// Authorization hash public long hash; @@ -9399,7 +9399,7 @@ namespace TL /// Web authorizations See [TLDef(0xED56C9FC)] - public partial class Account_WebAuthorizations : ITLObject + public partial class Account_WebAuthorizations : IObject { /// Web authorization list public WebAuthorization[] authorizations; @@ -9408,7 +9408,7 @@ namespace TL } /// A message Derived classes: , , , See - public abstract partial class InputMessage : ITLObject { } + public abstract partial class InputMessage : IObject { } /// Message by ID See [TLDef(0xA676A322)] public partial class InputMessageID : InputMessage @@ -9437,7 +9437,7 @@ namespace TL } /// Peer, or all peers in a certain folder Derived classes: , See - public abstract partial class InputDialogPeerBase : ITLObject { } + public abstract partial class InputDialogPeerBase : IObject { } /// A peer See [TLDef(0xFCAAFEB7)] public partial class InputDialogPeer : InputDialogPeerBase @@ -9454,7 +9454,7 @@ namespace TL } /// Peer, or all peers in a folder Derived classes: , See - public abstract partial class DialogPeerBase : ITLObject { } + public abstract partial class DialogPeerBase : IObject { } /// Peer See [TLDef(0xE56DBF05)] public partial class DialogPeer : DialogPeerBase @@ -9473,7 +9473,7 @@ namespace TL /// Found stickersets See /// a null value means messages.foundStickerSetsNotModified [TLDef(0x8AF09DD2)] - public partial class Messages_FoundStickerSets : ITLObject + public partial class Messages_FoundStickerSets : IObject { /// Hash for pagination, for more info click here public long hash; @@ -9483,7 +9483,7 @@ namespace TL /// See [TLDef(0x6242C773)] - public partial class FileHash : ITLObject + public partial 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 : ITLObject + public partial class InputClientProxy : IObject { /// Proxy address public string address; @@ -9504,7 +9504,7 @@ namespace TL } /// Derived classes: , See - public abstract partial class Help_TermsOfServiceUpdateBase : ITLObject { } + public abstract partial class Help_TermsOfServiceUpdateBase : IObject { } /// No changes were made to telegram's terms of service See [TLDef(0xE3309F7F)] public partial class Help_TermsOfServiceUpdateEmpty : Help_TermsOfServiceUpdateBase @@ -9523,7 +9523,7 @@ namespace TL } /// Secure passport file, for more info see the passport docs » Derived classes: , See - public abstract partial class InputSecureFileBase : ITLObject + public abstract partial class InputSecureFileBase : IObject { /// Secure file ID public abstract long ID { get; } @@ -9562,7 +9562,7 @@ namespace TL /// Secure passport file, for more info see the passport docs » See /// a null value means secureFileEmpty [TLDef(0xE0277A62)] - public partial class SecureFile : ITLObject + public partial class SecureFile : IObject { /// 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 : ITLObject + public partial class SecureData : IObject { /// Data public byte[] data; @@ -9593,7 +9593,7 @@ namespace TL } /// Plaintext verified passport data. Derived classes: , See - public abstract partial class SecurePlainData : ITLObject { } + public abstract partial class SecurePlainData : IObject { } /// Phone number to use in telegram passport: it must be verified, first ». See [TLDef(0x7D6099DD)] public partial class SecurePlainPhone : SecurePlainData @@ -9642,7 +9642,7 @@ namespace TL /// Secure value See [TLDef(0x187FA0CA)] - public partial class SecureValue : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public abstract partial class SecureValueErrorBase : IObject { /// The section of the user's Telegram Passport which has the error, one of , , , , , public abstract SecureValueType Type { get; } @@ -9871,7 +9871,7 @@ namespace TL /// Encrypted credentials required to decrypt telegram passport data. See [TLDef(0x33F0EA47)] - public partial class SecureCredentialsEncrypted : ITLObject + public partial class SecureCredentialsEncrypted : IObject { /// Encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication, as described in decrypting data » public byte[] data; @@ -9883,7 +9883,7 @@ namespace TL /// Telegram Passport authorization form See [TLDef(0xAD2E1CD8)] - public partial class Account_AuthorizationForm : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class Help_DeepLinkInfo : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -9937,7 +9937,7 @@ namespace TL } /// Saved contact Derived classes: See - public abstract partial class SavedContact : ITLObject { } + public abstract partial class SavedContact : IObject { } /// Saved contact See [TLDef(0x1142BD56)] public partial class SavedPhoneContact : SavedContact @@ -9954,7 +9954,7 @@ namespace TL /// Takout info See [TLDef(0x4DBA4501)] - public partial class Account_Takeout : ITLObject + public partial class Account_Takeout : IObject { /// Takeout ID public long id; @@ -9962,7 +9962,7 @@ 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 : ITLObject { } + public abstract partial class PasswordKdfAlgo : IObject { } /// This key derivation algorithm defines that SRP 2FA login must be used See [TLDef(0x3A912D4A)] public partial class PasswordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow : PasswordKdfAlgo @@ -9979,7 +9979,7 @@ namespace TL /// KDF algorithm to use for computing telegram passport hash Derived classes: , See /// a null value means securePasswordKdfAlgoUnknown - public abstract partial class SecurePasswordKdfAlgo : ITLObject + public abstract partial class SecurePasswordKdfAlgo : IObject { /// Salt public byte[] salt; @@ -9993,7 +9993,7 @@ namespace TL /// Secure settings See [TLDef(0x1527BCAC)] - public partial class SecureSecretSettings : ITLObject + public partial 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 : ITLObject + public partial class InputCheckPasswordSRP : IObject { /// SRP ID public long srp_id; @@ -10017,7 +10017,7 @@ namespace TL } /// Required secure file type Derived classes: , See - public abstract partial class SecureRequiredTypeBase : ITLObject { } + public abstract partial class SecureRequiredTypeBase : IObject { } /// Required type See [TLDef(0x829D99DA)] public partial class SecureRequiredType : SecureRequiredTypeBase @@ -10048,7 +10048,7 @@ namespace TL /// Telegram passport configuration See /// a null value means help.passportConfigNotModified [TLDef(0xA098D6AF)] - public partial class Help_PassportConfig : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject { } + public abstract partial 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 : ITLObject { } + public abstract partial 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 : ITLObject + public partial 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 : ITLObject + public partial class PageTableRow : IObject { /// Table cells public PageTableCell[] cells; @@ -10167,7 +10167,7 @@ namespace TL /// Page caption See [TLDef(0x6F747657)] - public partial class PageCaption : ITLObject + public partial class PageCaption : IObject { /// Caption public RichText text; @@ -10176,7 +10176,7 @@ namespace TL } /// Item in block list Derived classes: , See - public abstract partial class PageListItem : ITLObject { } + public abstract partial class PageListItem : IObject { } /// List item See [TLDef(0xB92FB6CD)] public partial class PageListItemText : PageListItem @@ -10193,7 +10193,7 @@ namespace TL } /// Represents an instant view ordered list Derived classes: , See - public abstract partial class PageListOrderedItem : ITLObject + public abstract partial class PageListOrderedItem : IObject { /// Number of element within ordered list public string num; @@ -10215,7 +10215,7 @@ namespace TL /// Related article See [TLDef(0xB390DC08)] - public partial class PageRelatedArticle : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class ChatBannedRights : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10487,7 +10487,7 @@ namespace TL } /// Wallpaper Derived classes: , , See - public abstract partial class InputWallPaperBase : ITLObject { } + public abstract partial class InputWallPaperBase : IObject { } /// Wallpaper See [TLDef(0xE630B979)] public partial class InputWallPaper : InputWallPaperBase @@ -10515,7 +10515,7 @@ namespace TL /// Installed wallpapers See /// a null value means account.wallPapersNotModified [TLDef(0xCDC3858C)] - public partial class Account_WallPapers : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class EmojiKeyword : IObject { /// Keyword public string keyword; @@ -10634,7 +10634,7 @@ namespace TL /// Changes to emoji keywords See [TLDef(0x5CC761BD)] - public partial class EmojiKeywordsDifference : ITLObject + public partial 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 : ITLObject + public partial class EmojiURL : IObject { /// An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation public string url; @@ -10656,7 +10656,7 @@ namespace TL /// Emoji language See [TLDef(0xB3FB5361)] - public partial class EmojiLanguage : ITLObject + public partial class EmojiLanguage : IObject { /// Language code public string lang_code; @@ -10664,7 +10664,7 @@ namespace TL /// Folder See [TLDef(0xFF544E65)] - public partial class Folder : ITLObject + public partial 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 : ITLObject + public partial class InputFolderPeer : IObject { /// Peer public InputPeer peer; @@ -10700,7 +10700,7 @@ namespace TL /// Peer in a folder See [TLDef(0xE9BAA668)] - public partial class FolderPeer : ITLObject + public partial 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 : ITLObject + public partial class Messages_SearchCounter : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -10727,7 +10727,7 @@ namespace TL } /// URL authorization result Derived classes: , , See - public abstract partial class UrlAuthResult : ITLObject { } + public abstract partial class UrlAuthResult : IObject { } /// Details about the authorization request, for more info click here » See [TLDef(0x92D33A0E)] public partial class UrlAuthResultRequest : UrlAuthResult @@ -10759,7 +10759,7 @@ namespace TL /// Geographical location of supergroup (geogroups) See /// a null value means channelLocationEmpty [TLDef(0x209B82DB)] - public partial class ChannelLocation : ITLObject + public partial class ChannelLocation : IObject { /// Geographical location of supergrup public GeoPoint geo_point; @@ -10768,7 +10768,7 @@ namespace TL } /// Geolocated peer Derived classes: , See - public abstract partial class PeerLocatedBase : ITLObject + public abstract partial class PeerLocatedBase : IObject { /// Validity period of current data public abstract DateTime Expires { get; } @@ -10800,7 +10800,7 @@ namespace TL /// Restriction reason. See [TLDef(0xD072ACB4)] - public partial class RestrictionReason : ITLObject + public partial class RestrictionReason : IObject { /// Platform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator (android-ios, ios-wp, etc) public string platform; @@ -10811,7 +10811,7 @@ namespace TL } /// Cloud theme Derived classes: , See - public abstract partial class InputThemeBase : ITLObject { } + public abstract partial class InputThemeBase : IObject { } /// Theme See [TLDef(0x3C5693E9)] public partial class InputTheme : InputThemeBase @@ -10831,7 +10831,7 @@ namespace TL /// Theme See [TLDef(0xA00E67D6)] - public partial class Theme : ITLObject + public partial 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 : ITLObject + public partial class Account_Themes : IObject { /// Hash for pagination, for more info click here public long hash; @@ -10882,7 +10882,7 @@ namespace TL } /// Login token (for QR code login) Derived classes: , , See - public abstract partial class Auth_LoginTokenBase : ITLObject { } + public abstract partial class Auth_LoginTokenBase : IObject { } /// Login token (for QR code login) See [TLDef(0x629F1980)] public partial class Auth_LoginToken : Auth_LoginTokenBase @@ -10911,7 +10911,7 @@ namespace TL /// Sensitive content settings See [TLDef(0x57E28221)] - public partial class Account_ContentSettings : ITLObject + public partial 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 : ITLObject + public partial class Messages_InactiveChats : IObject { /// When was the chat last active public int[] dates; @@ -10956,7 +10956,7 @@ namespace TL /// Theme settings See [TLDef(0x8FDE504F)] - public partial class InputThemeSettings : ITLObject + public partial 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 : ITLObject + public partial class ThemeSettings : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -11017,7 +11017,7 @@ namespace TL } /// Webpage attributes Derived classes: See - public abstract partial class WebPageAttribute : ITLObject { } + public abstract partial class WebPageAttribute : IObject { } /// Page theme See [TLDef(0x54B56617)] public partial class WebPageAttributeTheme : WebPageAttribute @@ -11039,7 +11039,7 @@ namespace TL } /// How a user voted in a poll Derived classes: , , See - public abstract partial class MessageUserVoteBase : ITLObject + public abstract partial class MessageUserVoteBase : IObject { /// User ID public abstract long UserId { get; } @@ -11095,7 +11095,7 @@ namespace TL /// How users voted in a poll See [TLDef(0x0823F649)] - public partial class Messages_VotesList : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class StatsPercentValue : IObject { /// Partial value public double part; @@ -11218,7 +11218,7 @@ namespace TL } /// Channel statistics graph Derived classes: , , See - public abstract partial class StatsGraphBase : ITLObject { } + public abstract partial class StatsGraphBase : IObject { } /// This channel statistics graph must be generated asynchronously using stats.loadAsyncGraph to reduce server load See [TLDef(0x4A27EB2D)] public partial class StatsGraphAsync : StatsGraphBase @@ -11253,7 +11253,7 @@ namespace TL /// Message interaction counters See [TLDef(0xAD4FC9BD)] - public partial class MessageInteractionCounters : ITLObject + public partial 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 : ITLObject + public partial class Stats_BroadcastStats : IObject { /// Period in consideration public StatsDateRangeDays period; @@ -11300,7 +11300,7 @@ namespace TL } /// Info about pinned MTProxy or Public Service Announcement peers. Derived classes: , See - public abstract partial class Help_PromoDataBase : ITLObject { } + public abstract partial class Help_PromoDataBase : IObject { } /// No PSA/MTProxy info is available See [TLDef(0x98F6AC75)] public partial class Help_PromoDataEmpty : Help_PromoDataBase @@ -11342,7 +11342,7 @@ namespace TL /// Animated profile picture in MPEG4 format See [TLDef(0xDE33B094)] - public partial class VideoSize : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class Messages_MessageViews : IObject { /// 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 : ITLObject + public partial class Messages_DiscussionMessage : IObject { /// 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class Stats_MessageStats : IObject { /// Message view graph public StatsGraphBase views_graph; } /// A group call Derived classes: , See - public abstract partial class GroupCallBase : ITLObject + public abstract partial class GroupCallBase : IObject { /// Group call ID public abstract long ID { get; } @@ -11742,7 +11742,7 @@ namespace TL /// Points to a specific group call See [TLDef(0xD8AA840F)] - public partial class InputGroupCall : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class Phone_GroupCall : IObject { /// 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 : ITLObject + public partial class Phone_GroupParticipants : IObject { /// 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public abstract partial class Messages_ExportedChatInviteBase : IObject { /// Info about the chat invite public abstract ExportedChatInvite Invite { get; } @@ -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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class Phone_JoinAsPeers : IObject { /// 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 : ITLObject + public partial 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 : ITLObject + public partial 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 : ITLObject + public partial class GroupCallParticipantVideo : IObject { /// Flags, see TL conditional fields public Flags flags; @@ -12078,14 +12078,14 @@ namespace TL /// A suggested short name for a stickerpack See [TLDef(0x85FEA03F)] - public partial class Stickers_SuggestedShortName : ITLObject + public partial 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 : ITLObject { } + public abstract partial class BotCommandScope : IObject { } /// The commands will be valid in all dialogs See [TLDef(0x2F6CB2AB)] public partial class BotCommandScopeDefault : BotCommandScope { } @@ -12117,7 +12117,7 @@ namespace TL } /// Result of an account.resetPassword request. Derived classes: , , See - public abstract partial class Account_ResetPasswordResult : ITLObject { } + public abstract partial class Account_ResetPasswordResult : IObject { } /// You recently requested a password reset that was canceled, please wait until the specified date before requesting another reset. See [TLDef(0xE3779861)] public partial class Account_ResetPasswordFailedWait : Account_ResetPasswordResult @@ -12138,7 +12138,7 @@ namespace TL /// A sponsored message See [TLDef(0xD151E19A)] - public partial class SponsoredMessage : ITLObject + public partial 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 : ITLObject + public partial class Messages_SponsoredMessages : IObject { /// Sponsored messages public SponsoredMessage[] messages; @@ -12181,7 +12181,7 @@ namespace TL /// See [TLDef(0xC9B0539F)] - public partial class SearchResultsCalendarPeriod : ITLObject + public partial 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 : ITLObject + public partial class Messages_SearchResultsCalendar : IObject { public Flags flags; public int count; @@ -12214,7 +12214,7 @@ namespace TL } /// See - public abstract partial class SearchResultsPosition : ITLObject { } + public abstract partial class SearchResultsPosition : IObject { } /// See [TLDef(0x7F648B67)] public partial class SearchResultPosition : SearchResultsPosition @@ -12226,7 +12226,7 @@ namespace TL /// See [TLDef(0x53B22BAF)] - public partial class Messages_SearchResultsPositions : ITLObject + public partial class Messages_SearchResultsPositions : IObject { public int count; public SearchResultsPosition[] positions; @@ -12238,17 +12238,17 @@ namespace TL { /// Invokes a query after successfull completion of one of the previous queries. See [TLDef(0xCB9F372D)] - public partial class InvokeAfterMsg_ : ITLMethod + public partial class InvokeAfterMsg_ : IMethod { /// Message identifier on which a current query depends public long msg_id; /// The query itself - public ITLMethod query; + 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, ITLMethod query) + public static Task InvokeAfterMsg(this Client client, long msg_id, IMethod query) => client.CallAsync(new InvokeAfterMsg_ { msg_id = msg_id, @@ -12257,17 +12257,17 @@ namespace TL /// Invokes a query after a successfull completion of previous queries See [TLDef(0x3DC4B4F0)] - public partial class InvokeAfterMsgs_ : ITLMethod + public partial class InvokeAfterMsgs_ : IMethod { /// List of messages on which a current query depends public long[] msg_ids; /// The query itself - public ITLMethod query; + 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, ITLMethod query) + public static Task InvokeAfterMsgs(this Client client, long[] msg_ids, IMethod query) => client.CallAsync(new InvokeAfterMsgs_ { msg_ids = msg_ids, @@ -12276,7 +12276,7 @@ namespace TL /// Initialize connection See [TLDef(0xC1CD5EA9)] - public partial class InitConnection_ : ITLMethod + public partial class InitConnection_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -12299,7 +12299,7 @@ namespace TL /// Additional initConnection parameters.
For now, only the tz_offset field is supported, for specifying timezone offset in seconds.
[IfFlag(1)] public JSONValue params_; /// The query itself - public ITLMethod query; + public IMethod query; [Flags] public enum Flags { @@ -12320,7 +12320,7 @@ namespace TL /// Info about an MTProto proxy /// 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, ITLMethod query, InputClientProxy proxy = null, JSONValue params_ = null) + 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_ { flags = (InitConnection_.Flags)((proxy != null ? 0x1 : 0) | (params_ != null ? 0x2 : 0)), @@ -12338,17 +12338,17 @@ namespace TL /// Invoke the specified query using the specified API layer See [TLDef(0xDA9B0D0D)] - public partial class InvokeWithLayer_ : ITLMethod + public partial class InvokeWithLayer_ : IMethod { /// The layer to use public int layer; /// The query - public ITLMethod query; + 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, ITLMethod query) + public static Task InvokeWithLayer(this Client client, int layer, IMethod query) => client.CallAsync(new InvokeWithLayer_ { layer = layer, @@ -12357,14 +12357,14 @@ namespace TL /// Invoke a request without subscribing the used connection for updates (this is enabled by default for file queries). See [TLDef(0xBF9459B7)] - public partial class InvokeWithoutUpdates_ : ITLMethod + public partial class InvokeWithoutUpdates_ : IMethod { /// The query - public ITLMethod query; + 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, ITLMethod query) + public static Task InvokeWithoutUpdates(this Client client, IMethod query) => client.CallAsync(new InvokeWithoutUpdates_ { query = query, @@ -12372,17 +12372,17 @@ namespace TL /// Invoke with the given message range See [TLDef(0x365275F2)] - public partial class InvokeWithMessagesRange_ : ITLMethod + public partial class InvokeWithMessagesRange_ : IMethod { /// Message range public MessageRange range; /// Query - public ITLMethod query; + public IMethod query; } /// Invoke with the given message range See /// Message range /// Query - public static Task InvokeWithMessagesRange(this Client client, MessageRange range, ITLMethod query) + public static Task InvokeWithMessagesRange(this Client client, MessageRange range, IMethod query) => client.CallAsync(new InvokeWithMessagesRange_ { range = range, @@ -12391,17 +12391,17 @@ namespace TL /// Invoke a method within a takeout session See [TLDef(0xACA9FD2E)] - public partial class InvokeWithTakeout_ : ITLMethod + public partial class InvokeWithTakeout_ : IMethod { /// Takeout session ID public long takeout_id; /// Query - public ITLMethod query; + 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, ITLMethod query) + public static Task InvokeWithTakeout(this Client client, long takeout_id, IMethod query) => client.CallAsync(new InvokeWithTakeout_ { takeout_id = takeout_id, @@ -12410,7 +12410,7 @@ namespace TL /// Send the verification code for login See [TLDef(0xA677244F)] - public partial class Auth_SendCode_ : ITLMethod + public partial class Auth_SendCode_ : IMethod { /// Phone number in international format public string phone_number; @@ -12437,7 +12437,7 @@ namespace TL /// Registers a validated phone number in the system. See [TLDef(0x80EEE427)] - public partial class Auth_SignUp_ : ITLMethod + public partial class Auth_SignUp_ : IMethod { /// Phone number in the international format public string phone_number; @@ -12464,7 +12464,7 @@ namespace TL /// Signs in a user with a validated phone number. See [TLDef(0xBCD51581)] - public partial class Auth_SignIn_ : ITLMethod + public partial class Auth_SignIn_ : IMethod { /// Phone number in the international format public string phone_number; @@ -12487,7 +12487,7 @@ namespace TL /// Logs out the user. See [TLDef(0x5717DA40)] - public partial class Auth_LogOut_ : ITLMethod { } + 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_ @@ -12496,7 +12496,7 @@ namespace TL /// Terminates all user's authorized sessions except for the current one. See [TLDef(0x9FAB0D1A)] - public partial class Auth_ResetAuthorizations_ : ITLMethod { } + 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_ @@ -12505,7 +12505,7 @@ namespace TL /// Returns data for copying authorization to another data-centre. See [TLDef(0xE5BFFFCD)] - public partial class Auth_ExportAuthorization_ : ITLMethod + public partial class Auth_ExportAuthorization_ : IMethod { /// Number of a target data-centre public int dc_id; @@ -12520,7 +12520,7 @@ namespace TL /// Logs in a user using a key transmitted from his native data-centre. See [TLDef(0xA57A7DAD)] - public partial class Auth_ImportAuthorization_ : ITLMethod + public partial class Auth_ImportAuthorization_ : IMethod { /// User ID public long id; @@ -12539,7 +12539,7 @@ namespace TL /// 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 [TLDef(0xCDD42A05)] - public partial class Auth_BindTempAuthKey_ : ITLMethod + public partial class Auth_BindTempAuthKey_ : IMethod { /// Permanent auth_key_id to bind to public long perm_auth_key_id; @@ -12566,7 +12566,7 @@ namespace TL /// Login as a bot See [TLDef(0x67A3FF2C)] - public partial class Auth_ImportBotAuthorization_ : ITLMethod + public partial class Auth_ImportBotAuthorization_ : IMethod { /// Reserved for future use public int flags; @@ -12592,7 +12592,7 @@ namespace TL /// Try logging to an account protected by a 2FA password. See [TLDef(0xD18B4D16)] - public partial class Auth_CheckPassword_ : ITLMethod + public partial class Auth_CheckPassword_ : IMethod { /// The account's password (see SRP) public InputCheckPasswordSRP password; @@ -12607,7 +12607,7 @@ namespace TL /// Request recovery code of a 2FA password, only for accounts with a recovery email configured. See [TLDef(0xD897BC66)] - public partial class Auth_RequestPasswordRecovery_ : ITLMethod { } + 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_ @@ -12616,7 +12616,7 @@ namespace TL /// Reset the 2FA password using the recovery code sent using auth.requestPasswordRecovery. See [TLDef(0x37096C70)] - public partial class Auth_RecoverPassword_ : ITLMethod + public partial class Auth_RecoverPassword_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -12644,7 +12644,7 @@ namespace TL /// 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 [TLDef(0x3EF1A9BF)] - public partial class Auth_ResendCode_ : ITLMethod + public partial class Auth_ResendCode_ : IMethod { /// The phone number public string phone_number; @@ -12663,7 +12663,7 @@ namespace TL /// Cancel the login verification code See [TLDef(0x1F040578)] - public partial class Auth_CancelCode_ : ITLMethod + public partial class Auth_CancelCode_ : IMethod { /// Phone number public string phone_number; @@ -12682,7 +12682,7 @@ namespace TL /// Delete all temporary authorization keys except for the ones specified See [TLDef(0x8E48A188)] - public partial class Auth_DropTempAuthKeys_ : ITLMethod + public partial class Auth_DropTempAuthKeys_ : IMethod { /// The auth keys that shouldn't be dropped. public long[] except_auth_keys; @@ -12697,7 +12697,7 @@ namespace TL /// 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
[TLDef(0xB7E085FE)] - public partial class Auth_ExportLoginToken_ : ITLMethod + public partial class Auth_ExportLoginToken_ : IMethod { /// Application identifier (see. App configuration) public int api_id; @@ -12720,7 +12720,7 @@ namespace TL /// Login using a redirected login token, generated in case of DC mismatch during QR code login. See [TLDef(0x95AC5CE4)] - public partial class Auth_ImportLoginToken_ : ITLMethod + public partial class Auth_ImportLoginToken_ : IMethod { /// Login token public byte[] token; @@ -12735,7 +12735,7 @@ namespace TL /// Accept QR code login token, logging in the app that generated it. See [TLDef(0xE894AD4D)] - public partial class Auth_AcceptLoginToken_ : ITLMethod + public partial class Auth_AcceptLoginToken_ : IMethod { /// Login token embedded in QR code, for more info, see login via QR code. public byte[] token; @@ -12750,7 +12750,7 @@ namespace TL /// Check if the 2FA recovery code sent using auth.requestPasswordRecovery is valid, before passing it to auth.recoverPassword. See [TLDef(0x0D36BF79)] - public partial class Auth_CheckRecoveryPassword_ : ITLMethod + public partial class Auth_CheckRecoveryPassword_ : IMethod { /// Code received via email public string code; @@ -12765,7 +12765,7 @@ namespace TL /// Register device to receive PUSH notifications See [TLDef(0xEC86017A)] - public partial class Account_RegisterDevice_ : ITLMethod + public partial class Account_RegisterDevice_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -12806,7 +12806,7 @@ namespace TL /// Deletes a device by its token, stops sending PUSH-notifications to it. See [TLDef(0x6A0D3206)] - public partial class Account_UnregisterDevice_ : ITLMethod + public partial class Account_UnregisterDevice_ : IMethod { /// 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
public int token_type; @@ -12829,7 +12829,7 @@ namespace TL /// Edits notification settings from a given user/group, from all users/all groups. See [TLDef(0x84BE5B93)] - public partial class Account_UpdateNotifySettings_ : ITLMethod + public partial class Account_UpdateNotifySettings_ : IMethod { /// Notification source public InputNotifyPeerBase peer; @@ -12848,7 +12848,7 @@ namespace TL /// Gets current notification settings for a given user/group, from all users/all groups. See [TLDef(0x12B3AD31)] - public partial class Account_GetNotifySettings_ : ITLMethod + public partial class Account_GetNotifySettings_ : IMethod { /// Notification source public InputNotifyPeerBase peer; @@ -12863,7 +12863,7 @@ namespace TL /// Resets all notification settings from users and groups. See [TLDef(0xDB7E1747)] - public partial class Account_ResetNotifySettings_ : ITLMethod { } + 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_ @@ -12872,7 +12872,7 @@ namespace TL /// Updates user profile. See [TLDef(0x78515775)] - public partial class Account_UpdateProfile_ : ITLMethod + public partial class Account_UpdateProfile_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -12908,7 +12908,7 @@ namespace TL /// Updates online user status. See [TLDef(0x6628562C)] - public partial class Account_UpdateStatus_ : ITLMethod + public partial class Account_UpdateStatus_ : IMethod { /// If is transmitted, user status will change to . public bool offline; @@ -12923,7 +12923,7 @@ namespace TL /// Returns a list of available wallpapers. See [TLDef(0x07967D36)] - public partial class Account_GetWallPapers_ : ITLMethod + public partial class Account_GetWallPapers_ : IMethod { /// Hash for pagination, for more info click here public long hash; @@ -12939,7 +12939,7 @@ namespace TL /// Report a peer for violation of telegram's Terms of Service See [TLDef(0xC5BA3D86)] - public partial class Account_ReportPeer_ : ITLMethod + public partial class Account_ReportPeer_ : IMethod { /// The peer to report public InputPeer peer; @@ -12962,7 +12962,7 @@ namespace TL /// Validates a username and checks availability. See [TLDef(0x2714D86C)] - public partial class Account_CheckUsername_ : ITLMethod + public partial class Account_CheckUsername_ : IMethod { /// username
Accepted characters: A-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters.
public string username; @@ -12977,7 +12977,7 @@ namespace TL ///
Changes username for the current user. See [TLDef(0x3E0BDD7C)] - public partial class Account_UpdateUsername_ : ITLMethod + public partial class Account_UpdateUsername_ : IMethod { /// 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 string username; @@ -12992,7 +12992,7 @@ namespace TL ///
Get privacy settings of current account See [TLDef(0xDADBC950)] - public partial class Account_GetPrivacy_ : ITLMethod + public partial class Account_GetPrivacy_ : IMethod { /// Peer category whose privacy settings should be fetched public InputPrivacyKey key; @@ -13007,7 +13007,7 @@ namespace TL /// Change privacy settings of current account See [TLDef(0xC9F81CE8)] - public partial class Account_SetPrivacy_ : ITLMethod + public partial class Account_SetPrivacy_ : IMethod { /// Peers to which the privacy rules apply public InputPrivacyKey key; @@ -13026,7 +13026,7 @@ namespace TL /// 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 [TLDef(0x418D4E0B)] - public partial class Account_DeleteAccount_ : ITLMethod + public partial class Account_DeleteAccount_ : IMethod { /// Why is the account being deleted, can be empty public string reason; @@ -13041,7 +13041,7 @@ namespace TL /// Get days to live of account See [TLDef(0x08FC711D)] - public partial class Account_GetAccountTTL_ : ITLMethod { } + 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_ @@ -13050,7 +13050,7 @@ namespace TL /// Set account self-destruction period See [TLDef(0x2442485E)] - public partial class Account_SetAccountTTL_ : ITLMethod + public partial class Account_SetAccountTTL_ : IMethod { /// Time to live in days public AccountDaysTTL ttl; @@ -13065,7 +13065,7 @@ namespace TL /// Verify a new phone number to associate to the current account See [TLDef(0x82574AE5)] - public partial class Account_SendChangePhoneCode_ : ITLMethod + public partial class Account_SendChangePhoneCode_ : IMethod { /// New phone number public string phone_number; @@ -13084,7 +13084,7 @@ namespace TL /// Change the phone number of the current account See [TLDef(0x70C32EDB)] - public partial class Account_ChangePhone_ : ITLMethod + public partial class Account_ChangePhone_ : IMethod { /// New phone number public string phone_number; @@ -13107,7 +13107,7 @@ namespace TL /// When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications. See [TLDef(0x38DF3532)] - public partial class Account_UpdateDeviceLocked_ : ITLMethod + public partial class Account_UpdateDeviceLocked_ : IMethod { /// Inactivity period after which to start hiding message texts in PUSH notifications. public int period; @@ -13122,7 +13122,7 @@ namespace TL /// Get logged-in sessions See [TLDef(0xE320C158)] - public partial class Account_GetAuthorizations_ : ITLMethod { } + public partial class Account_GetAuthorizations_ : IMethod { } /// Get logged-in sessions See public static Task Account_GetAuthorizations(this Client client) => client.CallAsync(new Account_GetAuthorizations_ @@ -13131,7 +13131,7 @@ namespace TL /// Log out an active authorized session by its hash See [TLDef(0xDF77F3BC)] - public partial class Account_ResetAuthorization_ : ITLMethod + public partial class Account_ResetAuthorization_ : IMethod { /// Session hash public long hash; @@ -13146,7 +13146,7 @@ namespace TL /// Obtain configuration for two-factor authorization with password See [TLDef(0x548A30F5)] - public partial class Account_GetPassword_ : ITLMethod { } + 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_ @@ -13155,7 +13155,7 @@ namespace TL /// Get private info associated to the password info (recovery email, telegram passport info & so on) See [TLDef(0x9CD4EAF9)] - public partial class Account_GetPasswordSettings_ : ITLMethod + public partial class Account_GetPasswordSettings_ : IMethod { /// The password (see SRP) public InputCheckPasswordSRP password; @@ -13170,7 +13170,7 @@ namespace TL /// Set a new 2FA password See [TLDef(0xA59B102F)] - public partial class Account_UpdatePasswordSettings_ : ITLMethod + public partial class Account_UpdatePasswordSettings_ : IMethod { /// The old password (see SRP) public InputCheckPasswordSRP password; @@ -13189,7 +13189,7 @@ namespace TL /// Send confirmation code to cancel account deletion, for more info click here » See [TLDef(0x1B3FAA88)] - public partial class Account_SendConfirmPhoneCode_ : ITLMethod + public partial class Account_SendConfirmPhoneCode_ : IMethod { /// The hash from the service notification, for more info click here » public string hash; @@ -13208,7 +13208,7 @@ namespace TL /// Confirm a phone number to cancel account deletion, for more info click here » See [TLDef(0x5F2178C3)] - public partial class Account_ConfirmPhone_ : ITLMethod + public partial class Account_ConfirmPhone_ : IMethod { /// Phone code hash, for more info click here » public string phone_code_hash; @@ -13227,7 +13227,7 @@ namespace TL /// Get temporary payment password See [TLDef(0x449E0B51)] - public partial class Account_GetTmpPassword_ : ITLMethod + public partial class Account_GetTmpPassword_ : IMethod { /// SRP password parameters public InputCheckPasswordSRP password; @@ -13246,7 +13246,7 @@ namespace TL /// Get web login widget authorizations See [TLDef(0x182E6D6F)] - public partial class Account_GetWebAuthorizations_ : ITLMethod { } + 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_ @@ -13255,7 +13255,7 @@ namespace TL /// Log out an active web telegram login session See [TLDef(0x2D01B9EF)] - public partial class Account_ResetWebAuthorization_ : ITLMethod + public partial class Account_ResetWebAuthorization_ : IMethod { /// hash public long hash; @@ -13270,7 +13270,7 @@ namespace TL /// Reset all active web telegram login sessions See [TLDef(0x682D2594)] - public partial class Account_ResetWebAuthorizations_ : ITLMethod { } + 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_ @@ -13279,7 +13279,7 @@ namespace TL /// Get all saved Telegram Passport documents, for more info see the passport docs » See [TLDef(0xB288BC7D)] - public partial class Account_GetAllSecureValues_ : ITLMethod { } + 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_ @@ -13288,7 +13288,7 @@ namespace TL /// Get saved Telegram Passport document, for more info see the passport docs » See [TLDef(0x73665BC2)] - public partial class Account_GetSecureValue_ : ITLMethod + public partial class Account_GetSecureValue_ : IMethod { /// Requested value types public SecureValueType[] types; @@ -13303,7 +13303,7 @@ namespace TL /// Securely save Telegram Passport document, for more info see the passport docs » See [TLDef(0x899FE31D)] - public partial class Account_SaveSecureValue_ : ITLMethod + public partial class Account_SaveSecureValue_ : IMethod { /// Secure value, for more info see the passport docs » public InputSecureValue value; @@ -13322,7 +13322,7 @@ namespace TL /// Delete stored Telegram Passport documents, for more info see the passport docs » See [TLDef(0xB880BC4B)] - public partial class Account_DeleteSecureValue_ : ITLMethod + public partial class Account_DeleteSecureValue_ : IMethod { /// Document types to delete public SecureValueType[] types; @@ -13337,7 +13337,7 @@ namespace TL /// Returns a Telegram Passport authorization form for sharing data with a service See [TLDef(0xA929597A)] - public partial class Account_GetAuthorizationForm_ : ITLMethod + public partial class Account_GetAuthorizationForm_ : IMethod { /// User identifier of the service's bot public long bot_id; @@ -13360,7 +13360,7 @@ namespace TL /// Sends a Telegram Passport authorization form, effectively sharing data with the service See [TLDef(0xF3ED4C73)] - public partial class Account_AcceptAuthorization_ : ITLMethod + public partial class Account_AcceptAuthorization_ : IMethod { /// Bot ID public long bot_id; @@ -13391,7 +13391,7 @@ namespace TL /// Send the verification phone code for telegram passport. See [TLDef(0xA5A356F9)] - public partial class Account_SendVerifyPhoneCode_ : ITLMethod + public partial class Account_SendVerifyPhoneCode_ : IMethod { /// The phone number to verify public string phone_number; @@ -13410,7 +13410,7 @@ namespace TL /// Verify a phone number for telegram passport. See [TLDef(0x4DD3A7F6)] - public partial class Account_VerifyPhone_ : ITLMethod + public partial class Account_VerifyPhone_ : IMethod { /// Phone number public string phone_number; @@ -13433,7 +13433,7 @@ namespace TL /// Send the verification email code for telegram passport. See [TLDef(0x7011509F)] - public partial class Account_SendVerifyEmailCode_ : ITLMethod + public partial class Account_SendVerifyEmailCode_ : IMethod { /// The email where to send the code public string email; @@ -13448,7 +13448,7 @@ namespace TL /// Verify an email address for telegram passport. See [TLDef(0xECBA39DB)] - public partial class Account_VerifyEmail_ : ITLMethod + public partial class Account_VerifyEmail_ : IMethod { /// The email to verify public string email; @@ -13467,7 +13467,7 @@ namespace TL /// Initialize account takeout session See [TLDef(0xF05B4804)] - public partial class Account_InitTakeoutSession_ : ITLMethod + public partial class Account_InitTakeoutSession_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -13507,7 +13507,7 @@ namespace TL /// Finish account takeout session See [TLDef(0x1D2652EE)] - public partial class Account_FinishTakeoutSession_ : ITLMethod + public partial class Account_FinishTakeoutSession_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -13528,7 +13528,7 @@ namespace TL /// Verify an email to use as 2FA recovery method. See [TLDef(0x8FDF1920)] - public partial class Account_ConfirmPasswordEmail_ : ITLMethod + public partial class Account_ConfirmPasswordEmail_ : IMethod { /// The phone code that was received after setting a recovery email public string code; @@ -13543,7 +13543,7 @@ namespace TL /// Resend the code to verify an email to use as 2FA recovery method. See [TLDef(0x7A7F2A15)] - public partial class Account_ResendPasswordEmail_ : ITLMethod { } + 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_ @@ -13552,7 +13552,7 @@ namespace TL /// Cancel the code that was sent to verify an email to use as 2FA recovery method. See [TLDef(0xC1CBD5B6)] - public partial class Account_CancelPasswordEmail_ : ITLMethod { } + 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_ @@ -13561,7 +13561,7 @@ namespace TL /// Whether the user will receive notifications when contacts sign up See [TLDef(0x9F07C728)] - public partial class Account_GetContactSignUpNotification_ : ITLMethod { } + 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_ @@ -13570,7 +13570,7 @@ namespace TL /// Toggle contact sign up notifications See [TLDef(0xCFF43F61)] - public partial class Account_SetContactSignUpNotification_ : ITLMethod + public partial class Account_SetContactSignUpNotification_ : IMethod { /// Whether to disable contact sign up notifications public bool silent; @@ -13585,7 +13585,7 @@ namespace TL /// Returns list of chats with non-default notification settings See [TLDef(0x53577479)] - public partial class Account_GetNotifyExceptions_ : ITLMethod + public partial class Account_GetNotifyExceptions_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -13612,7 +13612,7 @@ namespace TL /// Get info about a certain wallpaper See [TLDef(0xFC8DDBEA)] - public partial class Account_GetWallPaper_ : ITLMethod + public partial class Account_GetWallPaper_ : IMethod { /// The wallpaper to get info about public InputWallPaperBase wallpaper; @@ -13627,7 +13627,7 @@ namespace TL /// Create and upload a new wallpaper See [TLDef(0xDD853661)] - public partial class Account_UploadWallPaper_ : ITLMethod + public partial class Account_UploadWallPaper_ : IMethod { /// The JPG/PNG wallpaper public InputFileBase file; @@ -13650,7 +13650,7 @@ namespace TL /// Install/uninstall wallpaper See [TLDef(0x6C5A5B37)] - public partial class Account_SaveWallPaper_ : ITLMethod + public partial class Account_SaveWallPaper_ : IMethod { /// Wallpaper to save public InputWallPaperBase wallpaper; @@ -13673,7 +13673,7 @@ namespace TL /// Install wallpaper See [TLDef(0xFEED5769)] - public partial class Account_InstallWallPaper_ : ITLMethod + public partial class Account_InstallWallPaper_ : IMethod { /// Wallpaper to install public InputWallPaperBase wallpaper; @@ -13692,7 +13692,7 @@ namespace TL /// Delete installed wallpapers See [TLDef(0xBB3B9804)] - public partial class Account_ResetWallPapers_ : ITLMethod { } + public partial class Account_ResetWallPapers_ : IMethod { } /// Delete installed wallpapers See public static Task Account_ResetWallPapers(this Client client) => client.CallAsync(new Account_ResetWallPapers_ @@ -13701,7 +13701,7 @@ namespace TL /// Get media autodownload settings See [TLDef(0x56DA0B3F)] - public partial class Account_GetAutoDownloadSettings_ : ITLMethod { } + public partial class Account_GetAutoDownloadSettings_ : IMethod { } /// Get media autodownload settings See public static Task Account_GetAutoDownloadSettings(this Client client) => client.CallAsync(new Account_GetAutoDownloadSettings_ @@ -13710,7 +13710,7 @@ namespace TL /// Change media autodownload settings See [TLDef(0x76F36233)] - public partial class Account_SaveAutoDownloadSettings_ : ITLMethod + public partial class Account_SaveAutoDownloadSettings_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -13738,7 +13738,7 @@ namespace TL /// Upload theme See [TLDef(0x1C3DB333)] - public partial class Account_UploadTheme_ : ITLMethod + public partial class Account_UploadTheme_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -13774,7 +13774,7 @@ namespace TL /// Create a theme See [TLDef(0x652E4400)] - public partial class Account_CreateTheme_ : ITLMethod + public partial class Account_CreateTheme_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -13812,7 +13812,7 @@ namespace TL /// Update theme See [TLDef(0x2BF40CCC)] - public partial class Account_UpdateTheme_ : ITLMethod + public partial class Account_UpdateTheme_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -13862,7 +13862,7 @@ namespace TL /// Save a theme See [TLDef(0xF257106C)] - public partial class Account_SaveTheme_ : ITLMethod + public partial class Account_SaveTheme_ : IMethod { /// Theme to save public InputThemeBase theme; @@ -13881,7 +13881,7 @@ namespace TL /// Install a theme See [TLDef(0xC727BB3B)] - public partial class Account_InstallTheme_ : ITLMethod + public partial class Account_InstallTheme_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -13918,7 +13918,7 @@ namespace TL /// Get theme information See [TLDef(0x8D9D742B)] - public partial class Account_GetTheme_ : ITLMethod + public partial class Account_GetTheme_ : IMethod { /// Theme format, a string that identifies the theming engines supported by the client public string format; @@ -13941,7 +13941,7 @@ namespace TL /// Get installed themes See [TLDef(0x7206E458)] - public partial class Account_GetThemes_ : ITLMethod + public partial class Account_GetThemes_ : IMethod { /// Theme format, a string that identifies the theming engines supported by the client public string format; @@ -13961,7 +13961,7 @@ namespace TL /// Set sensitive content settings (for viewing or hiding NSFW content) See [TLDef(0xB574B16B)] - public partial class Account_SetContentSettings_ : ITLMethod + public partial class Account_SetContentSettings_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -13982,7 +13982,7 @@ namespace TL /// Get sensitive content settings See [TLDef(0x8B9B4DAE)] - public partial class Account_GetContentSettings_ : ITLMethod { } + public partial class Account_GetContentSettings_ : IMethod { } /// Get sensitive content settings See public static Task Account_GetContentSettings(this Client client) => client.CallAsync(new Account_GetContentSettings_ @@ -13991,7 +13991,7 @@ namespace TL /// Get info about multiple wallpapers See [TLDef(0x65AD71DC)] - public partial class Account_GetMultiWallPapers_ : ITLMethod + public partial class Account_GetMultiWallPapers_ : IMethod { /// Wallpapers to fetch info about public InputWallPaperBase[] wallpapers; @@ -14006,7 +14006,7 @@ namespace TL /// Get global privacy settings See [TLDef(0xEB2B4CF6)] - public partial class Account_GetGlobalPrivacySettings_ : ITLMethod { } + public partial class Account_GetGlobalPrivacySettings_ : IMethod { } /// Get global privacy settings See public static Task Account_GetGlobalPrivacySettings(this Client client) => client.CallAsync(new Account_GetGlobalPrivacySettings_ @@ -14015,7 +14015,7 @@ namespace TL /// Set global privacy settings See [TLDef(0x1EDAAAC2)] - public partial class Account_SetGlobalPrivacySettings_ : ITLMethod + public partial class Account_SetGlobalPrivacySettings_ : IMethod { /// Global privacy settings public GlobalPrivacySettings settings; @@ -14030,7 +14030,7 @@ namespace TL /// Report a profile photo of a dialog See [TLDef(0xFA8CC6F5)] - public partial class Account_ReportProfilePhoto_ : ITLMethod + public partial class Account_ReportProfilePhoto_ : IMethod { /// The dialog public InputPeer peer; @@ -14057,7 +14057,7 @@ namespace TL /// Initiate a 2FA password reset: can only be used if the user is already logged-in, see here for more info » See [TLDef(0x9308CE1B)] - public partial class Account_ResetPassword_ : ITLMethod { } + 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_ @@ -14066,7 +14066,7 @@ namespace TL /// Abort a pending 2FA password reset, see here for more info » See [TLDef(0x4C9409F6)] - public partial class Account_DeclinePasswordReset_ : ITLMethod { } + 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_ @@ -14075,7 +14075,7 @@ namespace TL /// Get all available chat themes See [TLDef(0xD638DE89)] - public partial class Account_GetChatThemes_ : ITLMethod + public partial class Account_GetChatThemes_ : IMethod { /// Hash for pagination, for more info click here public long hash; @@ -14091,7 +14091,7 @@ namespace TL /// Returns basic user info according to their identifiers. See [TLDef(0x0D91A548)] - public partial class Users_GetUsers_ : ITLMethod + public partial class Users_GetUsers_ : IMethod { /// List of user identifiers public InputUserBase[] id; @@ -14106,7 +14106,7 @@ namespace TL /// Returns extended user info by ID. See [TLDef(0xCA30A5B1)] - public partial class Users_GetFullUser_ : ITLMethod + public partial class Users_GetFullUser_ : IMethod { /// User ID public InputUserBase id; @@ -14121,7 +14121,7 @@ namespace TL /// 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 [TLDef(0x90C894B5)] - public partial class Users_SetSecureValueErrors_ : ITLMethod + public partial class Users_SetSecureValueErrors_ : IMethod { /// The user public InputUserBase id; @@ -14140,7 +14140,7 @@ namespace TL /// Get contact by telegram IDs See [TLDef(0x7ADC669D)] - public partial class Contacts_GetContactIDs_ : ITLMethod + public partial class Contacts_GetContactIDs_ : IMethod { /// Hash for pagination, for more info click here public long hash; @@ -14155,7 +14155,7 @@ namespace TL /// Returns the list of contact statuses. See [TLDef(0xC4A353EE)] - public partial class Contacts_GetStatuses_ : ITLMethod { } + 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_ @@ -14164,7 +14164,7 @@ namespace TL /// Returns the current user's contact list. See [TLDef(0x5DD69E12)] - public partial class Contacts_GetContacts_ : ITLMethod + public partial class Contacts_GetContacts_ : IMethod { /// 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. public long hash; @@ -14180,7 +14180,7 @@ namespace TL /// Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info. See [TLDef(0x2C800BE5)] - public partial class Contacts_ImportContacts_ : ITLMethod + public partial class Contacts_ImportContacts_ : IMethod { /// List of contacts to import public InputContact[] contacts; @@ -14195,7 +14195,7 @@ namespace TL /// Deletes several contacts from the list. See [TLDef(0x096A0E00)] - public partial class Contacts_DeleteContacts_ : ITLMethod + public partial class Contacts_DeleteContacts_ : IMethod { /// User ID list public InputUserBase[] id; @@ -14210,7 +14210,7 @@ namespace TL /// Delete contacts by phone number See [TLDef(0x1013FD9E)] - public partial class Contacts_DeleteByPhones_ : ITLMethod + public partial class Contacts_DeleteByPhones_ : IMethod { /// Phone numbers public string[] phones; @@ -14225,7 +14225,7 @@ namespace TL /// Adds the user to the blacklist. See [TLDef(0x68CC1411)] - public partial class Contacts_Block_ : ITLMethod + public partial class Contacts_Block_ : IMethod { /// User ID public InputPeer id; @@ -14240,7 +14240,7 @@ namespace TL /// Deletes the user from the blacklist. See [TLDef(0xBEA65D50)] - public partial class Contacts_Unblock_ : ITLMethod + public partial class Contacts_Unblock_ : IMethod { /// User ID public InputPeer id; @@ -14255,7 +14255,7 @@ namespace TL /// Returns the list of blocked users. See [TLDef(0xF57C350F)] - public partial class Contacts_GetBlocked_ : ITLMethod + public partial class Contacts_GetBlocked_ : IMethod { /// The number of list elements to be skipped public int offset; @@ -14274,7 +14274,7 @@ namespace TL /// Returns users found by username substring. See [TLDef(0x11F812D8)] - public partial class Contacts_Search_ : ITLMethod + public partial class Contacts_Search_ : IMethod { /// Target substring public string q; @@ -14293,7 +14293,7 @@ namespace TL /// Resolve a @username to get peer info See [TLDef(0xF93CCBA3)] - public partial class Contacts_ResolveUsername_ : ITLMethod + public partial class Contacts_ResolveUsername_ : IMethod { /// @username to resolve public string username; @@ -14308,7 +14308,7 @@ namespace TL /// Get most used peers See [TLDef(0x973478B6)] - public partial class Contacts_GetTopPeers_ : ITLMethod + public partial class Contacts_GetTopPeers_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -14363,7 +14363,7 @@ namespace TL /// Reset rating of top peer See [TLDef(0x1AE373AC)] - public partial class Contacts_ResetTopPeerRating_ : ITLMethod + public partial class Contacts_ResetTopPeerRating_ : IMethod { /// Top peer category public TopPeerCategory category; @@ -14382,7 +14382,7 @@ namespace TL /// Delete saved contacts See [TLDef(0x879537F1)] - public partial class Contacts_ResetSaved_ : ITLMethod { } + public partial class Contacts_ResetSaved_ : IMethod { } /// Delete saved contacts See public static Task Contacts_ResetSaved(this Client client) => client.CallAsync(new Contacts_ResetSaved_ @@ -14391,7 +14391,7 @@ namespace TL /// Get all contacts See [TLDef(0x82F1E39F)] - public partial class Contacts_GetSaved_ : ITLMethod { } + 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_ @@ -14400,7 +14400,7 @@ namespace TL /// Enable/disable top peers See [TLDef(0x8514BDDA)] - public partial class Contacts_ToggleTopPeers_ : ITLMethod + public partial class Contacts_ToggleTopPeers_ : IMethod { /// Enable/disable public bool enabled; @@ -14415,7 +14415,7 @@ namespace TL /// Add an existing telegram user as contact. See [TLDef(0xE8F463D0)] - public partial class Contacts_AddContact_ : ITLMethod + public partial class Contacts_AddContact_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -14452,7 +14452,7 @@ namespace TL /// If the of a new user allow us to add him as contact, add that user as contact See [TLDef(0xF831A20F)] - public partial class Contacts_AcceptContact_ : ITLMethod + public partial class Contacts_AcceptContact_ : IMethod { /// The user to add as contact public InputUserBase id; @@ -14467,7 +14467,7 @@ namespace TL /// Get contacts near you See [TLDef(0xD348BC44)] - public partial class Contacts_GetLocated_ : ITLMethod + public partial class Contacts_GetLocated_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -14498,7 +14498,7 @@ namespace TL /// Stop getting notifications about thread replies of a certain user in @replies See [TLDef(0x29A8962C)] - public partial class Contacts_BlockFromReplies_ : ITLMethod + public partial class Contacts_BlockFromReplies_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -14529,7 +14529,7 @@ namespace TL /// Returns the list of messages by their IDs. See [TLDef(0x63C66506)] - public partial class Messages_GetMessages_ : ITLMethod + public partial class Messages_GetMessages_ : IMethod { /// Message ID list public InputMessage[] id; @@ -14544,7 +14544,7 @@ namespace TL /// Returns the current user dialog list. See [TLDef(0xA0F4CB4F)] - public partial class Messages_GetDialogs_ : ITLMethod + public partial class Messages_GetDialogs_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -14591,7 +14591,7 @@ namespace TL /// Gets back the conversation history with one interlocutor / within a chat See [TLDef(0x4423E6C5)] - public partial class Messages_GetHistory_ : ITLMethod + public partial class Messages_GetHistory_ : IMethod { /// Target peer public InputPeer peer; @@ -14634,7 +14634,7 @@ namespace TL /// Gets back found messages See [TLDef(0xA0FDA762)] - public partial class Messages_Search_ : ITLMethod + public partial class Messages_Search_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -14708,7 +14708,7 @@ namespace TL /// Marks message history as read. See [TLDef(0x0E306D3A)] - public partial class Messages_ReadHistory_ : ITLMethod + public partial class Messages_ReadHistory_ : IMethod { /// Target user or group public InputPeer peer; @@ -14727,7 +14727,7 @@ namespace TL /// Deletes communication history. See [TLDef(0xB08F922A)] - public partial class Messages_DeleteHistory_ : ITLMethod + public partial class Messages_DeleteHistory_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -14767,7 +14767,7 @@ namespace TL /// Deletes messages by their identifiers. See [TLDef(0xE58E95D2)] - public partial class Messages_DeleteMessages_ : ITLMethod + public partial class Messages_DeleteMessages_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -14792,7 +14792,7 @@ namespace TL /// Confirms receipt of messages by a client, cancels PUSH-notification sending. See [TLDef(0x05A954C0)] - public partial class Messages_ReceivedMessages_ : ITLMethod + public partial class Messages_ReceivedMessages_ : IMethod { /// Maximum message ID available in a client. public int max_id; @@ -14807,7 +14807,7 @@ namespace TL /// Sends a current user typing event (see for all event types) to a conversation partner or group. See [TLDef(0x58943EE2)] - public partial class Messages_SetTyping_ : ITLMethod + public partial class Messages_SetTyping_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -14839,7 +14839,7 @@ namespace TL /// Sends a message to a chat See [TLDef(0x520C3870)] - public partial class Messages_SendMessage_ : ITLMethod + public partial class Messages_SendMessage_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -14905,7 +14905,7 @@ namespace TL /// Send a media See [TLDef(0x3491EBA9)] - public partial class Messages_SendMedia_ : ITLMethod + public partial class Messages_SendMedia_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -14972,7 +14972,7 @@ namespace TL /// Forwards messages by their IDs. See [TLDef(0xD9FEE60E)] - public partial class Messages_ForwardMessages_ : ITLMethod + public partial class Messages_ForwardMessages_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -15027,7 +15027,7 @@ namespace TL /// Report a new incoming chat for spam, if the of the chat allow us to do that See [TLDef(0xCF1592DB)] - public partial class Messages_ReportSpam_ : ITLMethod + public partial class Messages_ReportSpam_ : IMethod { /// Peer to report public InputPeer peer; @@ -15042,7 +15042,7 @@ namespace TL /// Get peer settings See [TLDef(0x3672E09C)] - public partial class Messages_GetPeerSettings_ : ITLMethod + public partial class Messages_GetPeerSettings_ : IMethod { /// The peer public InputPeer peer; @@ -15057,7 +15057,7 @@ namespace TL /// Report a message in a chat for violation of telegram's Terms of Service See [TLDef(0x8953AB4E)] - public partial class Messages_Report_ : ITLMethod + public partial class Messages_Report_ : IMethod { /// Peer public InputPeer peer; @@ -15084,7 +15084,7 @@ namespace TL /// Returns chat basic info on their IDs. See [TLDef(0x49E9528F)] - public partial class Messages_GetChats_ : ITLMethod + public partial class Messages_GetChats_ : IMethod { /// List of chat IDs public long[] id; @@ -15099,7 +15099,7 @@ namespace TL /// Returns full chat info according to its ID. See [TLDef(0xAEB00B34)] - public partial class Messages_GetFullChat_ : ITLMethod + public partial class Messages_GetFullChat_ : IMethod { /// Chat ID public long chat_id; @@ -15114,7 +15114,7 @@ namespace TL /// Chanages chat name and sends a service message on it. See [TLDef(0x73783FFD)] - public partial class Messages_EditChatTitle_ : ITLMethod + public partial class Messages_EditChatTitle_ : IMethod { /// Chat ID public long chat_id; @@ -15133,7 +15133,7 @@ namespace TL /// Changes chat photo and sends a service message on it See [TLDef(0x35DDD674)] - public partial class Messages_EditChatPhoto_ : ITLMethod + public partial class Messages_EditChatPhoto_ : IMethod { /// Chat ID public long chat_id; @@ -15152,7 +15152,7 @@ namespace TL /// Adds a user to a chat and sends a service message on it. See [TLDef(0xF24753E3)] - public partial class Messages_AddChatUser_ : ITLMethod + public partial class Messages_AddChatUser_ : IMethod { /// Chat ID public long chat_id; @@ -15175,7 +15175,7 @@ namespace TL /// Deletes a user from a chat and sends a service message on it. See [TLDef(0xA2185CAB)] - public partial class Messages_DeleteChatUser_ : ITLMethod + public partial class Messages_DeleteChatUser_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -15204,7 +15204,7 @@ namespace TL /// Creates a new chat. See [TLDef(0x09CB126E)] - public partial class Messages_CreateChat_ : ITLMethod + public partial class Messages_CreateChat_ : IMethod { /// List of user IDs to be invited public InputUserBase[] users; @@ -15223,7 +15223,7 @@ namespace TL /// Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length. See [TLDef(0x26CF8950)] - public partial class Messages_GetDhConfig_ : ITLMethod + public partial class Messages_GetDhConfig_ : IMethod { /// Value of the version parameter from , avialable at the client public int version; @@ -15242,7 +15242,7 @@ namespace TL /// Sends a request to start a secret chat to the user. See [TLDef(0xF64DAF43)] - public partial class Messages_RequestEncryption_ : ITLMethod + public partial class Messages_RequestEncryption_ : IMethod { /// User ID public InputUserBase user_id; @@ -15265,7 +15265,7 @@ namespace TL /// Confirms creation of a secret chat See [TLDef(0x3DBC0415)] - public partial class Messages_AcceptEncryption_ : ITLMethod + public partial class Messages_AcceptEncryption_ : IMethod { /// Secret chat ID public InputEncryptedChat peer; @@ -15288,7 +15288,7 @@ namespace TL /// Cancels a request for creation and/or delete info on secret chat. See [TLDef(0xF393AEA0)] - public partial class Messages_DiscardEncryption_ : ITLMethod + public partial class Messages_DiscardEncryption_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -15313,7 +15313,7 @@ namespace TL /// Send typing event by the current user to a secret chat. See [TLDef(0x791451ED)] - public partial class Messages_SetEncryptedTyping_ : ITLMethod + public partial class Messages_SetEncryptedTyping_ : IMethod { /// Secret chat ID public InputEncryptedChat peer; @@ -15332,7 +15332,7 @@ namespace TL /// Marks message history within a secret chat as read. See [TLDef(0x7F4B690A)] - public partial class Messages_ReadEncryptedHistory_ : ITLMethod + public partial class Messages_ReadEncryptedHistory_ : IMethod { /// Secret chat ID public InputEncryptedChat peer; @@ -15351,7 +15351,7 @@ namespace TL /// Sends a text message to a secret chat. See [TLDef(0x44FA7A15)] - public partial class Messages_SendEncrypted_ : ITLMethod + public partial class Messages_SendEncrypted_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -15384,7 +15384,7 @@ namespace TL /// Sends a message with a file attachment to a secret chat See [TLDef(0x5559481D)] - public partial class Messages_SendEncryptedFile_ : ITLMethod + public partial class Messages_SendEncryptedFile_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -15421,7 +15421,7 @@ namespace TL /// Sends a service message to a secret chat. See [TLDef(0x32D439A4)] - public partial class Messages_SendEncryptedService_ : ITLMethod + public partial class Messages_SendEncryptedService_ : IMethod { /// Secret chat ID public InputEncryptedChat peer; @@ -15444,7 +15444,7 @@ namespace TL /// Confirms receipt of messages in a secret chat by client, cancels push notifications. See [TLDef(0x55A5BB66)] - public partial class Messages_ReceivedQueue_ : ITLMethod + public partial class Messages_ReceivedQueue_ : IMethod { /// Maximum qts value available at the client public int max_qts; @@ -15459,7 +15459,7 @@ namespace TL /// Report a secret chat for spam See [TLDef(0x4B0C8C0F)] - public partial class Messages_ReportEncryptedSpam_ : ITLMethod + public partial class Messages_ReportEncryptedSpam_ : IMethod { /// The secret chat to report public InputEncryptedChat peer; @@ -15474,7 +15474,7 @@ namespace TL /// Notifies the sender about the recipient having listened a voice message or watched a video. See [TLDef(0x36A73F77)] - public partial class Messages_ReadMessageContents_ : ITLMethod + public partial class Messages_ReadMessageContents_ : IMethod { /// Message ID list public int[] id; @@ -15489,7 +15489,7 @@ namespace TL /// Get stickers by emoji See [TLDef(0xD5A5D3A1)] - public partial class Messages_GetStickers_ : ITLMethod + public partial class Messages_GetStickers_ : IMethod { /// The emoji public string emoticon; @@ -15509,7 +15509,7 @@ namespace TL /// Get all installed stickers See [TLDef(0xB8A0A1A8)] - public partial class Messages_GetAllStickers_ : ITLMethod + public partial class Messages_GetAllStickers_ : IMethod { /// Hash for pagination, for more info click here public long hash; @@ -15525,7 +15525,7 @@ namespace TL /// Get preview of webpage See [TLDef(0x8B68B0CC)] - public partial class Messages_GetWebPagePreview_ : ITLMethod + public partial class Messages_GetWebPagePreview_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -15554,7 +15554,7 @@ namespace TL /// Export an invite link for a chat See [TLDef(0xA02CE5D5)] - public partial class Messages_ExportChatInvite_ : ITLMethod + public partial class Messages_ExportChatInvite_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -15596,7 +15596,7 @@ namespace TL /// Check the validity of a chat invite link and get basic info about it See [TLDef(0x3EADB1BB)] - public partial class Messages_CheckChatInvite_ : ITLMethod + public partial class Messages_CheckChatInvite_ : IMethod { /// Invite hash in t.me/joinchat/hash public string hash; @@ -15611,7 +15611,7 @@ namespace TL /// Import a chat invite and join a private chat/supergroup/channel See [TLDef(0x6C50051C)] - public partial class Messages_ImportChatInvite_ : ITLMethod + public partial class Messages_ImportChatInvite_ : IMethod { /// hash from t.me/joinchat/hash public string hash; @@ -15626,7 +15626,7 @@ namespace TL /// Get info about a stickerset See [TLDef(0x2619A90E)] - public partial class Messages_GetStickerSet_ : ITLMethod + public partial class Messages_GetStickerSet_ : IMethod { /// Stickerset public InputStickerSet stickerset; @@ -15641,7 +15641,7 @@ namespace TL /// Install a stickerset See [TLDef(0xC78FE460)] - public partial class Messages_InstallStickerSet_ : ITLMethod + public partial class Messages_InstallStickerSet_ : IMethod { /// Stickerset to install public InputStickerSet stickerset; @@ -15660,7 +15660,7 @@ namespace TL /// Uninstall a stickerset See [TLDef(0xF96E55DE)] - public partial class Messages_UninstallStickerSet_ : ITLMethod + public partial class Messages_UninstallStickerSet_ : IMethod { /// The stickerset to uninstall public InputStickerSet stickerset; @@ -15675,7 +15675,7 @@ namespace TL /// Start a conversation with a bot using a deep linking parameter See [TLDef(0xE6DF7378)] - public partial class Messages_StartBot_ : ITLMethod + public partial class Messages_StartBot_ : IMethod { /// The bot public InputUserBase bot; @@ -15702,7 +15702,7 @@ namespace TL /// Get and increase the view counter of a message sent or forwarded from a channel See [TLDef(0x5784D3E1)] - public partial class Messages_GetMessagesViews_ : ITLMethod + public partial class Messages_GetMessagesViews_ : IMethod { /// Peer where the message was found public InputPeer peer; @@ -15725,7 +15725,7 @@ namespace TL /// Make a user admin in a legacy group. See [TLDef(0xA85BD1C2)] - public partial class Messages_EditChatAdmin_ : ITLMethod + public partial class Messages_EditChatAdmin_ : IMethod { /// The ID of the group public long chat_id; @@ -15748,7 +15748,7 @@ namespace TL /// Turn a legacy group into a supergroup See [TLDef(0xA2875319)] - public partial class Messages_MigrateChat_ : ITLMethod + public partial class Messages_MigrateChat_ : IMethod { /// Legacy group to migrate public long chat_id; @@ -15763,7 +15763,7 @@ namespace TL /// Search for messages and peers globally See [TLDef(0x4BC6589A)] - public partial class Messages_SearchGlobal_ : ITLMethod + public partial class Messages_SearchGlobal_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -15819,7 +15819,7 @@ namespace TL /// Reorder installed stickersets See [TLDef(0x78337739)] - public partial class Messages_ReorderStickerSets_ : ITLMethod + public partial class Messages_ReorderStickerSets_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -15844,7 +15844,7 @@ namespace TL /// Get a document by its SHA256 hash, mainly used for gifs See [TLDef(0x338E2464)] - public partial class Messages_GetDocumentByHash_ : ITLMethod + public partial class Messages_GetDocumentByHash_ : IMethod { /// SHA256 of file public byte[] sha256; @@ -15867,7 +15867,7 @@ namespace TL /// Get saved GIFs See [TLDef(0x5CF09635)] - public partial class Messages_GetSavedGifs_ : ITLMethod + public partial class Messages_GetSavedGifs_ : IMethod { /// Hash for pagination, for more info click here public long hash; @@ -15883,7 +15883,7 @@ namespace TL /// Add GIF to saved gifs list See [TLDef(0x327A30CB)] - public partial class Messages_SaveGif_ : ITLMethod + public partial class Messages_SaveGif_ : IMethod { /// GIF to save public InputDocument id; @@ -15902,7 +15902,7 @@ namespace TL /// Query an inline bot See [TLDef(0x514E999D)] - public partial class Messages_GetInlineBotResults_ : ITLMethod + public partial class Messages_GetInlineBotResults_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -15942,7 +15942,7 @@ namespace TL /// Answer an inline query, for bots only See [TLDef(0xEB5EA206)] - public partial class Messages_SetInlineBotResults_ : ITLMethod + public partial class Messages_SetInlineBotResults_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -15990,7 +15990,7 @@ namespace TL /// Send a result obtained using messages.getInlineBotResults. See [TLDef(0x220815B0)] - public partial class Messages_SendInlineBotResult_ : ITLMethod + public partial class Messages_SendInlineBotResult_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16048,7 +16048,7 @@ namespace TL /// Find out if a media message's caption can be edited See [TLDef(0xFDA68D36)] - public partial class Messages_GetMessageEditData_ : ITLMethod + public partial class Messages_GetMessageEditData_ : IMethod { /// Peer where the media was sent public InputPeer peer; @@ -16067,7 +16067,7 @@ namespace TL /// Edit message See [TLDef(0x48F71778)] - public partial class Messages_EditMessage_ : ITLMethod + public partial class Messages_EditMessage_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16126,7 +16126,7 @@ namespace TL /// Edit an inline bot message See [TLDef(0x83557DBA)] - public partial class Messages_EditInlineBotMessage_ : ITLMethod + public partial class Messages_EditInlineBotMessage_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16175,7 +16175,7 @@ namespace TL /// Press an inline callback button and get a callback answer from the bot See [TLDef(0x9342CA07)] - public partial class Messages_GetBotCallbackAnswer_ : ITLMethod + public partial class Messages_GetBotCallbackAnswer_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16216,7 +16216,7 @@ namespace TL /// Set the callback answer to a user button press (bots only) See [TLDef(0xD58F130A)] - public partial class Messages_SetBotCallbackAnswer_ : ITLMethod + public partial class Messages_SetBotCallbackAnswer_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16257,7 +16257,7 @@ namespace TL /// Get dialog info of specified peers See [TLDef(0xE470BCFD)] - public partial class Messages_GetPeerDialogs_ : ITLMethod + public partial class Messages_GetPeerDialogs_ : IMethod { /// Peers public InputDialogPeerBase[] peers; @@ -16272,7 +16272,7 @@ namespace TL /// Save a message draft associated to a chat. See [TLDef(0xBC39E14B)] - public partial class Messages_SaveDraft_ : ITLMethod + public partial class Messages_SaveDraft_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16313,7 +16313,7 @@ namespace TL /// Save get all message drafts. See [TLDef(0x6A3F8D65)] - public partial class Messages_GetAllDrafts_ : ITLMethod { } + 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_ @@ -16322,7 +16322,7 @@ namespace TL /// Get featured stickers See [TLDef(0x64780B14)] - public partial class Messages_GetFeaturedStickers_ : ITLMethod + public partial class Messages_GetFeaturedStickers_ : IMethod { /// Hash for pagination, for more info click here public long hash; @@ -16337,7 +16337,7 @@ namespace TL /// Mark new featured stickers as read See [TLDef(0x5B118126)] - public partial class Messages_ReadFeaturedStickers_ : ITLMethod + public partial class Messages_ReadFeaturedStickers_ : IMethod { /// IDs of stickersets to mark as read public long[] id; @@ -16352,7 +16352,7 @@ namespace TL /// Get recent stickers See [TLDef(0x9DA9403B)] - public partial class Messages_GetRecentStickers_ : ITLMethod + public partial class Messages_GetRecentStickers_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16378,7 +16378,7 @@ namespace TL /// Add/remove sticker from recent stickers list See [TLDef(0x392718F8)] - public partial class Messages_SaveRecentSticker_ : ITLMethod + public partial class Messages_SaveRecentSticker_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16407,7 +16407,7 @@ namespace TL /// Clear recent stickers See [TLDef(0x8999602D)] - public partial class Messages_ClearRecentStickers_ : ITLMethod + public partial class Messages_ClearRecentStickers_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16428,7 +16428,7 @@ namespace TL /// Get all archived stickers See [TLDef(0x57F17692)] - public partial class Messages_GetArchivedStickers_ : ITLMethod + public partial class Messages_GetArchivedStickers_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16457,7 +16457,7 @@ namespace TL /// Get installed mask stickers See [TLDef(0x640F82B8)] - public partial class Messages_GetMaskStickers_ : ITLMethod + public partial class Messages_GetMaskStickers_ : IMethod { /// Hash for pagination, for more info click here public long hash; @@ -16473,7 +16473,7 @@ namespace TL /// Get stickers attached to a photo or video See [TLDef(0xCC5B67CC)] - public partial class Messages_GetAttachedStickers_ : ITLMethod + public partial class Messages_GetAttachedStickers_ : IMethod { /// Stickered media public InputStickeredMedia media; @@ -16488,7 +16488,7 @@ namespace TL /// Use this method to set the score of the specified user in a game sent as a normal message (bots only). See [TLDef(0x8EF8ECC0)] - public partial class Messages_SetGameScore_ : ITLMethod + public partial class Messages_SetGameScore_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16528,7 +16528,7 @@ namespace TL /// Use this method to set the score of the specified user in a game sent as an inline message (bots only). See [TLDef(0x15AD9F64)] - public partial class Messages_SetInlineGameScore_ : ITLMethod + public partial class Messages_SetInlineGameScore_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16564,7 +16564,7 @@ namespace TL /// Get highscores of a game See [TLDef(0xE822649D)] - public partial class Messages_GetGameHighScores_ : ITLMethod + public partial class Messages_GetGameHighScores_ : IMethod { /// Where was the game sent public InputPeer peer; @@ -16587,7 +16587,7 @@ namespace TL /// Get highscores of a game sent using an inline bot See [TLDef(0x0F635E1B)] - public partial class Messages_GetInlineGameHighScores_ : ITLMethod + public partial class Messages_GetInlineGameHighScores_ : IMethod { /// ID of inline message public InputBotInlineMessageIDBase id; @@ -16606,7 +16606,7 @@ namespace TL /// Get chats in common with a user See [TLDef(0xE40CA104)] - public partial class Messages_GetCommonChats_ : ITLMethod + public partial class Messages_GetCommonChats_ : IMethod { /// User ID public InputUserBase user_id; @@ -16629,7 +16629,7 @@ namespace TL /// Get all chats, channels and supergroups See [TLDef(0x875F74BE)] - public partial class Messages_GetAllChats_ : ITLMethod + public partial class Messages_GetAllChats_ : IMethod { /// Except these chats/channels/supergroups public long[] except_ids; @@ -16644,7 +16644,7 @@ namespace TL /// Get instant view page See [TLDef(0x32CA8F91)] - public partial class Messages_GetWebPage_ : ITLMethod + public partial class Messages_GetWebPage_ : IMethod { /// URL of IV page to fetch public string url; @@ -16663,7 +16663,7 @@ namespace TL /// Pin/unpin a dialog See [TLDef(0xA731E257)] - public partial class Messages_ToggleDialogPin_ : ITLMethod + public partial class Messages_ToggleDialogPin_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16688,7 +16688,7 @@ namespace TL /// Reorder pinned dialogs See [TLDef(0x3B1ADF37)] - public partial class Messages_ReorderPinnedDialogs_ : ITLMethod + public partial class Messages_ReorderPinnedDialogs_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16717,7 +16717,7 @@ namespace TL /// Get pinned dialogs See [TLDef(0xD6B94DF2)] - public partial class Messages_GetPinnedDialogs_ : ITLMethod + public partial class Messages_GetPinnedDialogs_ : IMethod { /// Peer folder ID, for more info click here public int folder_id; @@ -16732,7 +16732,7 @@ namespace TL /// 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 [TLDef(0xE5F672FA)] - public partial class Messages_SetBotShippingResults_ : ITLMethod + public partial class Messages_SetBotShippingResults_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16766,7 +16766,7 @@ namespace TL /// 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
[TLDef(0x09C2DD95)] - public partial class Messages_SetBotPrecheckoutResults_ : ITLMethod + public partial class Messages_SetBotPrecheckoutResults_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16797,7 +16797,7 @@ namespace TL /// Upload a file and associate it to a chat (without actually sending it to the chat) See [TLDef(0x519BC2B1)] - public partial class Messages_UploadMedia_ : ITLMethod + public partial class Messages_UploadMedia_ : IMethod { /// The chat, can be an for bots public InputPeer peer; @@ -16817,7 +16817,7 @@ namespace TL /// Notify the other user in a private chat that a screenshot of the chat was taken See [TLDef(0xC97DF020)] - public partial class Messages_SendScreenshotNotification_ : ITLMethod + public partial class Messages_SendScreenshotNotification_ : IMethod { /// Other user public InputPeer peer; @@ -16840,7 +16840,7 @@ namespace TL /// Get faved stickers See [TLDef(0x04F1AAA9)] - public partial class Messages_GetFavedStickers_ : ITLMethod + public partial class Messages_GetFavedStickers_ : IMethod { /// Hash for pagination, for more info click here public long hash; @@ -16856,7 +16856,7 @@ namespace TL /// Mark a sticker as favorite See [TLDef(0xB9FFC55B)] - public partial class Messages_FaveSticker_ : ITLMethod + public partial class Messages_FaveSticker_ : IMethod { /// Sticker to mark as favorite public InputDocument id; @@ -16875,7 +16875,7 @@ namespace TL /// Get unread messages where we were mentioned See [TLDef(0x46578472)] - public partial class Messages_GetUnreadMentions_ : ITLMethod + public partial class Messages_GetUnreadMentions_ : IMethod { /// Peer where to look for mentions public InputPeer peer; @@ -16910,7 +16910,7 @@ namespace TL /// Mark mentions as read See [TLDef(0x0F0189D3)] - public partial class Messages_ReadMentions_ : ITLMethod + public partial class Messages_ReadMentions_ : IMethod { /// Dialog public InputPeer peer; @@ -16925,7 +16925,7 @@ namespace TL /// Get live location history of a certain user See [TLDef(0x702A40E0)] - public partial class Messages_GetRecentLocations_ : ITLMethod + public partial class Messages_GetRecentLocations_ : IMethod { /// User public InputPeer peer; @@ -16948,7 +16948,7 @@ namespace TL /// Send an album or grouped media See [TLDef(0xCC0110CB)] - public partial class Messages_SendMultiMedia_ : ITLMethod + public partial class Messages_SendMultiMedia_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -16995,7 +16995,7 @@ namespace TL /// Upload encrypted file and associate it to a secret chat See [TLDef(0x5057C497)] - public partial class Messages_UploadEncryptedFile_ : ITLMethod + public partial class Messages_UploadEncryptedFile_ : IMethod { /// The secret chat to associate the file to public InputEncryptedChat peer; @@ -17015,7 +17015,7 @@ namespace TL /// Search for stickersets See [TLDef(0x35705B8A)] - public partial class Messages_SearchStickerSets_ : ITLMethod + public partial class Messages_SearchStickerSets_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -17045,7 +17045,7 @@ namespace TL /// Get message ranges for saving the user's chat history See [TLDef(0x1CFF7E08)] - public partial class Messages_GetSplitRanges_ : ITLMethod { } + 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_ @@ -17054,7 +17054,7 @@ namespace TL /// Manually mark dialog as unread See [TLDef(0xC286D98F)] - public partial class Messages_MarkDialogUnread_ : ITLMethod + public partial class Messages_MarkDialogUnread_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -17079,7 +17079,7 @@ namespace TL /// Get dialogs manually marked as unread See [TLDef(0x22E24E22)] - public partial class Messages_GetDialogUnreadMarks_ : ITLMethod { } + 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_ @@ -17088,7 +17088,7 @@ namespace TL /// Clear all drafts. See [TLDef(0x7E58EE9C)] - public partial class Messages_ClearAllDrafts_ : ITLMethod { } + public partial class Messages_ClearAllDrafts_ : IMethod { } /// Clear all drafts. See public static Task Messages_ClearAllDrafts(this Client client) => client.CallAsync(new Messages_ClearAllDrafts_ @@ -17097,7 +17097,7 @@ namespace TL /// Pin a message See [TLDef(0xD2AAF7EC)] - public partial class Messages_UpdatePinnedMessage_ : ITLMethod + public partial class Messages_UpdatePinnedMessage_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -17132,7 +17132,7 @@ namespace TL /// Vote in a See [TLDef(0x10EA6184)] - public partial class Messages_SendVote_ : ITLMethod + public partial class Messages_SendVote_ : IMethod { /// The chat where the poll was sent public InputPeer peer; @@ -17155,7 +17155,7 @@ namespace TL /// Get poll results See [TLDef(0x73BB643B)] - public partial class Messages_GetPollResults_ : ITLMethod + public partial class Messages_GetPollResults_ : IMethod { /// Peer where the poll was found public InputPeer peer; @@ -17174,7 +17174,7 @@ namespace TL /// Get count of online users in a chat See [TLDef(0x6E2BE050)] - public partial class Messages_GetOnlines_ : ITLMethod + public partial class Messages_GetOnlines_ : IMethod { /// The chat public InputPeer peer; @@ -17189,7 +17189,7 @@ namespace TL /// Edit the description of a group/supergroup/channel. See [TLDef(0xDEF60797)] - public partial class Messages_EditChatAbout_ : ITLMethod + public partial class Messages_EditChatAbout_ : IMethod { /// The group/supergroup/channel. public InputPeer peer; @@ -17208,7 +17208,7 @@ namespace TL /// Edit the default banned rights of a channel/supergroup/group. See [TLDef(0xA5866B41)] - public partial class Messages_EditChatDefaultBannedRights_ : ITLMethod + public partial class Messages_EditChatDefaultBannedRights_ : IMethod { /// The peer public InputPeer peer; @@ -17227,7 +17227,7 @@ namespace TL /// Get localized emoji keywords See [TLDef(0x35A0E062)] - public partial class Messages_GetEmojiKeywords_ : ITLMethod + public partial class Messages_GetEmojiKeywords_ : IMethod { /// Language code public string lang_code; @@ -17242,7 +17242,7 @@ namespace TL /// Get changed emoji keywords See [TLDef(0x1508B6AF)] - public partial class Messages_GetEmojiKeywordsDifference_ : ITLMethod + public partial class Messages_GetEmojiKeywordsDifference_ : IMethod { /// Language code public string lang_code; @@ -17261,7 +17261,7 @@ namespace TL /// Get info about an emoji keyword localization See [TLDef(0x4E9963B2)] - public partial class Messages_GetEmojiKeywordsLanguages_ : ITLMethod + public partial class Messages_GetEmojiKeywordsLanguages_ : IMethod { /// Language codes public string[] lang_codes; @@ -17276,7 +17276,7 @@ namespace TL /// 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 [TLDef(0xD5B10C26)] - public partial class Messages_GetEmojiURL_ : ITLMethod + public partial class Messages_GetEmojiURL_ : IMethod { /// Language code for which the emoji replacements will be suggested public string lang_code; @@ -17291,7 +17291,7 @@ namespace TL /// Get the number of results that would be found by a messages.search call with the same parameters See [TLDef(0x732EEF00)] - public partial class Messages_GetSearchCounters_ : ITLMethod + public partial class Messages_GetSearchCounters_ : IMethod { /// Peer where to search public InputPeer peer; @@ -17310,7 +17310,7 @@ namespace TL /// Get more info about a Seamless Telegram Login authorization request, for more info click here » See [TLDef(0x198FB446)] - public partial class Messages_RequestUrlAuth_ : ITLMethod + public partial class Messages_RequestUrlAuth_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -17348,7 +17348,7 @@ namespace TL /// Use this to accept a Seamless Telegram Login authorization request, for more info click here » See [TLDef(0xB12C7125)] - public partial class Messages_AcceptUrlAuth_ : ITLMethod + public partial class Messages_AcceptUrlAuth_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -17389,7 +17389,7 @@ namespace TL /// 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 [TLDef(0x4FACB138)] - public partial class Messages_HidePeerSettingsBar_ : ITLMethod + public partial class Messages_HidePeerSettingsBar_ : IMethod { /// Peer public InputPeer peer; @@ -17404,7 +17404,7 @@ namespace TL /// Get scheduled messages See [TLDef(0xF516760B)] - public partial class Messages_GetScheduledHistory_ : ITLMethod + public partial class Messages_GetScheduledHistory_ : IMethod { /// Peer public InputPeer peer; @@ -17423,7 +17423,7 @@ namespace TL /// Get scheduled messages See [TLDef(0xBDBB0464)] - public partial class Messages_GetScheduledMessages_ : ITLMethod + public partial class Messages_GetScheduledMessages_ : IMethod { /// Peer public InputPeer peer; @@ -17442,7 +17442,7 @@ namespace TL /// Send scheduled messages right away See [TLDef(0xBD38850A)] - public partial class Messages_SendScheduledMessages_ : ITLMethod + public partial class Messages_SendScheduledMessages_ : IMethod { /// Peer public InputPeer peer; @@ -17461,7 +17461,7 @@ namespace TL /// Delete scheduled messages See [TLDef(0x59AE2B16)] - public partial class Messages_DeleteScheduledMessages_ : ITLMethod + public partial class Messages_DeleteScheduledMessages_ : IMethod { /// Peer public InputPeer peer; @@ -17480,7 +17480,7 @@ namespace TL /// Get poll results for non-anonymous polls See [TLDef(0xB86E380E)] - public partial class Messages_GetPollVotes_ : ITLMethod + public partial class Messages_GetPollVotes_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -17522,7 +17522,7 @@ namespace TL /// Apply changes to multiple stickersets See [TLDef(0xB5052FEA)] - public partial class Messages_ToggleStickerSets_ : ITLMethod + public partial class Messages_ToggleStickerSets_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -17553,7 +17553,7 @@ namespace TL /// Get folders See [TLDef(0xF19ED96D)] - public partial class Messages_GetDialogFilters_ : ITLMethod { } + public partial class Messages_GetDialogFilters_ : IMethod { } /// Get folders See public static Task Messages_GetDialogFilters(this Client client) => client.CallAsync(new Messages_GetDialogFilters_ @@ -17562,7 +17562,7 @@ namespace TL /// Get suggested folders See [TLDef(0xA29CD42C)] - public partial class Messages_GetSuggestedDialogFilters_ : ITLMethod { } + public partial class Messages_GetSuggestedDialogFilters_ : IMethod { } /// Get suggested folders See public static Task Messages_GetSuggestedDialogFilters(this Client client) => client.CallAsync(new Messages_GetSuggestedDialogFilters_ @@ -17571,7 +17571,7 @@ namespace TL /// Update folder See [TLDef(0x1AD4A04A)] - public partial class Messages_UpdateDialogFilter_ : ITLMethod + public partial class Messages_UpdateDialogFilter_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -17599,7 +17599,7 @@ namespace TL /// Reorder folders See [TLDef(0xC563C1E4)] - public partial class Messages_UpdateDialogFiltersOrder_ : ITLMethod + public partial class Messages_UpdateDialogFiltersOrder_ : IMethod { /// New folder order public int[] order; @@ -17614,7 +17614,7 @@ namespace TL /// Method for fetching previously featured stickers See [TLDef(0x7ED094A1)] - public partial class Messages_GetOldFeaturedStickers_ : ITLMethod + public partial class Messages_GetOldFeaturedStickers_ : IMethod { /// Offset public int offset; @@ -17637,7 +17637,7 @@ namespace TL /// Get messages in a reply thread See [TLDef(0x22DDD30C)] - public partial class Messages_GetReplies_ : ITLMethod + public partial class Messages_GetReplies_ : IMethod { /// Peer public InputPeer peer; @@ -17684,7 +17684,7 @@ namespace TL /// 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 [TLDef(0x446972FD)] - public partial class Messages_GetDiscussionMessage_ : ITLMethod + public partial class Messages_GetDiscussionMessage_ : IMethod { /// Channel ID public InputPeer peer; @@ -17703,7 +17703,7 @@ namespace TL /// Mark a thread as read See [TLDef(0xF731A9F4)] - public partial class Messages_ReadDiscussion_ : ITLMethod + public partial class Messages_ReadDiscussion_ : IMethod { /// Group ID public InputPeer peer; @@ -17726,7 +17726,7 @@ namespace TL /// Unpin all pinned messages See [TLDef(0xF025BC8B)] - public partial class Messages_UnpinAllMessages_ : ITLMethod + public partial class Messages_UnpinAllMessages_ : IMethod { /// Chat where to unpin public InputPeer peer; @@ -17741,7 +17741,7 @@ namespace TL /// Delete a chat See [TLDef(0x5BD0EE50)] - public partial class Messages_DeleteChat_ : ITLMethod + public partial class Messages_DeleteChat_ : IMethod { /// Chat ID public long chat_id; @@ -17756,7 +17756,7 @@ namespace TL /// Delete the entire phone call history. See [TLDef(0xF9CBE409)] - public partial class Messages_DeletePhoneCallHistory_ : ITLMethod + public partial class Messages_DeletePhoneCallHistory_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -17777,7 +17777,7 @@ namespace TL /// Obtains information about a chat export file, generated by a foreign chat app, click here for more info about imported chats ». See [TLDef(0x43FE19F3)] - public partial class Messages_CheckHistoryImport_ : ITLMethod + public partial class Messages_CheckHistoryImport_ : IMethod { /// Beginning of the message file; up to 100 lines. public string import_head; @@ -17792,7 +17792,7 @@ namespace TL /// Import chat history from a foreign chat app into a specific Telegram chat, click here for more info about imported chats ». See [TLDef(0x34090C3B)] - public partial class Messages_InitHistoryImport_ : ITLMethod + public partial class Messages_InitHistoryImport_ : IMethod { /// The Telegram chat where the history should be imported. public InputPeer peer; @@ -17815,7 +17815,7 @@ namespace TL /// Upload a media file associated with an imported chat, click here for more info ». See [TLDef(0x2A862092)] - public partial class Messages_UploadImportedMedia_ : ITLMethod + public partial class Messages_UploadImportedMedia_ : IMethod { /// The Telegram chat where the media will be imported public InputPeer peer; @@ -17843,7 +17843,7 @@ namespace TL /// 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
[TLDef(0xB43DF344)] - public partial class Messages_StartHistoryImport_ : ITLMethod + public partial class Messages_StartHistoryImport_ : IMethod { /// The Telegram chat where the messages should be imported, click here for more info » public InputPeer peer; @@ -17862,7 +17862,7 @@ namespace TL /// Get info about the chat invites of a specific chat See [TLDef(0xA2B5A3F6)] - public partial class Messages_GetExportedChatInvites_ : ITLMethod + public partial class Messages_GetExportedChatInvites_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -17905,7 +17905,7 @@ namespace TL /// Get info about a chat invite See [TLDef(0x73746F5C)] - public partial class Messages_GetExportedChatInvite_ : ITLMethod + public partial class Messages_GetExportedChatInvite_ : IMethod { /// Chat public InputPeer peer; @@ -17924,7 +17924,7 @@ namespace TL /// Edit an exported chat invite See [TLDef(0xBDCA2F75)] - public partial class Messages_EditExportedChatInvite_ : ITLMethod + public partial class Messages_EditExportedChatInvite_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -17973,7 +17973,7 @@ namespace TL /// Delete all revoked chat invites See [TLDef(0x56987BD5)] - public partial class Messages_DeleteRevokedExportedChatInvites_ : ITLMethod + public partial class Messages_DeleteRevokedExportedChatInvites_ : IMethod { /// Chat public InputPeer peer; @@ -17992,7 +17992,7 @@ namespace TL /// Delete a chat invite See [TLDef(0xD464A42B)] - public partial class Messages_DeleteExportedChatInvite_ : ITLMethod + public partial class Messages_DeleteExportedChatInvite_ : IMethod { /// Peer public InputPeer peer; @@ -18011,7 +18011,7 @@ namespace TL /// Get info about chat invites generated by admins. See [TLDef(0x3920E6EF)] - public partial class Messages_GetAdminsWithInvites_ : ITLMethod + public partial class Messages_GetAdminsWithInvites_ : IMethod { /// Chat public InputPeer peer; @@ -18026,7 +18026,7 @@ namespace TL /// Get info about the users that joined the chat using a specific chat invite See [TLDef(0xDF04DD4E)] - public partial class Messages_GetChatInviteImporters_ : ITLMethod + public partial class Messages_GetChatInviteImporters_ : IMethod { public Flags flags; /// Chat @@ -18070,7 +18070,7 @@ namespace TL /// Set maximum Time-To-Live of all messages in the specified chat See [TLDef(0xB80E5FE4)] - public partial class Messages_SetHistoryTTL_ : ITLMethod + public partial class Messages_SetHistoryTTL_ : IMethod { /// The dialog public InputPeer peer; @@ -18089,7 +18089,7 @@ namespace TL /// Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info ». See [TLDef(0x5DC60F03)] - public partial class Messages_CheckHistoryImportPeer_ : ITLMethod + public partial class Messages_CheckHistoryImportPeer_ : IMethod { /// The chat where we want to import history ». public InputPeer peer; @@ -18104,7 +18104,7 @@ namespace TL /// Change the chat theme of a certain chat See [TLDef(0xE63BE13F)] - public partial class Messages_SetChatTheme_ : ITLMethod + public partial class Messages_SetChatTheme_ : IMethod { /// Private chat where to change theme public InputPeer peer; @@ -18123,7 +18123,7 @@ namespace TL /// 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 [TLDef(0x2C6F97B7)] - public partial class Messages_GetMessageReadParticipants_ : ITLMethod + public partial class Messages_GetMessageReadParticipants_ : IMethod { /// Dialog public InputPeer peer; @@ -18142,7 +18142,7 @@ namespace TL /// See [TLDef(0x49F0BDE9)] - public partial class Messages_GetSearchResultsCalendar_ : ITLMethod + public partial class Messages_GetSearchResultsCalendar_ : IMethod { public InputPeer peer; public MessagesFilter filter; @@ -18161,7 +18161,7 @@ namespace TL /// See [TLDef(0x6E9583A3)] - public partial class Messages_GetSearchResultsPositions_ : ITLMethod + public partial class Messages_GetSearchResultsPositions_ : IMethod { public InputPeer peer; public MessagesFilter filter; @@ -18180,7 +18180,7 @@ namespace TL /// See [TLDef(0x7FE7E815)] - public partial class Messages_HideChatJoinRequest_ : ITLMethod + public partial class Messages_HideChatJoinRequest_ : IMethod { public Flags flags; public InputPeer peer; @@ -18202,7 +18202,7 @@ namespace TL /// Returns a current state of updates. See [TLDef(0xEDD4882A)] - public partial class Updates_GetState_ : ITLMethod { } + 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_ @@ -18211,7 +18211,7 @@ namespace TL /// Get new updates. See [TLDef(0x25939651)] - public partial class Updates_GetDifference_ : ITLMethod + public partial class Updates_GetDifference_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -18247,7 +18247,7 @@ namespace TL /// Returns the difference between the current state of updates of a certain channel and transmitted. See [TLDef(0x03173D78)] - public partial class Updates_GetChannelDifference_ : ITLMethod + public partial class Updates_GetChannelDifference_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -18284,7 +18284,7 @@ namespace TL /// Installs a previously uploaded photo as a profile photo. See [TLDef(0x72D4742C)] - public partial class Photos_UpdateProfilePhoto_ : ITLMethod + public partial class Photos_UpdateProfilePhoto_ : IMethod { /// Input photo public InputPhoto id; @@ -18299,7 +18299,7 @@ namespace TL /// Updates current user profile photo. See [TLDef(0x89F30F69)] - public partial class Photos_UploadProfilePhoto_ : ITLMethod + public partial class Photos_UploadProfilePhoto_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -18335,7 +18335,7 @@ namespace TL /// Deletes profile photos. See [TLDef(0x87CF7F2F)] - public partial class Photos_DeletePhotos_ : ITLMethod + public partial class Photos_DeletePhotos_ : IMethod { /// Input photos to delete public InputPhoto[] id; @@ -18350,7 +18350,7 @@ namespace TL /// Returns the list of user photos. See [TLDef(0x91CD32A8)] - public partial class Photos_GetUserPhotos_ : ITLMethod + public partial class Photos_GetUserPhotos_ : IMethod { /// User ID public InputUserBase user_id; @@ -18377,7 +18377,7 @@ namespace TL /// Saves a part of file for futher sending to one of the methods. See [TLDef(0xB304A621)] - public partial class Upload_SaveFilePart_ : ITLMethod + public partial class Upload_SaveFilePart_ : IMethod { /// Random file identifier created by the client public long file_id; @@ -18400,7 +18400,7 @@ namespace TL /// Returns content of a whole file or its part. See [TLDef(0xB15A9AFC)] - public partial class Upload_GetFile_ : ITLMethod + public partial class Upload_GetFile_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -18436,7 +18436,7 @@ namespace TL /// Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods. See [TLDef(0xDE7B673D)] - public partial class Upload_SaveBigFilePart_ : ITLMethod + public partial class Upload_SaveBigFilePart_ : IMethod { /// Random file id, created by the client public long file_id; @@ -18463,7 +18463,7 @@ namespace TL /// See [TLDef(0x24E6818D)] - public partial class Upload_GetWebFile_ : ITLMethod + public partial class Upload_GetWebFile_ : IMethod { /// The file to download public InputWebFileLocationBase location; @@ -18486,7 +18486,7 @@ namespace TL /// Download a CDN file. See [TLDef(0x2000BCC3)] - public partial class Upload_GetCdnFile_ : ITLMethod + public partial class Upload_GetCdnFile_ : IMethod { /// File token public byte[] file_token; @@ -18509,7 +18509,7 @@ namespace TL /// Request a reupload of a certain file to a CDN DC. See [TLDef(0x9B2754A8)] - public partial class Upload_ReuploadCdnFile_ : ITLMethod + public partial class Upload_ReuploadCdnFile_ : IMethod { /// File token public byte[] file_token; @@ -18528,7 +18528,7 @@ namespace TL /// Get SHA256 hashes for verifying downloaded CDN files See [TLDef(0x4DA54231)] - public partial class Upload_GetCdnFileHashes_ : ITLMethod + public partial class Upload_GetCdnFileHashes_ : IMethod { /// File public byte[] file_token; @@ -18547,7 +18547,7 @@ namespace TL /// Get SHA256 hashes for verifying downloaded files See [TLDef(0xC7025931)] - public partial class Upload_GetFileHashes_ : ITLMethod + public partial class Upload_GetFileHashes_ : IMethod { /// File public InputFileLocationBase location; @@ -18566,7 +18566,7 @@ namespace TL /// Returns current configuration, including data center configuration. See [TLDef(0xC4F9186B)] - public partial class Help_GetConfig_ : ITLMethod { } + 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_ @@ -18575,7 +18575,7 @@ namespace TL /// Returns info on data centre nearest to the user. See [TLDef(0x1FB33026)] - public partial class Help_GetNearestDc_ : ITLMethod { } + 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_ @@ -18584,7 +18584,7 @@ namespace TL /// Returns information on update availability for the current application. See [TLDef(0x522D5A7D)] - public partial class Help_GetAppUpdate_ : ITLMethod + public partial class Help_GetAppUpdate_ : IMethod { /// Source public string source; @@ -18600,7 +18600,7 @@ namespace TL /// Returns localized text of a text message with an invitation. See [TLDef(0x4D392343)] - public partial class Help_GetInviteText_ : ITLMethod { } + 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_ @@ -18609,7 +18609,7 @@ namespace TL /// Returns the support user for the 'ask a question' feature. See [TLDef(0x9CDF08CD)] - public partial class Help_GetSupport_ : ITLMethod { } + 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_ @@ -18618,7 +18618,7 @@ namespace TL /// Get changelog of current app.
Typically, an constructor will be returned, containing one or more updates with app-specific changelogs. See
[TLDef(0x9010EF6F)] - public partial class Help_GetAppChangelog_ : ITLMethod + public partial class Help_GetAppChangelog_ : IMethod { /// Previous app version public string prev_app_version; @@ -18633,7 +18633,7 @@ namespace TL /// Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only See [TLDef(0xEC22CFCD)] - public partial class Help_SetBotUpdatesStatus_ : ITLMethod + public partial class Help_SetBotUpdatesStatus_ : IMethod { /// Number of pending updates public int pending_updates_count; @@ -18652,7 +18652,7 @@ namespace TL /// Get configuration for CDN file downloads. See [TLDef(0x52029342)] - public partial class Help_GetCdnConfig_ : ITLMethod { } + 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_ @@ -18661,7 +18661,7 @@ namespace TL /// Get recently used t.me links See [TLDef(0x3DC0F114)] - public partial class Help_GetRecentMeUrls_ : ITLMethod + public partial class Help_GetRecentMeUrls_ : IMethod { /// Referer public string referer; @@ -18676,7 +18676,7 @@ namespace TL /// Look for updates of telegram's terms of service See [TLDef(0x2CA51FD1)] - public partial class Help_GetTermsOfServiceUpdate_ : ITLMethod { } + 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_ @@ -18685,7 +18685,7 @@ namespace TL /// Accept the new terms of service See [TLDef(0xEE72F79A)] - public partial class Help_AcceptTermsOfService_ : ITLMethod + public partial class Help_AcceptTermsOfService_ : IMethod { /// ID of terms of service public DataJSON id; @@ -18700,7 +18700,7 @@ namespace TL /// Get info about a t.me link See [TLDef(0x3FEDC75F)] - public partial class Help_GetDeepLinkInfo_ : ITLMethod + public partial class Help_GetDeepLinkInfo_ : IMethod { /// Path in t.me/path public string path; @@ -18716,7 +18716,7 @@ namespace TL /// Get app-specific configuration, see client configuration for more info on the result. See [TLDef(0x98914110)] - public partial class Help_GetAppConfig_ : ITLMethod { } + 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_ @@ -18725,7 +18725,7 @@ namespace TL /// Saves logs of application on the server. See [TLDef(0x6F02F748)] - public partial class Help_SaveAppLog_ : ITLMethod + public partial class Help_SaveAppLog_ : IMethod { /// List of input events public InputAppEvent[] events; @@ -18740,7 +18740,7 @@ namespace TL /// Get passport configuration See [TLDef(0xC661AD08)] - public partial class Help_GetPassportConfig_ : ITLMethod + public partial class Help_GetPassportConfig_ : IMethod { /// Hash for pagination, for more info click here public int hash; @@ -18756,7 +18756,7 @@ namespace TL /// Get localized name of the telegram support user See [TLDef(0xD360E72C)] - public partial class Help_GetSupportName_ : ITLMethod { } + 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_ @@ -18765,7 +18765,7 @@ namespace TL /// Internal use See [TLDef(0x038A08D3)] - public partial class Help_GetUserInfo_ : ITLMethod + public partial class Help_GetUserInfo_ : IMethod { /// User ID public InputUserBase user_id; @@ -18781,7 +18781,7 @@ namespace TL /// Internal use See [TLDef(0x66B91B70)] - public partial class Help_EditUserInfo_ : ITLMethod + public partial class Help_EditUserInfo_ : IMethod { /// User public InputUserBase user_id; @@ -18805,7 +18805,7 @@ namespace TL /// Get MTProxy/Public Service Announcement information See [TLDef(0xC0977421)] - public partial class Help_GetPromoData_ : ITLMethod { } + 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_ @@ -18814,7 +18814,7 @@ namespace TL /// Hide MTProxy/Public Service Announcement information See [TLDef(0x1E251C95)] - public partial class Help_HidePromoData_ : ITLMethod + public partial class Help_HidePromoData_ : IMethod { /// Peer to hide public InputPeer peer; @@ -18829,7 +18829,7 @@ namespace TL /// Dismiss a suggestion, see here for more info ». See [TLDef(0xF50DBAA1)] - public partial class Help_DismissSuggestion_ : ITLMethod + public partial class Help_DismissSuggestion_ : IMethod { /// In the case of pending suggestions in , the channel ID. public InputPeer peer; @@ -18848,7 +18848,7 @@ namespace TL /// Get name, ISO code, localized name and phone codes/patterns of all available countries See [TLDef(0x735787A8)] - public partial class Help_GetCountriesList_ : ITLMethod + public partial class Help_GetCountriesList_ : IMethod { /// Language code of the current user public string lang_code; @@ -18868,7 +18868,7 @@ namespace TL /// Mark channel/supergroup history as read See [TLDef(0xCC104937)] - public partial class Channels_ReadHistory_ : ITLMethod + public partial class Channels_ReadHistory_ : IMethod { /// Channel/supergroup public InputChannelBase channel; @@ -18887,7 +18887,7 @@ namespace TL /// Delete messages in a channel/supergroup See [TLDef(0x84C1FD4E)] - public partial class Channels_DeleteMessages_ : ITLMethod + public partial class Channels_DeleteMessages_ : IMethod { /// Channel/supergroup public InputChannelBase channel; @@ -18906,7 +18906,7 @@ namespace TL /// Delete all messages sent by a certain user in a supergroup See [TLDef(0xD10DD71B)] - public partial class Channels_DeleteUserHistory_ : ITLMethod + public partial class Channels_DeleteUserHistory_ : IMethod { /// Supergroup public InputChannelBase channel; @@ -18925,7 +18925,7 @@ namespace TL /// Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup See [TLDef(0xFE087810)] - public partial class Channels_ReportSpam_ : ITLMethod + public partial class Channels_ReportSpam_ : IMethod { /// Supergroup public InputChannelBase channel; @@ -18948,7 +18948,7 @@ namespace TL /// Get channel/supergroup messages See [TLDef(0xAD8C9A23)] - public partial class Channels_GetMessages_ : ITLMethod + public partial class Channels_GetMessages_ : IMethod { /// Channel/supergroup public InputChannelBase channel; @@ -18967,7 +18967,7 @@ namespace TL /// Get the participants of a supergroup/channel See [TLDef(0x77CED9D0)] - public partial class Channels_GetParticipants_ : ITLMethod + public partial class Channels_GetParticipants_ : IMethod { /// Channel public InputChannelBase channel; @@ -18999,7 +18999,7 @@ namespace TL /// Get info about a channel/supergroup participant See [TLDef(0xA0AB6CC6)] - public partial class Channels_GetParticipant_ : ITLMethod + public partial class Channels_GetParticipant_ : IMethod { /// Channel/supergroup public InputChannelBase channel; @@ -19018,7 +19018,7 @@ namespace TL /// Get info about channels/supergroups See [TLDef(0x0A7F6BBB)] - public partial class Channels_GetChannels_ : ITLMethod + public partial class Channels_GetChannels_ : IMethod { /// IDs of channels/supergroups to get info about public InputChannelBase[] id; @@ -19033,7 +19033,7 @@ namespace TL /// Get full info about a channel See [TLDef(0x08736A09)] - public partial class Channels_GetFullChannel_ : ITLMethod + public partial class Channels_GetFullChannel_ : IMethod { /// The channel to get info about public InputChannelBase channel; @@ -19048,7 +19048,7 @@ namespace TL /// Create a supergroup/channel. See [TLDef(0x3D5FB10F)] - public partial class Channels_CreateChannel_ : ITLMethod + public partial class Channels_CreateChannel_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -19093,7 +19093,7 @@ namespace TL /// Modify the admin rights of a user in a supergroup/channel. See [TLDef(0xD33C8902)] - public partial class Channels_EditAdmin_ : ITLMethod + public partial class Channels_EditAdmin_ : IMethod { /// The supergroup/channel. public InputChannelBase channel; @@ -19120,7 +19120,7 @@ namespace TL /// Edit the name of a channel/supergroup See [TLDef(0x566DECD0)] - public partial class Channels_EditTitle_ : ITLMethod + public partial class Channels_EditTitle_ : IMethod { /// Channel/supergroup public InputChannelBase channel; @@ -19139,7 +19139,7 @@ namespace TL /// Change the photo of a channel/supergroup See [TLDef(0xF12E57C9)] - public partial class Channels_EditPhoto_ : ITLMethod + public partial class Channels_EditPhoto_ : IMethod { /// Channel/supergroup whose photo should be edited public InputChannelBase channel; @@ -19158,7 +19158,7 @@ namespace TL /// Check if a username is free and can be assigned to a channel/supergroup See [TLDef(0x10E6BD2C)] - public partial class Channels_CheckUsername_ : ITLMethod + public partial class Channels_CheckUsername_ : IMethod { /// The channel/supergroup that will assigned the specified username public InputChannelBase channel; @@ -19177,7 +19177,7 @@ namespace TL /// Change the username of a supergroup/channel See [TLDef(0x3514B3DE)] - public partial class Channels_UpdateUsername_ : ITLMethod + public partial class Channels_UpdateUsername_ : IMethod { /// Channel public InputChannelBase channel; @@ -19196,7 +19196,7 @@ namespace TL /// Join a channel/supergroup See [TLDef(0x24B524C5)] - public partial class Channels_JoinChannel_ : ITLMethod + public partial class Channels_JoinChannel_ : IMethod { /// Channel/supergroup to join public InputChannelBase channel; @@ -19211,7 +19211,7 @@ namespace TL /// Leave a channel/supergroup See [TLDef(0xF836AA95)] - public partial class Channels_LeaveChannel_ : ITLMethod + public partial class Channels_LeaveChannel_ : IMethod { /// Channel/supergroup to leave public InputChannelBase channel; @@ -19226,7 +19226,7 @@ namespace TL /// Invite users to a channel/supergroup See [TLDef(0x199F3A6C)] - public partial class Channels_InviteToChannel_ : ITLMethod + public partial class Channels_InviteToChannel_ : IMethod { /// Channel/supergroup public InputChannelBase channel; @@ -19245,7 +19245,7 @@ namespace TL /// Delete a channel/supergroup See [TLDef(0xC0111FE3)] - public partial class Channels_DeleteChannel_ : ITLMethod + public partial class Channels_DeleteChannel_ : IMethod { /// Channel/supergroup to delete public InputChannelBase channel; @@ -19260,7 +19260,7 @@ namespace TL /// Get link and embed info of a message in a channel/supergroup See [TLDef(0xE63FADEB)] - public partial class Channels_ExportMessageLink_ : ITLMethod + public partial class Channels_ExportMessageLink_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -19292,7 +19292,7 @@ namespace TL /// Enable/disable message signatures in channels See [TLDef(0x1F69B606)] - public partial class Channels_ToggleSignatures_ : ITLMethod + public partial class Channels_ToggleSignatures_ : IMethod { /// Channel public InputChannelBase channel; @@ -19311,7 +19311,7 @@ namespace TL /// 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 [TLDef(0xF8B036AF)] - public partial class Channels_GetAdminedPublicChannels_ : ITLMethod + public partial class Channels_GetAdminedPublicChannels_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -19335,7 +19335,7 @@ namespace TL /// Ban/unban/kick a user in a supergroup/channel. See [TLDef(0x96E6CD81)] - public partial class Channels_EditBanned_ : ITLMethod + public partial class Channels_EditBanned_ : IMethod { /// The supergroup/channel. public InputChannelBase channel; @@ -19358,7 +19358,7 @@ namespace TL /// Get the admin log of a channel/supergroup See [TLDef(0x33DDF480)] - public partial class Channels_GetAdminLog_ : ITLMethod + public partial class Channels_GetAdminLog_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -19408,7 +19408,7 @@ namespace TL /// Associate a stickerset to the supergroup See [TLDef(0xEA8CA4F9)] - public partial class Channels_SetStickers_ : ITLMethod + public partial class Channels_SetStickers_ : IMethod { /// Supergroup public InputChannelBase channel; @@ -19427,7 +19427,7 @@ namespace TL /// Mark channel/supergroup message contents as read See [TLDef(0xEAB5DC38)] - public partial class Channels_ReadMessageContents_ : ITLMethod + public partial class Channels_ReadMessageContents_ : IMethod { /// Channel/supergroup public InputChannelBase channel; @@ -19446,7 +19446,7 @@ namespace TL /// Delete the history of a supergroup See [TLDef(0xAF369D42)] - public partial class Channels_DeleteHistory_ : ITLMethod + public partial class Channels_DeleteHistory_ : IMethod { /// Supergroup whose history must be deleted public InputChannelBase channel; @@ -19465,7 +19465,7 @@ namespace TL /// Hide/unhide message history for new channel/supergroup users See [TLDef(0xEABBB94C)] - public partial class Channels_TogglePreHistoryHidden_ : ITLMethod + public partial class Channels_TogglePreHistoryHidden_ : IMethod { /// Channel/supergroup public InputChannelBase channel; @@ -19484,7 +19484,7 @@ namespace TL /// Get a list of channels/supergroups we left See [TLDef(0x8341ECC0)] - public partial class Channels_GetLeftChannels_ : ITLMethod + public partial class Channels_GetLeftChannels_ : IMethod { /// Offset for pagination public int offset; @@ -19499,7 +19499,7 @@ namespace TL /// Get all groups that can be used as discussion groups. See [TLDef(0xF5DAD378)] - public partial class Channels_GetGroupsForDiscussion_ : ITLMethod { } + 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_ @@ -19508,7 +19508,7 @@ namespace TL /// Associate a group to a channel as discussion group for that channel See [TLDef(0x40582BB2)] - public partial class Channels_SetDiscussionGroup_ : ITLMethod + public partial class Channels_SetDiscussionGroup_ : IMethod { /// Channel public InputChannelBase broadcast; @@ -19527,7 +19527,7 @@ namespace TL /// Transfer channel ownership See [TLDef(0x8F38CD1F)] - public partial class Channels_EditCreator_ : ITLMethod + public partial class Channels_EditCreator_ : IMethod { /// Channel public InputChannelBase channel; @@ -19550,7 +19550,7 @@ namespace TL /// Edit location of geogroup See [TLDef(0x58E63F6D)] - public partial class Channels_EditLocation_ : ITLMethod + public partial class Channels_EditLocation_ : IMethod { /// Geogroup public InputChannelBase channel; @@ -19573,7 +19573,7 @@ namespace TL /// Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds See [TLDef(0xEDD49EF0)] - public partial class Channels_ToggleSlowMode_ : ITLMethod + public partial class Channels_ToggleSlowMode_ : IMethod { /// The supergroup public InputChannelBase channel; @@ -19592,7 +19592,7 @@ namespace TL /// Get inactive channels and supergroups See [TLDef(0x11E831EE)] - public partial class Channels_GetInactiveChannels_ : ITLMethod { } + 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_ @@ -19601,7 +19601,7 @@ namespace TL /// See [TLDef(0x0B290C69)] - public partial class Channels_ConvertToGigagroup_ : ITLMethod + public partial class Channels_ConvertToGigagroup_ : IMethod { public InputChannelBase channel; } @@ -19614,7 +19614,7 @@ namespace TL /// Mark a specific sponsored message as read See [TLDef(0xBEAEDB94)] - public partial class Channels_ViewSponsoredMessage_ : ITLMethod + public partial class Channels_ViewSponsoredMessage_ : IMethod { /// Peer public InputChannelBase channel; @@ -19633,7 +19633,7 @@ namespace TL /// Get a list of sponsored messages See [TLDef(0xEC210FBF)] - public partial class Channels_GetSponsoredMessages_ : ITLMethod + public partial class Channels_GetSponsoredMessages_ : IMethod { /// Peer public InputChannelBase channel; @@ -19648,7 +19648,7 @@ namespace TL /// Sends a custom request; for bots only See [TLDef(0xAA2769ED)] - public partial class Bots_SendCustomRequest_ : ITLMethod + public partial class Bots_SendCustomRequest_ : IMethod { /// The method name public string custom_method; @@ -19667,7 +19667,7 @@ namespace TL /// Answers a custom query; for bots only See [TLDef(0xE6213F4D)] - public partial class Bots_AnswerWebhookJSONQuery_ : ITLMethod + public partial class Bots_AnswerWebhookJSONQuery_ : IMethod { /// Identifier of a custom query public long query_id; @@ -19686,7 +19686,7 @@ namespace TL /// Set bot command list See [TLDef(0x0517165A)] - public partial class Bots_SetBotCommands_ : ITLMethod + public partial class Bots_SetBotCommands_ : IMethod { /// Command scope public BotCommandScope scope; @@ -19709,7 +19709,7 @@ namespace TL /// Clear bot commands for the specified bot scope and language code See [TLDef(0x3D8DE0F9)] - public partial class Bots_ResetBotCommands_ : ITLMethod + public partial class Bots_ResetBotCommands_ : IMethod { /// Command scope public BotCommandScope scope; @@ -19728,7 +19728,7 @@ namespace TL /// Obtain a list of bot commands for the specified bot scope and language code See [TLDef(0xE34C0DD6)] - public partial class Bots_GetBotCommands_ : ITLMethod + public partial class Bots_GetBotCommands_ : IMethod { /// Command scope public BotCommandScope scope; @@ -19747,7 +19747,7 @@ namespace TL /// Get a payment form See [TLDef(0x8A333C8D)] - public partial class Payments_GetPaymentForm_ : ITLMethod + public partial class Payments_GetPaymentForm_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -19779,7 +19779,7 @@ namespace TL /// Get payment receipt See [TLDef(0x2478D1CC)] - public partial class Payments_GetPaymentReceipt_ : ITLMethod + public partial class Payments_GetPaymentReceipt_ : IMethod { /// The peer where the payment receipt was sent public InputPeer peer; @@ -19798,7 +19798,7 @@ namespace TL /// Submit requested order information for validation See [TLDef(0xDB103170)] - public partial class Payments_ValidateRequestedInfo_ : ITLMethod + public partial class Payments_ValidateRequestedInfo_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -19831,7 +19831,7 @@ namespace TL /// Send compiled payment form See [TLDef(0x30C3BC9D)] - public partial class Payments_SendPaymentForm_ : ITLMethod + public partial class Payments_SendPaymentForm_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -19883,7 +19883,7 @@ namespace TL /// Get saved payment information See [TLDef(0x227D824B)] - public partial class Payments_GetSavedInfo_ : ITLMethod { } + public partial class Payments_GetSavedInfo_ : IMethod { } /// Get saved payment information See public static Task Payments_GetSavedInfo(this Client client) => client.CallAsync(new Payments_GetSavedInfo_ @@ -19892,7 +19892,7 @@ namespace TL /// Clear saved payment information See [TLDef(0xD83D70C1)] - public partial class Payments_ClearSavedInfo_ : ITLMethod + public partial class Payments_ClearSavedInfo_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -19916,7 +19916,7 @@ namespace TL /// Get info about a credit card See [TLDef(0x2E79D779)] - public partial class Payments_GetBankCardData_ : ITLMethod + public partial class Payments_GetBankCardData_ : IMethod { /// Credit card number public string number; @@ -19931,7 +19931,7 @@ namespace TL /// Create a stickerset, bots only. See [TLDef(0x9021AB67)] - public partial class Stickers_CreateStickerSet_ : ITLMethod + public partial class Stickers_CreateStickerSet_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -19983,7 +19983,7 @@ namespace TL /// Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot. See [TLDef(0xF7760F51)] - public partial class Stickers_RemoveStickerFromSet_ : ITLMethod + public partial class Stickers_RemoveStickerFromSet_ : IMethod { /// The sticker to remove public InputDocument sticker; @@ -19998,7 +19998,7 @@ namespace TL /// 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 [TLDef(0xFFB6D4CA)] - public partial class Stickers_ChangeStickerPosition_ : ITLMethod + public partial class Stickers_ChangeStickerPosition_ : IMethod { /// The sticker public InputDocument sticker; @@ -20017,7 +20017,7 @@ namespace TL /// Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot. See [TLDef(0x8653FEBE)] - public partial class Stickers_AddStickerToSet_ : ITLMethod + public partial class Stickers_AddStickerToSet_ : IMethod { /// The stickerset public InputStickerSet stickerset; @@ -20036,7 +20036,7 @@ namespace TL /// Set stickerset thumbnail See [TLDef(0x9A364E30)] - public partial class Stickers_SetStickerSetThumb_ : ITLMethod + public partial class Stickers_SetStickerSetThumb_ : IMethod { /// Stickerset public InputStickerSet stickerset; @@ -20055,7 +20055,7 @@ namespace TL /// Check whether the given short name is available See [TLDef(0x284B3639)] - public partial class Stickers_CheckShortName_ : ITLMethod + public partial class Stickers_CheckShortName_ : IMethod { /// Short name public string short_name; @@ -20070,7 +20070,7 @@ namespace TL /// Suggests a short name for a given stickerpack name See [TLDef(0x4DAFC503)] - public partial class Stickers_SuggestShortName_ : ITLMethod + public partial class Stickers_SuggestShortName_ : IMethod { /// Sticker pack name public string title; @@ -20085,7 +20085,7 @@ namespace TL /// Get phone call configuration to be passed to libtgvoip's shared config See [TLDef(0x55451FA9)] - public partial class Phone_GetCallConfig_ : ITLMethod { } + 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_ @@ -20094,7 +20094,7 @@ namespace TL /// Start a telegram phone call See [TLDef(0x42FF96ED)] - public partial class Phone_RequestCall_ : ITLMethod + public partial class Phone_RequestCall_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -20131,7 +20131,7 @@ namespace TL /// Accept incoming call See [TLDef(0x3BD2B4A0)] - public partial class Phone_AcceptCall_ : ITLMethod + public partial class Phone_AcceptCall_ : IMethod { /// The call to accept public InputPhoneCall peer; @@ -20154,7 +20154,7 @@ namespace TL /// Complete phone call E2E encryption key exchange » See [TLDef(0x2EFE1722)] - public partial class Phone_ConfirmCall_ : ITLMethod + public partial class Phone_ConfirmCall_ : IMethod { /// The phone call public InputPhoneCall peer; @@ -20181,7 +20181,7 @@ namespace TL /// 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 [TLDef(0x17D54F61)] - public partial class Phone_ReceivedCall_ : ITLMethod + public partial class Phone_ReceivedCall_ : IMethod { /// The phone call we're currently in public InputPhoneCall peer; @@ -20196,7 +20196,7 @@ namespace TL /// Refuse or end running call See [TLDef(0xB2CBC1C0)] - public partial class Phone_DiscardCall_ : ITLMethod + public partial class Phone_DiscardCall_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -20233,7 +20233,7 @@ namespace TL /// Rate a call See [TLDef(0x59EAD627)] - public partial class Phone_SetCallRating_ : ITLMethod + public partial class Phone_SetCallRating_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -20266,7 +20266,7 @@ namespace TL /// Send phone call debug data to server See [TLDef(0x277ADD7E)] - public partial class Phone_SaveCallDebug_ : ITLMethod + public partial class Phone_SaveCallDebug_ : IMethod { /// Phone call public InputPhoneCall peer; @@ -20285,7 +20285,7 @@ namespace TL /// Send VoIP signaling data See [TLDef(0xFF7A9383)] - public partial class Phone_SendSignalingData_ : ITLMethod + public partial class Phone_SendSignalingData_ : IMethod { /// Phone call public InputPhoneCall peer; @@ -20304,7 +20304,7 @@ namespace TL /// Create a group call or livestream See [TLDef(0x48CDC6D8)] - public partial class Phone_CreateGroupCall_ : ITLMethod + public partial class Phone_CreateGroupCall_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -20342,7 +20342,7 @@ namespace TL /// Join a group call See [TLDef(0xB132FF7B)] - public partial class Phone_JoinGroupCall_ : ITLMethod + public partial class Phone_JoinGroupCall_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -20384,7 +20384,7 @@ namespace TL /// Leave a group call See [TLDef(0x500377F9)] - public partial class Phone_LeaveGroupCall_ : ITLMethod + public partial class Phone_LeaveGroupCall_ : IMethod { /// The group call public InputGroupCall call; @@ -20403,7 +20403,7 @@ namespace TL /// Invite a set of users to a group call. See [TLDef(0x7B393160)] - public partial class Phone_InviteToGroupCall_ : ITLMethod + public partial class Phone_InviteToGroupCall_ : IMethod { /// The group call public InputGroupCall call; @@ -20422,7 +20422,7 @@ namespace TL /// Terminate a group call See [TLDef(0x7A777135)] - public partial class Phone_DiscardGroupCall_ : ITLMethod + public partial class Phone_DiscardGroupCall_ : IMethod { /// The group call to terminate public InputGroupCall call; @@ -20437,7 +20437,7 @@ namespace TL /// Change group call settings See [TLDef(0x74BBB43D)] - public partial class Phone_ToggleGroupCallSettings_ : ITLMethod + public partial class Phone_ToggleGroupCallSettings_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -20468,7 +20468,7 @@ namespace TL /// Get info about a group call See [TLDef(0x041845DB)] - public partial class Phone_GetGroupCall_ : ITLMethod + public partial class Phone_GetGroupCall_ : IMethod { /// The group call public InputGroupCall call; @@ -20487,7 +20487,7 @@ namespace TL /// Get group call participants See [TLDef(0xC558D8AB)] - public partial class Phone_GetGroupParticipants_ : ITLMethod + public partial class Phone_GetGroupParticipants_ : IMethod { /// Group call public InputGroupCall call; @@ -20518,7 +20518,7 @@ namespace TL /// Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs See [TLDef(0xB59CF977)] - public partial class Phone_CheckGroupCall_ : ITLMethod + public partial class Phone_CheckGroupCall_ : IMethod { /// Group call public InputGroupCall call; @@ -20537,7 +20537,7 @@ namespace TL /// 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 [TLDef(0xF128C708)] - public partial class Phone_ToggleGroupCallRecord_ : ITLMethod + public partial class Phone_ToggleGroupCallRecord_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -20575,7 +20575,7 @@ namespace TL /// Edit information about a given group call participant See [TLDef(0xA5273ABF)] - public partial class Phone_EditGroupCallParticipant_ : ITLMethod + public partial class Phone_EditGroupCallParticipant_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -20637,7 +20637,7 @@ namespace TL /// Edit the title of a group call or livestream See [TLDef(0x1CA6AC0A)] - public partial class Phone_EditGroupCallTitle_ : ITLMethod + public partial class Phone_EditGroupCallTitle_ : IMethod { /// Group call public InputGroupCall call; @@ -20656,7 +20656,7 @@ namespace TL /// Get a list of peers that can be used to join a group call, presenting yourself as a specific user/channel. See [TLDef(0xEF7C213A)] - public partial class Phone_GetGroupCallJoinAs_ : ITLMethod + public partial class Phone_GetGroupCallJoinAs_ : IMethod { /// The dialog whose group call or livestream we're trying to join public InputPeer peer; @@ -20671,7 +20671,7 @@ namespace TL /// Get an invite link for a group call or livestream See [TLDef(0xE6AA647F)] - public partial class Phone_ExportGroupCallInvite_ : ITLMethod + public partial class Phone_ExportGroupCallInvite_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -20696,7 +20696,7 @@ namespace TL /// Subscribe or unsubscribe to a scheduled group call See [TLDef(0x219C34E6)] - public partial class Phone_ToggleGroupCallStartSubscription_ : ITLMethod + public partial class Phone_ToggleGroupCallStartSubscription_ : IMethod { /// Scheduled group call public InputGroupCall call; @@ -20715,7 +20715,7 @@ namespace TL /// Start a scheduled group call. See [TLDef(0x5680E342)] - public partial class Phone_StartScheduledGroupCall_ : ITLMethod + public partial class Phone_StartScheduledGroupCall_ : IMethod { /// The scheduled group call public InputGroupCall call; @@ -20730,7 +20730,7 @@ namespace TL /// Set the default peer that will be used to join a group call in a specific dialog. See [TLDef(0x575E1F8C)] - public partial class Phone_SaveDefaultGroupCallJoinAs_ : ITLMethod + public partial class Phone_SaveDefaultGroupCallJoinAs_ : IMethod { /// The dialog public InputPeer peer; @@ -20749,7 +20749,7 @@ namespace TL /// Start screen sharing in a call See [TLDef(0xCBEA6BC4)] - public partial class Phone_JoinGroupCallPresentation_ : ITLMethod + public partial class Phone_JoinGroupCallPresentation_ : IMethod { /// The group call public InputGroupCall call; @@ -20768,7 +20768,7 @@ namespace TL /// Stop screen sharing in a group call See [TLDef(0x1C50D144)] - public partial class Phone_LeaveGroupCallPresentation_ : ITLMethod + public partial class Phone_LeaveGroupCallPresentation_ : IMethod { /// The group call public InputGroupCall call; @@ -20783,7 +20783,7 @@ namespace TL /// Get localization pack strings See [TLDef(0xF2F2330A)] - public partial class Langpack_GetLangPack_ : ITLMethod + public partial class Langpack_GetLangPack_ : IMethod { /// Language pack name public string lang_pack; @@ -20802,7 +20802,7 @@ namespace TL /// Get strings from a language pack See [TLDef(0xEFEA3803)] - public partial class Langpack_GetStrings_ : ITLMethod + public partial class Langpack_GetStrings_ : IMethod { /// Language pack name public string lang_pack; @@ -20825,7 +20825,7 @@ namespace TL /// Get new strings in languagepack See [TLDef(0xCD984AA5)] - public partial class Langpack_GetDifference_ : ITLMethod + public partial class Langpack_GetDifference_ : IMethod { /// Language pack public string lang_pack; @@ -20848,7 +20848,7 @@ namespace TL /// Get information about all languages in a localization pack See [TLDef(0x42C6978F)] - public partial class Langpack_GetLanguages_ : ITLMethod + public partial class Langpack_GetLanguages_ : IMethod { /// Language pack public string lang_pack; @@ -20863,7 +20863,7 @@ namespace TL /// Get information about a language in a localization pack See [TLDef(0x6A596502)] - public partial class Langpack_GetLanguage_ : ITLMethod + public partial class Langpack_GetLanguage_ : IMethod { /// Language pack name public string lang_pack; @@ -20882,7 +20882,7 @@ namespace TL /// Edit peers in peer folder See [TLDef(0x6847D0AB)] - public partial class Folders_EditPeerFolders_ : ITLMethod + public partial class Folders_EditPeerFolders_ : IMethod { /// New peer list public InputFolderPeer[] folder_peers; @@ -20897,7 +20897,7 @@ namespace TL /// Delete a peer folder See [TLDef(0x1C295881)] - public partial class Folders_DeleteFolder_ : ITLMethod + public partial class Folders_DeleteFolder_ : IMethod { /// Peer folder ID, for more info click here public int folder_id; @@ -20912,7 +20912,7 @@ namespace TL /// Get channel statistics See [TLDef(0xAB42441A)] - public partial class Stats_GetBroadcastStats_ : ITLMethod + public partial class Stats_GetBroadcastStats_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -20937,7 +20937,7 @@ namespace TL /// Load channel statistics graph asynchronously See [TLDef(0x621D5FA0)] - public partial class Stats_LoadAsyncGraph_ : ITLMethod + public partial class Stats_LoadAsyncGraph_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -20965,7 +20965,7 @@ namespace TL /// Get supergroup statistics See [TLDef(0xDCDF8607)] - public partial class Stats_GetMegagroupStats_ : ITLMethod + public partial class Stats_GetMegagroupStats_ : IMethod { /// Flags, see TL conditional fields public Flags flags; @@ -20990,7 +20990,7 @@ namespace TL /// 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
[TLDef(0x5630281B)] - public partial class Stats_GetMessagePublicForwards_ : ITLMethod + public partial class Stats_GetMessagePublicForwards_ : IMethod { /// Source channel public InputChannelBase channel; @@ -21025,7 +21025,7 @@ namespace TL /// Get message statistics See [TLDef(0xB6E0A3F5)] - public partial class Stats_GetMessageStats_ : ITLMethod + public partial class Stats_GetMessageStats_ : IMethod { /// Flags, see TL conditional fields public Flags flags; diff --git a/src/TL.Secret.cs b/src/TL.Secret.cs index 370b70f..41db528 100644 --- a/src/TL.Secret.cs +++ b/src/TL.Secret.cs @@ -8,7 +8,7 @@ namespace TL using Client = WTelegram.Client; /// Object describes the contents of an encrypted message. See - public abstract partial class DecryptedMessageBase : ITLObject + public abstract partial 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 +16,13 @@ namespace TL ///
Object describes media contents of an encrypted message. See /// a null value means decryptedMessageMediaEmpty - public abstract partial class DecryptedMessageMedia : ITLObject { } + public abstract partial class DecryptedMessageMedia : IObject { } /// Object describes the action to which a service message is linked. See - public abstract partial class DecryptedMessageAction : ITLObject { } + public abstract partial class DecryptedMessageAction : IObject { } /// Indicates the location of a photo, will be deprecated soon See - public abstract partial class FileLocationBase : ITLObject + public abstract partial class FileLocationBase : IObject { /// Server volume public abstract long VolumeId { get; } @@ -307,7 +307,7 @@ namespace TL /// Sets the layer number for the contents of an encrypted message. See [TLDef(0x1BE31789)] - public partial class DecryptedMessageLayer : ITLObject + public partial class DecryptedMessageLayer : IObject { /// Set of random bytes to prevent content recognition in short encrypted messages.
Clients are required to check that there are at least 15 random bytes included in each message. Messages with less than 15 random bytes must be ignored.
Parameter moved here from in
Layer 17.
public byte[] random_bytes; diff --git a/src/TL.cs b/src/TL.cs index b8086c6..afc4bfc 100644 --- a/src/TL.cs +++ b/src/TL.cs @@ -9,12 +9,12 @@ using System.Text; namespace TL { - public interface ITLObject { } - public interface ITLMethod : ITLObject { } + public interface IObject { } + public interface IMethod : IObject { } public static class Serialization { - internal static byte[] Serialize(this ITLObject msg) + internal static byte[] Serialize(this IObject msg) { using var memStream = new MemoryStream(1024); using (var writer = new BinaryWriter(memStream)) @@ -22,14 +22,14 @@ namespace TL return memStream.ToArray(); } - internal static T Deserialize(byte[] bytes) where T : ITLObject + internal static T Deserialize(byte[] bytes) where T : IObject { using var memStream = new MemoryStream(bytes); using var reader = new BinaryReader(memStream, null); return (T)reader.ReadTLObject(); } - internal static void WriteTLObject(this BinaryWriter writer, T obj) where T : ITLObject + internal static void WriteTLObject(this BinaryWriter writer, T obj) where T : IObject { if (obj == null) { writer.WriteTLNull(typeof(T)); return; } var type = obj.GetType(); @@ -49,7 +49,7 @@ namespace TL } } - internal static ITLObject ReadTLObject(this BinaryReader reader, uint ctorNb = 0) + internal static IObject ReadTLObject(this BinaryReader reader, uint ctorNb = 0) { if (ctorNb == 0) ctorNb = reader.ReadUInt32(); if (!Layer.Table.TryGetValue(ctorNb, out var type)) @@ -69,7 +69,7 @@ namespace TL if (field.Name == "flags") flags = (int)value; else if (field.Name == "access_hash") reader.Client?.UpdateAccessHash(obj, type, value); } - return type == typeof(GzipPacked) ? UnzipPacket((GzipPacked)obj, reader.Client) : (ITLObject)obj; + return type == typeof(GzipPacked) ? UnzipPacket((GzipPacked)obj, reader.Client) : (IObject)obj; } internal static void WriteTLValue(this BinaryWriter writer, object value, Type valueType) @@ -102,7 +102,7 @@ namespace TL writer.Write(int128); else if (value is Int256 int256) writer.Write(int256); - else if (value is ITLObject tlObject) + else if (value is IObject tlObject) WriteTLObject(writer, tlObject); else ShouldntBeHere(); @@ -290,7 +290,7 @@ namespace TL writer.Write(0); // null arrays/strings are serialized as empty } - internal static ITLObject UnzipPacket(GzipPacked obj, WTelegram.Client client) + internal static IObject UnzipPacket(GzipPacked obj, WTelegram.Client client) { using var reader = new BinaryReader(new GZipStream(new MemoryStream(obj.packed_data), CompressionMode.Decompress), client); var result = reader.ReadTLObject(); @@ -358,7 +358,7 @@ namespace TL public override string ToString() => $"RpcException: {Code} {Message}"; } - public class ReactorError : ITLObject + public class ReactorError : IObject { public Exception Exception; } @@ -366,7 +366,7 @@ namespace TL // Below TL types are commented "parsed manually" from https://github.com/telegramdesktop/tdesktop/blob/dev/Telegram/Resources/tl/mtproto.tl [TLDef(0xF35C6D01)] //rpc_result#f35c6d01 req_msg_id:long result:Object = RpcResult - public partial class RpcResult : ITLObject + public partial class RpcResult : IObject { public long req_msg_id; public object result; @@ -379,14 +379,14 @@ namespace TL public long msg_id; public int seqno; public int bytes; - public ITLObject body; + public IObject body; } [TLDef(0x73F1F8DC)] //msg_container#73f1f8dc messages:vector<%Message> = MessageContainer - public partial class MsgContainer : ITLObject { public _Message[] messages; } + public partial class MsgContainer : IObject { public _Message[] messages; } [TLDef(0xE06046B2)] //msg_copy#e06046b2 orig_message:Message = MessageCopy - public partial class MsgCopy : ITLObject { public _Message orig_message; } + public partial class MsgCopy : IObject { public _Message orig_message; } [TLDef(0x3072CFA1)] //gzip_packed#3072cfa1 packed_data:bytes = Object - public partial class GzipPacked : ITLObject { public byte[] packed_data; } + public partial class GzipPacked : IObject { public byte[] packed_data; } }