telegram

package
v0.0.0-...-d92abce Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMsgContactTitle

func GetMsgContactTitle(msg tgbotapi.Message) (retVal string)

Types

type TelegramBot

type TelegramBot struct {
	// contains filtered or unexported fields
}

func NewTelegramBot

func NewTelegramBot(logPar logs.Logger, settingsHandlerPar types.Settings) (retVal *TelegramBot)

func (TelegramBot) CheckUpdates

func (this TelegramBot) CheckUpdates() (err error)

func (*TelegramBot) Connect

func (this *TelegramBot) Connect() (err error)

func (TelegramBot) GetMessages

func (this TelegramBot) GetMessages() (retVal []tgbotapi.Message, err error)

func (TelegramBot) Ping

func (this TelegramBot) Ping() (err error)

func (TelegramBot) Send

func (this TelegramBot) Send(msg tgbotapi.MessageConfig) (err error)

func (TelegramBot) SendFile

func (this TelegramBot) SendFile(msg tgbotapi.DocumentConfig) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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