config

package
v0.0.0-...-1165fb1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Telegram TelegramConfig
}

func Init

func Init() (*Config, error)

type TelegramConfig

type TelegramConfig struct {
	BotToken      string `env:"BOT_TOKEN"`
	AppHash       string `env:"APP_HASH"`
	AppId         int    `env:"APP_ID"`
	Phone         string `env:"PHONE"`
	Password      string `env:"PASSWORD"`
	SessionFolder string `env:"SESSION_FOLDER" env-default:"./sessions"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL