22 lines
939 B
Go
22 lines
939 B
Go
package config
|
|
|
|
type telegramConfig struct {
|
|
Token string `toml:"token" mapstructure:"token"`
|
|
AppID int `toml:"app_id" mapstructure:"app_id" json:"app_id"`
|
|
AppHash string `toml:"app_hash" mapstructure:"app_hash" json:"app_hash"`
|
|
Proxy tgProxyConfig `toml:"proxy" mapstructure:"proxy"`
|
|
RpcRetry int `toml:"rpc_retry" mapstructure:"rpc_retry" json:"rpc_retry"`
|
|
Userbot userbotConfig `toml:"userbot" mapstructure:"userbot" json:"userbot"`
|
|
MediaGroupTimeout int `toml:"media_group_timeout" mapstructure:"media_group_timeout" json:"media_group_timeout"`
|
|
}
|
|
|
|
type userbotConfig struct {
|
|
Enable bool `toml:"enable" mapstructure:"enable"`
|
|
Session string `toml:"session" mapstructure:"session"`
|
|
}
|
|
|
|
type tgProxyConfig struct {
|
|
Enable bool `toml:"enable" mapstructure:"enable"`
|
|
URL string `toml:"url" mapstructure:"url"`
|
|
}
|