mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-09-23 09:49:06 +03:00
feat(decorators): TelegrafSettings added
This commit is contained in:
11
lib/decorators/telegraf-settings.decorator.ts
Normal file
11
lib/decorators/telegraf-settings.decorator.ts
Normal 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, {});
|
||||
}
|
Reference in New Issue
Block a user