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 = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Theme = (TLTheme)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Id = StringUtil.Deserialize(br); ShortName = StringUtil.Deserialize(br); SendMessage = (TLAbsInputBotInlineMessage)ObjectUtils.DeserializeObject(br); }
public override void deserializeResponse(BinaryReader br) { Response = (TLObject)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Self = (Flags & 1024) != 0; Contact = (Flags & 2048) != 0; MutualContact = (Flags & 4096) != 0; Deleted = (Flags & 8192) != 0; Bot = (Flags & 16384) != 0; BotChatHistory = (Flags & 32768) != 0; BotNochats = (Flags & 65536) != 0; Verified = (Flags & 131072) != 0; Restricted = (Flags & 262144) != 0; Min = (Flags & 1048576) != 0; BotInlineGeo = (Flags & 2097152) != 0; Support = (Flags & 8388608) != 0; Scam = (Flags & 16777216) != 0; Id = br.ReadInt32(); if ((Flags & 1) != 0) { AccessHash = br.ReadInt64(); } else { AccessHash = null; } if ((Flags & 2) != 0) { FirstName = StringUtil.Deserialize(br); } else { FirstName = null; } if ((Flags & 4) != 0) { LastName = StringUtil.Deserialize(br); } else { LastName = null; } if ((Flags & 8) != 0) { Username = StringUtil.Deserialize(br); } else { Username = null; } if ((Flags & 16) != 0) { Phone = StringUtil.Deserialize(br); } else { Phone = null; } if ((Flags & 32) != 0) { Photo = (TLAbsUserProfilePhoto)ObjectUtils.DeserializeObject(br); } else { Photo = null; } if ((Flags & 64) != 0) { Status = (TLAbsUserStatus)ObjectUtils.DeserializeObject(br); } else { Status = null; } if ((Flags & 16384) != 0) { BotInfoVersion = br.ReadInt32(); } else { BotInfoVersion = null; } if ((Flags & 262144) != 0) { RestrictionReason = (TLVector <TLRestrictionReason>)ObjectUtils.DeserializeVector <TLRestrictionReason>(br); } else { RestrictionReason = null; } if ((Flags & 524288) != 0) { BotInlinePlaceholder = StringUtil.Deserialize(br); } else { BotInlinePlaceholder = null; } if ((Flags & 4194304) != 0) { LangCode = StringUtil.Deserialize(br); } else { LangCode = null; } }
public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); Type = TLAbsPageBlockTypes.TLPageBlockSubtitle; }
public override void DeserializeBody(BinaryReader br) { Text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); Caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); Type = TLAbsInputMediaTypes.TLInputMediaGeoPoint; }
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 = (TLAbsBotInlineMessage)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); pinned = (flags & 1) != 0; peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { msg_ids = (TLVector <long>)ObjectUtils.DeserializeVector <long>(br); query = (TLObject)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { url = StringUtil.Deserialize(br); photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Peer = (TLAbsNotifyPeer)ObjectUtils.DeserializeObject(br); NotifySettings = (TLAbsPeerNotifySettings)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { TakeoutId = br.ReadInt64(); Query = (TLObject)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { this.Items = (TLVector <TLAbsPageBlock>)ObjectUtils.DeserializeVector <TLAbsPageBlock>(br); this.Caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { flags = br.ReadInt32(); @out = (flags & 2) != 0; mentioned = (flags & 16) != 0; media_unread = (flags & 32) != 0; silent = (flags & 8192) != 0; post = (flags & 16384) != 0; id = br.ReadInt32(); if ((flags & 256) != 0) { from_id = br.ReadInt32(); } else { from_id = null; } to_id = (TLAbsPeer)ObjectUtils.DeserializeObject(br); if ((flags & 4) != 0) { fwd_from = (TLMessageFwdHeader)ObjectUtils.DeserializeObject(br); } else { fwd_from = null; } if ((flags & 2048) != 0) { via_bot_id = br.ReadInt32(); } else { via_bot_id = null; } if ((flags & 8) != 0) { reply_to_msg_id = br.ReadInt32(); } else { reply_to_msg_id = null; } date = br.ReadInt32(); message = StringUtil.Deserialize(br); if ((flags & 512) != 0) { media = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); } else { media = null; } if ((flags & 64) != 0) { reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); } else { reply_markup = null; } if ((flags & 128) != 0) { entities = (TLVector <TLAbsMessageEntity>)ObjectUtils.DeserializeVector <TLAbsMessageEntity>(br); } else { entities = null; } if ((flags & 1024) != 0) { views = br.ReadInt32(); } else { views = null; } if ((flags & 32768) != 0) { edit_date = br.ReadInt32(); } else { edit_date = null; } }
public override void DeserializeBody(BinaryReader br) { this.Message = (TLAbsMessage)ObjectUtils.DeserializeObject(br); this.Pts = br.ReadInt32(); this.PtsCount = br.ReadInt32(); }
public override void DeserializeBody(BinaryReader br) { file = (TLAbsInputFile)ObjectUtils.DeserializeObject(br); Type = TLAbsInputChatPhotoTypes.TLInputChatUploadedPhoto; }
public override void DeserializeBody(BinaryReader br) { this.Query = (TLObject)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { this.Key = (TLAbsPrivacyKey)ObjectUtils.DeserializeObject(br); this.Rules = (TLVector <TLAbsPrivacyRule>)ObjectUtils.DeserializeVector <TLAbsPrivacyRule>(br); }
public override void DeserializeBody(BinaryReader br) { msg_id = br.ReadInt64(); query = (TLObject)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); Email = StringUtil.Deserialize(br); }
public override void DeserializeBody(BinaryReader br) { Type = (TLAbsSecureValueType)ObjectUtils.DeserializeObject(br); FileHash = BytesUtil.Deserialize(br); Text = StringUtil.Deserialize(br); }
public override void DeserializeBody(BinaryReader br) { peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { key = (TLAbsPrivacyKey)ObjectUtils.DeserializeObject(br); rules = (TLVector <TLAbsPrivacyRule>)ObjectUtils.DeserializeVector <TLAbsPrivacyRule>(br); Type = TLAbsUpdateTypes.TLUpdatePrivacy; }
public override void DeserializeBody(BinaryReader br) { this.Id = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br); this.Caption = StringUtil.Deserialize(br); }
public override void DeserializeBody(BinaryReader br) { this.GeoPoint = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { photo_id = br.ReadInt64(); caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); Type = TLAbsRichTextTypes.TLTextBold; }
public override void DeserializeBody(BinaryReader br) { Text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); Url = StringUtil.Deserialize(br); WebpageId = br.ReadInt64(); }