Skip to content

Send args with sendMessageToBot() ? #82

@souwei

Description

@souwei

Hello there, was wondering if there was any way to send arguments alongside the message with .sendMessageToBot();

something like the following:

const msg = {
    message: 'hello',
    args: { entities: ['bla1', 'bla2'], intents: 'test' }
}

.sendMessageToBot(msg, "Bot says hello to you too");

I am using args in my dialogs to handle logic

(session, args, next) => {
    if (args.something) {
        do something 
    }
    else {
        do something else
    }
}

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions