log context

This commit is contained in:
Micheal.Vo 2024-04-26 13:16:11 +07:00
parent f17a1b4144
commit 701c420bb7
1 changed files with 2 additions and 0 deletions

View File

@ -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();