Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
Message string `json:"message"`
}
Message is the message the bot can send it needs to be of type: TelegramNotificationCommandType
type Telegram ¶
type Telegram struct {
chik.BaseHandler
Token string `json:"token" mapstructure:"token"`
AllowedUsers []string `json:"allowed_users" mapstructure:"allowed_users"`
// contains filtered or unexported fields
}
Telegram handler
func New ¶
func New() *Telegram
New creates a telegram handler. useful for sending notifications about events
func (*Telegram) HandleMessage ¶
func (*Telegram) Topics ¶
func (h *Telegram) Topics() []types.CommandType
Click to show internal directories.
Click to hide internal directories.