Back to Bolt Python

slack_bolt.context.set_status.async_set_status API documentation

docs/reference/context/set_status/async_set_status.html

1.28.01.1 KB
Original Source

Classes

class AsyncSetStatus (client: slack_sdk.web.async_client.AsyncWebClient,channel_id: str,thread_ts: str)#Expand source code

class AsyncSetStatus:
    client: AsyncWebClient
    channel_id: str
    thread_ts: str

    def __init__ (
        self,
        client: AsyncWebClient,
        channel_id: str,
        thread_ts: str,
    ):
        self.client = client
        self.channel_id = channel_id
        self.thread_ts = thread_ts

    async def __call__ (
        self,
        status: str,
        loading_messages: Optional[List[str]] = None,
        **kwargs,
    ) -> AsyncSlackResponse:
        return await self.client.assistant_threads_setStatus(
            channel_id=self.channel_id,
            thread_ts=self.thread_ts,
            status=status,
            loading_messages=loading_messages,
            **kwargs,
        )

Class variables

var channel_id : str

The type of the None singleton.

var client : slack_sdk.web.async_client.AsyncWebClient

The type of the None singleton.

var thread_ts : str

The type of the None singleton.