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
{
///