INNER CODE UNIT · Python

respond

opsdroid/opsdroid · opsdroid/connector/__init__.py:142

    async def respond(self, message, room=None):
        """Send a message back to the chat service.

        The message object will have a `text` property which should be sent
        back to the chat service. It may also have a `room` and `user` property
        which gives information on where the message should be directed.

        Args:
            message (Message): A message received by the connector.
            room (string): Name of the room to send the message to

        Returns:
            bool: True for message successfully sent. False otherwise.

        """
        warnings.warn(
            "Connector.respond is deprecated. Use " "Connector.send instead.",
            DeprecationWarning,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…