Hi, hoping to get some help with this. Please see my code below.
So I have managed to return the data I want as shown below from the first "Print(_result);" I have the raw data as a returned object:
However I was wanting to access specific parts of this object. I would have expected "Print(result[0].update_id);" to return "1234" but I just get the error "struct or class type expected". Specifically from this data I need "message_id" and "text". Any advice?
Hi, hoping to get some help with this. Please see my code below.
So I have managed to return the data I want as shown below from the first "Print(_result);" I have the raw data as a returned object:
However I was wanting to access specific parts of this object. I would have expected "Print(result[0].update_id);" to return "1234" but I just get the error "struct or class type expected". Specifically from this data I need "message_id" and "text". Any advice?
{ "ok": true, "result": [ { "update_id": 1234, "message": { "message_id": 17, "from": { "id": 1234, "is_bot": false, "first_name": "David", "last_name": "xxx", "username": "xxx", "language_code": "en" }, "chat": { "id": 1234 , "first_name": "David", "last_name": "xxx", "username": "xxx", "type": "private" }, "date": 1234, "text": "Hi" } } ] }