Exemplo n.º 1
0
        public override void DeserializeBody(BinaryReader br)
        {
            flags   = br.ReadInt32();
            user_id = br.ReadInt32();
            query   = StringUtil.Deserialize(br);
            if ((flags & 1) != 0)
            {
                geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                geo = null;
            }

            id = StringUtil.Deserialize(br);
            if ((flags & 2) != 0)
            {
                msg_id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                msg_id = null;
            }
        }
        public override void DeserializeBody(BinaryReader br)
        {
            Flags  = br.ReadInt32();
            UserId = br.ReadInt32();
            Query  = StringUtil.Deserialize(br);
            if ((Flags & 1) != 0)
            {
                Geo = (TLAbsGeoPoint)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                Geo = null;
            }

            Id = StringUtil.Deserialize(br);
            if ((Flags & 2) != 0)
            {
                MsgId = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br);
            }
            else
            {
                MsgId = null;
            }
        }