共用方式為


MemoryBotStorage class

儲存使用者 & 工作階段狀態資料之內存記憶體實作中的預設值。

方法

deleteData(IBotStorageContext)

刪除指定內容的記憶體內部數據。

getData(IBotStorageContext, (err: Error, data: IBotStorageData) => void)

從指定內容的記憶體傳回數據。

saveData(IBotStorageContext, IBotStorageData, (err: Error) => void)

將資料儲存至指定內容的記憶體。

方法詳細資料

deleteData(IBotStorageContext)

刪除指定內容的記憶體內部數據。

function deleteData(context: IBotStorageContext)

參數

getData(IBotStorageContext, (err: Error, data: IBotStorageData) => void)

從指定內容的記憶體傳回數據。

function getData(context: IBotStorageContext, callback: (err: Error, data: IBotStorageData) => void)

參數

callback

(err: Error, data: IBotStorageData) => void

saveData(IBotStorageContext, IBotStorageData, (err: Error) => void)

將資料儲存至指定內容的記憶體。

function saveData(context: IBotStorageContext, data: IBotStorageData, callback?: (err: Error) => void)

參數

callback

(err: Error) => void