Layer 220
MessageMedia
Abstract type representing one of 19 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.MessageMedia interface.
Use any of the following constructors:
MessageMediaEmpty
Empty constructor.
MessageMediaGeo
Attached map.
MessageMediaPhoto
Attached photo.
MessageMediaUnsupported
Current version of the client does not support this media type.
MessageMediaDocument
Document (video, audio, voice, sticker, any media type except photo)
MessageMediaVenue
Venue
MessageMediaWebPage
Preview of webpage
MessageMediaContact
Attached contact.
MessageMediaGame
Telegram game
MessageMediaPoll
Poll
MessageMediaGeoLive
Indicates a live geolocation
MessageMediaInvoice
Invoice
MessageMediaDice
Dice-based animated sticker
MessageMediaStory
Represents a forwarded story or a story mention.
MessageMediaGiveaway
Contains info about a giveaway, see here for more info.
MessageMediaGiveawayResults
A giveaway with public winners has finished, this constructor contains info about the winners.
MessageMediaVideoStream
No description
MessageMediaToDo
Represents a todo list.
MessageMediaPaidMedia
Paid media, see here for more info.
Gogram Example
// MessageMedia is an interface type // You can use any of the following constructors: var _ tg.MessageMedia = &tg.MessageMediaEmpty{} var _ tg.MessageMedia = &tg.MessageMediaGeo{} var _ tg.MessageMedia = &tg.MessageMediaPhoto{} var _ tg.MessageMedia = &tg.MessageMediaUnsupported{} var _ tg.MessageMedia = &tg.MessageMediaDocument{} // ... and 14 more constructors