Layer 227
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:
MessageMediaContact
Attached contact.
MessageMediaDice
Dice-based animated sticker
MessageMediaDocument
Document (video, audio, voice, sticker, any media type except photo)
MessageMediaEmpty
Empty constructor.
MessageMediaGame
Telegram game
MessageMediaGeo
Attached map.
MessageMediaGeoLive
Indicates a live geolocation
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.
MessageMediaInvoice
Invoice
MessageMediaPaidMedia
Paid media, see here for more info.
MessageMediaPhoto
Attached photo.
MessageMediaPoll
Poll
MessageMediaStory
Represents a forwarded story or a story mention.
MessageMediaToDo
Represents a todo list.
MessageMediaUnsupported
Current version of the client does not support this media type.
MessageMediaVenue
Venue
MessageMediaVideoStream
Identifies the active group call associated with a live story.
MessageMediaWebPage
Preview of webpage
Gogram Example
// MessageMedia is an interface type // You can use any of the following constructors: var _ tg.MessageMedia = &tg.MessageMediaContact{} var _ tg.MessageMedia = &tg.MessageMediaDice{} var _ tg.MessageMedia = &tg.MessageMediaDocument{} var _ tg.MessageMedia = &tg.MessageMediaEmpty{} var _ tg.MessageMedia = &tg.MessageMediaGame{} // ... and 14 more constructors