Layer 227
DocumentAttribute
Abstract type representing one of 8 possible constructors.
Type
Available Constructors
In Gogram, this type is represented as tg.DocumentAttribute interface.
Use any of the following constructors:
DocumentAttributeAnimated
Defines an animated GIF
DocumentAttributeAudio
Represents an audio file
DocumentAttributeCustomEmoji
Info about a custom emoji
DocumentAttributeFilename
A simple document with a file name
DocumentAttributeHasStickers
Whether the current document has stickers attached
DocumentAttributeImageSize
Defines the width and height of an image uploaded as document
DocumentAttributeSticker
Defines a sticker
DocumentAttributeVideo
Defines a video
Gogram Example
// DocumentAttribute is an interface type // You can use any of the following constructors: var _ tg.DocumentAttribute = &tg.DocumentAttributeAnimated{} var _ tg.DocumentAttribute = &tg.DocumentAttributeAudio{} var _ tg.DocumentAttribute = &tg.DocumentAttributeCustomEmoji{} var _ tg.DocumentAttribute = &tg.DocumentAttributeFilename{} var _ tg.DocumentAttribute = &tg.DocumentAttributeHasStickers{} // ... and 3 more constructors