How can I get the mentionee userId for the new @All from a group chat?

Pre condition, Condition to reproduce


Issue/ Error Message details

mentionee userId @ALL

Accompanying respective source code

Resolution Tried

Reference information (Version / Platform/ environment)

python code, heroku

  • 0
  • 4
  • 339
  • twitter facebook

I guess this solves it, lolz "message": "Access to this API is not available for your account"

  • 0

I think curl -v -X GET '{request url]' works. (and it's not related to the question...) Or if you use python sdk, getting group member is probably supported, so you can use it.

  • 0

I actually tried that yday but failed to curl from terminal due to that the channel access token of the user from the channel wasn't read properly (error returned that the acces token wasn't ok and value was cut-off at first '/' encountered. tried to '<backslash>/' and '<backslash><backslash>/' but still failed)

curl -v -X GET https://api.line.me/v2/bot/group/{groupId}/members/ids?start={continuationToken}
-H 'Authorization: Bearer {channel access token}'

  • 0

When you find @All mention in a webhook, you can get userids by calling https://developers.line.biz/en/reference/messaging-api/#get-group-member-user-ids.

  • 1

Similar posts

    No similar posts

Are you sure? question.vm