Documentation ¶
Index ¶
- Variables
- func FindSourceURLForMessage(message *telego.Message) string
- func GetArtworkHTMLCaption(artwork *types.Artwork) string
- func GetArtworkPostMessageURL(messageID int, channelChatID telego.ChatID) string
- func GetDeepLinkForFile(pictureID string, botUsername string) string
- func GetMessageIDs(messages []telego.Message) []int
- func GetMessageOriginChannelArtworkPost(ctx context.Context, bot *telego.Bot, message telego.Message) (*telego.MessageOriginChannel, bool)
- func GetMessagePhotoFileBytes(bot *telego.Bot, message *telego.Message) ([]byte, error)
- func GetMssageOriginChannel(_ context.Context, _ *telego.Bot, message telego.Message) *telego.MessageOriginChannel
- func GetPicturePreviewInputFile(ctx context.Context, picture *types.Picture) (inputFile *telego.InputFile, needUpdatePreview bool, err 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 PostAndCreateArtwork(ctx context.Context, artwork *types.Artwork, bot *telego.Bot, fromID int64, ...) error
- func PostArtwork(ctx context.Context, bot *telego.Bot, artwork *types.Artwork) ([]telego.Message, 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 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 ¶
func GetDeepLinkForFile ¶
func GetMessageIDs ¶
func GetMessageOriginChannelArtworkPost ¶
func GetMessageOriginChannelArtworkPost(ctx context.Context, bot *telego.Bot, message telego.Message) (*telego.MessageOriginChannel, bool)
检查目标消息是否为频道的作品消息
如果是,返回 messageOriginChannel 和 true
func GetMssageOriginChannel ¶
func PostAndCreateArtwork ¶
func PostArtwork ¶
func ReplyMessage ¶
func ReplyMessageWithHTML ¶
func SendArtworkInfo ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.