handlers

package
v0.38.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: GPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ChannelChatID      telego.ChatID
	BotUsername        string
	IsChannelAvailable bool
)

Functions

func ArtworkPreview

func ArtworkPreview(ctx context.Context, bot *telego.Bot, query telego.CallbackQuery)

func BatchPostArtwork

func BatchPostArtwork(ctx context.Context, bot *telego.Bot, message telego.Message)

func CalculatePicture

func CalculatePicture(ctx context.Context, bot *telego.Bot, message telego.Message)

func CheckPermissionForQuery

func CheckPermissionForQuery(ctx context.Context, query telego.CallbackQuery, permissions ...types.Permission) bool

func CheckPermissionInGroup

func CheckPermissionInGroup(ctx context.Context, message telego.Message, permissions ...types.Permission) bool

func DeleteArtwork

func DeleteArtwork(ctx context.Context, bot *telego.Bot, message telego.Message)

func DeleteArtworkCallbackQuery

func DeleteArtworkCallbackQuery(ctx context.Context, bot *telego.Bot, query telego.CallbackQuery)

func EditArtworkR18

func EditArtworkR18(ctx context.Context, bot *telego.Bot, query telego.CallbackQuery)

func EditArtworkTitle

func EditArtworkTitle(ctx context.Context, bot *telego.Bot, message telego.Message)

func FixTwitterArtists

func FixTwitterArtists(ctx context.Context, bot *telego.Bot, message telego.Message)

func GetArtworkInfo

func GetArtworkInfo(ctx context.Context, bot *telego.Bot, message telego.Message)

func GetPictureFile

func GetPictureFile(ctx context.Context, bot *telego.Bot, message telego.Message)

func GetStats

func GetStats(ctx context.Context, bot *telego.Bot, message telego.Message)

func Help

func Help(ctx context.Context, bot *telego.Bot, message telego.Message)

func Init

func Init(channelChatID telego.ChatID, botUsername string)

func InlineQuery

func InlineQuery(ctx context.Context, bot *telego.Bot, query telego.InlineQuery)

func PostArtworkCallbackQuery

func PostArtworkCallbackQuery(ctx context.Context, bot *telego.Bot, query telego.CallbackQuery)

func PostArtworkCommand

func PostArtworkCommand(ctx context.Context, bot *telego.Bot, message telego.Message)

func ProcessPicturesHashAndSize

func ProcessPicturesHashAndSize(ctx context.Context, bot *telego.Bot, message telego.Message)

func ProcessPicturesStorage

func ProcessPicturesStorage(ctx context.Context, bot *telego.Bot, message telego.Message)

func RandomPicture

func RandomPicture(ctx context.Context, bot *telego.Bot, message telego.Message)

func RegisterHandlers

func RegisterHandlers(hg *telegohandler.HandlerGroup)

func SearchPicture

func SearchPicture(ctx context.Context, bot *telego.Bot, message telego.Message)

func SearchPictureCallbackQuery

func SearchPictureCallbackQuery(ctx context.Context, bot *telego.Bot, query telego.CallbackQuery)

func SetAdmin

func SetAdmin(ctx context.Context, bot *telego.Bot, message telego.Message)

func SetArtworkTags

func SetArtworkTags(ctx context.Context, bot *telego.Bot, message telego.Message)

func Start

func Start(ctx context.Context, bot *telego.Bot, message telego.Message)

func ToggleArtworkR18

func ToggleArtworkR18(ctx context.Context, bot *telego.Bot, message telego.Message)

Types

This section is empty.

Jump to

Keyboard shortcuts

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