mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-27 00:08:09 +03:00
20 lines
482 B
TypeScript
20 lines
482 B
TypeScript
import { SetMetadata } from '@nestjs/common';
|
|
import { DECORATORS } from '../telegraf.constants';
|
|
|
|
/**
|
|
* Handler for /settings command.
|
|
*
|
|
* @see https://telegraf.js.org/#/?id=settings
|
|
*/
|
|
export const Settings = (): MethodDecorator => {
|
|
return SetMetadata(DECORATORS.SETTINGS, {});
|
|
};
|
|
|
|
/**
|
|
* Handler for /settings command.
|
|
*
|
|
* @see https://telegraf.js.org/#/?id=settings
|
|
* @deprecated since v2, use Settings decorator instead.
|
|
*/
|
|
export const TelegrafSettings = Settings;
|