Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jbouron/go-talert

Send alerts on Telegram from your go applications
https://github.com/jbouron/go-talert

Last synced: about 16 hours ago
JSON representation

Send alerts on Telegram from your go applications

Awesome Lists containing this project

README

        

# go-talert
Send messages on Telegram from your go applications.

This is not a Telegram bot, just a simple interface that you can use to send your-self alerts from your scripts written in Go.

# Usage
Two simple functions are available :
* SendMessageTo : Sends a text message to a particular user.
* SendMessageSelf : Sends a text message to yourself.

~~~
package main

import "github.com/JBouron/talert"

func main() {
/* Send a message to your-self. */
talert.SendMessageSelf("Hello me")

/* Send a message to someone else. */
talert.SendMessageTo("", "Hello world")
}
~~~

# Installation
First insert your API key and your user ID in talert.go under `API_KEY` and `ME` respectively.
Then run `go install`.