package publisher
import "github.com/samgozman/fin-thread/publisher"
Index
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)
func (*TelegramPublisher) Publish
func (t *TelegramPublisher) Publish(msg string) (pubID string, err error)