Skip to content

Send args with sendMessageToBot() ? #82

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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