telegram

package
v0.0.0-...-076ee7e Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: LGPL-2.1 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IReciever

type IReciever interface {
	Handle(payload *tg_bot.Message) (*tg_bot.MessageConfig, error)
	GetOffset() int
	GetTimeout() time.Duration
}

type Telegram

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

func New

func New(token string, reciever IReciever) *Telegram

func (*Telegram) Send

func (tg *Telegram) Send(chatID uint64, data string) error

Jump to

Keyboard shortcuts

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