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:
InputMediaEmpty
Empty media content of a message.
InputMediaPhoto
Forwarded photo
InputMediaGeoPoint
Map.
InputMediaUploadedPhoto
Photo
InputMediaUploadedDocument
New document
InputMediaVenue
Can be used to send a venue geolocation.
InputMediaContact
Phone book contact
InputMediaDocument
Forwarded document
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
InputMediaGame
A game
InputMediaDice
Send a dice-based animated sticker
InputMediaPoll
A poll
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.
InputMediaStakeDice
Layer 223 1 – Base layer 2 – New userpic notifications 3 – Send message can trigger link change 4 –
InputMediaStory
Forwarded story
InputMediaGeoLive
Live geolocation
InputMediaTodo
Creates a todo list.
Gogram Example
// InputMedia is an interface type // You can use any of the following constructors: var _ tg.InputMedia = &tg.InputMediaEmpty{} var _ tg.InputMedia = &tg.InputMediaPhoto{} var _ tg.InputMedia = &tg.InputMediaGeoPoint{} var _ tg.InputMedia = &tg.InputMediaUploadedPhoto{} var _ tg.InputMedia = &tg.InputMediaUploadedDocument{} // ... and 15 more constructors