Documentation ¶
Overview ¶
Package cmd contains all cli commands, their arguments and tests to them
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TelegramCmd ¶
type TelegramCmd struct { Telegram struct { Token string `long:"token" env:"TOKEN" description:"telegram bot token" default:"test"` UserName string `long:"username" env:"USERNAME" description:"telegram bot username" default:"test"` } `group:"telegram" namespace:"telegram" env-namespace:"TELEGRAM"` Db struct { Location string `long:"location" env:"LOCATION" description:"location of boltdb sotrage" required:"true"` } `group:"db" namespace:"db" env-namespace:"DB"` }
TelegramCmd runs the multibot instance over telegram
func (TelegramCmd) Execute ¶
func (s TelegramCmd) Execute(_ []string) error
Execute runs the telegram bot
Click to show internal directories.
Click to hide internal directories.