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}'
def make_hook_path ( self ) : token = self . settings ( ) [ 'token' ] h = sha256 ( ) h . update ( token . encode ( ) ) key = str ( h . hexdigest ( ) ) return f'/hooks/telegram/{key}'
Compute the path to the hook URL