mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
update to layer 71
code formatting
This commit is contained in:
parent
687eca968a
commit
ca3a71e39a
|
|
@ -1,11 +1,6 @@
|
|||
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
|
||||
{
|
||||
public class ObjectUtils
|
||||
|
|
@ -36,10 +31,7 @@ namespace TeleSharp.TL
|
|||
}
|
||||
else throw new NotImplementedException("Weird Type : " + t.Namespace + " | " + t.Name);
|
||||
}
|
||||
public static void SerializeObject(object obj, BinaryWriter writer)
|
||||
{
|
||||
((TLObject)obj).SerializeBody(writer);
|
||||
}
|
||||
|
||||
public static TLVector<T> DeserializeVector<T>(BinaryReader reader)
|
||||
{
|
||||
if (reader.ReadInt32() != 481674261) throw new InvalidDataException("Bad Constructor");
|
||||
|
|
@ -47,5 +39,10 @@ namespace TeleSharp.TL
|
|||
t.DeserializeBody(reader);
|
||||
return t;
|
||||
}
|
||||
|
||||
public static void SerializeObject(object obj, BinaryWriter writer)
|
||||
{
|
||||
((TLObject)obj).SerializeBody(writer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,3 @@
|
|||
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
|
||||
{
|
||||
public abstract class TLAbsPassword : TLObject
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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(307276766)]
|
||||
public class TLAuthorizations : TLObject
|
||||
{
|
||||
public TLVector<TLAuthorization> Authorizations { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,25 +15,19 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAuthorization> Authorizations { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Authorizations = (TLVector<TLAuthorization>)ObjectUtils.DeserializeVector<TLAuthorization>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Authorizations, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(-1764049896)]
|
||||
|
|
@ -18,20 +13,18 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public byte[] NewSalt { get; set; }
|
||||
public string EmailUnconfirmedPattern { get; set; }
|
||||
|
||||
public byte[] NewSalt { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
NewSalt = BytesUtil.Deserialize(br);
|
||||
EmailUnconfirmedPattern = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -39,7 +32,6 @@ namespace TeleSharp.TL.Account
|
|||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(NewSalt, bw);
|
||||
StringUtil.Serialize(EmailUnconfirmedPattern, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(2081952796)]
|
||||
|
|
@ -19,15 +14,17 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public byte[] CurrentSalt { get; set; }
|
||||
public byte[] NewSalt { get; set; }
|
||||
public string Hint { get; set; }
|
||||
public bool HasRecovery { get; set; }
|
||||
|
||||
public string EmailUnconfirmedPattern { get; set; }
|
||||
|
||||
public bool HasRecovery { get; set; }
|
||||
|
||||
public string Hint { get; set; }
|
||||
|
||||
public byte[] NewSalt { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -37,7 +34,6 @@ namespace TeleSharp.TL.Account
|
|||
Hint = StringUtil.Deserialize(br);
|
||||
HasRecovery = BoolUtil.Deserialize(br);
|
||||
EmailUnconfirmedPattern = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -48,7 +44,6 @@ namespace TeleSharp.TL.Account
|
|||
StringUtil.Serialize(Hint, bw);
|
||||
BoolUtil.Serialize(HasRecovery, bw);
|
||||
StringUtil.Serialize(EmailUnconfirmedPattern, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(-2037289493)]
|
||||
|
|
@ -18,21 +13,18 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int Flags { get; set; }
|
||||
public byte[] NewSalt { get; set; }
|
||||
public byte[] NewPasswordHash { get; set; }
|
||||
public string Hint { get; set; }
|
||||
public string Email { get; set; }
|
||||
|
||||
public int Flags { get; set; }
|
||||
|
||||
public string Hint { get; set; }
|
||||
|
||||
public byte[] NewPasswordHash { get; set; }
|
||||
|
||||
public byte[] NewSalt { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
Flags = 0;
|
||||
Flags = NewSalt != null ? (Flags | 1) : (Flags & ~1);
|
||||
Flags = NewPasswordHash != 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)
|
||||
|
|
@ -57,14 +49,11 @@ namespace TeleSharp.TL.Account
|
|||
Email = StringUtil.Deserialize(br);
|
||||
else
|
||||
Email = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(Flags);
|
||||
if ((Flags & 1) != 0)
|
||||
BytesUtil.Serialize(NewSalt, bw);
|
||||
|
|
@ -74,7 +63,6 @@ namespace TeleSharp.TL.Account
|
|||
StringUtil.Serialize(Hint, bw);
|
||||
if ((Flags & 2) != 0)
|
||||
StringUtil.Serialize(Email, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(-1212732749)]
|
||||
|
|
@ -20,23 +15,19 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public string Email { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Email = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(Email, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(1430961007)]
|
||||
|
|
@ -19,19 +14,17 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public TLVector<TLAbsPrivacyRule> Rules { get; set; }
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Rules = (TLVector<TLAbsPrivacyRule>)ObjectUtils.DeserializeVector<TLAbsPrivacyRule>(br);
|
||||
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -39,7 +32,6 @@ namespace TeleSharp.TL.Account
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Rules, bw);
|
||||
ObjectUtils.SerializeObject(Users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(1891839707)]
|
||||
|
|
@ -18,15 +13,16 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
public string PhoneCodeHash { get; set; }
|
||||
public string PhoneCode { get; set; }
|
||||
public TLAbsUser Response { get; set; }
|
||||
|
||||
public string PhoneCodeHash { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
public TLAbsUser Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -34,7 +30,11 @@ namespace TeleSharp.TL.Account
|
|||
PhoneNumber = StringUtil.Deserialize(br);
|
||||
PhoneCodeHash = StringUtil.Deserialize(br);
|
||||
PhoneCode = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -43,12 +43,6 @@ namespace TeleSharp.TL.Account
|
|||
StringUtil.Serialize(PhoneNumber, bw);
|
||||
StringUtil.Serialize(PhoneCodeHash, bw);
|
||||
StringUtil.Serialize(PhoneCode, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(655677548)]
|
||||
|
|
@ -18,31 +13,28 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string Username { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public string Username { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Username = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(Username, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(1596029123)]
|
||||
|
|
@ -18,21 +13,25 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string PhoneCodeHash { get; set; }
|
||||
public string PhoneCode { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public string PhoneCodeHash { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
PhoneCodeHash = StringUtil.Deserialize(br);
|
||||
PhoneCode = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Account
|
|||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(PhoneCodeHash, bw);
|
||||
StringUtil.Serialize(PhoneCode, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(1099779595)]
|
||||
|
|
@ -19,30 +14,27 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public string Reason { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Reason = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(Reason, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(150761757)]
|
||||
|
|
@ -20,26 +15,22 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public TLAccountDaysTTL Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAccountDaysTTL)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAccountDaysTTL)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(-484392616)]
|
||||
|
|
@ -20,26 +15,22 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public Account.TLAuthorizations Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLAuthorizations)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLAuthorizations)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(313765169)]
|
||||
|
|
@ -19,30 +14,27 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public TLAbsInputNotifyPeer Peer { get; set; }
|
||||
public TLAbsPeerNotifySettings Response { get; set; }
|
||||
|
||||
public TLAbsPeerNotifySettings Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Peer = (TLAbsInputNotifyPeer)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Peer, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(1418342645)]
|
||||
|
|
@ -20,26 +15,22 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public Account.TLAbsPassword Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLAbsPassword)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLAbsPassword)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(-1131605573)]
|
||||
|
|
@ -19,30 +14,27 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public byte[] CurrentPasswordHash { get; set; }
|
||||
public Account.TLPasswordSettings Response { get; set; }
|
||||
|
||||
public Account.TLPasswordSettings Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
CurrentPasswordHash = BytesUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPasswordSettings)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(CurrentPasswordHash, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPasswordSettings)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(-623130288)]
|
||||
|
|
@ -19,30 +14,27 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public TLAbsInputPrivacyKey Key { get; set; }
|
||||
public Account.TLPrivacyRules Response { get; set; }
|
||||
|
||||
public Account.TLPrivacyRules Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Key = (TLAbsInputPrivacyKey)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Key, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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)]
|
||||
|
|
@ -19,20 +14,24 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public byte[] PasswordHash { get; set; }
|
||||
public int Period { get; set; }
|
||||
public Account.TLTmpPassword Response { get; set; }
|
||||
|
||||
public int Period { get; set; }
|
||||
|
||||
public Account.TLTmpPassword Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
PasswordHash = BytesUtil.Deserialize(br);
|
||||
Period = br.ReadInt32();
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLTmpPassword)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Account
|
|||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(PasswordHash, bw);
|
||||
bw.Write(Period);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLTmpPassword)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(-1068696894)]
|
||||
|
|
@ -20,26 +15,22 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public TLVector<TLAbsWallPaper> Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<TLAbsWallPaper>)ObjectUtils.DeserializeVector<TLAbsWallPaper>(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<TLAbsWallPaper>)ObjectUtils.DeserializeVector<TLAbsWallPaper>(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(1669245048)]
|
||||
|
|
@ -18,21 +13,25 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int TokenType { get; set; }
|
||||
public string Token { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public string Token { get; set; }
|
||||
|
||||
public int TokenType { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
TokenType = br.ReadInt32();
|
||||
Token = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Account
|
|||
bw.Write(Constructor);
|
||||
bw.Write(TokenType);
|
||||
StringUtil.Serialize(Token, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(-1374118561)]
|
||||
|
|
@ -19,20 +14,24 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public TLAbsInputPeer Peer { get; set; }
|
||||
public TLAbsReportReason Reason { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public TLAbsReportReason Reason { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
Reason = (TLAbsReportReason)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Account
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Peer, bw);
|
||||
ObjectUtils.SerializeObject(Reason, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(-545786948)]
|
||||
|
|
@ -19,30 +14,27 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public long Hash { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Hash = br.ReadInt64();
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Hash);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(-612493497)]
|
||||
|
|
@ -20,26 +15,22 @@ namespace TeleSharp.TL.Account
|
|||
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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(149257707)]
|
||||
public class TLRequestSendChangePhoneCode : TLMethod
|
||||
{
|
||||
public bool AllowFlashcall { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,19 +15,16 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int Flags { get; set; }
|
||||
public bool AllowFlashcall { get; set; }
|
||||
public string PhoneNumber { get; set; }
|
||||
public bool? CurrentNumber { get; set; }
|
||||
public Auth.TLSentCode Response { get; set; }
|
||||
|
||||
public int Flags { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
public Auth.TLSentCode Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
Flags = 0;
|
||||
Flags = AllowFlashcall ? (Flags | 1) : (Flags & ~1);
|
||||
Flags = CurrentNumber != null ? (Flags | 1) : (Flags & ~1);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -42,25 +36,21 @@ namespace TeleSharp.TL.Account
|
|||
CurrentNumber = BoolUtil.Deserialize(br);
|
||||
else
|
||||
CurrentNumber = null;
|
||||
}
|
||||
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(Flags);
|
||||
|
||||
StringUtil.Serialize(PhoneNumber, bw);
|
||||
if ((Flags & 1) != 0)
|
||||
BoolUtil.Serialize(CurrentNumber.Value, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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(353818557)]
|
||||
public class TLRequestSendConfirmPhoneCode : TLMethod
|
||||
{
|
||||
public bool AllowFlashcall { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,19 +15,16 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int Flags { get; set; }
|
||||
public bool AllowFlashcall { get; set; }
|
||||
public string Hash { get; set; }
|
||||
public bool? CurrentNumber { get; set; }
|
||||
public Auth.TLSentCode Response { get; set; }
|
||||
|
||||
public int Flags { get; set; }
|
||||
|
||||
public string Hash { get; set; }
|
||||
|
||||
public Auth.TLSentCode Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
Flags = 0;
|
||||
Flags = AllowFlashcall ? (Flags | 1) : (Flags & ~1);
|
||||
Flags = CurrentNumber != null ? (Flags | 1) : (Flags & ~1);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -42,25 +36,21 @@ namespace TeleSharp.TL.Account
|
|||
CurrentNumber = BoolUtil.Deserialize(br);
|
||||
else
|
||||
CurrentNumber = null;
|
||||
}
|
||||
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(Flags);
|
||||
|
||||
StringUtil.Serialize(Hash, bw);
|
||||
if ((Flags & 1) != 0)
|
||||
BoolUtil.Serialize(CurrentNumber.Value, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(608323678)]
|
||||
|
|
@ -18,31 +13,28 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public TLAccountDaysTTL Ttl { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public TLAccountDaysTTL Ttl { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Ttl = (TLAccountDaysTTL)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Ttl, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(-906486552)]
|
||||
|
|
@ -19,20 +14,24 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public TLAbsInputPrivacyKey Key { get; set; }
|
||||
public TLVector<TLAbsInputPrivacyRule> Rules { get; set; }
|
||||
|
||||
public Account.TLPrivacyRules Response { get; set; }
|
||||
|
||||
public TLVector<TLAbsInputPrivacyRule> Rules { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Key = (TLAbsInputPrivacyKey)ObjectUtils.DeserializeObject(br);
|
||||
Rules = (TLVector<TLAbsInputPrivacyRule>)ObjectUtils.DeserializeVector<TLAbsInputPrivacyRule>(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Account
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Key, bw);
|
||||
ObjectUtils.SerializeObject(Rules, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Account.TLPrivacyRules)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(1707432768)]
|
||||
|
|
@ -18,21 +13,25 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int TokenType { get; set; }
|
||||
public string Token { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public string Token { get; set; }
|
||||
|
||||
public int TokenType { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
TokenType = br.ReadInt32();
|
||||
Token = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Account
|
|||
bw.Write(Constructor);
|
||||
bw.Write(TokenType);
|
||||
StringUtil.Serialize(Token, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(954152242)]
|
||||
|
|
@ -19,30 +14,27 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public int Period { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Period = br.ReadInt32();
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Period);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(-2067899501)]
|
||||
|
|
@ -19,20 +14,24 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public TLAbsInputNotifyPeer Peer { get; set; }
|
||||
public TLInputPeerNotifySettings Settings { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public TLInputPeerNotifySettings Settings { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Peer = (TLAbsInputNotifyPeer)ObjectUtils.DeserializeObject(br);
|
||||
Settings = (TLInputPeerNotifySettings)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Account
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Peer, bw);
|
||||
ObjectUtils.SerializeObject(Settings, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(-92517498)]
|
||||
|
|
@ -19,20 +14,24 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public byte[] CurrentPasswordHash { get; set; }
|
||||
public Account.TLPasswordInputSettings NewSettings { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public Account.TLPasswordInputSettings NewSettings { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
CurrentPasswordHash = BytesUtil.Deserialize(br);
|
||||
NewSettings = (Account.TLPasswordInputSettings)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Account
|
|||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(CurrentPasswordHash, bw);
|
||||
ObjectUtils.SerializeObject(NewSettings, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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(2018596725)]
|
||||
public class TLRequestUpdateProfile : TLMethod
|
||||
{
|
||||
public string About { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,20 +15,16 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public int Flags { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public string About { get; set; }
|
||||
public TLAbsUser Response { get; set; }
|
||||
|
||||
public int Flags { get; set; }
|
||||
|
||||
public string LastName { get; set; }
|
||||
|
||||
public TLAbsUser Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
Flags = 0;
|
||||
Flags = FirstName != null ? (Flags | 1) : (Flags & ~1);
|
||||
Flags = LastName != null ? (Flags | 2) : (Flags & ~2);
|
||||
Flags = About != null ? (Flags | 4) : (Flags & ~4);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -51,14 +44,16 @@ namespace TeleSharp.TL.Account
|
|||
About = StringUtil.Deserialize(br);
|
||||
else
|
||||
About = null;
|
||||
}
|
||||
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(Flags);
|
||||
if ((Flags & 1) != 0)
|
||||
StringUtil.Serialize(FirstName, bw);
|
||||
|
|
@ -66,12 +61,6 @@ namespace TeleSharp.TL.Account
|
|||
StringUtil.Serialize(LastName, bw);
|
||||
if ((Flags & 4) != 0)
|
||||
StringUtil.Serialize(About, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(1713919532)]
|
||||
|
|
@ -19,30 +14,27 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public bool Offline { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Offline = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BoolUtil.Serialize(Offline, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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(1040964988)]
|
||||
|
|
@ -18,31 +13,28 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
}
|
||||
|
||||
public string Username { get; set; }
|
||||
public TLAbsUser Response { get; set; }
|
||||
|
||||
public string Username { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Username = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(Username, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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)]
|
||||
|
|
@ -19,19 +14,17 @@ namespace TeleSharp.TL.Account
|
|||
}
|
||||
|
||||
public byte[] TmpPassword { get; set; }
|
||||
public int ValidUntil { get; set; }
|
||||
|
||||
public int ValidUntil { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
TmpPassword = BytesUtil.Deserialize(br);
|
||||
ValidUntil = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -39,7 +32,6 @@ namespace TeleSharp.TL.Account
|
|||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(TmpPassword, bw);
|
||||
bw.Write(ValidUntil);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,3 @@
|
|||
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.Auth
|
||||
{
|
||||
public abstract class TLAbsCodeType : TLObject
|
||||
|
|
|
|||
|
|
@ -1,10 +1,3 @@
|
|||
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.Auth
|
||||
{
|
||||
public abstract class TLAbsSentCodeType : TLObject
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(-855308010)]
|
||||
|
|
@ -19,15 +14,13 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
|
||||
public int Flags { get; set; }
|
||||
public int? TmpSessions { get; set; }
|
||||
public TLAbsUser User { get; set; }
|
||||
|
||||
public int? TmpSessions { get; set; }
|
||||
|
||||
public TLAbsUser User { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
Flags = 0;
|
||||
Flags = TmpSessions != null ? (Flags | 1) : (Flags & ~1);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -39,18 +32,15 @@ namespace TeleSharp.TL.Auth
|
|||
TmpSessions = null;
|
||||
|
||||
User = (TLAbsUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(Flags);
|
||||
if ((Flags & 1) != 0)
|
||||
bw.Write(TmpSessions.Value);
|
||||
ObjectUtils.SerializeObject(User, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(-2128698738)]
|
||||
|
|
@ -20,23 +15,19 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public bool PhoneRegistered { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
PhoneRegistered = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BoolUtil.Serialize(PhoneRegistered, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(1948046307)]
|
||||
|
|
@ -18,22 +13,17 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(577556219)]
|
||||
|
|
@ -18,22 +13,17 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(1923290508)]
|
||||
|
|
@ -18,22 +13,17 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(-543777747)]
|
||||
public class TLExportedAuthorization : TLObject
|
||||
{
|
||||
public byte[] Bytes { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -19,19 +16,15 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
public byte[] Bytes { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Id = br.ReadInt32();
|
||||
Bytes = BytesUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -39,7 +32,6 @@ namespace TeleSharp.TL.Auth
|
|||
bw.Write(Constructor);
|
||||
bw.Write(Id);
|
||||
BytesUtil.Serialize(Bytes, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(326715557)]
|
||||
|
|
@ -20,23 +15,19 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public string EmailPattern { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
EmailPattern = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(EmailPattern, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(-841733627)]
|
||||
|
|
@ -18,16 +13,18 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public long PermAuthKeyId { get; set; }
|
||||
public long Nonce { get; set; }
|
||||
public int ExpiresAt { get; set; }
|
||||
public byte[] EncryptedMessage { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public int ExpiresAt { get; set; }
|
||||
|
||||
public long Nonce { get; set; }
|
||||
|
||||
public long PermAuthKeyId { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -36,7 +33,11 @@ namespace TeleSharp.TL.Auth
|
|||
Nonce = br.ReadInt64();
|
||||
ExpiresAt = br.ReadInt32();
|
||||
EncryptedMessage = BytesUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -46,12 +47,6 @@ namespace TeleSharp.TL.Auth
|
|||
bw.Write(Nonce);
|
||||
bw.Write(ExpiresAt);
|
||||
BytesUtil.Serialize(EncryptedMessage, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(520357240)]
|
||||
|
|
@ -18,21 +13,25 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
public string PhoneCodeHash { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
PhoneNumber = StringUtil.Deserialize(br);
|
||||
PhoneCodeHash = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Auth
|
|||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(PhoneNumber, bw);
|
||||
StringUtil.Serialize(PhoneCodeHash, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(174260510)]
|
||||
|
|
@ -19,30 +14,27 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
|
||||
public byte[] PasswordHash { get; set; }
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
PasswordHash = BytesUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(PasswordHash, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(1877286395)]
|
||||
|
|
@ -19,30 +14,27 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
public Auth.TLCheckedPhone Response { get; set; }
|
||||
|
||||
public Auth.TLCheckedPhone Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
PhoneNumber = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLCheckedPhone)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(PhoneNumber, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLCheckedPhone)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(-1907842680)]
|
||||
|
|
@ -19,30 +14,27 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
|
||||
public TLVector<long> ExceptAuthKeys { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
ExceptAuthKeys = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(ExceptAuthKeys, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(-440401971)]
|
||||
|
|
@ -19,30 +14,27 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
|
||||
public int DcId { get; set; }
|
||||
public Auth.TLExportedAuthorization Response { get; set; }
|
||||
|
||||
public Auth.TLExportedAuthorization Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
DcId = br.ReadInt32();
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLExportedAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(DcId);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLExportedAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(-470837741)]
|
||||
public class TLRequestImportAuthorization : TLMethod
|
||||
{
|
||||
public byte[] Bytes { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -19,20 +16,22 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
public byte[] Bytes { get; set; }
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Id = br.ReadInt32();
|
||||
Bytes = BytesUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Auth
|
|||
bw.Write(Constructor);
|
||||
bw.Write(Id);
|
||||
BytesUtil.Serialize(Bytes, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,16 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(1738800940)]
|
||||
public class TLRequestImportBotAuthorization : TLMethod
|
||||
{
|
||||
public string ApiHash { get; set; }
|
||||
|
||||
public int ApiId { get; set; }
|
||||
|
||||
public string BotAuthToken { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -19,16 +20,11 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
|
||||
public int Flags { get; set; }
|
||||
public int ApiId { get; set; }
|
||||
public string ApiHash { get; set; }
|
||||
public string BotAuthToken { get; set; }
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
Flags = 0;
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -37,23 +33,20 @@ namespace TeleSharp.TL.Auth
|
|||
ApiId = br.ReadInt32();
|
||||
ApiHash = StringUtil.Deserialize(br);
|
||||
BotAuthToken = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(Flags);
|
||||
bw.Write(ApiId);
|
||||
StringUtil.Serialize(ApiHash, bw);
|
||||
StringUtil.Serialize(BotAuthToken, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(1461180992)]
|
||||
|
|
@ -20,26 +15,22 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(1319464594)]
|
||||
public class TLRequestRecoverPassword : TLMethod
|
||||
{
|
||||
public string Code { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,31 +15,26 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public string Code { get; set; }
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Code = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(Code, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(-661144474)]
|
||||
|
|
@ -20,26 +15,22 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public Auth.TLPasswordRecovery Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLPasswordRecovery)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLPasswordRecovery)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(1056025023)]
|
||||
|
|
@ -18,21 +13,25 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
public string PhoneCodeHash { get; set; }
|
||||
public Auth.TLSentCode Response { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
public Auth.TLSentCode Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
PhoneNumber = StringUtil.Deserialize(br);
|
||||
PhoneCodeHash = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Auth
|
|||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(PhoneNumber, bw);
|
||||
StringUtil.Serialize(PhoneCodeHash, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(-1616179942)]
|
||||
|
|
@ -20,26 +15,22 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,16 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(-2035355412)]
|
||||
public class TLRequestSendCode : TLMethod
|
||||
{
|
||||
public bool AllowFlashcall { get; set; }
|
||||
|
||||
public string ApiHash { get; set; }
|
||||
|
||||
public int ApiId { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,21 +19,16 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public int Flags { get; set; }
|
||||
public bool AllowFlashcall { get; set; }
|
||||
public string PhoneNumber { get; set; }
|
||||
public bool? CurrentNumber { get; set; }
|
||||
public int ApiId { get; set; }
|
||||
public string ApiHash { get; set; }
|
||||
public Auth.TLSentCode Response { get; set; }
|
||||
|
||||
public int Flags { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
public Auth.TLSentCode Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
Flags = 0;
|
||||
Flags = AllowFlashcall ? (Flags | 1) : (Flags & ~1);
|
||||
Flags = CurrentNumber != null ? (Flags | 1) : (Flags & ~1);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -47,13 +43,16 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
ApiId = br.ReadInt32();
|
||||
ApiHash = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(Flags);
|
||||
|
||||
StringUtil.Serialize(PhoneNumber, bw);
|
||||
|
|
@ -61,12 +60,6 @@ namespace TeleSharp.TL.Auth
|
|||
BoolUtil.Serialize(CurrentNumber.Value, bw);
|
||||
bw.Write(ApiId);
|
||||
StringUtil.Serialize(ApiHash, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLSentCode)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(1998331287)]
|
||||
|
|
@ -18,21 +13,25 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<string> PhoneNumbers { get; set; }
|
||||
public string Message { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public TLVector<string> PhoneNumbers { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
PhoneNumbers = (TLVector<string>)ObjectUtils.DeserializeVector<string>(br);
|
||||
Message = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Auth
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(PhoneNumbers, bw);
|
||||
StringUtil.Serialize(Message, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(-1126886015)]
|
||||
|
|
@ -18,15 +13,16 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
public string PhoneCodeHash { get; set; }
|
||||
public string PhoneCode { get; set; }
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
public string PhoneCodeHash { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -34,7 +30,11 @@ namespace TeleSharp.TL.Auth
|
|||
PhoneNumber = StringUtil.Deserialize(br);
|
||||
PhoneCodeHash = StringUtil.Deserialize(br);
|
||||
PhoneCode = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -43,12 +43,6 @@ namespace TeleSharp.TL.Auth
|
|||
StringUtil.Serialize(PhoneNumber, bw);
|
||||
StringUtil.Serialize(PhoneCodeHash, bw);
|
||||
StringUtil.Serialize(PhoneCode, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(453408308)]
|
||||
|
|
@ -18,17 +13,20 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
}
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
public string PhoneCodeHash { get; set; }
|
||||
public string PhoneCode { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
public string LastName { get; set; }
|
||||
|
||||
public string PhoneCode { get; set; }
|
||||
|
||||
public string PhoneCodeHash { get; set; }
|
||||
|
||||
public string PhoneNumber { get; set; }
|
||||
|
||||
public Auth.TLAuthorization Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -38,7 +36,11 @@ namespace TeleSharp.TL.Auth
|
|||
PhoneCode = StringUtil.Deserialize(br);
|
||||
FirstName = StringUtil.Deserialize(br);
|
||||
LastName = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -49,12 +51,6 @@ namespace TeleSharp.TL.Auth
|
|||
StringUtil.Serialize(PhoneCode, bw);
|
||||
StringUtil.Serialize(FirstName, bw);
|
||||
StringUtil.Serialize(LastName, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Auth.TLAuthorization)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(1577067778)]
|
||||
|
|
@ -19,20 +14,19 @@ namespace TeleSharp.TL.Auth
|
|||
}
|
||||
|
||||
public int Flags { get; set; }
|
||||
public bool PhoneRegistered { get; set; }
|
||||
public Auth.TLAbsSentCodeType Type { get; set; }
|
||||
public string PhoneCodeHash { get; set; }
|
||||
|
||||
public Auth.TLAbsCodeType NextType { get; set; }
|
||||
|
||||
public string PhoneCodeHash { get; set; }
|
||||
|
||||
public bool PhoneRegistered { get; set; }
|
||||
|
||||
public int? Timeout { get; set; }
|
||||
|
||||
public Auth.TLAbsSentCodeType Type { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
Flags = 0;
|
||||
Flags = PhoneRegistered ? (Flags | 1) : (Flags & ~1);
|
||||
Flags = NextType != null ? (Flags | 2) : (Flags & ~2);
|
||||
Flags = Timeout != null ? (Flags | 4) : (Flags & ~4);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -50,14 +44,11 @@ namespace TeleSharp.TL.Auth
|
|||
Timeout = br.ReadInt32();
|
||||
else
|
||||
Timeout = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(Flags);
|
||||
|
||||
ObjectUtils.SerializeObject(Type, bw);
|
||||
|
|
@ -66,7 +57,6 @@ namespace TeleSharp.TL.Auth
|
|||
ObjectUtils.SerializeObject(NextType, bw);
|
||||
if ((Flags & 4) != 0)
|
||||
bw.Write(Timeout.Value);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(1035688326)]
|
||||
|
|
@ -20,23 +15,19 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public int Length { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Length = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Length);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(1398007207)]
|
||||
|
|
@ -20,23 +15,19 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public int Length { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Length = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Length);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(-1425815847)]
|
||||
|
|
@ -20,23 +15,19 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public string Pattern { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Pattern = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(Pattern, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Auth
|
||||
{
|
||||
[TLObject(-1073693790)]
|
||||
|
|
@ -20,23 +15,19 @@ namespace TeleSharp.TL.Auth
|
|||
|
||||
public int Length { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Length = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Length);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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)]
|
||||
|
|
@ -18,21 +13,25 @@ namespace TeleSharp.TL.Bots
|
|||
}
|
||||
}
|
||||
|
||||
public long QueryId { get; set; }
|
||||
public TLDataJSON Data { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public long QueryId { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
QueryId = br.ReadInt64();
|
||||
Data = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Bots
|
|||
bw.Write(Constructor);
|
||||
bw.Write(QueryId);
|
||||
ObjectUtils.SerializeObject(Data, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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)]
|
||||
|
|
@ -19,20 +14,24 @@ namespace TeleSharp.TL.Bots
|
|||
}
|
||||
|
||||
public string CustomMethod { get; set; }
|
||||
public TLDataJSON Params { get; set; }
|
||||
public TLDataJSON Response { get; set; }
|
||||
|
||||
public TLDataJSON Params { get; set; }
|
||||
|
||||
public TLDataJSON Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
CustomMethod = StringUtil.Deserialize(br);
|
||||
Params = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Bots
|
|||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(CustomMethod, bw);
|
||||
ObjectUtils.SerializeObject(Params, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
41
TeleSharp.TL/TL/Channels/TLAdminLogResults.cs
Normal file
41
TeleSharp.TL/TL/Channels/TLAdminLogResults.cs
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
using System.IO;
|
||||
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-309659827)]
|
||||
public class TLAdminLogResults : TLObject
|
||||
{
|
||||
public TLVector<TLAbsChat> Chats { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -309659827;
|
||||
}
|
||||
}
|
||||
|
||||
public TLVector<TLChannelAdminLogEvent> Events { get; set; }
|
||||
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Events = (TLVector<TLChannelAdminLogEvent>)ObjectUtils.DeserializeVector<TLChannelAdminLogEvent>(br);
|
||||
Chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Events, bw);
|
||||
ObjectUtils.SerializeObject(Chats, bw);
|
||||
ObjectUtils.SerializeObject(Users, bw);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +1,5 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-791039645)]
|
||||
|
|
@ -19,19 +14,17 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
|
||||
public TLAbsChannelParticipant Participant { get; set; }
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Participant = (TLAbsChannelParticipant)ObjectUtils.DeserializeObject(br);
|
||||
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -39,7 +32,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Participant, bw);
|
||||
ObjectUtils.SerializeObject(Users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-177282392)]
|
||||
|
|
@ -19,13 +14,13 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
|
||||
public int Count { get; set; }
|
||||
public TLVector<TLAbsChannelParticipant> Participants { get; set; }
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
public TLVector<TLAbsChannelParticipant> Participants { get; set; }
|
||||
|
||||
public TLVector<TLAbsUser> Users { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -33,7 +28,6 @@ namespace TeleSharp.TL.Channels
|
|||
Count = br.ReadInt32();
|
||||
Participants = (TLVector<TLAbsChannelParticipant>)ObjectUtils.DeserializeVector<TLAbsChannelParticipant>(br);
|
||||
Users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -42,7 +36,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Count);
|
||||
ObjectUtils.SerializeObject(Participants, bw);
|
||||
ObjectUtils.SerializeObject(Users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(283557164)]
|
||||
public class TLRequestCheckUsername : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,21 +15,23 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public string Username { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public string Username { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
Username = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
StringUtil.Serialize(Username, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,14 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-192332417)]
|
||||
public class TLRequestCreateChannel : TLMethod
|
||||
{
|
||||
public string About { get; set; }
|
||||
|
||||
public bool Broadcast { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -19,19 +18,15 @@ 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 string Title { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
Flags = 0;
|
||||
Flags = Broadcast ? (Flags | 1) : (Flags & ~1);
|
||||
Flags = Megagroup ? (Flags | 2) : (Flags & ~2);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -41,24 +36,21 @@ namespace TeleSharp.TL.Channels
|
|||
Megagroup = (Flags & 2) != 0;
|
||||
Title = StringUtil.Deserialize(br);
|
||||
About = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(Flags);
|
||||
|
||||
|
||||
StringUtil.Serialize(Title, bw);
|
||||
StringUtil.Serialize(About, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-1072619549)]
|
||||
public class TLRequestDeleteChannel : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,31 +15,26 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-2067661490)]
|
||||
public class TLRequestDeleteMessages : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,21 +15,23 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public TLVector<int> Id { get; set; }
|
||||
public Messages.TLAffectedMessages Response { get; set; }
|
||||
|
||||
public Messages.TLAffectedMessages Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
Id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
ObjectUtils.SerializeObject(Id, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-787622117)]
|
||||
public class TLRequestDeleteUserHistory : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,21 +15,23 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public TLAbsInputUser UserId { get; set; }
|
||||
public Messages.TLAffectedHistory Response { get; set; }
|
||||
|
||||
public TLAbsInputUser UserId { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
UserId = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
ObjectUtils.SerializeObject(UserId, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,14 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(333610782)]
|
||||
public class TLRequestEditAbout : TLMethod
|
||||
{
|
||||
public string About { get; set; }
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,21 +17,21 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public string About { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
About = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
StringUtil.Serialize(About, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,40 +1,40 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-344583728)]
|
||||
[TLObject(548962836)]
|
||||
public class TLRequestEditAdmin : TLMethod
|
||||
{
|
||||
public TLChannelAdminRights AdminRights { get; set; }
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -344583728;
|
||||
return 548962836;
|
||||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public TLAbsInputUser UserId { get; set; }
|
||||
public TLAbsChannelParticipantRole Role { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
public TLAbsInputUser UserId { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
UserId = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
Role = (TLAbsChannelParticipantRole)ObjectUtils.DeserializeObject(br);
|
||||
AdminRights = (TLChannelAdminRights)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -42,13 +42,7 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
ObjectUtils.SerializeObject(UserId, bw);
|
||||
ObjectUtils.SerializeObject(Role, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
ObjectUtils.SerializeObject(AdminRights, bw);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,40 +1,40 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-1502421484)]
|
||||
public class TLRequestKickFromChannel : TLMethod
|
||||
[TLObject(-1076292147)]
|
||||
public class TLRequestEditBanned : TLMethod
|
||||
{
|
||||
public TLChannelBannedRights BannedRights { get; set; }
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -1502421484;
|
||||
return -1076292147;
|
||||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public TLAbsInputUser UserId { get; set; }
|
||||
public bool Kicked { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
public TLAbsInputUser UserId { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
UserId = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
Kicked = BoolUtil.Deserialize(br);
|
||||
BannedRights = (TLChannelBannedRights)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -42,13 +42,7 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
ObjectUtils.SerializeObject(UserId, bw);
|
||||
BoolUtil.Serialize(Kicked, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
ObjectUtils.SerializeObject(BannedRights, bw);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-248621111)]
|
||||
public class TLRequestEditPhoto : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,21 +15,23 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public TLAbsInputChatPhoto Photo { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
Photo = (TLAbsInputChatPhoto)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
ObjectUtils.SerializeObject(Photo, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(1450044624)]
|
||||
public class TLRequestEditTitle : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,21 +15,23 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public string Title { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
Title = StringUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
StringUtil.Serialize(Title, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-950663035)]
|
||||
public class TLRequestExportInvite : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,31 +15,26 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public TLAbsExportedChatInvite Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-934882771)]
|
||||
public class TLRequestExportMessageLink : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,21 +15,23 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public int Id { get; set; }
|
||||
public TLExportedMessageLink Response { get; set; }
|
||||
|
||||
public TLExportedMessageLink Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
Id = br.ReadInt32();
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLExportedMessageLink)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
bw.Write(Id);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLExportedMessageLink)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
78
TeleSharp.TL/TL/Channels/TLRequestGetAdminLog.cs
Normal file
78
TeleSharp.TL/TL/Channels/TLRequestGetAdminLog.cs
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
using System.IO;
|
||||
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(870184064)]
|
||||
public class TLRequestGetAdminLog : TLMethod
|
||||
{
|
||||
public TLVector<TLAbsInputUser> Admins { get; set; }
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 870184064;
|
||||
}
|
||||
}
|
||||
|
||||
public TLChannelAdminLogEventsFilter EventsFilter { get; set; }
|
||||
|
||||
public int Flags { get; set; }
|
||||
|
||||
public int Limit { get; set; }
|
||||
|
||||
public long MaxId { get; set; }
|
||||
|
||||
public long MinId { get; set; }
|
||||
|
||||
public string Q { get; set; }
|
||||
|
||||
public Channels.TLAdminLogResults Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Flags = br.ReadInt32();
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
Q = StringUtil.Deserialize(br);
|
||||
if ((Flags & 1) != 0)
|
||||
EventsFilter = (TLChannelAdminLogEventsFilter)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
EventsFilter = null;
|
||||
|
||||
if ((Flags & 2) != 0)
|
||||
Admins = (TLVector<TLAbsInputUser>)ObjectUtils.DeserializeVector<TLAbsInputUser>(br);
|
||||
else
|
||||
Admins = null;
|
||||
|
||||
MaxId = br.ReadInt64();
|
||||
MinId = br.ReadInt64();
|
||||
Limit = br.ReadInt32();
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Channels.TLAdminLogResults)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Flags);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
StringUtil.Serialize(Q, bw);
|
||||
if ((Flags & 1) != 0)
|
||||
ObjectUtils.SerializeObject(EventsFilter, bw);
|
||||
if ((Flags & 2) != 0)
|
||||
ObjectUtils.SerializeObject(Admins, bw);
|
||||
bw.Write(MaxId);
|
||||
bw.Write(MinId);
|
||||
bw.Write(Limit);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,10 +1,5 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-1920105769)]
|
||||
|
|
@ -20,26 +15,22 @@ namespace TeleSharp.TL.Channels
|
|||
|
||||
public Messages.TLAbsChats Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,5 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(176122811)]
|
||||
|
|
@ -19,30 +14,27 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
|
||||
public TLVector<TLAbsInputChannel> Id { get; set; }
|
||||
public Messages.TLAbsChats Response { get; set; }
|
||||
|
||||
public Messages.TLAbsChats Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Id = (TLVector<TLAbsInputChannel>)ObjectUtils.DeserializeVector<TLAbsInputChannel>(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Id, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(141781513)]
|
||||
public class TLRequestGetFullChannel : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,31 +15,26 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public Messages.TLChatFull Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLChatFull)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLChatFull)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-1814580409)]
|
||||
public class TLRequestGetMessages : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,21 +15,23 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public TLVector<int> Id { get; set; }
|
||||
public Messages.TLAbsMessages Response { get; set; }
|
||||
|
||||
public Messages.TLAbsMessages Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
Id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
ObjectUtils.SerializeObject(Id, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(1416484774)]
|
||||
public class TLRequestGetParticipant : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,21 +15,23 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public TLAbsInputUser UserId { get; set; }
|
||||
public Channels.TLChannelParticipant Response { get; set; }
|
||||
|
||||
public TLAbsInputUser UserId { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
UserId = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Channels.TLChannelParticipant)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
ObjectUtils.SerializeObject(UserId, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Channels.TLChannelParticipant)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(618237842)]
|
||||
public class TLRequestGetParticipants : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,16 +15,16 @@ 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 int Limit { get; set; }
|
||||
|
||||
public int Offset { get; set; }
|
||||
|
||||
public Channels.TLChannelParticipants Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -36,7 +33,11 @@ namespace TeleSharp.TL.Channels
|
|||
Filter = (TLAbsChannelParticipantsFilter)ObjectUtils.DeserializeObject(br);
|
||||
Offset = br.ReadInt32();
|
||||
Limit = br.ReadInt32();
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Channels.TLChannelParticipants)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -46,12 +47,6 @@ namespace TeleSharp.TL.Channels
|
|||
ObjectUtils.SerializeObject(Filter, bw);
|
||||
bw.Write(Offset);
|
||||
bw.Write(Limit);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Channels.TLChannelParticipants)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(429865580)]
|
||||
public class TLRequestInviteToChannel : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,21 +15,23 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public TLVector<TLAbsInputUser> Users { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
public TLVector<TLAbsInputUser> Users { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
Users = (TLVector<TLAbsInputUser>)ObjectUtils.DeserializeVector<TLAbsInputUser>(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
ObjectUtils.SerializeObject(Users, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(615851205)]
|
||||
public class TLRequestJoinChannel : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,31 +15,26 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-130635115)]
|
||||
public class TLRequestLeaveChannel : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,31 +15,26 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-871347913)]
|
||||
public class TLRequestReadHistory : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,21 +15,23 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public int MaxId { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
MaxId = br.ReadInt32();
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
bw.Write(MaxId);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
44
TeleSharp.TL/TL/Channels/TLRequestReadMessageContents.cs
Normal file
44
TeleSharp.TL/TL/Channels/TLRequestReadMessageContents.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
using System.IO;
|
||||
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-357180360)]
|
||||
public class TLRequestReadMessageContents : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -357180360;
|
||||
}
|
||||
}
|
||||
|
||||
public TLVector<int> Id { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
Id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
ObjectUtils.SerializeObject(Id, bw);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(-32999408)]
|
||||
public class TLRequestReportSpam : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,15 +15,14 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public TLAbsInputUser UserId { get; set; }
|
||||
public TLVector<int> Id { get; set; }
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public TLAbsInputUser UserId { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -34,7 +30,11 @@ namespace TeleSharp.TL.Channels
|
|||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
UserId = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
Id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -43,12 +43,6 @@ namespace TeleSharp.TL.Channels
|
|||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
ObjectUtils.SerializeObject(UserId, bw);
|
||||
ObjectUtils.SerializeObject(Id, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
44
TeleSharp.TL/TL/Channels/TLRequestSetStickers.cs
Normal file
44
TeleSharp.TL/TL/Channels/TLRequestSetStickers.cs
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
using System.IO;
|
||||
|
||||
namespace TeleSharp.TL.Channels
|
||||
{
|
||||
[TLObject(-359881479)]
|
||||
public class TLRequestSetStickers : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -359881479;
|
||||
}
|
||||
}
|
||||
|
||||
public bool Response { get; set; }
|
||||
|
||||
public TLAbsInputStickerSet Stickerset { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
Stickerset = (TLAbsInputStickerSet)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
ObjectUtils.SerializeObject(Stickerset, bw);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(1231065863)]
|
||||
public class TLRequestToggleInvites : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,21 +15,23 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public bool Enabled { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
Enabled = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
BoolUtil.Serialize(Enabled, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
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.Channels
|
||||
{
|
||||
[TLObject(527021574)]
|
||||
public class TLRequestToggleSignatures : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -18,21 +15,23 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
public bool Enabled { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
Enabled = BoolUtil.Deserialize(br);
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
|
|
@ -40,12 +39,6 @@ namespace TeleSharp.TL.Channels
|
|||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
BoolUtil.Serialize(Enabled, bw);
|
||||
|
||||
}
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue