telegram

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

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

func NewBot

func NewBot(ctx context.Context, token string, chatId int64, api *api.Handler, logger logging.Logger) (*Bot, error)

func (*Bot) List

func (b *Bot) List() error

func (*Bot) Notify

func (b *Bot) Notify(message string) error

func (*Bot) Unwatch

func (b *Bot) Unwatch(batchId string) error

func (*Bot) Watch

func (b *Bot) Watch(name, batchId, balanceEndpoint, minBalance, topupBalance, interval string) error

Jump to

Keyboard shortcuts

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