mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
parent
0d55940c12
commit
133b9fdf6c
|
|
@ -218,7 +218,7 @@ Contributing is highly appreciated! Donations required <a href="https://www.payp
|
|||
# FAQ
|
||||
|
||||
#### What API layer is supported?
|
||||
The latest one - 57. Thanks to Afshin Arani for his TLGenerator
|
||||
The latest one - 66. Thanks to Afshin Arani for his TLGenerator
|
||||
|
||||
#### I get a xxxMigrationException or a MIGRATE_X error!
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ namespace TLSharp.Core
|
|||
query = config,
|
||||
system_version = "Win 10.0"
|
||||
};
|
||||
var invokewithLayer = new TLRequestInvokeWithLayer() { layer = 57, query = request };
|
||||
var invokewithLayer = new TLRequestInvokeWithLayer() { layer = 66, query = request };
|
||||
await _sender.Send(invokewithLayer);
|
||||
await _sender.Receive(invokewithLayer);
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(307276766)]
|
||||
[TLObject(307276766)]
|
||||
public class TLAuthorizations : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,13 +18,13 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAuthorization> authorizations {get;set;}
|
||||
public TLVector<TLAuthorization> authorizations { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -34,8 +34,8 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(authorizations,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(authorizations, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-1764049896)]
|
||||
[TLObject(-1764049896)]
|
||||
public class TLNoPassword : TLAbsPassword
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public byte[] new_salt {get;set;}
|
||||
public string email_unconfirmed_pattern {get;set;}
|
||||
public byte[] new_salt { get; set; }
|
||||
public string email_unconfirmed_pattern { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
new_salt = BytesUtil.Deserialize(br);
|
||||
email_unconfirmed_pattern = StringUtil.Deserialize(br);
|
||||
email_unconfirmed_pattern = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(new_salt,bw);
|
||||
StringUtil.Serialize(email_unconfirmed_pattern,bw);
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(new_salt, bw);
|
||||
StringUtil.Serialize(email_unconfirmed_pattern, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(2081952796)]
|
||||
[TLObject(2081952796)]
|
||||
public class TLPassword : TLAbsPassword
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,36 +18,36 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public byte[] current_salt {get;set;}
|
||||
public byte[] new_salt {get;set;}
|
||||
public string hint {get;set;}
|
||||
public bool has_recovery {get;set;}
|
||||
public string email_unconfirmed_pattern {get;set;}
|
||||
public byte[] current_salt { get; set; }
|
||||
public byte[] new_salt { get; set; }
|
||||
public string hint { get; set; }
|
||||
public bool has_recovery { get; set; }
|
||||
public string email_unconfirmed_pattern { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
current_salt = BytesUtil.Deserialize(br);
|
||||
new_salt = BytesUtil.Deserialize(br);
|
||||
hint = StringUtil.Deserialize(br);
|
||||
has_recovery = BoolUtil.Deserialize(br);
|
||||
email_unconfirmed_pattern = StringUtil.Deserialize(br);
|
||||
new_salt = BytesUtil.Deserialize(br);
|
||||
hint = StringUtil.Deserialize(br);
|
||||
has_recovery = BoolUtil.Deserialize(br);
|
||||
email_unconfirmed_pattern = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(current_salt,bw);
|
||||
BytesUtil.Serialize(new_salt,bw);
|
||||
StringUtil.Serialize(hint,bw);
|
||||
BoolUtil.Serialize(has_recovery,bw);
|
||||
StringUtil.Serialize(email_unconfirmed_pattern,bw);
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(current_salt, bw);
|
||||
BytesUtil.Serialize(new_salt, bw);
|
||||
StringUtil.Serialize(hint, bw);
|
||||
BoolUtil.Serialize(has_recovery, bw);
|
||||
StringUtil.Serialize(email_unconfirmed_pattern, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-2037289493)]
|
||||
[TLObject(-2037289493)]
|
||||
public class TLPasswordInputSettings : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,62 +18,62 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public byte[] new_salt {get;set;}
|
||||
public byte[] new_password_hash {get;set;}
|
||||
public string hint {get;set;}
|
||||
public string email {get;set;}
|
||||
public int flags { get; set; }
|
||||
public byte[] new_salt { get; set; }
|
||||
public byte[] new_password_hash { get; set; }
|
||||
public string hint { get; set; }
|
||||
public string email { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = new_salt != null ? (flags | 1) : (flags & ~1);
|
||||
flags = new_password_hash != null ? (flags | 1) : (flags & ~1);
|
||||
flags = hint != null ? (flags | 1) : (flags & ~1);
|
||||
flags = email != null ? (flags | 2) : (flags & ~2);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = new_salt != null ? (flags | 1) : (flags & ~1);
|
||||
flags = new_password_hash != null ? (flags | 1) : (flags & ~1);
|
||||
flags = hint != null ? (flags | 1) : (flags & ~1);
|
||||
flags = email != null ? (flags | 2) : (flags & ~2);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
if ((flags & 1) != 0)
|
||||
new_salt = BytesUtil.Deserialize(br);
|
||||
else
|
||||
new_salt = null;
|
||||
if ((flags & 1) != 0)
|
||||
new_salt = BytesUtil.Deserialize(br);
|
||||
else
|
||||
new_salt = null;
|
||||
|
||||
if ((flags & 1) != 0)
|
||||
new_password_hash = BytesUtil.Deserialize(br);
|
||||
else
|
||||
new_password_hash = null;
|
||||
if ((flags & 1) != 0)
|
||||
new_password_hash = BytesUtil.Deserialize(br);
|
||||
else
|
||||
new_password_hash = null;
|
||||
|
||||
if ((flags & 1) != 0)
|
||||
hint = StringUtil.Deserialize(br);
|
||||
else
|
||||
hint = null;
|
||||
if ((flags & 1) != 0)
|
||||
hint = StringUtil.Deserialize(br);
|
||||
else
|
||||
hint = null;
|
||||
|
||||
if ((flags & 2) != 0)
|
||||
email = StringUtil.Deserialize(br);
|
||||
else
|
||||
email = null;
|
||||
if ((flags & 2) != 0)
|
||||
email = StringUtil.Deserialize(br);
|
||||
else
|
||||
email = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
if ((flags & 1) != 0)
|
||||
BytesUtil.Serialize(new_salt,bw);
|
||||
if ((flags & 1) != 0)
|
||||
BytesUtil.Serialize(new_password_hash,bw);
|
||||
if ((flags & 1) != 0)
|
||||
StringUtil.Serialize(hint,bw);
|
||||
if ((flags & 2) != 0)
|
||||
StringUtil.Serialize(email,bw);
|
||||
bw.Write(flags);
|
||||
if ((flags & 1) != 0)
|
||||
BytesUtil.Serialize(new_salt, bw);
|
||||
if ((flags & 1) != 0)
|
||||
BytesUtil.Serialize(new_password_hash, bw);
|
||||
if ((flags & 1) != 0)
|
||||
StringUtil.Serialize(hint, bw);
|
||||
if ((flags & 2) != 0)
|
||||
StringUtil.Serialize(email, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-1212732749)]
|
||||
[TLObject(-1212732749)]
|
||||
public class TLPasswordSettings : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,13 +18,13 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string email {get;set;}
|
||||
public string email { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -34,8 +34,8 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(email,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(email, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1430961007)]
|
||||
[TLObject(1430961007)]
|
||||
public class TLPrivacyRules : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAbsPrivacyRule> rules {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public TLVector<TLAbsPrivacyRule> rules { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
rules = (TLVector<TLAbsPrivacyRule>)ObjectUtils.DeserializeVector<TLAbsPrivacyRule>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(rules,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(rules, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1891839707)]
|
||||
[TLObject(1891839707)]
|
||||
public class TLRequestChangePhone : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string phone_number {get;set;}
|
||||
public string phone_code_hash {get;set;}
|
||||
public string phone_code {get;set;}
|
||||
public TLAbsUser Response{ get; set;}
|
||||
public string phone_number { get; set; }
|
||||
public string phone_code_hash { get; set; }
|
||||
public string phone_code { get; set; }
|
||||
public TLAbsUser Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
phone_number = StringUtil.Deserialize(br);
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
phone_code = StringUtil.Deserialize(br);
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
phone_code = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_number,bw);
|
||||
StringUtil.Serialize(phone_code_hash,bw);
|
||||
StringUtil.Serialize(phone_code,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_number, bw);
|
||||
StringUtil.Serialize(phone_code_hash, bw);
|
||||
StringUtil.Serialize(phone_code, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(655677548)]
|
||||
[TLObject(655677548)]
|
||||
public class TLRequestCheckUsername : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string username {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public string username { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(username,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(username, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1596029123)]
|
||||
[TLObject(1596029123)]
|
||||
public class TLRequestConfirmPhone : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string phone_code_hash {get;set;}
|
||||
public string phone_code {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public string phone_code_hash { get; set; }
|
||||
public string phone_code { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
phone_code = StringUtil.Deserialize(br);
|
||||
phone_code = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_code_hash,bw);
|
||||
StringUtil.Serialize(phone_code,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_code_hash, bw);
|
||||
StringUtil.Serialize(phone_code, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1099779595)]
|
||||
[TLObject(1099779595)]
|
||||
public class TLRequestDeleteAccount : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string reason {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public string reason { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(reason,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(reason, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(150761757)]
|
||||
[TLObject(150761757)]
|
||||
public class TLRequestGetAccountTTL : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAccountDaysTTL Response{ get; set;}
|
||||
public TLAccountDaysTTL Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAccountDaysTTL)ObjectUtils.DeserializeObject(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAccountDaysTTL)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-484392616)]
|
||||
[TLObject(-484392616)]
|
||||
public class TLRequestGetAuthorizations : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public Account.TLAuthorizations Response{ get; set;}
|
||||
public Account.TLAuthorizations Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLAuthorizations)ObjectUtils.DeserializeObject(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLAuthorizations)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(313765169)]
|
||||
[TLObject(313765169)]
|
||||
public class TLRequestGetNotifySettings : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputNotifyPeer peer {get;set;}
|
||||
public TLAbsPeerNotifySettings Response{ get; set;}
|
||||
public TLAbsInputNotifyPeer peer { get; set; }
|
||||
public TLAbsPeerNotifySettings Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1418342645)]
|
||||
[TLObject(1418342645)]
|
||||
public class TLRequestGetPassword : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public Account.TLAbsPassword Response{ get; set;}
|
||||
public Account.TLAbsPassword Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLAbsPassword)ObjectUtils.DeserializeObject(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLAbsPassword)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-1131605573)]
|
||||
[TLObject(-1131605573)]
|
||||
public class TLRequestGetPasswordSettings : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public byte[] current_password_hash {get;set;}
|
||||
public Account.TLPasswordSettings Response{ get; set;}
|
||||
public byte[] current_password_hash { get; set; }
|
||||
public Account.TLPasswordSettings Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(current_password_hash,bw);
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(current_password_hash, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPasswordSettings)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPasswordSettings)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-623130288)]
|
||||
[TLObject(-623130288)]
|
||||
public class TLRequestGetPrivacy : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPrivacyKey key {get;set;}
|
||||
public Account.TLPrivacyRules Response{ get; set;}
|
||||
public TLAbsInputPrivacyKey key { get; set; }
|
||||
public Account.TLPrivacyRules Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(key,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(key, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
51
TeleSharp.TL/TL/Account/TLRequestGetTmpPassword.cs
Normal file
51
TeleSharp.TL/TL/Account/TLRequestGetTmpPassword.cs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1250046590)]
|
||||
public class TLRequestGetTmpPassword : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 1250046590;
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] password_hash { get; set; }
|
||||
public int period { get; set; }
|
||||
public Account.TLTmpPassword Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
password_hash = BytesUtil.Deserialize(br);
|
||||
period = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(password_hash, bw);
|
||||
bw.Write(period);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLTmpPassword)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-1068696894)]
|
||||
[TLObject(-1068696894)]
|
||||
public class TLRequestGetWallPapers : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAbsWallPaper> Response{ get; set;}
|
||||
public TLVector<TLAbsWallPaper> Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<TLAbsWallPaper>)ObjectUtils.DeserializeVector<TLAbsWallPaper>(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<TLAbsWallPaper>)ObjectUtils.DeserializeVector<TLAbsWallPaper>(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1669245048)]
|
||||
[TLObject(1669245048)]
|
||||
public class TLRequestRegisterDevice : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int token_type {get;set;}
|
||||
public string token {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public int token_type { get; set; }
|
||||
public string token { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
token_type = br.ReadInt32();
|
||||
token = StringUtil.Deserialize(br);
|
||||
token = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(token_type);
|
||||
StringUtil.Serialize(token,bw);
|
||||
StringUtil.Serialize(token, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-1374118561)]
|
||||
[TLObject(-1374118561)]
|
||||
public class TLRequestReportPeer : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public TLAbsReportReason reason {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public TLAbsReportReason reason { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
reason = (TLAbsReportReason)ObjectUtils.DeserializeObject(br);
|
||||
reason = (TLAbsReportReason)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
ObjectUtils.SerializeObject(reason,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
ObjectUtils.SerializeObject(reason, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-545786948)]
|
||||
[TLObject(-545786948)]
|
||||
public class TLRequestResetAuthorization : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public long hash {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public long hash { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(hash);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-612493497)]
|
||||
[TLObject(-612493497)]
|
||||
public class TLRequestResetNotifySettings : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public bool Response{ get; set;}
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(149257707)]
|
||||
[TLObject(149257707)]
|
||||
public class TLRequestSendChangePhoneCode : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,49 +18,49 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool allow_flashcall {get;set;}
|
||||
public string phone_number {get;set;}
|
||||
public bool? current_number {get;set;}
|
||||
public Auth.TLSentCode Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool allow_flashcall { get; set; }
|
||||
public string phone_number { get; set; }
|
||||
public bool? current_number { get; set; }
|
||||
public Auth.TLSentCode Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = allow_flashcall ? (flags | 1) : (flags & ~1);
|
||||
flags = current_number != null ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = allow_flashcall ? (flags | 1) : (flags & ~1);
|
||||
flags = current_number != null ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
allow_flashcall = (flags & 1) != 0;
|
||||
phone_number = StringUtil.Deserialize(br);
|
||||
if ((flags & 1) != 0)
|
||||
current_number = BoolUtil.Deserialize(br);
|
||||
else
|
||||
current_number = null;
|
||||
allow_flashcall = (flags & 1) != 0;
|
||||
phone_number = StringUtil.Deserialize(br);
|
||||
if ((flags & 1) != 0)
|
||||
current_number = BoolUtil.Deserialize(br);
|
||||
else
|
||||
current_number = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
StringUtil.Serialize(phone_number,bw);
|
||||
if ((flags & 1) != 0)
|
||||
BoolUtil.Serialize(current_number.Value,bw);
|
||||
StringUtil.Serialize(phone_number, bw);
|
||||
if ((flags & 1) != 0)
|
||||
BoolUtil.Serialize(current_number.Value, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(353818557)]
|
||||
[TLObject(353818557)]
|
||||
public class TLRequestSendConfirmPhoneCode : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,49 +18,49 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool allow_flashcall {get;set;}
|
||||
public string hash {get;set;}
|
||||
public bool? current_number {get;set;}
|
||||
public Auth.TLSentCode Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool allow_flashcall { get; set; }
|
||||
public string hash { get; set; }
|
||||
public bool? current_number { get; set; }
|
||||
public Auth.TLSentCode Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = allow_flashcall ? (flags | 1) : (flags & ~1);
|
||||
flags = current_number != null ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = allow_flashcall ? (flags | 1) : (flags & ~1);
|
||||
flags = current_number != null ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
allow_flashcall = (flags & 1) != 0;
|
||||
hash = StringUtil.Deserialize(br);
|
||||
if ((flags & 1) != 0)
|
||||
current_number = BoolUtil.Deserialize(br);
|
||||
else
|
||||
current_number = null;
|
||||
allow_flashcall = (flags & 1) != 0;
|
||||
hash = StringUtil.Deserialize(br);
|
||||
if ((flags & 1) != 0)
|
||||
current_number = BoolUtil.Deserialize(br);
|
||||
else
|
||||
current_number = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
StringUtil.Serialize(hash,bw);
|
||||
if ((flags & 1) != 0)
|
||||
BoolUtil.Serialize(current_number.Value,bw);
|
||||
StringUtil.Serialize(hash, bw);
|
||||
if ((flags & 1) != 0)
|
||||
BoolUtil.Serialize(current_number.Value, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(608323678)]
|
||||
[TLObject(608323678)]
|
||||
public class TLRequestSetAccountTTL : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAccountDaysTTL ttl {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLAccountDaysTTL ttl { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(ttl,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(ttl, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-906486552)]
|
||||
[TLObject(-906486552)]
|
||||
public class TLRequestSetPrivacy : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPrivacyKey key {get;set;}
|
||||
public TLVector<TLAbsInputPrivacyRule> rules {get;set;}
|
||||
public Account.TLPrivacyRules Response{ get; set;}
|
||||
public TLAbsInputPrivacyKey key { get; set; }
|
||||
public TLVector<TLAbsInputPrivacyRule> rules { get; set; }
|
||||
public Account.TLPrivacyRules Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
key = (TLAbsInputPrivacyKey)ObjectUtils.DeserializeObject(br);
|
||||
rules = (TLVector<TLAbsInputPrivacyRule>)ObjectUtils.DeserializeVector<TLAbsInputPrivacyRule>(br);
|
||||
rules = (TLVector<TLAbsInputPrivacyRule>)ObjectUtils.DeserializeVector<TLAbsInputPrivacyRule>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(key,bw);
|
||||
ObjectUtils.SerializeObject(rules,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(key, bw);
|
||||
ObjectUtils.SerializeObject(rules, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1707432768)]
|
||||
[TLObject(1707432768)]
|
||||
public class TLRequestUnregisterDevice : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int token_type {get;set;}
|
||||
public string token {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public int token_type { get; set; }
|
||||
public string token { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
token_type = br.ReadInt32();
|
||||
token = StringUtil.Deserialize(br);
|
||||
token = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(token_type);
|
||||
StringUtil.Serialize(token,bw);
|
||||
StringUtil.Serialize(token, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(954152242)]
|
||||
[TLObject(954152242)]
|
||||
public class TLRequestUpdateDeviceLocked : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int period {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public int period { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(period);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-2067899501)]
|
||||
[TLObject(-2067899501)]
|
||||
public class TLRequestUpdateNotifySettings : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputNotifyPeer peer {get;set;}
|
||||
public TLInputPeerNotifySettings settings {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLAbsInputNotifyPeer peer { get; set; }
|
||||
public TLInputPeerNotifySettings settings { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLAbsInputNotifyPeer)ObjectUtils.DeserializeObject(br);
|
||||
settings = (TLInputPeerNotifySettings)ObjectUtils.DeserializeObject(br);
|
||||
settings = (TLInputPeerNotifySettings)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
ObjectUtils.SerializeObject(settings,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
ObjectUtils.SerializeObject(settings, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-92517498)]
|
||||
[TLObject(-92517498)]
|
||||
public class TLRequestUpdatePasswordSettings : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public byte[] current_password_hash {get;set;}
|
||||
public Account.TLPasswordInputSettings new_settings {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public byte[] current_password_hash { get; set; }
|
||||
public Account.TLPasswordInputSettings new_settings { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
current_password_hash = BytesUtil.Deserialize(br);
|
||||
new_settings = (Account.TLPasswordInputSettings)ObjectUtils.DeserializeObject(br);
|
||||
new_settings = (Account.TLPasswordInputSettings)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(current_password_hash,bw);
|
||||
ObjectUtils.SerializeObject(new_settings,bw);
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(current_password_hash, bw);
|
||||
ObjectUtils.SerializeObject(new_settings, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(2018596725)]
|
||||
[TLObject(2018596725)]
|
||||
public class TLRequestUpdateProfile : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,60 +18,60 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public string first_name {get;set;}
|
||||
public string last_name {get;set;}
|
||||
public string about {get;set;}
|
||||
public TLAbsUser Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public string first_name { get; set; }
|
||||
public string last_name { get; set; }
|
||||
public string about { get; set; }
|
||||
public TLAbsUser Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = first_name != null ? (flags | 1) : (flags & ~1);
|
||||
flags = last_name != null ? (flags | 2) : (flags & ~2);
|
||||
flags = about != null ? (flags | 4) : (flags & ~4);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = first_name != null ? (flags | 1) : (flags & ~1);
|
||||
flags = last_name != null ? (flags | 2) : (flags & ~2);
|
||||
flags = about != null ? (flags | 4) : (flags & ~4);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
if ((flags & 1) != 0)
|
||||
first_name = StringUtil.Deserialize(br);
|
||||
else
|
||||
first_name = null;
|
||||
if ((flags & 1) != 0)
|
||||
first_name = StringUtil.Deserialize(br);
|
||||
else
|
||||
first_name = null;
|
||||
|
||||
if ((flags & 2) != 0)
|
||||
last_name = StringUtil.Deserialize(br);
|
||||
else
|
||||
last_name = null;
|
||||
if ((flags & 2) != 0)
|
||||
last_name = StringUtil.Deserialize(br);
|
||||
else
|
||||
last_name = null;
|
||||
|
||||
if ((flags & 4) != 0)
|
||||
about = StringUtil.Deserialize(br);
|
||||
else
|
||||
about = null;
|
||||
if ((flags & 4) != 0)
|
||||
about = StringUtil.Deserialize(br);
|
||||
else
|
||||
about = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
if ((flags & 1) != 0)
|
||||
StringUtil.Serialize(first_name,bw);
|
||||
if ((flags & 2) != 0)
|
||||
StringUtil.Serialize(last_name,bw);
|
||||
if ((flags & 4) != 0)
|
||||
StringUtil.Serialize(about,bw);
|
||||
bw.Write(flags);
|
||||
if ((flags & 1) != 0)
|
||||
StringUtil.Serialize(first_name, bw);
|
||||
if ((flags & 2) != 0)
|
||||
StringUtil.Serialize(last_name, bw);
|
||||
if ((flags & 4) != 0)
|
||||
StringUtil.Serialize(about, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1713919532)]
|
||||
[TLObject(1713919532)]
|
||||
public class TLRequestUpdateStatus : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public bool offline {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public bool offline { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BoolUtil.Serialize(offline,bw);
|
||||
bw.Write(Constructor);
|
||||
BoolUtil.Serialize(offline, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(1040964988)]
|
||||
[TLObject(1040964988)]
|
||||
public class TLRequestUpdateUsername : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string username {get;set;}
|
||||
public TLAbsUser Response{ get; set;}
|
||||
public string username { get; set; }
|
||||
public TLAbsUser Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(username,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(username, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
45
TeleSharp.TL/TL/Account/TLTmpPassword.cs
Normal file
45
TeleSharp.TL/TL/Account/TLTmpPassword.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Account
|
||||
{
|
||||
[TLObject(-614138572)]
|
||||
public class TLTmpPassword : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -614138572;
|
||||
}
|
||||
}
|
||||
|
||||
public byte[] tmp_password { get; set; }
|
||||
public int valid_until { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
tmp_password = BytesUtil.Deserialize(br);
|
||||
valid_until = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(tmp_password, bw);
|
||||
bw.Write(valid_until);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(-855308010)]
|
||||
[TLObject(-855308010)]
|
||||
public class TLAuthorization : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,38 +18,38 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public int? tmp_sessions {get;set;}
|
||||
public TLAbsUser user {get;set;}
|
||||
public int flags { get; set; }
|
||||
public int? tmp_sessions { get; set; }
|
||||
public TLAbsUser user { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = tmp_sessions != null ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = tmp_sessions != null ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
if ((flags & 1) != 0)
|
||||
tmp_sessions = br.ReadInt32();
|
||||
else
|
||||
tmp_sessions = null;
|
||||
if ((flags & 1) != 0)
|
||||
tmp_sessions = br.ReadInt32();
|
||||
else
|
||||
tmp_sessions = null;
|
||||
|
||||
user = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
user = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
if ((flags & 1) != 0)
|
||||
bw.Write(tmp_sessions.Value);
|
||||
ObjectUtils.SerializeObject(user,bw);
|
||||
bw.Write(flags);
|
||||
if ((flags & 1) != 0)
|
||||
bw.Write(tmp_sessions.Value);
|
||||
ObjectUtils.SerializeObject(user, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(-2128698738)]
|
||||
[TLObject(-2128698738)]
|
||||
public class TLCheckedPhone : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,13 +18,13 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public bool phone_registered {get;set;}
|
||||
public bool phone_registered { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -34,8 +34,8 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BoolUtil.Serialize(phone_registered,bw);
|
||||
bw.Write(Constructor);
|
||||
BoolUtil.Serialize(phone_registered, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(1948046307)]
|
||||
[TLObject(1948046307)]
|
||||
public class TLCodeTypeCall : TLAbsCodeType
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,22 +18,22 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(577556219)]
|
||||
[TLObject(577556219)]
|
||||
public class TLCodeTypeFlashCall : TLAbsCodeType
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,22 +18,22 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(1923290508)]
|
||||
[TLObject(1923290508)]
|
||||
public class TLCodeTypeSms : TLAbsCodeType
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,22 +18,22 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(-543777747)]
|
||||
[TLObject(-543777747)]
|
||||
public class TLExportedAuthorization : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public int id {get;set;}
|
||||
public byte[] bytes {get;set;}
|
||||
public int id { get; set; }
|
||||
public byte[] bytes { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
id = br.ReadInt32();
|
||||
bytes = BytesUtil.Deserialize(br);
|
||||
bytes = BytesUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(id);
|
||||
BytesUtil.Serialize(bytes,bw);
|
||||
BytesUtil.Serialize(bytes, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(326715557)]
|
||||
[TLObject(326715557)]
|
||||
public class TLPasswordRecovery : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,13 +18,13 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public string email_pattern {get;set;}
|
||||
public string email_pattern { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -34,8 +34,8 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(email_pattern,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(email_pattern, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(-841733627)]
|
||||
[TLObject(-841733627)]
|
||||
public class TLRequestBindTempAuthKey : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,40 +18,40 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public long perm_auth_key_id {get;set;}
|
||||
public long nonce {get;set;}
|
||||
public int expires_at {get;set;}
|
||||
public byte[] encrypted_message {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public long perm_auth_key_id { get; set; }
|
||||
public long nonce { get; set; }
|
||||
public int expires_at { get; set; }
|
||||
public byte[] encrypted_message { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
perm_auth_key_id = br.ReadInt64();
|
||||
nonce = br.ReadInt64();
|
||||
expires_at = br.ReadInt32();
|
||||
encrypted_message = BytesUtil.Deserialize(br);
|
||||
nonce = br.ReadInt64();
|
||||
expires_at = br.ReadInt32();
|
||||
encrypted_message = BytesUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(perm_auth_key_id);
|
||||
bw.Write(nonce);
|
||||
bw.Write(expires_at);
|
||||
BytesUtil.Serialize(encrypted_message,bw);
|
||||
bw.Write(nonce);
|
||||
bw.Write(expires_at);
|
||||
BytesUtil.Serialize(encrypted_message, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(520357240)]
|
||||
[TLObject(520357240)]
|
||||
public class TLRequestCancelCode : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public string phone_number {get;set;}
|
||||
public string phone_code_hash {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public string phone_number { get; set; }
|
||||
public string phone_code_hash { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
phone_number = StringUtil.Deserialize(br);
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_number,bw);
|
||||
StringUtil.Serialize(phone_code_hash,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_number, bw);
|
||||
StringUtil.Serialize(phone_code_hash, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(174260510)]
|
||||
[TLObject(174260510)]
|
||||
public class TLRequestCheckPassword : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public byte[] password_hash {get;set;}
|
||||
public Auth.TLAuthorization Response{ get; set;}
|
||||
public byte[] password_hash { get; set; }
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(password_hash,bw);
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(password_hash, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(1877286395)]
|
||||
[TLObject(1877286395)]
|
||||
public class TLRequestCheckPhone : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public string phone_number {get;set;}
|
||||
public Auth.TLCheckedPhone Response{ get; set;}
|
||||
public string phone_number { get; set; }
|
||||
public Auth.TLCheckedPhone Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_number,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_number, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLCheckedPhone)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLCheckedPhone)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(-1907842680)]
|
||||
[TLObject(-1907842680)]
|
||||
public class TLRequestDropTempAuthKeys : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<long> except_auth_keys {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLVector<long> except_auth_keys { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(except_auth_keys,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(except_auth_keys, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(-440401971)]
|
||||
[TLObject(-440401971)]
|
||||
public class TLRequestExportAuthorization : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public int dc_id {get;set;}
|
||||
public Auth.TLExportedAuthorization Response{ get; set;}
|
||||
public int dc_id { get; set; }
|
||||
public Auth.TLExportedAuthorization Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(dc_id);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLExportedAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLExportedAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(-470837741)]
|
||||
[TLObject(-470837741)]
|
||||
public class TLRequestImportAuthorization : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public int id {get;set;}
|
||||
public byte[] bytes {get;set;}
|
||||
public Auth.TLAuthorization Response{ get; set;}
|
||||
public int id { get; set; }
|
||||
public byte[] bytes { get; set; }
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
id = br.ReadInt32();
|
||||
bytes = BytesUtil.Deserialize(br);
|
||||
bytes = BytesUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(id);
|
||||
BytesUtil.Serialize(bytes,bw);
|
||||
BytesUtil.Serialize(bytes, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(1738800940)]
|
||||
[TLObject(1738800940)]
|
||||
public class TLRequestImportBotAuthorization : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,42 +18,42 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public int api_id {get;set;}
|
||||
public string api_hash {get;set;}
|
||||
public string bot_auth_token {get;set;}
|
||||
public Auth.TLAuthorization Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public int api_id { get; set; }
|
||||
public string api_hash { get; set; }
|
||||
public string bot_auth_token { get; set; }
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
api_id = br.ReadInt32();
|
||||
api_hash = StringUtil.Deserialize(br);
|
||||
bot_auth_token = StringUtil.Deserialize(br);
|
||||
api_id = br.ReadInt32();
|
||||
api_hash = StringUtil.Deserialize(br);
|
||||
bot_auth_token = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(api_id);
|
||||
StringUtil.Serialize(api_hash,bw);
|
||||
StringUtil.Serialize(bot_auth_token,bw);
|
||||
bw.Write(flags);
|
||||
bw.Write(api_id);
|
||||
StringUtil.Serialize(api_hash, bw);
|
||||
StringUtil.Serialize(bot_auth_token, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(1461180992)]
|
||||
[TLObject(1461180992)]
|
||||
public class TLRequestLogOut : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public bool Response{ get; set;}
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(1319464594)]
|
||||
[TLObject(1319464594)]
|
||||
public class TLRequestRecoverPassword : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public string code {get;set;}
|
||||
public Auth.TLAuthorization Response{ get; set;}
|
||||
public string code { get; set; }
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(code,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(code, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(-661144474)]
|
||||
[TLObject(-661144474)]
|
||||
public class TLRequestRequestPasswordRecovery : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public Auth.TLPasswordRecovery Response{ get; set;}
|
||||
public Auth.TLPasswordRecovery Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLPasswordRecovery)ObjectUtils.DeserializeObject(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLPasswordRecovery)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(1056025023)]
|
||||
[TLObject(1056025023)]
|
||||
public class TLRequestResendCode : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public string phone_number {get;set;}
|
||||
public string phone_code_hash {get;set;}
|
||||
public Auth.TLSentCode Response{ get; set;}
|
||||
public string phone_number { get; set; }
|
||||
public string phone_code_hash { get; set; }
|
||||
public Auth.TLSentCode Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
phone_number = StringUtil.Deserialize(br);
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_number,bw);
|
||||
StringUtil.Serialize(phone_code_hash,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_number, bw);
|
||||
StringUtil.Serialize(phone_code_hash, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(-1616179942)]
|
||||
[TLObject(-1616179942)]
|
||||
public class TLRequestResetAuthorizations : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public bool Response{ get; set;}
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(-2035355412)]
|
||||
[TLObject(-2035355412)]
|
||||
public class TLRequestSendCode : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,55 +18,55 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool allow_flashcall {get;set;}
|
||||
public string phone_number {get;set;}
|
||||
public bool? current_number {get;set;}
|
||||
public int api_id {get;set;}
|
||||
public string api_hash {get;set;}
|
||||
public Auth.TLSentCode Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool allow_flashcall { get; set; }
|
||||
public string phone_number { get; set; }
|
||||
public bool? current_number { get; set; }
|
||||
public int api_id { get; set; }
|
||||
public string api_hash { get; set; }
|
||||
public Auth.TLSentCode Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = allow_flashcall ? (flags | 1) : (flags & ~1);
|
||||
flags = current_number != null ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = allow_flashcall ? (flags | 1) : (flags & ~1);
|
||||
flags = current_number != null ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
allow_flashcall = (flags & 1) != 0;
|
||||
phone_number = StringUtil.Deserialize(br);
|
||||
if ((flags & 1) != 0)
|
||||
current_number = BoolUtil.Deserialize(br);
|
||||
else
|
||||
current_number = null;
|
||||
allow_flashcall = (flags & 1) != 0;
|
||||
phone_number = StringUtil.Deserialize(br);
|
||||
if ((flags & 1) != 0)
|
||||
current_number = BoolUtil.Deserialize(br);
|
||||
else
|
||||
current_number = null;
|
||||
|
||||
api_id = br.ReadInt32();
|
||||
api_hash = StringUtil.Deserialize(br);
|
||||
api_id = br.ReadInt32();
|
||||
api_hash = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
StringUtil.Serialize(phone_number,bw);
|
||||
if ((flags & 1) != 0)
|
||||
BoolUtil.Serialize(current_number.Value,bw);
|
||||
bw.Write(api_id);
|
||||
StringUtil.Serialize(api_hash,bw);
|
||||
StringUtil.Serialize(phone_number, bw);
|
||||
if ((flags & 1) != 0)
|
||||
BoolUtil.Serialize(current_number.Value, bw);
|
||||
bw.Write(api_id);
|
||||
StringUtil.Serialize(api_hash, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(1998331287)]
|
||||
[TLObject(1998331287)]
|
||||
public class TLRequestSendInvites : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<string> phone_numbers {get;set;}
|
||||
public string message {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLVector<string> phone_numbers { get; set; }
|
||||
public string message { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
phone_numbers = (TLVector<string>)ObjectUtils.DeserializeVector<string>(br);
|
||||
message = StringUtil.Deserialize(br);
|
||||
message = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(phone_numbers,bw);
|
||||
StringUtil.Serialize(message,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(phone_numbers, bw);
|
||||
StringUtil.Serialize(message, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(-1126886015)]
|
||||
[TLObject(-1126886015)]
|
||||
public class TLRequestSignIn : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public string phone_number {get;set;}
|
||||
public string phone_code_hash {get;set;}
|
||||
public string phone_code {get;set;}
|
||||
public Auth.TLAuthorization Response{ get; set;}
|
||||
public string phone_number { get; set; }
|
||||
public string phone_code_hash { get; set; }
|
||||
public string phone_code { get; set; }
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
phone_number = StringUtil.Deserialize(br);
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
phone_code = StringUtil.Deserialize(br);
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
phone_code = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_number,bw);
|
||||
StringUtil.Serialize(phone_code_hash,bw);
|
||||
StringUtil.Serialize(phone_code,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_number, bw);
|
||||
StringUtil.Serialize(phone_code_hash, bw);
|
||||
StringUtil.Serialize(phone_code, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(453408308)]
|
||||
[TLObject(453408308)]
|
||||
public class TLRequestSignUp : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,43 +18,43 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public string phone_number {get;set;}
|
||||
public string phone_code_hash {get;set;}
|
||||
public string phone_code {get;set;}
|
||||
public string first_name {get;set;}
|
||||
public string last_name {get;set;}
|
||||
public Auth.TLAuthorization Response{ get; set;}
|
||||
public string phone_number { get; set; }
|
||||
public string phone_code_hash { get; set; }
|
||||
public string phone_code { get; set; }
|
||||
public string first_name { get; set; }
|
||||
public string last_name { get; set; }
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
phone_number = StringUtil.Deserialize(br);
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
phone_code = StringUtil.Deserialize(br);
|
||||
first_name = StringUtil.Deserialize(br);
|
||||
last_name = StringUtil.Deserialize(br);
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
phone_code = StringUtil.Deserialize(br);
|
||||
first_name = StringUtil.Deserialize(br);
|
||||
last_name = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_number,bw);
|
||||
StringUtil.Serialize(phone_code_hash,bw);
|
||||
StringUtil.Serialize(phone_code,bw);
|
||||
StringUtil.Serialize(first_name,bw);
|
||||
StringUtil.Serialize(last_name,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(phone_number, bw);
|
||||
StringUtil.Serialize(phone_code_hash, bw);
|
||||
StringUtil.Serialize(phone_code, bw);
|
||||
StringUtil.Serialize(first_name, bw);
|
||||
StringUtil.Serialize(last_name, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(1577067778)]
|
||||
[TLObject(1577067778)]
|
||||
public class TLSentCode : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,54 +18,54 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool phone_registered {get;set;}
|
||||
public Auth.TLAbsSentCodeType type {get;set;}
|
||||
public string phone_code_hash {get;set;}
|
||||
public Auth.TLAbsCodeType next_type {get;set;}
|
||||
public int? timeout {get;set;}
|
||||
public int flags { get; set; }
|
||||
public bool phone_registered { get; set; }
|
||||
public Auth.TLAbsSentCodeType type { get; set; }
|
||||
public string phone_code_hash { get; set; }
|
||||
public Auth.TLAbsCodeType next_type { get; set; }
|
||||
public int? timeout { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = phone_registered ? (flags | 1) : (flags & ~1);
|
||||
flags = next_type != null ? (flags | 2) : (flags & ~2);
|
||||
flags = timeout != null ? (flags | 4) : (flags & ~4);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = phone_registered ? (flags | 1) : (flags & ~1);
|
||||
flags = next_type != null ? (flags | 2) : (flags & ~2);
|
||||
flags = timeout != null ? (flags | 4) : (flags & ~4);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
phone_registered = (flags & 1) != 0;
|
||||
type = (Auth.TLAbsSentCodeType)ObjectUtils.DeserializeObject(br);
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
if ((flags & 2) != 0)
|
||||
next_type = (Auth.TLAbsCodeType)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
next_type = null;
|
||||
phone_registered = (flags & 1) != 0;
|
||||
type = (Auth.TLAbsSentCodeType)ObjectUtils.DeserializeObject(br);
|
||||
phone_code_hash = StringUtil.Deserialize(br);
|
||||
if ((flags & 2) != 0)
|
||||
next_type = (Auth.TLAbsCodeType)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
next_type = null;
|
||||
|
||||
if ((flags & 4) != 0)
|
||||
timeout = br.ReadInt32();
|
||||
else
|
||||
timeout = null;
|
||||
if ((flags & 4) != 0)
|
||||
timeout = br.ReadInt32();
|
||||
else
|
||||
timeout = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
ObjectUtils.SerializeObject(type,bw);
|
||||
StringUtil.Serialize(phone_code_hash,bw);
|
||||
if ((flags & 2) != 0)
|
||||
ObjectUtils.SerializeObject(next_type,bw);
|
||||
if ((flags & 4) != 0)
|
||||
bw.Write(timeout.Value);
|
||||
ObjectUtils.SerializeObject(type, bw);
|
||||
StringUtil.Serialize(phone_code_hash, bw);
|
||||
if ((flags & 2) != 0)
|
||||
ObjectUtils.SerializeObject(next_type, bw);
|
||||
if ((flags & 4) != 0)
|
||||
bw.Write(timeout.Value);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(1035688326)]
|
||||
[TLObject(1035688326)]
|
||||
public class TLSentCodeTypeApp : TLAbsSentCodeType
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,13 +18,13 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public int length {get;set;}
|
||||
public int length { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -34,7 +34,7 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(length);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(1398007207)]
|
||||
[TLObject(1398007207)]
|
||||
public class TLSentCodeTypeCall : TLAbsSentCodeType
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,13 +18,13 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public int length {get;set;}
|
||||
public int length { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -34,7 +34,7 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(length);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(-1425815847)]
|
||||
[TLObject(-1425815847)]
|
||||
public class TLSentCodeTypeFlashCall : TLAbsSentCodeType
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,13 +18,13 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public string pattern {get;set;}
|
||||
public string pattern { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -34,8 +34,8 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(pattern,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(pattern, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Auth
|
||||
{
|
||||
[TLObject(-1073693790)]
|
||||
[TLObject(-1073693790)]
|
||||
public class TLSentCodeTypeSms : TLAbsSentCodeType
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,13 +18,13 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public int length {get;set;}
|
||||
public int length { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -34,7 +34,7 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(length);
|
||||
|
||||
}
|
||||
|
|
|
|||
51
TeleSharp.TL/TL/Bots/TLRequestAnswerWebhookJSONQuery.cs
Normal file
51
TeleSharp.TL/TL/Bots/TLRequestAnswerWebhookJSONQuery.cs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Bots
|
||||
{
|
||||
[TLObject(-434028723)]
|
||||
public class TLRequestAnswerWebhookJSONQuery : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -434028723;
|
||||
}
|
||||
}
|
||||
|
||||
public long query_id { get; set; }
|
||||
public TLDataJSON data { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
query_id = br.ReadInt64();
|
||||
data = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(query_id);
|
||||
ObjectUtils.SerializeObject(data, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
51
TeleSharp.TL/TL/Bots/TLRequestSendCustomRequest.cs
Normal file
51
TeleSharp.TL/TL/Bots/TLRequestSendCustomRequest.cs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Bots
|
||||
{
|
||||
[TLObject(-1440257555)]
|
||||
public class TLRequestSendCustomRequest : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -1440257555;
|
||||
}
|
||||
}
|
||||
|
||||
public string custom_method { get; set; }
|
||||
public TLDataJSON @params { get; set; }
|
||||
public TLDataJSON Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
custom_method = StringUtil.Deserialize(br);
|
||||
@params = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(custom_method, bw);
|
||||
ObjectUtils.SerializeObject(@params, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-791039645)]
|
||||
[TLObject(-791039645)]
|
||||
public class TLChannelParticipant : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsChannelParticipant participant {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public TLAbsChannelParticipant participant { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
participant = (TLAbsChannelParticipant)ObjectUtils.DeserializeObject(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(participant,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(participant, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-177282392)]
|
||||
[TLObject(-177282392)]
|
||||
public class TLChannelParticipants : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,30 +18,30 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public int count {get;set;}
|
||||
public TLVector<TLAbsChannelParticipant> participants {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public int count { get; set; }
|
||||
public TLVector<TLAbsChannelParticipant> participants { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
count = br.ReadInt32();
|
||||
participants = (TLVector<TLAbsChannelParticipant>)ObjectUtils.DeserializeVector<TLAbsChannelParticipant>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
participants = (TLVector<TLAbsChannelParticipant>)ObjectUtils.DeserializeVector<TLAbsChannelParticipant>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(count);
|
||||
ObjectUtils.SerializeObject(participants,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
ObjectUtils.SerializeObject(participants, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(283557164)]
|
||||
[TLObject(283557164)]
|
||||
public class TLRequestCheckUsername : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public string username {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public string username { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
username = StringUtil.Deserialize(br);
|
||||
username = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
StringUtil.Serialize(username,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
StringUtil.Serialize(username, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-192332417)]
|
||||
[TLObject(-192332417)]
|
||||
public class TLRequestCreateChannel : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,47 +18,47 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool broadcast {get;set;}
|
||||
public bool megagroup {get;set;}
|
||||
public string title {get;set;}
|
||||
public string about {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool broadcast { get; set; }
|
||||
public bool megagroup { get; set; }
|
||||
public string title { get; set; }
|
||||
public string about { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = broadcast ? (flags | 1) : (flags & ~1);
|
||||
flags = megagroup ? (flags | 2) : (flags & ~2);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = broadcast ? (flags | 1) : (flags & ~1);
|
||||
flags = megagroup ? (flags | 2) : (flags & ~2);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
broadcast = (flags & 1) != 0;
|
||||
megagroup = (flags & 2) != 0;
|
||||
title = StringUtil.Deserialize(br);
|
||||
about = StringUtil.Deserialize(br);
|
||||
broadcast = (flags & 1) != 0;
|
||||
megagroup = (flags & 2) != 0;
|
||||
title = StringUtil.Deserialize(br);
|
||||
about = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
|
||||
StringUtil.Serialize(title,bw);
|
||||
StringUtil.Serialize(about,bw);
|
||||
StringUtil.Serialize(title, bw);
|
||||
StringUtil.Serialize(about, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-1072619549)]
|
||||
[TLObject(-1072619549)]
|
||||
public class TLRequestDeleteChannel : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Channels
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-2067661490)]
|
||||
[TLObject(-2067661490)]
|
||||
public class TLRequestDeleteMessages : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLVector<int> id {get;set;}
|
||||
public Messages.TLAffectedMessages Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLVector<int> id { get; set; }
|
||||
public Messages.TLAffectedMessages Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-787622117)]
|
||||
[TLObject(-787622117)]
|
||||
public class TLRequestDeleteUserHistory : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLAbsInputUser user_id {get;set;}
|
||||
public Messages.TLAffectedHistory Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLAbsInputUser user_id { get; set; }
|
||||
public Messages.TLAffectedHistory Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
ObjectUtils.SerializeObject(user_id,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
ObjectUtils.SerializeObject(user_id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(333610782)]
|
||||
[TLObject(333610782)]
|
||||
public class TLRequestEditAbout : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public string about {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public string about { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
about = StringUtil.Deserialize(br);
|
||||
about = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
StringUtil.Serialize(about,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
StringUtil.Serialize(about, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-344583728)]
|
||||
[TLObject(-344583728)]
|
||||
public class TLRequestEditAdmin : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLAbsInputUser user_id {get;set;}
|
||||
public TLAbsChannelParticipantRole role {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLAbsInputUser user_id { get; set; }
|
||||
public TLAbsChannelParticipantRole role { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
role = (TLAbsChannelParticipantRole)ObjectUtils.DeserializeObject(br);
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
role = (TLAbsChannelParticipantRole)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
ObjectUtils.SerializeObject(user_id,bw);
|
||||
ObjectUtils.SerializeObject(role,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
ObjectUtils.SerializeObject(user_id, bw);
|
||||
ObjectUtils.SerializeObject(role, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-248621111)]
|
||||
[TLObject(-248621111)]
|
||||
public class TLRequestEditPhoto : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLAbsInputChatPhoto photo {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLAbsInputChatPhoto photo { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
photo = (TLAbsInputChatPhoto)ObjectUtils.DeserializeObject(br);
|
||||
photo = (TLAbsInputChatPhoto)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
ObjectUtils.SerializeObject(photo,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
ObjectUtils.SerializeObject(photo, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(1450044624)]
|
||||
[TLObject(1450044624)]
|
||||
public class TLRequestEditTitle : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public string title {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public string title { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
title = StringUtil.Deserialize(br);
|
||||
title = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
StringUtil.Serialize(title,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
StringUtil.Serialize(title, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-950663035)]
|
||||
[TLObject(-950663035)]
|
||||
public class TLRequestExportInvite : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLAbsExportedChatInvite Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLAbsExportedChatInvite Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Channels
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-934882771)]
|
||||
[TLObject(-934882771)]
|
||||
public class TLRequestExportMessageLink : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public int id {get;set;}
|
||||
public TLExportedMessageLink Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public int id { get; set; }
|
||||
public TLExportedMessageLink Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
id = br.ReadInt32();
|
||||
id = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
bw.Write(id);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
bw.Write(id);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLExportedMessageLink)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLExportedMessageLink)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-1920105769)]
|
||||
[TLObject(-1920105769)]
|
||||
public class TLRequestGetAdminedPublicChannels : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public Messages.TLChats Response{ get; set;}
|
||||
public Messages.TLAbsChats Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLChats)ObjectUtils.DeserializeObject(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(176122811)]
|
||||
[TLObject(176122811)]
|
||||
public class TLRequestGetChannels : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAbsInputChannel> id {get;set;}
|
||||
public Messages.TLChats Response{ get; set;}
|
||||
public TLVector<TLAbsInputChannel> id { get; set; }
|
||||
public Messages.TLAbsChats Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Channels
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLChats)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(141781513)]
|
||||
[TLObject(141781513)]
|
||||
public class TLRequestGetFullChannel : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public Messages.TLChatFull Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public Messages.TLChatFull Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Channels
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLChatFull)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLChatFull)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-1814580409)]
|
||||
[TLObject(-1814580409)]
|
||||
public class TLRequestGetMessages : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLVector<int> id {get;set;}
|
||||
public Messages.TLAbsMessages Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLVector<int> id { get; set; }
|
||||
public Messages.TLAbsMessages Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(1416484774)]
|
||||
[TLObject(1416484774)]
|
||||
public class TLRequestGetParticipant : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLAbsInputUser user_id {get;set;}
|
||||
public Channels.TLChannelParticipant Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLAbsInputUser user_id { get; set; }
|
||||
public Channels.TLChannelParticipant Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
ObjectUtils.SerializeObject(user_id,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
ObjectUtils.SerializeObject(user_id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Channels.TLChannelParticipant)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Channels.TLChannelParticipant)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(618237842)]
|
||||
[TLObject(618237842)]
|
||||
public class TLRequestGetParticipants : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,40 +18,40 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLAbsChannelParticipantsFilter filter {get;set;}
|
||||
public int offset {get;set;}
|
||||
public int limit {get;set;}
|
||||
public Channels.TLChannelParticipants Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLAbsChannelParticipantsFilter filter { get; set; }
|
||||
public int offset { get; set; }
|
||||
public int limit { get; set; }
|
||||
public Channels.TLChannelParticipants Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
filter = (TLAbsChannelParticipantsFilter)ObjectUtils.DeserializeObject(br);
|
||||
offset = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
filter = (TLAbsChannelParticipantsFilter)ObjectUtils.DeserializeObject(br);
|
||||
offset = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
ObjectUtils.SerializeObject(filter,bw);
|
||||
bw.Write(offset);
|
||||
bw.Write(limit);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
ObjectUtils.SerializeObject(filter, bw);
|
||||
bw.Write(offset);
|
||||
bw.Write(limit);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Channels.TLChannelParticipants)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Channels.TLChannelParticipants)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(429865580)]
|
||||
[TLObject(429865580)]
|
||||
public class TLRequestInviteToChannel : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLVector<TLAbsInputUser> users {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLVector<TLAbsInputUser> users { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
users = (TLVector<TLAbsInputUser>)ObjectUtils.DeserializeVector<TLAbsInputUser>(br);
|
||||
users = (TLVector<TLAbsInputUser>)ObjectUtils.DeserializeVector<TLAbsInputUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(615851205)]
|
||||
[TLObject(615851205)]
|
||||
public class TLRequestJoinChannel : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Channels
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-1502421484)]
|
||||
[TLObject(-1502421484)]
|
||||
public class TLRequestKickFromChannel : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLAbsInputUser user_id {get;set;}
|
||||
public bool kicked {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLAbsInputUser user_id { get; set; }
|
||||
public bool kicked { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
kicked = BoolUtil.Deserialize(br);
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
kicked = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
ObjectUtils.SerializeObject(user_id,bw);
|
||||
BoolUtil.Serialize(kicked,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
ObjectUtils.SerializeObject(user_id, bw);
|
||||
BoolUtil.Serialize(kicked, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-130635115)]
|
||||
[TLObject(-130635115)]
|
||||
public class TLRequestLeaveChannel : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Channels
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-871347913)]
|
||||
[TLObject(-871347913)]
|
||||
public class TLRequestReadHistory : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public int max_id {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public int max_id { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
max_id = br.ReadInt32();
|
||||
max_id = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
bw.Write(max_id);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
bw.Write(max_id);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-32999408)]
|
||||
[TLObject(-32999408)]
|
||||
public class TLRequestReportSpam : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public TLAbsInputUser user_id {get;set;}
|
||||
public TLVector<int> id {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public TLAbsInputUser user_id { get; set; }
|
||||
public TLVector<int> id { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
ObjectUtils.SerializeObject(user_id,bw);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
ObjectUtils.SerializeObject(user_id, bw);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(1231065863)]
|
||||
[TLObject(1231065863)]
|
||||
public class TLRequestToggleInvites : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public bool enabled {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public bool enabled { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
enabled = BoolUtil.Deserialize(br);
|
||||
enabled = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
BoolUtil.Serialize(enabled,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
BoolUtil.Serialize(enabled, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(527021574)]
|
||||
[TLObject(527021574)]
|
||||
public class TLRequestToggleSignatures : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public bool enabled {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public bool enabled { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
enabled = BoolUtil.Deserialize(br);
|
||||
enabled = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
BoolUtil.Serialize(enabled,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
BoolUtil.Serialize(enabled, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-1490162350)]
|
||||
[TLObject(-1490162350)]
|
||||
public class TLRequestUpdatePinnedMessage : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,43 +18,43 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool silent {get;set;}
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public int id {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool silent { get; set; }
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public int id { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = silent ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = silent ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
silent = (flags & 1) != 0;
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
id = br.ReadInt32();
|
||||
silent = (flags & 1) != 0;
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
id = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
bw.Write(id);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
bw.Write(id);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(890549214)]
|
||||
[TLObject(890549214)]
|
||||
public class TLRequestUpdateUsername : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel channel {get;set;}
|
||||
public string username {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLAbsInputChannel channel { get; set; }
|
||||
public string username { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
username = StringUtil.Deserialize(br);
|
||||
username = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel,bw);
|
||||
StringUtil.Serialize(username,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(channel, bw);
|
||||
StringUtil.Serialize(username, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Contacts
|
||||
{
|
||||
[TLObject(471043349)]
|
||||
[TLObject(471043349)]
|
||||
public class TLBlocked : TLAbsBlocked
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLContactBlocked> blocked {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public TLVector<TLContactBlocked> blocked { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
blocked = (TLVector<TLContactBlocked>)ObjectUtils.DeserializeVector<TLContactBlocked>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(blocked,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(blocked, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Contacts
|
||||
{
|
||||
[TLObject(-1878523231)]
|
||||
[TLObject(-1878523231)]
|
||||
public class TLBlockedSlice : TLAbsBlocked
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,30 +18,30 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public int count {get;set;}
|
||||
public TLVector<TLContactBlocked> blocked {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public int count { get; set; }
|
||||
public TLVector<TLContactBlocked> blocked { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
count = br.ReadInt32();
|
||||
blocked = (TLVector<TLContactBlocked>)ObjectUtils.DeserializeVector<TLContactBlocked>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
blocked = (TLVector<TLContactBlocked>)ObjectUtils.DeserializeVector<TLContactBlocked>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(count);
|
||||
ObjectUtils.SerializeObject(blocked,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
ObjectUtils.SerializeObject(blocked, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Contacts
|
||||
{
|
||||
[TLObject(1871416498)]
|
||||
[TLObject(1871416498)]
|
||||
public class TLContacts : TLAbsContacts
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLContact> contacts {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public TLVector<TLContact> contacts { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
contacts = (TLVector<TLContact>)ObjectUtils.DeserializeVector<TLContact>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(contacts,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(contacts, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Contacts
|
||||
{
|
||||
[TLObject(-1219778094)]
|
||||
[TLObject(-1219778094)]
|
||||
public class TLContactsNotModified : TLAbsContacts
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,22 +18,22 @@ namespace TeleSharp.TL.Contacts
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue