What is the API for mentioning users with a bot?
I'm trying to mention specific users with a bot, but I am unable to do so. I am trying the below POST message body but the user isn't mentioned.
await axios({
method: "post",
url: GROUPME_API,
data: {
bot_id: botName,
text: " - you've been mentioned!",
attachments: [
{
type: "mentions",
user_ids: [1234, 4567],
loci: [[0, 0]],
},
],
},
})
I am expecting the above to send a message: @user - you've been mentioned! but the @user is not being added.