def METHOD_NAME(self):
    if session.get('access_data_updated_at', 0) + 900 < time.time():
        try:
            self._update_access_data()
        except requests.exceptions.HTTPError as e:
            log.warning('Exception while retrieving Telegram data: %s', e)
            if 'has_permission' not in session:
                time.sleep(2)
                return self.METHOD_NAME()
    has_permission = session['has_permission']
    redirect_uri = (args.telegram_no_permission_redirect
                    if not has_permission else None)
    access_config_name = session['access_config_name']
    return has_permission, redirect_uri, access_config_name