feat(wip): rework listener decorators

This commit is contained in:
unknown
2020-12-23 21:35:40 +03:00
parent 23ea7632e1
commit b1a6fc3319
33 changed files with 318 additions and 268 deletions

View File

@@ -0,0 +1,8 @@
import { SetMetadata } from '@nestjs/common';
import { TELEGRAF_UPDATE } from '../../telegraf.constants';
/**
* `@Update` decorator, it's like NestJS `@Controller` decorator,
* but for Telegram Bot API updates.
*/
export const Update = (): ClassDecorator => SetMetadata(TELEGRAF_UPDATE, true);