Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag (mention) someone while posting #7

Open
adriens opened this issue Dec 9, 2017 · 2 comments
Open

Tag (mention) someone while posting #7

adriens opened this issue Dec 9, 2017 · 2 comments

Comments

@adriens
Copy link

adriens commented Dec 9, 2017

Hi, i need to post to slack from webhook and your api perfectly does the trick. Indeed, i'd like to tag (mention) someone while posting from the webhook on a given channel.

It's exactly the same thing as the one described here : https://stackoverflow.com/questions/40771924/how-to-mention-user-in-slack-client

Is it feasible and if it does, could you please provide me some code snippet ?

Thanks in advance for your help.

Best Regards.

@ashwanthkumar
Copy link
Owner

@adriens I don't have a machine at hand to try this but you can pass the value of parse argument to full and try. This is assuming you've @<username> in your message.

@szaluk
Copy link

szaluk commented May 13, 2019

@ashwanthkumar - Setting parse("full") does work but then any links in your messages are no longer formatted. The easiest way to get this to work was to use the format in the article above: <@username>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants