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