Python API
Slack
- class RPA.Slack.Slack
RPA Framework library for Slack operations.
- ROBOT_LIBRARY_DOC_FORMAT = 'REST'
- ROBOT_LIBRARY_SCOPE = 'GLOBAL'
- slack_message_using_webhook(webhook_url: str, channel: str, sender: str, text: str, icon_emoji: Optional[str] = None)
Send message to Slack channel using webhook.
- Parameters
webhook_url – needs to be configured for the Slack server
channel – channel needs to exist in the Slack server
sender – shown in the message post as sender
text – text for the message post
icon_emoji – icon for the message post, defaults to None
- slack_raw_message(webhook: str, message: Union[str, dict], channel: Optional[str] = None)
Send Slack message by custom JSON content.
- Parameters
webhook_url – needs to be configured for the Slack server
message – dictionary or string defining message content and structure
channel – can be used to set channel into message structure