tmedia

package
v0.17.6 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 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

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

func ConvInputMediaContact

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

func ConvInputMediaDice

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

func ConvInputMediaDocument

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

func ConvInputMediaGame

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

func ConvInputMediaGeo

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

func ConvInputMediaGeoLive

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

func ConvInputMediaInvoice

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

func ConvInputMediaPhoto

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

func ConvInputMediaPoll

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

func ConvInputMediaStory

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

func ConvInputMediaVenue

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

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

func GetDocumentInfo

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

func GetDocumentThumb

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

func GetExtendedMedia

func GetExtendedMedia(mm tg.MessageExtendedMediaClass) (*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