mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-25 07:24:39 +03:00
6 lines
175 B
TypeScript
6 lines
175 B
TypeScript
import { Inject } from '@nestjs/common';
|
|
import { getBotToken } from '../utils';
|
|
|
|
export const InjectBot = (name?: string): ParameterDecorator =>
|
|
Inject(getBotToken(name));
|