mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-25 15:34:38 +03:00
20 lines
446 B
TypeScript
20 lines
446 B
TypeScript
|
import { SetMetadata } from '@nestjs/common';
|
||
|
import { DECORATORS } from '../telegraf.constants';
|
||
|
|
||
|
/**
|
||
|
* Handler for /help command.
|
||
|
*
|
||
|
* @see https://telegraf.js.org/#/?id=help
|
||
|
*/
|
||
|
export const Help = (): MethodDecorator => {
|
||
|
return SetMetadata(DECORATORS.HELP, {});
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
* Handler for /help command.
|
||
|
*
|
||
|
* @see https://telegraf.js.org/#/?id=help
|
||
|
* @deprecated since v2, use Help decorator instead.
|
||
|
*/
|
||
|
export const TelegrafHelp = Help;
|