def METHOD_NAME(self):
    endpoint = "/users/me"
    url = self._get_full_mattermost_url(endpoint)
    response = self._send_mattermost_request(url, HttpMethod.GET)
    if not check_response_succeed(response):
        logging.error("Could not connect to Mattermost with bot account")
        return
    response_data = response.json()
    if "system_admin" in response_data.get("roles"):
        logging.info("Using Mattermost admin bot")
        return True
    else:
        logging.warning("Bot is not an admin. You will not be able to post to private channels.")
        if self.team_id is None:
            logging.error(
                "You need to provide 'team_id' in your configuration if your bot account is not an admin."
            )
        return False