Documentation
¶
Index ¶
- Constants
- func AddSticker(ctx context.Context, localUrl string) (*store.MixinSticker, error)
- func CheckPersonalStickers(ctx context.Context) (int, error)
- func ClearPersonalStickers(ctx context.Context) error
- func CreateAlbumZip(mixinAlbum *MixinAlbum, mid string, formatStickerName bool) (*os.File, error)
- func GetStickersByAlbumID(ctx context.Context, albumID string) ([]store.MixinSticker, error)
- func HandleLottieUrl(ctx context.Context, content string, cid, mid, uid string) error
- func HandleMessage(ctx context.Context, msg *mixin.MessageView) error
- func HandleTgAlbumUrl(ctx context.Context, content string, cid, mid, uid string) error
- func HandleTgsOrJsonFile(ctx context.Context, data *mixin.DataMessage, cid, mid, uid string) error
- func HandleZipFile(ctx context.Context, data *mixin.DataMessage, cid, mid, uid string) error
- func RemoveStickers(ctx context.Context, ids ...string) error
- func Respond(ctx context.Context, msg *mixin.MessageView, category string, data []byte) error
- func RespondSticker(ctx context.Context, stickerID, cid, mid, uid string) error
- func RespondStickerWithJson(ctx context.Context, stickerID, cid, mid, uid string, json []byte) error
- func UploadAlbum(ctx context.Context, albumZipPath string) (*store.MixinAlbum, error)
- type MixinAlbum
- type StickerItem
- type StickerRequest
Constants ¶
View Source
const ( TooManyStickers = 20126 BadData = 10002 BotPersonalAlbumID = "1a472cbb-3c55-497a-bec4-d8be0d9af502" AdminUserID = "d3bee23a-81d4-462e-902a-22dae9ef89ff" )
Variables ¶
This section is empty.
Functions ¶
func AddSticker ¶
func ClearPersonalStickers ¶
func CreateAlbumZip ¶
func GetStickersByAlbumID ¶
func HandleLottieUrl ¶
func HandleMessage ¶
func HandleTgAlbumUrl ¶
func HandleTgsOrJsonFile ¶
func HandleZipFile ¶
func RespondSticker ¶
func RespondStickerWithJson ¶
func UploadAlbum ¶
Types ¶
type MixinAlbum ¶
type MixinAlbum struct { Manifest *string Thumb *string Banner *string Stickers []StickerItem Name string }
type StickerItem ¶
type StickerRequest ¶
type StickerRequest struct {
DataBase64 string `json:"data_base64"`
}
Click to show internal directories.
Click to hide internal directories.