telegram

package
v0.0.0-...-5f3b81a Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

func NewProvider

func NewProvider(a *account.Client) (*Provider, error)

NewProvider creates a new Telegram message provider

func (*Provider) CreateStream

func (p *Provider) CreateStream(ctx context.Context) (<-chan social.Message, error)

CreatStream returns a telegram message stream

func (*Provider) Send

func (p *Provider) Send(m *social.Message) error

Jump to

Keyboard shortcuts

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