public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Id = StringUtil.Deserialize(br); Type = StringUtil.Deserialize(br); if ((Flags & 2) != 0) { Title = StringUtil.Deserialize(br); } else { Title = null; } if ((Flags & 4) != 0) { Description = StringUtil.Deserialize(br); } else { Description = null; } Document = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br); SendMessage = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); }
public override void deserializeBody(InputStream stream, TLContext context) { this.id = StreamingUtils.readTLString(stream); this.type = StreamingUtils.readTLString(stream); this.photo = StreamingUtils.readTLObject(stream, context); this.sendMessage = StreamingUtils.readTLObject(stream, context); }
public override void DeserializeBody(BinaryReader br) { Id = StringUtil.Deserialize(br); Type = StringUtil.Deserialize(br); Photo = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br); SendMessage = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); }
public override void deserializeBody(InputStream stream, TLContext context) { this.flags = StreamingUtils.readInt(stream); this.id = StreamingUtils.readTLString(stream); this.type = StreamingUtils.readTLString(stream); if ((this.flags & 2) != 0) { this.title = StreamingUtils.readTLString(stream); } if ((this.flags & 4) != 0) { this.description = StreamingUtils.readTLString(stream); } this.document = StreamingUtils.readTLObject(stream, context); this.sendMessage = StreamingUtils.readTLObject(stream, context); }
public override void deserializeBody(InputStream stream, TLContext context) { this.flags = StreamingUtils.readInt(stream); this.id = StreamingUtils.readTLString(stream); this.type = StreamingUtils.readTLString(stream); if ((this.flags & 2) != 0) { this.title = StreamingUtils.readTLString(stream); } if ((this.flags & 4) != 0) { this.description = StreamingUtils.readTLString(stream); } if ((this.flags & 8) != 0) { this.url = StreamingUtils.readTLString(stream); } if ((this.flags & 0x10) != 0) { this.thumbUrl = StreamingUtils.readTLString(stream); } if ((this.flags & 0x20) != 0) { this.contentUrl = StreamingUtils.readTLString(stream); this.contentType = StreamingUtils.readTLString(stream); } if ((this.flags & 0x40) != 0) { this.w = StreamingUtils.readInt(stream); this.h = StreamingUtils.readInt(stream); } if ((this.flags & 0x80) != 0) { this.duration = StreamingUtils.readInt(stream); } this.sendMessage = StreamingUtils.readTLObject(stream, context); }
public virtual void setSendMessage(TLAbsInputBotInlineMessage sendMessage) { this.sendMessage = sendMessage; }
public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Id = StringUtil.Deserialize(br); Type = StringUtil.Deserialize(br); if ((Flags & 2) != 0) { Title = StringUtil.Deserialize(br); } else { Title = null; } if ((Flags & 4) != 0) { Description = StringUtil.Deserialize(br); } else { Description = null; } if ((Flags & 8) != 0) { Url = StringUtil.Deserialize(br); } else { Url = null; } if ((Flags & 16) != 0) { ThumbUrl = StringUtil.Deserialize(br); } else { ThumbUrl = null; } if ((Flags & 32) != 0) { ContentUrl = StringUtil.Deserialize(br); } else { ContentUrl = null; } if ((Flags & 32) != 0) { ContentType = StringUtil.Deserialize(br); } else { ContentType = null; } if ((Flags & 64) != 0) { W = br.ReadInt32(); } else { W = null; } if ((Flags & 64) != 0) { H = br.ReadInt32(); } else { H = null; } if ((Flags & 128) != 0) { Duration = br.ReadInt32(); } else { Duration = null; } SendMessage = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); }