How do you tag people with a weak bot?

I built a bot for slack. He reads the message when a new user joins, and I intend to post a message saluting them: "Greetings @user! What are you building !?"

When it sends @user, it looks like the actual "tag" is working. Do I need to tag their user ID when I put people with a bot, and not just using @user?

fontebot tried tagging cristopher.bello but the tag didn't work

+4
source share
2 answers

Can you try adding the parameters "parse" = "full" and "link_names" = 1 to the parameters? For a quick test, you can use their chat.postMessage tester .

+3
source

: < @userID >

( channel_join event)

{
    "type": "message",
    "subtype": "channel_join",
    "ts": "1358877458.000011",
    "user": "U2147483828",
    "text": "<@U2147483828|cal> has joined the channel"
}
+2

Source: https://habr.com/ru/post/1606114/


All Articles