(Describe your issue and goal here)
I want to trigger my bot from a script (use incomming webook), but seem like bolt cannot listen message event send from my script even the message pattern is right.
Here is the full message:
WARNING:slack_bolt.AsyncApp:Unhandled request ({'token': 'xxx', 'team_id': 'xxx', 'api_app_id': 'xxx', 'event': {'type': 'message', 'subtype': 'bot_message', 'text': '.kc apply connector', 'ts': '1610182783.003000', 'bot_id': 'xx', 'channel': 'xx', 'event_ts': '1610182783.003000', 'channel_type': 'channel'}, 'type': 'event_callback', 'event_id': 'xx', 'event_time': 1610182783, 'authorizations': [{'enterprise_id': None, 'team_id': 'xx', 'user_id': 'xx', 'is_bot': True, 'is_enterprise_install': False}], 'is_ext_shared_channel': False, 'event_context': '1-message-xxx'})
Reproducible in:
The slack_bolt version
(Paste the output of pip freeze | grep slack)
slack-bolt==1.1.4
slack-sdk==3.1.0
slackclient==2.9.3
slackeventsapi==2.2.1
Python runtime version
(Paste the output of python --version)
OS info
(Paste the output of sw_vers && uname -v on macOS/Linux or ver on Windows OS)
ProductName: Mac OS X
ProductVersion: 10.15.7
BuildVersion: 19H2
Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64
Steps to reproduce:
(Share the commands to run, source code, and project settings (e.g., setup.py))
1.curl -X POST -H 'Content-type: application/json' --data '{"text":"apply connector"}' https://hooks.slack.com/services/xxxxxx
2. and your bot:
3.
@app.message(regcomplie("(apply .*)"))
async def apply_connector_config_from_last_commit(message, client, say, logger):
logger.debug(message)
Expected result:
Bot can recognize message and print message
Actual result:
Bot cannot recognize, message is unhandled message
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
(Describe your issue and goal here)
I want to trigger my bot from a script (use incomming webook), but seem like bolt cannot listen message event send from my script even the message pattern is right.
Here is the full message:
Reproducible in:
The
slack_boltversion(Paste the output of
pip freeze | grep slack)Python runtime version
(Paste the output of
python --version)OS info
(Paste the output of
sw_vers && uname -von macOS/Linux orveron Windows OS)Steps to reproduce:
(Share the commands to run, source code, and project settings (e.g., setup.py))
1.
curl -X POST -H 'Content-type: application/json' --data '{"text":"apply connector"}' https://hooks.slack.com/services/xxxxxx2. and your bot:
3.
Expected result:
Bot can recognize message and print message
Actual result:
Bot cannot recognize, message is unhandled message
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.