-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
Hello. Seems Slack Dev team deprecated bots https://api.slack.com/changelog/2024-09-legacy-custom-bots-classic-apps-deprecation
In your docs, you suggest to use bot user https://api.slack.com/legacy/enabling-bot-users
Old bot unable to connect to Slack API, got this error:
curl -H "Authorization: Bearer $SLACK_API_TOKEN" https://slack.com/api/auth.test
{"ok":false,"error":"legacy_custom_bots_deprecated","context":"Legacy custom bots has been deprecated on March 31st, 2025. Please create a new app using our updated methods. More info can be found in our changelog: https:\/\/api.slack.com\/changelog\/2024-09-legacy-custom-bots-classic-apps-deprecation"}
Now, I've recreated Bot, but as App Type - Modern. After configuration according to your docs, Memod is not working. Integration was added to channels, but I don't see logs about accepting messages or something. It looks like it doesn't listen.

I see in logs errors about reading user, but it was added to scope:
Log:
time="2025-04-09T09:51:32Z" level=info msg="Can talk to Grafana version 11.4.0 - its database is ok"
time="2025-04-09T09:51:32Z" level=info msg="Memo starting"
time="2025-04-09T09:51:32Z" level=info msg="slack enabled"
time="2025-04-09T09:51:32Z" level=info msg="Connecting to slack"
time="2025-04-09T09:51:32Z" level=info msg="Socket connected"
time="2025-04-09T09:51:32Z" level=info msg="Received hello from slack, hi!"
time="2025-04-09T09:51:33Z" level=error msg="GetUserInfo error: user_not_found (You probably don't have the `users:read` scope)"
time="2025-04-09T09:51:46Z" level=error msg="GetUserInfo error: user_not_found (You probably don't have the `users:read` scope)"
time="2025-04-09T09:51:54Z" level=error msg="GetUserInfo error: user_not_found (You probably don't have the `users:read` scope)"
time="2025-04-09T09:51:58Z" level=error msg="GetUserInfo error: user_not_found (You probably don't have the `users:read` scope)"
...
my config:
config.toml: |
log_level = "info"
[slack]
enabled = true
app_token = "xapp-1-A****"
bot_token = "xoxb-9***"
[grafana]
api_key = "eyJ***"
api_url = "https://grafana.***/api"
Permissions Scope:

Maybe issue because of deprecation? Or I missed something? Thank you