I'm trying to play around with the Telegram bot API. I wanted to decode the JSON objects into an array but it doesn't matter what I try I get JSON format anyway...
import urllib.request
import json
#Your Authentication token here
token = "auth_token"
website = "https://api.telegram.org/bot" + token
update = urllib.request.urlopen(website + "/getUpdates").read()
updateArray = json.loads(update.decode("utf-8"))
print (updateArray)
Like I said whenever I run this I get JSON format still does anybody have a clue what I'm doing wrong? Sorry for my ignorance I'm kinda new to coding. Thanks in advance
Also I know that there are multiple threads regarding some json decoding issues but none of them are usefull for me.
Naomi,