mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-06 06:55:06 +00:00
update to layer 71
code formatting
This commit is contained in:
parent
687eca968a
commit
ca3a71e39a
930 changed files with 6690 additions and 11417 deletions
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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(-1490162350)]
|
||||
public class TLRequestUpdatePinnedMessage : TLMethod
|
||||
{
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
|
|
@ -19,17 +16,15 @@ namespace TeleSharp.TL.Channels
|
|||
}
|
||||
|
||||
public int Flags { get; set; }
|
||||
public bool Silent { get; set; }
|
||||
public TLAbsInputChannel Channel { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
public bool Silent { get; set; }
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
Flags = 0;
|
||||
Flags = Silent ? (Flags | 1) : (Flags & ~1);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
|
|
@ -38,23 +33,20 @@ namespace TeleSharp.TL.Channels
|
|||
Silent = (Flags & 1) != 0;
|
||||
Channel = (TLAbsInputChannel)ObjectUtils.DeserializeObject(br);
|
||||
Id = br.ReadInt32();
|
||||
}
|
||||
|
||||
public override void DeserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(Flags);
|
||||
|
||||
ObjectUtils.SerializeObject(Channel, bw);
|
||||
bw.Write(Id);
|
||||
|
||||
}
|
||||
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(890549214)]
|
||||
public class TLRequestUpdateUsername : 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);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue