GramIO API Reference / @gramio/contexts/dist / FileAttachment
Class: FileAttachment<T>
Defined in: contexts/index.d.ts:323
Attachment with fileId and fileUniqueId properties
Extends
Extended by
AnimationAttachmentAudioAttachmentDocumentAttachmentStickerAttachmentVideoAttachmentVideoNoteAttachmentVoiceAttachment
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends DefaultAttachment | DefaultAttachment |
Constructors
Constructor
new FileAttachment<
T>(payload):FileAttachment<T>
Defined in: contexts/index.d.ts:327
Parameters
| Parameter | Type |
|---|---|
payload | T |
Returns
FileAttachment<T>
Overrides
Properties
| Property | Modifier | Type | Description | Overrides | Defined in |
|---|---|---|---|---|---|
attachmentType? | public | AttachmentType | Returns attachment's type (e.g. 'audio', 'photo') | Attachment.attachmentType | contexts/index.d.ts:326 |
payload | protected | T | - | - | contexts/index.d.ts:324 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:314
Returns
string
Inherited from
fileId
Get Signature
get fileId():
string
Defined in: contexts/index.d.ts:329
Identifier for this file, which can be used to download or reuse the file
Returns
string
fileUniqueId
Get Signature
get fileUniqueId():
string
Defined in: contexts/index.d.ts:334
Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
Returns
string