config

package
v0.0.0-...-29a9900 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 8 Imported by: 0

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"`
	TelegramAdminIDs     string  `json:"TELEGRAM_ADMIN_IDS"`
	TelegramAdminIDsList []int64 `json:"-"`

	UPDATE_MESSAGES   string    `json:"UPDATE_MESSAGES"`
	UpdateMessageList []Message `json:"-"`

	DATA_URL string `json:"DATA_URL"`

	MESSAGE_FORMAT string `json:"MESSAGE_FORMAT"`

	UPDATE_DELAY int `json:"UPDATE_DELAY"`

	Debug bool `json:"DEBUG"`
}

Config ...

func InitConfig

func InitConfig(args []string) (*Config, error)

type Message

type Message struct {
	ChatID          int64
	MessageThreadID int64
	MessageID       int64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳