"""Étape d'envoi du digest sur le canal de notification.""" from __future__ import annotations from pronote_sync.channels.protocol import Channel from pronote_sync.models.xmpp import XmppMessage def send_step(channel: Channel, message: XmppMessage) -> bool: """Envoie le digest et retourne le statut fourni par le canal. :param channel: Canal de sortie configuré. :param message: Digest XMPP à transmettre. :return: ``True`` si l'envoi a réussi, ``False`` sinon. :rtype: bool """ return channel.send(message)