btelegram

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: Apache-2.0 Imports: 14 Imported by: 5

Documentation

Index

Constants

View Source
const (
	HTMLFormat = "HTML"
	HTMLNick   = "htmlnick"
	MarkdownV2 = "MarkdownV2"
)

Variables

This section is empty.

Functions

func New

func New(cfg *bridge.Config) bridge.Bridger

func TGGetParseMode added in v1.22.1

func TGGetParseMode(b *Btelegram, username string, text string) (textout string, parsemode string)

Types

type Btelegram

type Btelegram struct {
	*bridge.Config
	// contains filtered or unexported fields
}

func (*Btelegram) Connect

func (b *Btelegram) Connect() error

func (*Btelegram) Disconnect added in v0.9.3

func (b *Btelegram) Disconnect() error

func (*Btelegram) JoinChannel

func (b *Btelegram) JoinChannel(channel config.ChannelInfo) error

func (*Btelegram) Send

func (b *Btelegram) Send(msg config.Message) (string, error)

Jump to

Keyboard shortcuts

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