title: How to get Telegram InlineQuery-object?
body: <p>I want to teach my bot to respond to an inline query. The problem is that to send a response to an inline query, you need to have certain request parameters (id and query text at least). But how to get these parameters? Where do I get them before I send answerInlineQuery to the Telegram server?</p>
  
  <p>This issue is not covered in the documentation. I'm trying to extract these parameters from the result of the getUpdate-request:</p>
  
  <pre><code>def getUpdates (self):
          getup = URL + 'getUpdates'
          ...
          #some valid code to get update-JSON
          return url
  
  def answerInlineQuery(self, inline_query_id, results):
          send = url + 'answerInlineQuery?inline_query_id=' + str(inline_query_id) + '&amp;&amp;' + 'results=' + results
          requests.get(send)
          ....
  
  if (url != None) and ('inline_query' in url):
              inid = url['result'][0]['inline_query']['id']
              bot.set_inline_upd_id = int(inid) 
              fromid = url['result'][0]['inline_query']['fromid']
              query = url['result'][0]['inline_query']['query']
              if textMessage == '/modemscount':   
                  r = requests.get('http://' + serverAddress + ':' + serverPort + '/api/v0/modem/')
                  modemsDict = r.json() 
                  message_text = str(len(modemsDict['modems']))
                  inline_query_id = bot.inline_upd_id 
                  results = json.dumps({'type':article, 'input_message_content':{'message_text':message_text}, 'id':1, 'title':count})
                  bot.answerInlineQuery(inline_query_id, results)
  </code></pre>
  
  <p>But this code does not work. There are no error messages. Just when the user writes inline query, the bot does not react at all.</p>