TLSharp/TeleSharp.TL/TL/Messages/TLRequestEditChatPhoto.cs
2020-10-25 21:21:07 +03:00

47 lines
1 KiB
C#

using System.IO;
namespace TeleSharp.TL.Messages
{
[TLObject(-900957736)]
public class TLRequestEditChatPhoto : TLMethod
{
public override int Constructor
{
get
{
return -900957736;
}
}
public long ChatId { get; set; }
public TLAbsInputChatPhoto Photo { get; set; }
public TLAbsUpdates Response { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
ChatId = br.ReadInt64();
Photo = (TLAbsInputChatPhoto)ObjectUtils.DeserializeObject(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(ChatId);
ObjectUtils.SerializeObject(Photo, bw);
}
public override void DeserializeResponse(BinaryReader br)
{
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
}
}
}