public override TLObject FromStream(Stream input) { NewMessages = GetObject <TLVector <TLMessageBase> >(input); NewEncryptedMessages = GetObject <TLVector <TLEncryptedMessageBase> >(input); OtherUpdates = GetObject <TLVector <TLUpdateBase> >(input); Chats = GetObject <TLVector <TLChatBase> >(input); Users = GetObject <TLVector <TLUserBase> >(input); State = GetObject <TLState>(input); return(this); }
public override TLObject FromBytes(byte[] bytes, ref int position) { bytes.ThrowExceptionIfIncorrect(ref position, Signature); NewMessages = GetObject <TLVector <TLMessageBase> >(bytes, ref position); NewEncryptedMessages = GetObject <TLVector <TLEncryptedMessageBase> >(bytes, ref position); OtherUpdates = GetObject <TLVector <TLUpdateBase> >(bytes, ref position); Chats = GetObject <TLVector <TLChatBase> >(bytes, ref position); Users = GetObject <TLVector <TLUserBase> >(bytes, ref position); State = GetObject <TLState>(bytes, ref position); return(this); }