GramIO API Reference / @gramio/contexts/dist / BotLike
Interface: BotLike
Defined in: contexts/index.d.ts:71
The required object that the contexts are based on
Properties
| Property | Type | Defined in |
|---|---|---|
__Derives | Record<UpdateName | "global", { }> | contexts/index.d.ts:72 |
api | SuppressedAPIMethods | contexts/index.d.ts:73 |
Methods
downloadFile()
Call Signature
downloadFile(
attachment):Promise<ArrayBuffer>
Defined in: contexts/index.d.ts:74
Parameters
| Parameter | Type |
|---|---|
attachment | string | Attachment | { file_id: string; } |
Returns
Promise<ArrayBuffer>
Call Signature
downloadFile(
attachment,path):Promise<string>
Defined in: contexts/index.d.ts:77
Parameters
| Parameter | Type |
|---|---|
attachment | string | Attachment | { file_id: string; } |
path | string |
Returns
Promise<string>