telegram

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name     string
	Token    string
	Group    int64
	MinScore int
}

type Telegram

type Telegram struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewOrGet

func NewOrGet(c map[string]interface{}) (*Telegram, error)

func (*Telegram) Chan

func (t *Telegram) Chan() chan *lib.Message

func (*Telegram) Exit

func (t *Telegram) Exit()

func (*Telegram) GetLabel

func (t *Telegram) GetLabel() string

func (*Telegram) Group

func (t *Telegram) Group() lib.Group

func (*Telegram) MinScore

func (t *Telegram) MinScore() int

func (*Telegram) SetGroup

func (t *Telegram) SetGroup(g lib.Group)

type TelegramBOT

type TelegramBOT struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(token string) (*TelegramBOT, error)

func (*TelegramBOT) Send

func (tb *TelegramBOT) Send(g int64, m *lib.Message) error

Jump to

Keyboard shortcuts

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