We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f286488 commit 34876ccCopy full SHA for 34876cc
1 file changed
examples/slackbot/api.py
@@ -89,7 +89,7 @@ async def handle_message(payload: SlackPayload, db: Database):
89
conversation = await db.get_thread_messages(thread_ts)
90
91
user_context = build_user_context(
92
- user_id=payload.authorizations[0].user_id,
+ user_id=event.user, # Use the actual user who sent the message, not the bot
93
user_question=cleaned_message,
94
)
95
0 commit comments