Layer 220
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:
DocumentAttributeImageSize
Defines the width and height of an image uploaded as document
DocumentAttributeAnimated
Defines an animated GIF
DocumentAttributeSticker
Defines a sticker
DocumentAttributeHasStickers
Whether the current document has stickers attached
DocumentAttributeAudio
Represents an audio file
DocumentAttributeFilename
A simple document with a file name
DocumentAttributeVideo
Defines a video
DocumentAttributeCustomEmoji
Info about a custom emoji
Gogram Example
// DocumentAttribute is an interface type // You can use any of the following constructors: var _ tg.DocumentAttribute = &tg.DocumentAttributeImageSize{} var _ tg.DocumentAttribute = &tg.DocumentAttributeAnimated{} var _ tg.DocumentAttribute = &tg.DocumentAttributeSticker{} var _ tg.DocumentAttribute = &tg.DocumentAttributeHasStickers{} var _ tg.DocumentAttribute = &tg.DocumentAttributeAudio{} // ... and 3 more constructors