Hi Everyone,
I am trying to connect bot with Angular via DirectLine using below code.
Kindly refer below error screenshot,
Kindly refer below code snippet,
window.WebChat.renderWebChat(
{
directLine: this.botConnection,
userID: environment._spPageContextInfo.userId,
username: environment._spPageContextInfo.userDisplayName,
store,
locale: "en-US",
styleOptions: { hideUploadButton: true },
},
document.getElementById("webchat")
);
Please let me know your thoughts on the same.
Thanks & Regards,
Meet Bhatt