diff --git a/my-chat-bot/src/bot.ts b/my-chat-bot/src/bot.ts index b26d950..243c69a 100644 --- a/my-chat-bot/src/bot.ts +++ b/my-chat-bot/src/bot.ts @@ -3,9 +3,11 @@ import { ActivityHandler, MessageFactory } from 'botbuilder'; export class EchoBot extends ActivityHandler { constructor() { super(); + // See https://aka.ms/about-bot-activity-message to learn more about the message and other activity types. this.onMessage(async (context, next) => { const replyText = `Echo: tin tự động`; + console.log(context.activity); await context.sendActivity(MessageFactory.text(replyText, replyText)); // By calling next() you ensure that the next BotHandler is run. await next();