Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigFileName = "/data/options.json"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
TelegramToken string `json:"TELEGRAM_TOKEN"`
TelegramAdmin string `json:"TELEGRAM_ADMIN_ID"`
TelegramAdminID int64
DeleteJoinMessages bool `json:"DELETE_JOIN"`
DeleteLeaveMessages bool `json:"DELETE_LEAVE"`
RestictOnJoin bool `json:"RESTRICT_ON_JOIN"`
RestrictOnJoinTime int `json:"RESTRICT_ON_JOIN_TIME"`
AllowedChatIDs string `json:"ALLOWED_CHAT_IDS"`
AllowedChatIDsList []int64 `json:"-"`
YandexToken string `json:"YANDEX_TOKEN"`
Debug bool `json:"DEBUG"`
}
Config ...
func InitConfig ¶
Click to show internal directories.
Click to hide internal directories.