bolt-python icon indicating copy to clipboard operation
bolt-python copied to clipboard

How to avoid send Ephemeral message with oAuth implementation

Open escc86 opened this issue 1 year ago • 1 comments

Hello I have a question regarding a message that user receives when has not installed the app or completed the oAuth flow.

When a user click a button or execute an slack command receives the following message

We apologize, but for some unknown reason, your installation with this app is no longer available. Please reinstall this app into your workspace

My question: is there a way to do not send this message to the user or send a custom message instead?

escc86 avatar May 02 '24 18:05 escc86

Hi @escc86, thanks for writing in. At this moment, there is no way to customize the message, but I agree this could be a valid feature request. I may enhance the built-in middleware in future releases: https://github.com/slackapi/bolt-python/blob/v1.18.1/slack_bolt/middleware/authorization/multi_teams_authorization.py#L90-L100

seratch avatar May 03 '24 01:05 seratch