mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2025-01-12 15:11:05 +03:00
12 lines
268 B
TypeScript
12 lines
268 B
TypeScript
import { SetMetadata } from '@nestjs/common';
|
|
import { DECORATORS } from '../telegraf.constants';
|
|
|
|
/**
|
|
* Registers a middleware.
|
|
*
|
|
* @see https://telegraf.js.org/#/?id=use
|
|
*/
|
|
export const Use = (): MethodDecorator => {
|
|
return SetMetadata(DECORATORS.USE, {});
|
|
};
|