Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandsText ¶
type CommandsText struct { Description string `yaml:"description"` About string `yaml:"about"` StartTrackingCommand string `yaml:"start_tracking_message"` StartCommand struct { InlineKeyboard struct { KeyboardRow1 struct { Options string `yaml:"options"` } `yaml:"keyboard_row_1"` KeyboardRow3 struct { Settings string `yaml:"settings"` } `yaml:"keyboard_row_2"` KeyboardRow4 struct { GitHub string `yaml:"github"` } `yaml:"keyboard_row_4"` } `yaml:"inline_keyboard"` } `yaml:"start_command"` }
func InitCommandsText ¶
func InitCommandsText(path string) (CommandsText, error)
type Config ¶
type Config struct { TelegramBotAdmins []string `required:"false" envconfig:"TELEGRAM_BOT_ADMINS"` TelegramAPIURL string `required:"false" envconfig:"TELEGRAM_API_URL"` TelegramToken string `required:"true" envconfig:"TELEGRAM_TOKEN"` DatabaseURL string `required:"false" envconfig:"DATABASE_URL"` FaceitAPIToken string `required:"false" envconfig:"FACEIT_API_TOKEN"` FaceitAPISecret string `required:"false" envconfig:"FACEIT_API_SECRET"` FaceitAPIURL string `required:"false" envconfig:"FACEIT_API_URL"` }
Click to show internal directories.
Click to hide internal directories.