nestjs-telegraf/sample/app.update.ts
2020-12-26 16:23:54 +03:00

10 lines
170 B
TypeScript

import { On, Update } from '../lib/decorators';
@Update()
export class AppUpdate {
@On('message')
onMessage(): void {
console.log('New message received');
}
}