telegram

package
v0.0.0-...-4da845c Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

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

func (Notifier) Notify

func (notifier Notifier) Notify(ctx context.Context, message string)

type Update

type Update struct {
	Text     string
	Notifier Notifier
}

func (Update) Body

func (update Update) Body() string

func (Update) Hook

func (update Update) Hook() multibot.Notifier

type WebhookFetcher

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

func NewWebhookFetcher

func NewWebhookFetcher(token, webhookURLPrefix string) (*WebhookFetcher, error)

func NewWebhookFetcherWithCert

func NewWebhookFetcherWithCert(token, webhookURLPrefix string, certFile interface{}) (*WebhookFetcher, error)

func (*WebhookFetcher) Fetch

func (fetcher *WebhookFetcher) Fetch(ctx context.Context) <-chan multibot.Update

func (*WebhookFetcher) WithDebug

func (fetcher *WebhookFetcher) WithDebug(debugMode bool) *WebhookFetcher

Jump to

Keyboard shortcuts

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