public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Out = (Flags & 2) != 0; Mentioned = (Flags & 16) != 0; MediaUnread = (Flags & 32) != 0; Silent = (Flags & 8192) != 0; Post = (Flags & 16384) != 0; FromScheduled = (Flags & 262144) != 0; Legacy = (Flags & 524288) != 0; EditHide = (Flags & 2097152) != 0; Id = br.ReadInt32(); if ((Flags & 256) != 0) { FromId = br.ReadInt32(); } else { FromId = null; } ToId = (TLAbsPeer)ObjectUtils.DeserializeObject(br); if ((Flags & 4) != 0) { FwdFrom = (TLMessageFwdHeader)ObjectUtils.DeserializeObject(br); } else { FwdFrom = null; } if ((Flags & 2048) != 0) { ViaBotId = br.ReadInt32(); } else { ViaBotId = null; } if ((Flags & 8) != 0) { ReplyToMsgId = br.ReadInt32(); } else { ReplyToMsgId = null; } Date = br.ReadInt32(); Message = StringUtil.Deserialize(br); if ((Flags & 512) != 0) { Media = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br); } else { Media = null; } if ((Flags & 64) != 0) { ReplyMarkup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br); } else { ReplyMarkup = 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) { EditDate = br.ReadInt32(); } else { EditDate = null; } if ((Flags & 65536) != 0) { PostAuthor = StringUtil.Deserialize(br); } else { PostAuthor = null; } if ((Flags & 131072) != 0) { GroupedId = br.ReadInt64(); } else { GroupedId = null; } if ((Flags & 4194304) != 0) { RestrictionReason = (TLVector <TLRestrictionReason>)ObjectUtils.DeserializeVector <TLRestrictionReason>(br); } else { RestrictionReason = null; } }
public override void DeserializeBody(BinaryReader br) { MsgId = br.ReadInt64(); Query = (TLObject)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Values = (TLVector <TLSecureValue>)ObjectUtils.DeserializeVector <TLSecureValue>(br); Credentials = (TLSecureCredentialsEncrypted)ObjectUtils.DeserializeObject(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) { Offset = br.ReadInt32(); Length = br.ReadInt32(); UserId = (TLAbsInputUser)ObjectUtils.DeserializeObject(br); }
public override void DeserializeResponse(BinaryReader br) { Response = (TLObject)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Items = (TLVector <TLAbsPageBlock>)ObjectUtils.DeserializeVector <TLAbsPageBlock>(br); Caption = (TLPageCaption)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); CanViewParticipants = (Flags & 8) != 0; CanSetUsername = (Flags & 64) != 0; CanSetStickers = (Flags & 128) != 0; HiddenPrehistory = (Flags & 1024) != 0; CanViewStats = (Flags & 4096) != 0; CanSetLocation = (Flags & 65536) != 0; HasScheduled = (Flags & 524288) != 0; Id = br.ReadInt32(); About = StringUtil.Deserialize(br); if ((Flags & 1) != 0) { ParticipantsCount = br.ReadInt32(); } else { ParticipantsCount = null; } if ((Flags & 2) != 0) { AdminsCount = br.ReadInt32(); } else { AdminsCount = null; } if ((Flags & 4) != 0) { KickedCount = br.ReadInt32(); } else { KickedCount = null; } if ((Flags & 4) != 0) { BannedCount = br.ReadInt32(); } else { BannedCount = null; } if ((Flags & 8192) != 0) { OnlineCount = br.ReadInt32(); } else { OnlineCount = null; } ReadInboxMaxId = br.ReadInt32(); ReadOutboxMaxId = br.ReadInt32(); UnreadCount = br.ReadInt32(); ChatPhoto = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); NotifySettings = (TLPeerNotifySettings)ObjectUtils.DeserializeObject(br); ExportedInvite = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br); BotInfo = (TLVector <TLBotInfo>)ObjectUtils.DeserializeVector <TLBotInfo>(br); if ((Flags & 16) != 0) { MigratedFromChatId = br.ReadInt32(); } else { MigratedFromChatId = null; } if ((Flags & 16) != 0) { MigratedFromMaxId = br.ReadInt32(); } else { MigratedFromMaxId = null; } if ((Flags & 32) != 0) { PinnedMsgId = br.ReadInt32(); } else { PinnedMsgId = null; } if ((Flags & 256) != 0) { Stickerset = (TLStickerSet)ObjectUtils.DeserializeObject(br); } else { Stickerset = null; } if ((Flags & 512) != 0) { AvailableMinId = br.ReadInt32(); } else { AvailableMinId = null; } if ((Flags & 2048) != 0) { FolderId = br.ReadInt32(); } else { FolderId = null; } if ((Flags & 16384) != 0) { LinkedChatId = br.ReadInt32(); } else { LinkedChatId = null; } if ((Flags & 32768) != 0) { Location = (TLAbsChannelLocation)ObjectUtils.DeserializeObject(br); } else { Location = null; } if ((Flags & 131072) != 0) { SlowmodeSeconds = br.ReadInt32(); } else { SlowmodeSeconds = null; } if ((Flags & 262144) != 0) { SlowmodeNextSendDate = br.ReadInt32(); } else { SlowmodeNextSendDate = null; } Pts = br.ReadInt32(); }
public override void DeserializeBody(BinaryReader br) { PhoneCall = (TLAbsPhoneCall)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Game = (TLGame)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Peer = (TLAbsPeer)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) { Num = StringUtil.Deserialize(br); Text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br); DefaultBannedRights = (TLChatBannedRights)ObjectUtils.DeserializeObject(br); Version = br.ReadInt32(); }
public override void DeserializeBody(BinaryReader br) { PrevMessage = (TLAbsMessage)ObjectUtils.DeserializeObject(br); NewMessage = (TLAbsMessage)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Id = (TLAbsInputPhoto)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Text = (TLAbsRichText)ObjectUtils.DeserializeObject(br); Caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Flags = br.ReadInt32(); Id = br.ReadInt64(); Url = StringUtil.Deserialize(br); DisplayUrl = StringUtil.Deserialize(br); Hash = br.ReadInt32(); if ((Flags & 1) != 0) { Type = StringUtil.Deserialize(br); } else { Type = null; } if ((Flags & 2) != 0) { SiteName = StringUtil.Deserialize(br); } else { SiteName = null; } if ((Flags & 4) != 0) { Title = StringUtil.Deserialize(br); } else { Title = null; } if ((Flags & 8) != 0) { Description = StringUtil.Deserialize(br); } else { Description = null; } if ((Flags & 16) != 0) { Photo = (TLAbsPhoto)ObjectUtils.DeserializeObject(br); } else { Photo = null; } if ((Flags & 32) != 0) { EmbedUrl = StringUtil.Deserialize(br); } else { EmbedUrl = null; } if ((Flags & 32) != 0) { EmbedType = StringUtil.Deserialize(br); } else { EmbedType = null; } if ((Flags & 64) != 0) { EmbedWidth = br.ReadInt32(); } else { EmbedWidth = null; } if ((Flags & 64) != 0) { EmbedHeight = br.ReadInt32(); } else { EmbedHeight = null; } if ((Flags & 128) != 0) { Duration = br.ReadInt32(); } else { Duration = null; } if ((Flags & 256) != 0) { Author = StringUtil.Deserialize(br); } else { Author = null; } if ((Flags & 512) != 0) { Document = (TLAbsDocument)ObjectUtils.DeserializeObject(br); } else { Document = null; } if ((Flags & 1024) != 0) { CachedPage = (TLPage)ObjectUtils.DeserializeObject(br); } else { CachedPage = null; } if ((Flags & 4096) != 0) { // manual edit: WebPageAttribute->TLWebPageAttributeTheme Attributes = (TLVector <TLWebPageAttributeTheme>)ObjectUtils.DeserializeVector <TLWebPageAttributeTheme> (br); } else { Attributes = null; } }
public override void DeserializeBody(BinaryReader br) { Url = StringUtil.Deserialize(br); ChatInvite = (TLAbsChatInvite)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { UserId = br.ReadInt32(); Action = (TLAbsSendMessageAction)ObjectUtils.DeserializeObject(br); }
public override void DeserializeBody(BinaryReader br) { Peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br); MsgId = br.ReadInt32(); ChannelId = br.ReadInt32(); }
public override void DeserializeBody(BinaryReader br) { Webpage = (TLAbsWebPage)ObjectUtils.DeserializeObject(br); Pts = br.ReadInt32(); PtsCount = br.ReadInt32(); }
public override void DeserializeBody(BinaryReader br) { Url = StringUtil.Deserialize(br); Set = (TLAbsStickerSetCovered)ObjectUtils.DeserializeObject(br); }