import { Controller, OnCommand, ChatAction, GetAnswer, Answer } from 'nestgram';
import { AppService } from './app.service';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@OnCommand('start')
getChatAction(@GetAnswer() answer: Answer): ChatAction {
setTimeout(() => answer.send('Hello, world!'), 2000);
return new ChatAction('typing');
}
}