Documentation ¶
Index ¶
- Constants
- Variables
- func New(ctx context.Context, o Options, login bool, middlewares ...telegram.Middleware) (*telegram.Client, error)
- func NewDefaultMiddlewares(ctx context.Context, timeout time.Duration) []telegram.Middleware
- func Run(ctx context.Context, client *telegram.Client, ...) error
- type Options
Constants ¶
View Source
const ( AppBuiltin = "builtin" AppDesktop = "desktop" )
Variables ¶
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 ¶
func NewDefaultMiddlewares ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.