core

package
v0.0.0-...-7a40845 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpdateContext

type UpdateContext struct {
	Api        *gobotapi.PollingClient
	DB         *db.DB
	TorClient  *tor.Client
	Config     *config.Config
	Translator *translator.Translator
}

func NewLightContext

func NewLightContext(api *gobotapi.PollingClient, languageCode string) *UpdateContext

func NewUpdateContext

func NewUpdateContext(api *gobotapi.PollingClient, cfg *config.Config, torClient *tor.Client, dbCtx *db.DB, languageCode string) *UpdateContext

func (*UpdateContext) SendMessage

func (ctx *UpdateContext) SendMessage(chatID int64, text string) error

func (*UpdateContext) SendMessageWithKeyboard

func (ctx *UpdateContext) SendMessageWithKeyboard(chatID int64, text string, replyMarkup interface{}) error

func (*UpdateContext) SendPhotoWithKeyboard

func (ctx *UpdateContext) SendPhotoWithKeyboard(chatID int64, text string, photo rawTypes.InputFile, replyMarkup interface{}) (*rawTypes.Result, error)

Jump to

Keyboard shortcuts

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