Module slack_bolt.middleware.attaching_function_token.async_attaching_function_token
Classes
class AsyncAttachingFunctionToken
-
A middleware can process request data before other middleware and listener functions.
Expand source code
class AsyncAttachingFunctionToken(AsyncMiddleware): async def async_process( self, *, req: AsyncBoltRequest, resp: BoltResponse, # This method is not supposed to be invoked by bolt-python users next: Callable[[], Awaitable[BoltResponse]], ) -> BoltResponse: if req.context.function_bot_access_token is not None: req.context.client.token = req.context.function_bot_access_token return await next()
Ancestors
Inherited members