Skip to content
/ kn Public

Send a markdown message via udp then get notified on Telegram.

License

Notifications You must be signed in to change notification settings

Kxrr/kn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kn

FOSSA Status

Send a markdown message via udp then get notified on Telegram.

Screenshot

What's kn

Kn is a udp service that can forward markdown message to telegram.

Example usage

  1. Get your telegram bot token and your telegram user id

  2. Download the kn binary file from https://github.com/Kxrr/kn/releases

  3. Start kn

$ ./kn -host=0.0.0.0 -port=9996 -token=<YOUR_TELEGRAM_BOT_TOKEN> -userid=<YOUR_USER_ID>
  1. Let's send a udp message to the kn server
$ echo "hi" | nc -u -w0 127.0.0.1 9996
  1. Now you should received the hi message on telegram from you telegram bot

FAQ

Q: A i/o timeout error?

A: Make sure you can connect to https://api.telegram.org, the telegram api server is blocked in some area.


Q: How to create telegram bot and get the token?

A: https://core.telegram.org/bots#3-how-do-i-create-a-bot


Q: How can I get my telegram user id?

A: A easy way is to talk to a telegram bot called @get_id_bot.

License

FOSSA Status

About

Send a markdown message via udp then get notified on Telegram.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages