feat(decorators): TelegrafSettings added

This commit is contained in:
Aleksandr Bukhalo
2020-03-19 16:46:31 +03:00
parent fa3a7f5258
commit 55c6f939a4
4 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { SetMetadata } from '@nestjs/common';
import { DECORATORS } from '../telegraf.constants';
/**
* Handler for /settings command.
*
* https://telegraf.js.org/#/?id=settings
*/
export function TelegrafSettings(): MethodDecorator {
return SetMetadata(DECORATORS.SETTINGS, {});
}