Documentation
¶
Index ¶
Constants ¶
View Source
const EnvKey = "TDL_EXTENSION"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Env ¶
type Env struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
AppID int `json:"app_id"`
AppHash string `json:"app_hash"`
Session []byte `json:"session"`
DataDir string `json:"data_dir"`
NTP string `json:"ntp"`
Proxy string `json:"proxy"`
Pool int64 `json:"pool"`
Debug bool `json:"debug"`
}
type Options ¶
type Options struct {
// UpdateHandler will be passed to telegram.Client Options.
UpdateHandler telegram.UpdateHandler
// Middlewares will be passed to telegram.Client Options,
// and recovery,retry,flood-wait will be used if nil.
Middlewares []telegram.Middleware
// Logger will be used as extension logger,
// and default logger(write to extension data dir) will be used if nil.
Logger *zap.Logger
}
Click to show internal directories.
Click to hide internal directories.