Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Telegram ¶
type Telegram struct {
// contains filtered or unexported fields
}
Telegram struct holds necessary data to communicate with the Telegram API.
func New ¶
New returns a new instance of a Telegram notification service. For more information about telegram api token:
-> https://pkg.go.dev/github.com/go-telegram-bot-api/telegram-bot-api#NewBotAPI
func (*Telegram) AddReceivers ¶
AddReceivers takes Telegram chat IDs and adds them to the internal chat ID list. The Send method will send a given message to all those chats.
Click to show internal directories.
Click to hide internal directories.