feat: new decorators for telegram bot api updates (#119)

This commit is contained in:
Aleksandr Bukhalo
2020-09-09 22:46:25 +03:00
committed by GitHub
parent f496e51013
commit 6350a6e8d1
6 changed files with 204 additions and 94 deletions

View File

@@ -3,6 +3,6 @@ import { DECORATORS } from '../telegraf.constants';
/**
* `@Update` decorator, it's like NestJS `@Controller` decorator,
* only for Telegram Bot API updates.
* but for Telegram Bot API updates.
*/
export const Update = (): ClassDecorator => SetMetadata(DECORATORS.UPDATE, {});