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