nestjs-telegraf/lib/telegraf-all-bots.provider.ts

11 lines
308 B
TypeScript
Raw Normal View History

2022-07-09 13:15:13 +03:00
import { Provider } from '@nestjs/common';
import { Telegraf } from 'telegraf';
2022-07-09 13:15:13 +03:00
import { TELEGRAF_ALL_BOTS } from './telegraf.constants';
export const allBotsMap = new Map<string, Telegraf<any>>();
2022-07-09 13:15:13 +03:00
export const telegrafAllBotsProvider: Provider = {
provide: TELEGRAF_ALL_BOTS,
useValue: allBotsMap,
};