telegram

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyAuthConfig

type ProxyAuthConfig struct {
	Username string `json:"username" yaml:"username" hcl:"username"`
	Password string `json:"password" yaml:"password" hcl:"password"`
}

type ProxyConfig

type ProxyConfig struct {
	Address string           `json:"address" yaml:"address" hcl:"address"`
	Auth    *ProxyAuthConfig `json:"auth" yaml:"auth" hcl:"auth,block"`
}

type Telegram

type Telegram struct {
	Name    string       `json:"name" yaml:"name" hcl:"name,label"`
	Token   string       `json:"token" yaml:"token" hcl:"token"`
	ChatID  int64        `json:"chatId" yaml:"chatId" hcl:"chatId"`
	Proxy   *ProxyConfig `json:"proxy" yaml:"proxy" hcl:"proxy,block"`
	Timeout int          `json:"timeout" yaml:"timeout" hcl:"timeout,optional"`
}

func (Telegram) Validate

func (cfg Telegram) Validate() error

Jump to

Keyboard shortcuts

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