INNER CODE UNIT · Python
send
opsdroid/opsdroid · opsdroid/connector/__init__.py:200
async def send(self, event):
"""Send a message to the chat service.
Args:
event (Event): A message received by the connector.
target (string): The name of the room or other place to send the
event.
Returns:
bool: True for event successfully sent. False otherwise.
"""
if not isinstance(event, Event):
raise TypeError(
"The event argument to send must be an opsdroid Event object"
)
# If the event does not have a target, use the default.