TLSharp/TeleSharp.TL/TL/TLInputBotInlineMessageGame.cs

42 lines
982 B
C#
Raw Normal View History

2016-10-13 19:33:16 +02:00
using System.IO;
2017-12-20 12:06:31 +01:00
2016-10-13 19:33:16 +02:00
namespace TeleSharp.TL
{
[TLObject(1262639204)]
2016-10-13 19:33:16 +02:00
public class TLInputBotInlineMessageGame : TLAbsInputBotInlineMessage
{
public override int Constructor
{
get
{
return 1262639204;
}
}
public int Flags { get; set; }
2016-10-13 19:33:16 +02:00
2017-12-20 12:06:31 +01:00
public TLAbsReplyMarkup ReplyMarkup { get; set; }
2016-10-13 19:33:16 +02:00
public void ComputeFlags()
{
}
2016-10-13 19:33:16 +02:00
public override void DeserializeBody(BinaryReader br)
{
Flags = br.ReadInt32();
if ((Flags & 4) != 0)
ReplyMarkup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br);
else
ReplyMarkup = null;
2016-10-13 19:33:16 +02:00
}
public override void SerializeBody(BinaryWriter bw)
{
bw.Write(Constructor);
bw.Write(Flags);
if ((Flags & 4) != 0)
ObjectUtils.SerializeObject(ReplyMarkup, bw);
2016-10-13 19:33:16 +02:00
}
}
}