tmedia

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvInputMedia added in v0.13.0

func ConvInputMedia(media tg.MessageMediaClass) (tg.InputMediaClass, bool)

func ConvInputMediaContact added in v0.13.0

func ConvInputMediaContact(v *tg.MessageMediaContact) (*tg.InputMediaContact, bool)

func ConvInputMediaDice added in v0.13.0

func ConvInputMediaDice(v *tg.MessageMediaDice) (*tg.InputMediaDice, bool)

func ConvInputMediaDocument added in v0.13.0

func ConvInputMediaDocument(v *tg.MessageMediaDocument) (*tg.InputMediaDocument, bool)

func ConvInputMediaGame added in v0.13.0

func ConvInputMediaGame(v *tg.MessageMediaGame) (*tg.InputMediaGame, bool)

func ConvInputMediaGeo added in v0.13.0

func ConvInputMediaGeo(v *tg.MessageMediaGeo) (*tg.InputMediaGeoPoint, bool)

func ConvInputMediaGeoLive added in v0.13.0

func ConvInputMediaGeoLive(v *tg.MessageMediaGeoLive) (*tg.InputMediaGeoLive, bool)

func ConvInputMediaInvoice added in v0.13.0

func ConvInputMediaInvoice(v *tg.MessageMediaInvoice) (*tg.InputMediaInvoice, bool)

func ConvInputMediaPhoto added in v0.13.0

func ConvInputMediaPhoto(v *tg.MessageMediaPhoto) (*tg.InputMediaPhoto, bool)

func ConvInputMediaPoll added in v0.13.0

func ConvInputMediaPoll(v *tg.MessageMediaPoll) (*tg.InputMediaPoll, bool)

func ConvInputMediaStory added in v0.13.0

func ConvInputMediaStory(v *tg.MessageMediaStory) (*tg.InputMediaStory, bool)

func ConvInputMediaVenue added in v0.13.0

func ConvInputMediaVenue(v *tg.MessageMediaVenue) (*tg.InputMediaVenue, bool)

func GetDocumentName

func GetDocumentName(doc *tg.Document) string

func GetPhotoSize

func GetPhotoSize(sizes []tg.PhotoSizeClass) (string, int, bool)

Types

type Media added in v0.13.0

type Media struct {
	InputFileLoc tg.InputFileLocationClass
	Name         string
	Size         int64
	DC           int
}

func GetDocumentInfo

func GetDocumentInfo(doc *tg.MessageMediaDocument) (*Media, bool)

func GetDocumentThumb added in v0.13.0

func GetDocumentThumb(doc *tg.Document) (*Media, bool)

func GetMedia

func GetMedia(msg tg.MessageClass) (*Media, bool)

func GetPhotoInfo

func GetPhotoInfo(photo *tg.MessageMediaPhoto) (*Media, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL