cmd

package
v0.0.0-...-eca5cb0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2020 License: MIT Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL