consts

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: AGPL-3.0 Imports: 3 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"
	FlagLoginPasscode = "passcode"
	FlagLoginCode     = "code"
	FlagDlUrl         = "url"
	FlagDlFile        = "file"
	FlagDlTemplate    = "template"
	FlagDlInclude     = "include"
	FlagDlExclude     = "exclude"
	FlagDlDesc        = "desc"
	FlagDlDir         = "dir"
	FlagDlRewriteExt  = "rewrite-ext"
	FlagDlSkipSame    = "skip-same"
	FlagDlPool        = "pool"
	FlagDlContinue    = "continue"
	FlagDlRestart     = "restart"
)
View Source
const (
	AppBuiltin = "builtin"
	AppDesktop = "desktop"
)
View Source
const (
	ChatGroup   = "group"
	ChatPrivate = "private"
	ChatChannel = "channel"
	ChatUnknown = "unknown"
)

External designation, different from Telegram mtproto

View Source
const FileMaxSize = 4000 * 1024 * 1024

Variables

View Source
var (
	HomeDir        string
	DataDir        string
	KVPath         string
	LogPath        string
	DocsPath       = "docs"
	UploadThumbExt = ".thumb"
)
View Source
var (
	Version    = "dev"
	Commit     = "unknown"
	CommitDate = "unknown"
)

vars below are set by '-X' flag

View Source
var Apps = map[string]struct {
	AppID   int
	AppHash string
}{

	AppBuiltin: {AppID: 15055931, AppHash: "021d433426cbb920eeb95164498fe3d3"},

	AppDesktop: {AppID: 2040, AppHash: "b18441a1ff607e10a989891a5462e627"},
}
View Source
var (
	Device = telegram.DeviceConfig{
		DeviceModel:    "Desktop",
		SystemVersion:  "Windows 10",
		AppVersion:     "4.2.4 x64",
		LangCode:       "en",
		SystemLangCode: "en-US",
		LangPack:       "tdesktop",
	}
)

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