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) { Thumb = (TLAbsWebDocument)ObjectUtils.DeserializeObject(br); } else { Thumb = null; } if ((Flags & 32) != 0) { Content = (TLAbsWebDocument)ObjectUtils.DeserializeObject(br); } else { Content = null; } SendMessage = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); id = StringUtil.Deserialize(br); type = StringUtil.Deserialize(br); if ((flags & 1) != 0) { photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); } else { photo = null; } if ((flags & 2) != 0) { document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); } else { document = null; } if ((flags & 4) != 0) { title = StringUtil.Deserialize(br); } else { title = null; } if ((flags & 8) != 0) { description = StringUtil.Deserialize(br); } else { description = null; } send_message = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br); Type = TLAbsBotInlineResultTypes.TLBotInlineMediaResult; }
public override void DeserializeBody(BinaryReader br) { this.Flags = br.ReadInt32(); this.Id = StringUtil.Deserialize(br); this.Type = StringUtil.Deserialize(br); if ((this.Flags & 1) != 0) { this.Photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); } else { this.Photo = null; } if ((this.Flags & 2) != 0) { this.Document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); } else { this.Document = null; } if ((this.Flags & 4) != 0) { this.Title = StringUtil.Deserialize(br); } else { this.Title = null; } if ((this.Flags & 8) != 0) { this.Description = StringUtil.Deserialize(br); } else { this.Description = null; } this.SendMessage = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br); }
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) { thumb_url = StringUtil.Deserialize(br); } else { thumb_url = null; } if ((flags & 32) != 0) { content_url = StringUtil.Deserialize(br); } else { content_url = null; } if ((flags & 32) != 0) { content_type = StringUtil.Deserialize(br); } else { content_type = 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; } send_message = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { this.Flags = br.ReadInt32(); this.Id = StringUtil.Deserialize(br); this.Type = StringUtil.Deserialize(br); if ((this.Flags & 2) != 0) { this.Title = StringUtil.Deserialize(br); } else { this.Title = null; } if ((this.Flags & 4) != 0) { this.Description = StringUtil.Deserialize(br); } else { this.Description = null; } if ((this.Flags & 8) != 0) { this.Url = StringUtil.Deserialize(br); } else { this.Url = null; } if ((this.Flags & 16) != 0) { this.ThumbUrl = StringUtil.Deserialize(br); } else { this.ThumbUrl = null; } if ((this.Flags & 32) != 0) { this.ContentUrl = StringUtil.Deserialize(br); } else { this.ContentUrl = null; } if ((this.Flags & 32) != 0) { this.ContentType = StringUtil.Deserialize(br); } else { this.ContentType = null; } if ((this.Flags & 64) != 0) { this.W = br.ReadInt32(); } else { this.W = null; } if ((this.Flags & 64) != 0) { this.H = br.ReadInt32(); } else { this.H = null; } if ((this.Flags & 128) != 0) { this.Duration = br.ReadInt32(); } else { this.Duration = null; } this.SendMessage = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br); }