IBotStorageContext interface

Context object passed to IBotStorage calls.

Properties

address

(Optional) Address of the message received by the bot.

conversationId

(Optional) ID of the conversation being persisted. If missing conversationData and privateConversationData won't be persisted.

persistConversationData

If true IBotStorage should persist conversationData.

persistUserData

If true IBotStorage should persist userData.

userId

(Optional) ID of the user being persisted. If missing userData won't be persisted.

Property Details

address

(Optional) Address of the message received by the bot.

address?: IAddress

Property Value

conversationId

(Optional) ID of the conversation being persisted. If missing conversationData and privateConversationData won't be persisted.

conversationId?: string

Property Value

string

persistConversationData

If true IBotStorage should persist conversationData.

persistConversationData: boolean

Property Value

boolean

persistUserData

If true IBotStorage should persist userData.

persistUserData: boolean

Property Value

boolean

userId

(Optional) ID of the user being persisted. If missing userData won't be persisted.

userId?: string

Property Value

string