Slack 应用程序部署在不同的 pod 上触发,之后在 slack 应用程序中,我收到此错误auth.test API 调用结果意外无,我需要再次安装 slack 应用程序。
这是示例代码
oauth_settings = OAuthSettings(
client_id=os.environ.get('SLACK_CLIENT_ID'),
client_secret=os.environ.get('SLACK_CLIENT_SECRET'),
callback_options=callback_options,
scopes=["channels:read",
"chat:write",
"chat:write.public",
"commands",
"groups:read",
"im:history",
"team:read",
"users:read",
"users:read.email"]
)
app = App(
signing_secret=os.environ.get('SLACK_SIGNING_SECRET'),
installation_store=FileOAuthStateStore(expiration_seconds=600, base_dir="./data"),
oauth_settings=oauth_settings
)