Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BotAdaptor ¶
type BotAdaptor struct { botplug.BaseConfig ChannelSecret string ChannelToken string NotificationMode string Endpoint string GroupIDs []string // contains filtered or unexported fields }
func New ¶
func New(logger *logrus.Logger, endpoint, channelSecret, channelToken, groupIDsStr, notificationMode string) (*BotAdaptor, error)
func (*BotAdaptor) NewHandler ¶
func (ba *BotAdaptor) NewHandler() (*httphandler.WebhookHandler, error)
call Bot Plugin interface
func (*BotAdaptor) SendTextMessageToChannels ¶
func (ba *BotAdaptor) SendTextMessageToChannels(text string) (err error)
SendTextMessage is pkg/botplug.BotSender interface's implementation
func (*BotAdaptor) WithPlugin ¶
func (bot *BotAdaptor) WithPlugin(plugin botplug.BotPlugin) *BotAdaptor
Click to show internal directories.
Click to hide internal directories.