Source: factory.service/package.core/ObjServiceSlack.py
Slack Bot API service for the Axion platform.
Wraps the Slack Web API with Bearer token auth,
rate-limit handling, and Block Kit message
formatting. Token and channel defaults are read
...
| Method | Signature | Description |
|---|---|---|
| send_message | send_message(channel: str, text: str, blocks: list | None = None) -> dict |
Post a message to a channel. |
| send_dm | send_dm(user_id: str, text: str) -> dict |
Send a direct message to a user. |
| update_message | update_message(channel: str, ts: str, text: str, blocks: list | None = None) -> dict |
Edit an existing message by timestamp. |
| add_reaction | add_reaction(channel: str, ts: str, emoji: str) -> dict |
Add an emoji reaction to a message. |
| send_thread_reply | send_thread_reply(channel: str, ts: str, text: str) -> dict |
Reply to a message in a thread. |
| list_channels | list_channels() -> list |
List public channels in the workspace. |
| get_channel_info | get_channel_info(channel_id: str) -> dict |
Get detailed info for a channel. |
| find_channel | find_channel(name: str) -> dict |
Find a channel by name. |
| list_users | list_users() -> list |
List workspace members. |
| find_user_by_email | find_user_by_email(email: str) -> dict |
Look up a user by email address. |
| get_user_info | get_user_info(user_id: str) -> dict |
Get detailed info for a user. |
| send_approval_request | send_approval_request(channel: str, text: str, approve_value: str, reject_value: str) -> dict |
Send an approval request with approve and |
| upload_file | upload_file(channel: str, file_path: str, title: str = '') -> dict |
Upload a file to a channel. |
| notify_ticket | notify_ticket(channel: str, ticket_data: dict) -> dict |
Send a formatted ticket notification. |
| notify_signoff | notify_signoff(channel: str, signoff_data: dict) -> dict |
Send a RACI signoff request with buttons. |
| notify_workflow | notify_workflow(channel: str, workflow_name: str, status: str) -> dict |
Post a workflow status update. |
| notify_deployment | notify_deployment(channel: str, package: str, version: str) -> dict |
Post a deployment notification. |
| Connect | Connect() |
Legacy Connect interface. |
| Send | Send() |
Legacy Send interface. |
Verify the Slack bot token is valid.
Send a message to a Slack channel.
List public channels in the workspace.