Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TGBotCfg ¶
type TGBotCfg struct { Name string `mapstructure:"name"` Port string `mapstructure:"port"` BotToken string `mapstructure:"bot_token" validate:"required"` CACert string `mapstructure:"ca_cert" validate:"required"` ServerCert string `mapstructure:"server_cert" validate:"required"` ServerPkey string `mapstructure:"server_pkey" validate:"required"` DatabaseUri string `mapstructure:"database_uri" validate:"required"` configs.Logger `mapstructure:"logger"` }
TGBotCfg настройки бота
func NewTGBotConfig ¶
Click to show internal directories.
Click to hide internal directories.