telegram

package
v0.0.0-...-83de54c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotifyAll       = "Send me all notifications"
	NotifyTransfers = "Notify only about token transfers"
	NotifyChanges   = "Notify only about account changes"
	NotifyStop      = "Stop all notifications"

	AlertAll      = "Alert when any producer fails"
	AlertPersonal = "Alert only when my producer fails"
	AlertStop     = "Stop all system alerts"

	RemindAll     = "Remind me to vote weekly and monthly"
	RemindWeekly  = "Remind me only to vote weekly"
	RemindMonthly = "Remind me only to vote monthly"
	RemindStop    = "Stop all reminders"
)

Variables

This section is empty.

Functions

func SendMessage

func SendMessage(user db.User, text string)

func Webhook

func Webhook(w http.ResponseWriter, r *http.Request)

Types

type Button

type Button struct {
	Text         string `json:"text"`
	CallbackData string `json:"callback_data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL