Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TelegramPublisher ¶
type TelegramPublisher struct {
ChannelID string // Telegram channel id (e.g. @my_channel)
BotAPI *tgbotapi.BotAPI
ShouldPublish bool // If false, will print the message to the console (for development)
}
func NewTelegramPublisher ¶
func NewTelegramPublisher(channelID string, token string, shouldPublish bool) (*TelegramPublisher, error)
Click to show internal directories.
Click to hide internal directories.