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
slack_signing_secret = xxx
slack_bot_token = xxx
app = App(
token=slack_bot_token,
signing_secret=slack_signing_secret
)
def run():
port = xxx
app.start(port=port, path="/")
@ app.event("message")
def handle_message(body):
message = body["event"]
logger(message)
xxx
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
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_boltversionslack-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