mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-25 23:44:39 +03:00
20 lines
455 B
TypeScript
20 lines
455 B
TypeScript
import { SetMetadata } from '@nestjs/common';
|
|
import { DECORATORS } from '../telegraf.constants';
|
|
|
|
/**
|
|
* Handler for /start command.
|
|
*
|
|
* @see https://telegraf.js.org/#/?id=start
|
|
*/
|
|
export const Start = (): MethodDecorator => {
|
|
return SetMetadata(DECORATORS.START, {});
|
|
};
|
|
|
|
/**
|
|
* Handler for /start command.
|
|
*
|
|
* @see https://telegraf.js.org/#/?id=start
|
|
* @deprecated since v2, use Start decorator instead.
|
|
*/
|
|
export const TelegrafStart = Start;
|