config

package
v0.0.0-...-407a39f Latest Latest
Warning

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

Go to latest
Published: Jul 3, 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