Skip to content

Instantly share code, notes, and snippets.

@sendbird-community
Created January 30, 2024 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sendbird-community/d052c9afe561664ff91650709b5b1d2c to your computer and use it in GitHub Desktop.
Save sendbird-community/d052c9afe561664ff91650709b5b1d2c to your computer and use it in GitHub Desktop.
app.post('/message_to_bot', authenticateIncomingSlackCalls, async (req, res) => {
const { text } = req.body;
res.json({ response_type: 'in_channel', text: `🤖\nQ: ${text}` });
passMessageToSendbirdBot(req.body);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment