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