GramIO API Reference / @gramio/contexts/dist / FileAttachment
Class: FileAttachment<T>
Defined in: contexts/index.d.ts:421
Attachment with fileId and fileUniqueId properties
Extends
Extended by
AnimationAttachmentAudioAttachmentDocumentAttachmentLivePhotoAttachmentStickerAttachmentVideoAttachmentVideoNoteAttachmentVoiceAttachment
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends DefaultAttachment | DefaultAttachment |
Constructors
Constructor
new FileAttachment<
T>(payload):FileAttachment<T>
Defined in: contexts/index.d.ts:425
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:424 |
payload | protected | T | - | - | contexts/index.d.ts:422 |
Accessors
[toStringTag]
Get Signature
get [toStringTag]():
string
Defined in: contexts/index.d.ts:412
Returns
string
Inherited from
fileId
Get Signature
get fileId():
string
Defined in: contexts/index.d.ts:427
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:432
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