Documentation ¶
Index ¶
- func ConvInputMedia(media tg.MessageMediaClass) (tg.InputMediaClass, bool)
- func ConvInputMediaContact(v *tg.MessageMediaContact) (*tg.InputMediaContact, bool)
- func ConvInputMediaDice(v *tg.MessageMediaDice) (*tg.InputMediaDice, bool)
- func ConvInputMediaDocument(v *tg.MessageMediaDocument) (*tg.InputMediaDocument, bool)
- func ConvInputMediaGame(v *tg.MessageMediaGame) (*tg.InputMediaGame, bool)
- func ConvInputMediaGeo(v *tg.MessageMediaGeo) (*tg.InputMediaGeoPoint, bool)
- func ConvInputMediaGeoLive(v *tg.MessageMediaGeoLive) (*tg.InputMediaGeoLive, bool)
- func ConvInputMediaInvoice(v *tg.MessageMediaInvoice) (*tg.InputMediaInvoice, bool)
- func ConvInputMediaPhoto(v *tg.MessageMediaPhoto) (*tg.InputMediaPhoto, bool)
- func ConvInputMediaPoll(v *tg.MessageMediaPoll) (*tg.InputMediaPoll, bool)
- func ConvInputMediaStory(v *tg.MessageMediaStory) (*tg.InputMediaStory, bool)
- func ConvInputMediaVenue(v *tg.MessageMediaVenue) (*tg.InputMediaVenue, bool)
- func GetDocumentName(doc *tg.Document) string
- func GetPhotoSize(sizes []tg.PhotoSizeClass) (string, int, bool)
- type Media
- func GetDocumentInfo(doc *tg.MessageMediaDocument) (*Media, bool)
- func GetDocumentThumb(doc *tg.Document) (*Media, bool)
- func GetExtendedMedia(mm tg.MessageExtendedMediaClass) (*Media, bool)
- func GetMedia(msg tg.MessageClass) (*Media, bool)
- func GetPhotoInfo(photo *tg.MessageMediaPhoto) (*Media, bool)
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 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 GetExtendedMedia ¶
func GetExtendedMedia(mm tg.MessageExtendedMediaClass) (*Media, bool)
func GetPhotoInfo ¶
func GetPhotoInfo(photo *tg.MessageMediaPhoto) (*Media, bool)
Click to show internal directories.
Click to hide internal directories.