Documentation
¶
Index ¶
- func BuildCancelButton(taskID string) tg.KeyboardButtonClass
- func ExtFromContext(ctx context.Context) *ext.Context
- func ExtWithContext(ctx context.Context, extCtx *ext.Context) context.Context
- func GenFileNameFromMessage(message tg.Message) string
- func GetGroupedMessages(ctx *ext.Context, chatID int64, msg *tg.Message) ([]*tg.Message, error)
- func GetMediaFileName(media tg.MessageMediaClass) (string, error)
- func GetMessageByID(ctx *ext.Context, chatID int64, msgID int) (*tg.Message, error)
- func GetMessagesRange(ctx *ext.Context, chatID int64, minId, maxId int) ([]*tg.Message, error)
- func InputMessageClassSliceFromInt(ids []int) []tg.InputMessageClass
- func IterMessages(ctx *ext.Context, chatID int64, minId, maxId int) (<-chan MessageItem, error)
- func ParseChatID(ctx *ext.Context, idOrUsername string) (int64, error)
- func ParseMessageLink(ctx *ext.Context, link string) (int64, int, error)
- type MessageItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCancelButton ¶
func BuildCancelButton(taskID string) tg.KeyboardButtonClass
func GenFileNameFromMessage ¶
generate a file name from the message content and media type
it will never return an empty string
func GetGroupedMessages ¶ added in v0.24.0
func GetMediaFileName ¶ added in v0.28.0
func GetMediaFileName(media tg.MessageMediaClass) (string, error)
func GetMessageByID ¶
func GetMessagesRange ¶
func InputMessageClassSliceFromInt ¶
func InputMessageClassSliceFromInt(ids []int) []tg.InputMessageClass
func IterMessages ¶ added in v0.23.1
Types ¶
type MessageItem ¶ added in v0.23.1
Click to show internal directories.
Click to hide internal directories.