Documentation
¶
Index ¶
- func ArtworkHTMLCaption(artwork shared.ArtworkLike) string
- func ArtworkInputMediaPhotos(ctx context.Context, serv *service.Service, meta *metautil.MetaData, ...) (*ioutil.Closer[[]telego.InputMedia], error)
- func ArtworkInputMediaVideos(ctx context.Context, serv *service.Service, meta *metautil.MetaData, ...) (*ioutil.Closer[[]telego.InputMedia], error)
- func ArtworkPostKeyboard(meta *metautil.MetaData, cbId string) [][]telego.InlineKeyboardButton
- func CheckPermissionForQuery(ctx context.Context, serv *service.Service, query telego.CallbackQuery, ...) bool
- func CheckPermissionInGroup(ctx context.Context, serv *service.Service, message telego.Message, ...) bool
- func CreateArtworkInfoReplyMarkup(ctx context.Context, meta *metautil.MetaData, serv *service.Service, ...) (*telego.InlineKeyboardMarkup, error)
- func FindSourceURLInMessage(serv *service.Service, message *telego.Message) string
- func GetMessagePhotoFile(ctx *telegohandler.Context, message *telego.Message) ([]byte, error)
- func GetMssageOriginChannel(message *telego.Message) *telego.MessageOriginChannel
- func GetPictureDocumentInputFile(ctx context.Context, serv *service.Service, meta *metautil.MetaData, ...) (*ioutil.Closer[telego.InputFile], error)
- func GetPicturePhotoInputFile(ctx context.Context, serv *service.Service, meta *metautil.MetaData, ...) (*ioutil.Closer[telego.InputFile], error)
- func GetPostedArtworkInlineKeyboardButton(artwork *entity.Artwork, meta *metautil.MetaData) []telego.InlineKeyboardButton
- func GetUgoiraVideoDocumentInputFile(ctx context.Context, serv *service.Service, meta *metautil.MetaData, ...) (*ioutil.Closer[telego.InputFile], error)
- func ParseCommandBy(text string, splitChar, quoteChar string) (string, string, []string)
- func PostAndCreateArtwork(ctx context.Context, bot *telego.Bot, serv *service.Service, ...) error
- func ReplyMessage(ctx *telegohandler.Context, message telego.Message, text string) (*telego.Message, error)
- func ReplyMessageWithHTML(ctx *telegohandler.Context, message telego.Message, text string) (*telego.Message, error)
- func SendArtworkInfo(ctx context.Context, bot *telego.Bot, meta *metautil.MetaData, ...) error
- func SendArtworkPhotoMediaGroup(ctx context.Context, bot *telego.Bot, serv *service.Service, ...) ([]telego.Message, error)
- func SendArtworkUgoiraMediaGroup(ctx context.Context, bot *telego.Bot, serv *service.Service, ...) ([]telego.Message, error)
- type ArtworkCaptionData
- type CreateArtworkInfoReplyMarkupOptions
- type MediaGroupResultMessage
- type SendArtworkInfoOptions
- type SendOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArtworkHTMLCaption ¶
func ArtworkHTMLCaption(artwork shared.ArtworkLike) string
func ArtworkInputMediaPhotos ¶
func ArtworkInputMediaVideos ¶
func ArtworkPostKeyboard ¶
func ArtworkPostKeyboard(meta *metautil.MetaData, cbId string) [][]telego.InlineKeyboardButton
func CheckPermissionForQuery ¶
func CheckPermissionForQuery(ctx context.Context, serv *service.Service, query telego.CallbackQuery, permissions ...shared.Permission) bool
func CheckPermissionInGroup ¶
func CreateArtworkInfoReplyMarkup ¶
func CreateArtworkInfoReplyMarkup(ctx context.Context, meta *metautil.MetaData, serv *service.Service, artwork shared.ArtworkLike, controls *CreateArtworkInfoReplyMarkupOptions) (*telego.InlineKeyboardMarkup, error)
func FindSourceURLInMessage ¶
func GetMessagePhotoFile ¶
func GetMssageOriginChannel ¶
func GetMssageOriginChannel(message *telego.Message) *telego.MessageOriginChannel
func ParseCommandBy ¶
func PostAndCreateArtwork ¶
func ReplyMessage ¶
func ReplyMessageWithHTML ¶
func SendArtworkInfo ¶
func SendArtworkInfo(ctx context.Context, bot *telego.Bot, meta *metautil.MetaData, serv *service.Service, sourceUrl string, chatID telego.ChatID, opts SendArtworkInfoOptions) error
SendArtworkInfo 将作品信息附带操作按钮发送到指定聊天, 用于提供给管理员发布或修改作品
需要区分已发布的作品, 已标记为删除的作品, 和未发布的作品
Types ¶
type ArtworkCaptionData ¶
type MediaGroupResultMessage ¶
type SendArtworkInfoOptions ¶
type SendArtworkInfoOptions struct {
AppendCaption string
ReplyParameters *telego.ReplyParameters
HasPermission bool
}
type SendOption ¶
type SendOption struct {
ReplyTo int
}
Click to show internal directories.
Click to hide internal directories.