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