How to use the botframework-schema.InputHints 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-core / lib / turnContext.js View on Github external
sendActivity(activityOrText, speak, inputHint) {
        let a;
        if (typeof activityOrText === 'string') {
            a = { text: activityOrText, inputHint: inputHint || botframework_schema_1.InputHints.AcceptingInput };
            if (speak) {
                a.speak = speak;
            }
        }
        else {
            a = activityOrText;
        }
        return this.sendActivities([a]).then((responses) => responses && responses.length > 0 ? responses[0] : undefined);
    }
    /**
github microsoft / botbuilder-js / libraries / botbuilder-core / lib / messageFactory.js View on Github external
function attachmentActivity(attachmentLayout, attachments, text, speak, inputHint) {
    const msg = {
        type: botframework_schema_1.ActivityTypes.Message,
        attachmentLayout: attachmentLayout,
        attachments: attachments,
        inputHint: inputHint || botframework_schema_1.InputHints.AcceptingInput
    };
    if (text) {
        msg.text = text;
    }
    if (speak) {
        msg.speak = speak;
    }
    return msg;
}
//# sourceMappingURL=messageFactory.js.map