Skip to content

What is the API for mentioning users with a bot? #35

@rastalamm

Description

@rastalamm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions