Documentation ¶
Index ¶
- Variables
- func FindSourceURLForMessage(message *telego.Message) string
- func GetArtworkHTMLCaption(artwork *types.Artwork) string
- func GetArtworkInputMediaPhotos(ctx context.Context, artwork *types.Artwork, start, end int) ([]telego.InputMedia, error)
- func GetArtworkPostMessageURL(messageID int, channelChatID telego.ChatID) string
- func GetDeepLink(botUsername, command string, args ...string) string
- func GetMessageIDs(messages []telego.Message) []int
- func GetMessageOriginChannelArtworkPost(ctx context.Context, bot *telego.Bot, message telego.Message) (*telego.MessageOriginChannel, bool)
- func GetMessagePhotoFile(bot *telego.Bot, message *telego.Message) ([]byte, error)
- func GetMssageOriginChannel(message telego.Message) *telego.MessageOriginChannel
- func GetPicturePreviewInputFile(ctx context.Context, picture *types.Picture) (*telego.InputFile, bool, error)
- func GetPostedPictureInlineKeyboardButton(artwork *types.Artwork, index uint, channelChatID telego.ChatID, ...) []telego.InlineKeyboardButton
- func GetPostedPictureReplyMarkup(artwork *types.Artwork, index uint, channelChatID telego.ChatID, ...) *telego.InlineKeyboardMarkup
- func Init(channelChatID, groupChatID telego.ChatID, botUsername string)
- func ParseCommandBy(text string, splitChar, quoteChar string) (string, string, []string)
- func PostAndCreateArtwork(ctx context.Context, artwork *types.Artwork, bot *telego.Bot, fromID int64, ...) error
- func ReplyMessage(bot *telego.Bot, message telego.Message, text string) (*telego.Message, error)
- func ReplyMessageWithHTML(bot *telego.Bot, message telego.Message, text string) (*telego.Message, error)
- func ReplyMessageWithMarkdown(bot *telego.Bot, message telego.Message, text string) (*telego.Message, error)
- func SendArtworkInfo(ctx context.Context, bot *telego.Bot, params *SendArtworkInfoParams) error
- func SendArtworkMediaGroup(ctx context.Context, bot *telego.Bot, chatID telego.ChatID, ...) ([]telego.Message, error)
- func SendFullArtworkInfo(ctx context.Context, bot *telego.Bot, message telego.Message, sourceURL string) error
- func SendPictureFileByID(ctx context.Context, bot *telego.Bot, message telego.Message, ...) (*telego.Message, error)
- type SendArtworkInfoParams
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func FindSourceURLForMessage ¶
func GetArtworkHTMLCaption ¶
获取作品的 HTML 格式描述, 已转义
func GetArtworkInputMediaPhotos ¶ added in v0.60.0
func GetArtworkInputMediaPhotos(ctx context.Context, artwork *types.Artwork, start, end int) ([]telego.InputMedia, error)
start from 0
func GetDeepLink ¶ added in v0.60.0
func GetMessageIDs ¶
func GetMessageOriginChannelArtworkPost ¶
func GetMessageOriginChannelArtworkPost(ctx context.Context, bot *telego.Bot, message telego.Message) (*telego.MessageOriginChannel, bool)
检查目标消息是否为频道的作品消息
如果是,返回 messageOriginChannel 和 true
func GetMessagePhotoFile ¶ added in v0.60.0
func GetMssageOriginChannel ¶
func GetMssageOriginChannel(message telego.Message) *telego.MessageOriginChannel
func ParseCommandBy ¶ added in v0.65.0
func PostAndCreateArtwork ¶
func ReplyMessage ¶
func ReplyMessageWithHTML ¶
func SendArtworkInfo ¶
func SendArtworkMediaGroup ¶ added in v0.60.0
func SendFullArtworkInfo ¶ added in v0.60.0
Types ¶
Click to show internal directories.
Click to hide internal directories.