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 {
|
||||
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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue