mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-25 15:34:38 +03:00
12 lines
289 B
TypeScript
12 lines
289 B
TypeScript
|
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, {});
|
||
|
}
|