From 701c420bb71a2b851a13bdb5aee0ce0a5fe9ab56 Mon Sep 17 00:00:00 2001 From: "Micheal.Vo" <30859399+DrMinh@users.noreply.github.com> Date: Fri, 26 Apr 2024 13:16:11 +0700 Subject: [PATCH] log context --- my-chat-bot/src/bot.ts | 2 ++ 1 file changed, 2 insertions(+) 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();