Documentation ¶
Overview ¶
chatbot is a package for creating chatbots that interact via webhooks.
Index ¶
Constants ¶
View Source
const (
BOT_WEBHOOK_METADATA_KEY = "bot_webhooks"
)
Variables ¶
This section is empty.
Functions ¶
func SendUsingConfig ¶
func SendUsingConfig(body, room, thread string, configReader ConfigReader) error
SendUsingConfig is just like Send(), but the config retrieved is provided by the configReader.
Types ¶
type ConfigReader ¶
type ConfigReader func() string
ConfigReader is a func that returns the config for SendUsingConfig.
Click to show internal directories.
Click to hide internal directories.