docs: def _get_chat(self) -> Dict:
          """
          As Telegram changes where the chat object is located in the response,
          this method tries to be smart about finding it in the right place.
          """
  
          if 'callback_query' in self._update:
              query = self._update['callback_query']
              if 'message' in query:
                  return query['message']['chat']
              else:
                  return {'id': query['chat_instance']}
          elif 'inline_query' in self._update:
              return patch_dict(
                  self._update['inline_query']['from'],
                  is_inline_query=True,
              )
          elif 'message' in self._update:
              return self._update['message']['chat']