Socket Mode bot not replying if message is_app_unfurl = true #1213
Unanswered
keegancwinchester
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a slack bot that is supposed to listen for new message events in the Slack workspace. For each message event, it does the following:
Checks if the message is sent by the bot itself, if so it ignores it. Checks if the message is a reply to another message (a thread), if so it ignores it. Checks if there's an active message data for the channel where the message is posted. Checks if the current time is within a specified interval (defined in the active message data). If it's not, the message is ignored. If the conditions are met, it sends a predefined message (defined in the active message data) to the channel and creates a history of the message in the database.
`func (c *BotController) handleMessageEvent(evt *socketmode.Event, client *socketmode.Client) {
log.Printf("New event: %v", evt)
}
When a message is posted in the channel with a link, if it is unfurled by slack it triggers themessage_changedevent as well as setsis_app_unfurl = truein the payload and the bot will not reply. How can i supportis_app_unfurl = true ` ?Beta Was this translation helpful? Give feedback.
All reactions