package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Jun 3, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
如何使用telegram bot来接收通知
func Send() {
token := "929493383:AA..."
telegram, err := NewTelegram(token)
if err != nil {
t.Fatal(err)
}
telegram.Send([]string{"chatid"}, "测试标题", "测试内容")
time.Sleep(time.Second * 2)
}
Documentation
¶
NewTelegram init telegram
Telegram conf
Send will send notify to channel
Source Files
¶
Click to show internal directories.
Click to hide internal directories.