feat: implement injectbot decorator

This commit is contained in:
Aleksandr Bukhalo
2020-05-03 11:06:25 +03:00
parent beeffc5088
commit 6361e537aa
5 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
export * from './inject-bot.decorator';
export * from './telegraf-use.decorator';
export * from './telegraf-on.decorator';
export * from './telegraf-hears.decorator';

View File

@@ -0,0 +1,4 @@
import { Inject } from '@nestjs/common';
import { TELEGRAF_PROVIDER } from '../telegraf.constants';
export const InjectBot = (): ParameterDecorator => Inject(TELEGRAF_PROVIDER);