Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send data from bot to webchat using typescript #4

Open
zxr90 opened this issue May 17, 2017 · 1 comment
Open

How to send data from bot to webchat using typescript #4

zxr90 opened this issue May 17, 2017 · 1 comment

Comments

@zxr90
Copy link

zxr90 commented May 17, 2017

const createEvent = (eventName, value, address) => {
    var msg = new builder.Message().address(address);
    msg.data.type = "event";
    msg.data.name = eventName;
    msg.data.value = value;
    return msg;
}

From your example, i tried to use msg.data but this is a protected method in the Message Class. How do i send custom data from the bot to the webchat?

@zxr90 zxr90 closed this as completed May 17, 2017
@zxr90 zxr90 reopened this May 25, 2017
@zxr90
Copy link
Author

zxr90 commented May 25, 2017

Any advise on this?

@zxr90 zxr90 changed the title How to send data from bot to webchat How to send data from bot to webchat using typescript Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant