nestjs-telegraf/lib/telegraf-all-bots.provider.ts
Alexander Bukhalo 43816099a6
Revert "initial commit"
This reverts commit 2d23eba148.
2022-11-20 14:16:17 +03:00

11 lines
308 B
TypeScript

import { Provider } from '@nestjs/common';
import { Telegraf } from 'telegraf';
import { TELEGRAF_ALL_BOTS } from './telegraf.constants';
export const allBotsMap = new Map<string, Telegraf<any>>();
export const telegrafAllBotsProvider: Provider = {
provide: TELEGRAF_ALL_BOTS,
useValue: allBotsMap,
};