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