title: Telegram Bot /getUpdates and parse JSON response?
body: <p>I am looking to parson the JSON response from executing the Telegram API call: <code>https://api.telegram.org/bot&lt;token&gt;/getUpdates</code></p>
  
  <p>From that response, I want to store all the chat_IDs somewhere. I would like to loop through all those IDs to send a message via the bot into each group chat. </p>
  
  <pre><code>import requests
  
  def telegram_bot_sendtext(bot_message):
  
      bot_token = ''
      bot_chatID = ''
      bot_message = ''
  
      get_updates = 'https://api.telegram.org/bot' + bot_chatID + '/getUpdates'
      response = requests.get(get_updates)
      final = json.loads(response.text)
  
      Dict = {final['result']['update_id']}
  
  
      send_text = 'https://api.telegram.org/bot' + bot_token + '/sendMessage?chat_id=' + bot_chatID + '&amp;parse_mode=Markdown&amp;text=' + bot_message
  
      response = requests.get(send_text)
  
      return response.json()
  </code></pre>
  
  <p>I know I am not creating this dictionary from the response correctly. How do I create this dictionary or array correctly and then loop through that object to send the <code>bot_message</code> in each of those groups?</p>