naok | 2018-04-02 02:40:40 UTC | #1
I am posting a message on a chat group using webhook. I wonder if I can post a message with @-mention using json format. Apparently [@] does not work. Any available formatting?
i.e.
{ "message": "[@Yourname] sample text", "metadata": "visitor" }
tim.smith | 2018-04-18 15:33:44 UTC | #2
Sorry for the delay, missed this one. That syntax is shorthand that the UI expands. If you edit your comment after tagging someone, you'll see that this:
gets expanded to something like:
[@Yourname](#/person/58ac6da13b85a31ea817748c)
That ID can be grabbed from the URL when looking at a person's profile or is user portion of the person's jabber ID if you retrieve their user config via api.
naok | 2018-04-19 02:29:45 UTC | #3
@tim.smith I did not notice that I can see the actual syntax by edit. It works now. Thank you very much!
system | 2018-05-20 02:42:21 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 2687