mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-28 00:28:10 +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, {});
|
||
|
}
|