Skip to content

henriqueholtz/SendSlackMessage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Henrique-Csharp SendSlackMessage

A package .net to send slack message by webhooks

  • Made with .net 5.0;
  • Using System.text.json (don't used NetownSoft.json);
  • Using FluentValidation;

Nuget Package

Create your web hook from Slack here

Demo

  • How to view the demo ?
  1. Create or get you web hook url from Slack (Access the link above)

  2. Only clone this repository, configure the keys in app.config, build and execute the console application SendSlackMessage.Demo

Use cases (Examples)

  • Add link: <https://myurl.example.com|Click here or text>;
  • Break line: \n (This still doesn't work when write \n with Console.Readline);
  • @channel notification: <!channel> Hello channel!;
  • @group notification: <!group> Hello Group!;
  • @here notification: <!here> Hello!;
  • @here notification: <!everyone> Hello Everyone!;
  • Override channel: Send property Channel (to override channel of web-hook);
  • Send Direct Message to user: Send Property Channel as @usernameDestiny (to override channel of web-hook);
  • To write bold text: *bold text*;
  • To write italic text: _italic text_;
  • To write scretched text: ~scretched text~;
  • To write without markdown (default is true): Sned property Markdown = false;

About

A package .net to send slack message by webhooks

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages