public override TLObject FromStream(Stream input) { Flags = GetObject <TLInt>(input); QueryId = GetObject <TLLong>(input); NextOffset = GetObject <TLString>(Flags, (int)BotResultsFlags.NextOffset, null, input); SwitchPM = GetObject <TLInlineBotSwitchPM>(Flags, (int)BotResultsFlags.SwitchPM, null, input); Results = GetObject <TLVector <TLBotInlineResultBase> >(input); return(this); }
public override TLObject FromBytes(byte[] bytes, ref int position) { bytes.ThrowExceptionIfIncorrect(ref position, Signature); Flags = GetObject <TLInt>(bytes, ref position); QueryId = GetObject <TLLong>(bytes, ref position); NextOffset = GetObject <TLString>(Flags, (int)BotResultsFlags.NextOffset, null, bytes, ref position); SwitchPM = GetObject <TLInlineBotSwitchPM>(Flags, (int)BotResultsFlags.SwitchPM, null, bytes, ref position); Results = GetObject <TLVector <TLBotInlineResultBase> >(bytes, ref position); return(this); }