telegram

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewMessage = tgbotapi.NewMessage
View Source
var NewUpdate = tgbotapi.NewUpdate

Functions

func DefaultUpdateConfig

func DefaultUpdateConfig() tgbotapi.UpdateConfig

func LogMessage

func LogMessage(w io.Writer, msg *tgbotapi.Message)

Types

type Bot

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

func New

func New(token string, httpclient *http.Client) (*Bot, error)

func (*Bot) Bot

func (b *Bot) Bot() *tgbotapi.BotAPI

func (*Bot) Send

func (b *Bot) Send(msg tgbotapi.MessageConfig) (tgbotapi.Message, error)

func (*Bot) UpdateChan

func (b *Bot) UpdateChan() (tgbotapi.UpdatesChannel, error)

Directories

Path Synopsis
bots

Jump to

Keyboard shortcuts

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