notifications

package
v0.0.0-...-506d6dd Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Telegram

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

func NewTelegram

func NewTelegram(
	apiToken string,
	cl *req.Client,
) *Telegram

func (*Telegram) GetFile

func (t *Telegram) GetFile(ctx context.Context, fileID string) ([]byte, error)

func (*Telegram) React

func (t *Telegram) React(
	ctx context.Context,
	chatID int64,
	messageID int64,
	reaction string,
) error

func (*Telegram) SendMessage

func (t *Telegram) SendMessage(
	ctx context.Context,
	chatID int64,
	raw string,
) error

Jump to

Keyboard shortcuts

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