You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I shifted from slackeventsapi to bolt-python and was testing the functions and noticed that in bolt-python the reply messages that were sent by the bot are not being caught by event listener whereas in slackeventsapi, it was.
I want to make a function using the logs I get after storing the messages from the bot.
At first I was thinking that it is not listening to any bot messages but later while testing I found that it was listening to messages of other bots (I know this as I am logging the events in a log file). It is just not listening to it's own reply messages.
Is this made deliberately? And if yes, is there a way to disable it?
The slack_bolt version
slack-bolt==1.4.4
Python runtime version
Python 3.7.4
Steps to reproduce:
Given below is the configuration of the event listener
Hi @Shubhanker99, thanks a lot for migrating from the old module to this one!
Is this made deliberately?
Yes, it is. Resulting in an infinite loop by responding to the app's own message events is a common pitfall. Thus, this a-bit-opinionated framework decided to have a built-in prevention for it.
And if yes, is there a way to disable it?
As of today, there is no way to disable the middleware that skips the events generated by the bot user itself. However, we've already introduced the option to disable it in Bolt for Java two months ago:
And we are going to apply the same changes to Python and Node SDKs soon. I cannot tell the exact date we'll release a new version including this fix yet but it won't take long (say, a few days).
I shifted from slackeventsapi to bolt-python and was testing the functions and noticed that in bolt-python the reply messages that were sent by the bot are not being caught by event listener whereas in slackeventsapi, it was.
I want to make a function using the logs I get after storing the messages from the bot.
At first I was thinking that it is not listening to any bot messages but later while testing I found that it was listening to messages of other bots (I know this as I am logging the events in a log file). It is just not listening to it's own reply messages.
Is this made deliberately? And if yes, is there a way to disable it?
The
slack_bolt
versionslack-bolt==1.4.4
Python runtime version
Python 3.7.4
Steps to reproduce:
Expected result:
The reply messages from the bot are caught by the event listener and logged
Actual result:
The reply messages from the bot are ignored by the event listener
The text was updated successfully, but these errors were encountered: