How to use the botframework-schema.EndOfConversationCodes function in botframework-schema

To help you get started, we’ve selected a few botframework-schema examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / botbuilder-js / libraries / botbuilder / lib / botContext.js View on Github external
context.endOfConversation = function endOfConversation(code) {
        throwIfDisposed('endOfConversation');
        const activity = {
            type: botframework_schema_1.ActivityTypes.EndOfConversation,
            code: code || botframework_schema_1.EndOfConversationCodes.CompletedSuccessfully
        };
        this.responses.push(activity);
        return this;
    };
    context.reply = function reply(textOrActivity, speak, additional) {