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