consts

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagProxy        = "proxy"
	FlagNamespace    = "ns"
	FlagDebug        = "debug"
	FlagPartSize     = "size"
	FlagThreads      = "threads"
	FlagLimit        = "limit"
	FlagNTP          = "ntp"
	FlagUpPath       = "path"
	FlagUpExcludes   = "excludes"
	FlagLoginDesktop = "desktop"
	FlagDlUrls       = "urls"
)
View Source
const (
	AppID   = 15055931
	AppHash = "021d433426cbb920eeb95164498fe3d3"
)

https://core.telegram.org/api/obtaining_api_id#using-telegrams-open-source-code so we can not use Telegram Desktop ID below is iyear's application

View Source
const (
	ChatGroup   = "group"
	ChatPrivate = "private"
	ChatChannel = "channel"
	ChatUnknown = "unknown"
)
View Source
const (
	DownloadModeURL = "url"
)
View Source
const DownloadPath = "downloads"

Variables

View Source
var (
	DataDir  string
	KVPath   string
	DocsPath = "docs"
)
View Source
var (
	Version    = "dev"
	Commit     = "unknown"
	CommitDate = "unknown"
)

vars below are set by '-X' flag

View Source
var (
	Device = telegram.DeviceConfig{
		DeviceModel:   "tdl",
		SystemVersion: runtime.GOOS,
		AppVersion:    Version,
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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