log context
This commit is contained in:
parent
f17a1b4144
commit
701c420bb7
|
|
@ -3,9 +3,11 @@ import { ActivityHandler, MessageFactory } from 'botbuilder';
|
||||||
export class EchoBot extends ActivityHandler {
|
export class EchoBot extends ActivityHandler {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
// See https://aka.ms/about-bot-activity-message to learn more about the message and other activity types.
|
// See https://aka.ms/about-bot-activity-message to learn more about the message and other activity types.
|
||||||
this.onMessage(async (context, next) => {
|
this.onMessage(async (context, next) => {
|
||||||
const replyText = `Echo: tin tự động`;
|
const replyText = `Echo: tin tự động`;
|
||||||
|
console.log(context.activity);
|
||||||
await context.sendActivity(MessageFactory.text(replyText, replyText));
|
await context.sendActivity(MessageFactory.text(replyText, replyText));
|
||||||
// By calling next() you ensure that the next BotHandler is run.
|
// By calling next() you ensure that the next BotHandler is run.
|
||||||
await next();
|
await next();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue