Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jbouron/go-talert
- Owner: JBouron
- License: gpl-2.0
- Created: 2018-01-14T17:43:58.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-26T05:13:18.000Z (over 5 years ago)
- Last Synced: 2023-03-02T02:52:05.649Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 mainimport "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`.