telegram

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUpdates

func CheckUpdates(
	configData *types.Config,
	sessionData *types.Session,
	wg *sync.WaitGroup)

CheckUpdates Check for Telegram bot updates

Types

type Connect

type Connect struct{}

Connect to connect to Telegram

func (Connect) Do

func (Connect) Do(
	configData *types.Config,
	sessionData *types.Session)

Do establish connectivity to Telegram

type Message

type Message struct {
	Text             string
	ReplyToMessageID int
}

Message defines the message structure to send via Telegram

func (Message) Send

func (message Message) Send(sessionData *types.Session)

Send a message via Telegram

Jump to

Keyboard shortcuts

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