tgdrv

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package tgdrv provides a driver that send telegram message

Index

Constants

View Source
const TGHTML = "TGHTML"

TGHTML is driver type of HTML()

View Source
const TGMarkdown = "TGMarkdown"

TGMarkdown is driver type of Markdown()

View Source
const TGPlain = "TGPlain"

TGPlain is driver type of Plain()

Variables

This section is empty.

Functions

func HTML added in v0.0.2

func HTML(token string, dest map[string]int64, cl *http.Client) (ret types.Driver, err error)

HTML creates a driver that send html formatted message in telegram

The driver accepts string which is html formatted text.

dest maps endpoint to chat/channel/user ids.

func Markdown

func Markdown(token string, dest map[string]int64, cl *http.Client) (ret types.Driver, err error)

Markdown creates a driver that send markdown formatted message in telegram

The driver accepts string which is markdown formatted text.

dest maps endpoint to chat/channel/user ids.

func Plain added in v0.0.2

func Plain(token string, dest map[string]int64, cl *http.Client) (ret types.Driver, err error)

Plain creates a driver that send plain text message in telegram

The driver accepts string which is plain text.

dest maps endpoint to chat/channel/user ids.

Types

This section is empty.

Jump to

Keyboard shortcuts

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