bot

package
v0.0.0-...-60d01b9 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 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 Bot

type Bot struct {
	API *tgbotapi.BotAPI
}

func New

func New(token string) (*Bot, error)

func (*Bot) SendNotification

func (b *Bot) SendNotification(chatID int64, notification models.Notification) error

type Handler

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

func NewHandler

func NewHandler(bot *Bot, store store.Store) *Handler

func (*Handler) HandleUpdate

func (h *Handler) HandleUpdate(update tgbotapi.Update) error

Jump to

Keyboard shortcuts

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