Documentation ¶
Index ¶
Constants ¶
View Source
const Defaults = `` /* 397-byte string literal not displayed */
Defaults is a string representation of a JSON formatted default configuration for a Watcher instance.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher is a struct that is used to manage the threads and processes used to control and operate the Telegram Watcher bot service.
func New ¶
New returns a new Watcher instance based on the passed config file path.
This function will preform any setup steps needed to start the Watcher. Once complete, use the 'Run' function to actually start the Watcher.
This function allows for specifying the option to clear the database before starting.
Click to show internal directories.
Click to hide internal directories.