Layer 220
InputMedia
Abstract type representing one of 19 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.InputMedia interface.
Use any of the following constructors:
InputMediaUploadedPhoto
Photo
InputMediaContact
Phone book contact
InputMediaDocument
Forwarded document
InputMediaGeoPoint
Map.
InputMediaVenue
Can be used to send a venue geolocation.
InputMediaEmpty
Empty media content of a message.
InputMediaUploadedDocument
New document
InputMediaPhoto
Forwarded photo
InputMediaPhotoExternal
New photo that will be uploaded by the server using the specified URL
InputMediaDocumentExternal
Document that will be downloaded by the telegram servers
InputMediaGame
A game
InputMediaInvoice
Generated invoice of a bot payment
InputMediaGeoLive
Live geolocation
InputMediaPoll
A poll
InputMediaDice
Send a dice-based animated sticker
InputMediaStory
Forwarded story
InputMediaWebPage
Specifies options that will be used to generate the link preview for the caption, or even a standalo
InputMediaPaidMedia
Paid media, see here for more info.
InputMediaTodo
Creates a todo list.
Gogram Example
// InputMedia is an interface type // You can use any of the following constructors: var _ tg.InputMedia = &tg.InputMediaUploadedPhoto{} var _ tg.InputMedia = &tg.InputMediaContact{} var _ tg.InputMedia = &tg.InputMediaDocument{} var _ tg.InputMedia = &tg.InputMediaGeoPoint{} var _ tg.InputMedia = &tg.InputMediaVenue{} // ... and 14 more constructors