TLSharp/TeleSharp.TL/TL/TLBotInfo.cs
2017-04-13 13:38:01 +07:00

34 lines
886 B
C#

using System.IO;
namespace TeleSharp.TL
{
[TLObject(-1729618630)]
public class TLBotInfo : TLObject
{
public override int Constructor => -1729618630;
public int user_id { get; set; }
public string description { get; set; }
public TLVector<TLBotCommand> commands { get; set; }
public void ComputeFlags()
{
}
public override void DeserializeBody(BinaryReader br)
{
user_id = br.ReadInt32();
description = StringUtil.Deserialize(br);
commands = ObjectUtils.DeserializeVector<TLBotCommand>(br);
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(user_id);
StringUtil.Serialize(description, bw);
ObjectUtils.SerializeObject(commands, bw);
}
}
}