Looking to develop a bot for Discourse chat. Is it possible to utilize the post api call and get something into a chat channel?
1 Like
Does this section in the plugin topic about incoming webhooks help? https://meta.discourse.org/t/discourse-chat/230881#loudspeaker-sending-chat-messages-using-incoming-webhooks-slack-compatible-17
2 Likes
Oh man… my brain went straight to the api. So, I read through the api docs and searched for chat and api based topics.
That should work out just fine. Thanks so much for pointing me in the right direction.
3 Likes
For future reference the API to post to chat channel via webhook is
curl -i -X POST -d 'text=message' https://discourse.example.com/chat/hooks/aabbdcceeff.json
2 Likes