0
0
mirror of https://github.com/Maks1mS/nestjs-telegraf.git synced 2025-03-16 06:53:44 +03:00
nestjs-telegraf/lib/decorators/inject-bot.decorator.ts

5 lines
179 B
TypeScript
Raw Normal View History

2020-05-03 11:06:25 +03:00
import { Inject } from '@nestjs/common';
import { TELEGRAF_PROVIDER } from '../telegraf.constants';
export const InjectBot = (): ParameterDecorator => Inject(TELEGRAF_PROVIDER);