Skip to content

GramIO API Reference / @gramio/contexts/dist / BotLike

Interface: BotLike ​

Defined in: contexts/index.d.ts:124

The required object that the contexts are based on

Properties ​

PropertyTypeDefined in
__DerivesRecord<UpdateName | "global", { }>contexts/index.d.ts:125
apiSuppressedAPIMethodscontexts/index.d.ts:126

Methods ​

downloadFile() ​

Call Signature ​

downloadFile(attachment): FileDownload

Defined in: contexts/index.d.ts:127

Parameters ​
ParameterType
attachmentstring | Attachment | { file_id: string; }
Returns ​

FileDownload

Call Signature ​

downloadFile(attachment, path): Promise<string>

Defined in: contexts/index.d.ts:130

Parameters ​
ParameterType
attachmentstring | Attachment | { file_id: string; }
pathstring
Returns ​

Promise<string>