handlers

package
v0.85.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2025 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func AddTagAlias added in v0.65.0

func AddTagAlias(ctx *telegohandler.Context, message telego.Message) error

func ArtworkPreview

func ArtworkPreview(ctx *telegohandler.Context, query telego.CallbackQuery) error

func AutoTagAllArtwork added in v0.73.1

func AutoTagAllArtwork(ctx *telegohandler.Context, message telego.Message) error

func AutoTaggingArtwork added in v0.73.0

func AutoTaggingArtwork(ctx *telegohandler.Context, message telego.Message) error

func BatchPostArtwork

func BatchPostArtwork(ctx *telegohandler.Context, message telego.Message) error

func CalculatePicture

func CalculatePicture(ctx *telegohandler.Context, message telego.Message) error

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 *telegohandler.Context, message telego.Message) error

func DeleteArtworkCallbackQuery

func DeleteArtworkCallbackQuery(ctx *telegohandler.Context, query telego.CallbackQuery) error

func DumpArtworkInfo added in v0.65.0

func DumpArtworkInfo(ctx *telegohandler.Context, message telego.Message) error

func EditArtworkR18

func EditArtworkR18(ctx *telegohandler.Context, query telego.CallbackQuery) error

func EditArtworkTitle

func EditArtworkTitle(ctx *telegohandler.Context, message telego.Message) error

func FixTwitterArtists

func FixTwitterArtists(ctx *telegohandler.Context, message telego.Message) error

func GetArtworkInfo

func GetArtworkInfo(ctx *telegohandler.Context, message telego.Message) error

func GetArtworkInfoCommand added in v0.60.0

func GetArtworkInfoCommand(ctx *telegohandler.Context, message telego.Message) error

func GetPictureFile

func GetPictureFile(ctx *telegohandler.Context, message telego.Message) error

func GetStats

func GetStats(ctx *telegohandler.Context, message telego.Message) error

func Help

func Help(ctx *telegohandler.Context, message telego.Message) error

func HybridSearchArtworks added in v0.72.0

func HybridSearchArtworks(ctx *telegohandler.Context, message telego.Message) error

func Init

func Init(channelChatID telego.ChatID, botUsername string)

func InlineQuery

func InlineQuery(ctx *telegohandler.Context, query telego.InlineQuery) error

func PostArtworkCallbackQuery

func PostArtworkCallbackQuery(ctx *telegohandler.Context, query telego.CallbackQuery) error

func PostArtworkCommand

func PostArtworkCommand(ctx *telegohandler.Context, message telego.Message) error

func ProcessPicturesHashAndSize

func ProcessPicturesHashAndSize(ctx *telegohandler.Context, message telego.Message) error

func ProcessPicturesStorage

func ProcessPicturesStorage(ctx *telegohandler.Context, message telego.Message) error

func RandomPicture

func RandomPicture(ctx *telegohandler.Context, message telego.Message) error

func ReCaptionArtwork added in v0.66.0

func ReCaptionArtwork(ctx *telegohandler.Context, message telego.Message) error

func RefreshArtwork added in v0.60.0

func RefreshArtwork(ctx *telegohandler.Context, message telego.Message) error

删除 CachedArtwork, 刷新 telegram info

func RegisterHandlers

func RegisterHandlers(hg *telegohandler.HandlerGroup)

func SearchPicture

func SearchPicture(ctx *telegohandler.Context, message telego.Message) error

func SearchPictureCallbackQuery

func SearchPictureCallbackQuery(ctx *telegohandler.Context, query telego.CallbackQuery) error

func SearchSimilarArtworks added in v0.75.0

func SearchSimilarArtworks(ctx *telegohandler.Context, message telego.Message) error

func SetAdmin

func SetAdmin(ctx *telegohandler.Context, message telego.Message) error

func SetArtworkTags

func SetArtworkTags(ctx *telegohandler.Context, message telego.Message) error

func Start

func Start(ctx *telegohandler.Context, message telego.Message) error

func ToggleArtworkR18

func ToggleArtworkR18(ctx *telegohandler.Context, message telego.Message) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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