handler

package
v0.0.0-...-bba512c Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(ctx context.Context, b *telego.Bot, ownerID int, u *application.UseCase) *Handler

func (*Handler) Bug

func (h *Handler) Bug(u *objs.Update)

func (*Handler) Feedback

func (h *Handler) Feedback(u *objs.Update)

func (*Handler) GetPrayers

func (h *Handler) GetPrayers(u *objs.Update)

func (*Handler) GetPrayersByDate

func (h *Handler) GetPrayersByDate(u *objs.Update)

func (*Handler) GetSubscribers

func (h *Handler) GetSubscribers(u *objs.Update)

GetSubscribers returns the number of subscribers to the bot

func (*Handler) Help

func (h *Handler) Help(u *objs.Update)

func (*Handler) Respond

func (h *Handler) Respond(u *objs.Update)

Respond to a user's feedback or bug report

func (*Handler) Run

func (h *Handler) Run() error

func (*Handler) SendAll

func (h *Handler) SendAll(u *objs.Update)

SendAll broadcasts a message to all subscribers

func (*Handler) SetLang

func (h *Handler) SetLang(u *objs.Update)

func (*Handler) Start

func (h *Handler) Start(u *objs.Update)

func (*Handler) Subscribe

func (h *Handler) Subscribe(u *objs.Update)

func (*Handler) Unsubscribe

func (h *Handler) Unsubscribe(u *objs.Update)

Jump to

Keyboard shortcuts

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