mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-12-14 17:30:58 +03:00
feat: complete rewrite
This commit is contained in:
11
lib/decorators/telegraf-start.decorator.ts
Normal file
11
lib/decorators/telegraf-start.decorator.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { SetMetadata } from '@nestjs/common';
|
||||
import { DECORATORS } from '../telegraf.constants';
|
||||
|
||||
/**
|
||||
* Handler for /start command.
|
||||
*
|
||||
* https://telegraf.js.org/#/?id=start
|
||||
*/
|
||||
export function TelegrafStart(): MethodDecorator {
|
||||
return SetMetadata(DECORATORS.START, {});
|
||||
}
|
||||
Reference in New Issue
Block a user