Compute the path to the hook URL

def make_hook_path(self):
        """
        Compute the path to the hook URL
        """

        token = self.settings()['token']
        h = sha256()
        h.update(token.encode())
        key = str(h.hexdigest())
        return f'/hooks/telegram/{key}'