Skip to content

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

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

Methods

downloadFile()

Call Signature

downloadFile(attachment): Promise<ArrayBuffer>

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

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

Promise<ArrayBuffer>

Call Signature

downloadFile(attachment, path): Promise<string>

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

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

Promise<string>