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:
MessageMediaEmpty
Empty constructor.
MessageMediaGeo
Attached map.
MessageMediaPhoto
Attached photo.
MessageMediaContact
Attached contact.
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
MessageMediaGame
Telegram game
MessageMediaInvoice
Invoice
MessageMediaGeoLive
Indicates a live geolocation
MessageMediaPoll
Poll
MessageMediaDice
Dice-based animated sticker
MessageMediaVideoStream
Video stream media
MessageMediaGiveawayResults
A giveaway with public winners has finished, this constructor contains info about the winners.
MessageMediaGiveaway
Contains info about a giveaway, see here for more info.
MessageMediaPaidMedia
Paid media, see here for more info.
MessageMediaStory
Represents a forwarded story or a story mention.
MessageMediaToDo
Represents a todo list.
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.MessageMediaContact{} var _ tg.MessageMedia = &tg.MessageMediaUnsupported{} // ... and 14 more constructors