chore: add loger for the telegram sender

This commit is contained in:
mahyargdz
2025-03-28 16:10:12 +03:30
parent cb9860853e
commit 0b62341908
13 changed files with 200 additions and 85 deletions
+12
View File
@@ -0,0 +1,12 @@
import { ConfigService } from "@nestjs/config";
import { TelegrafModuleAsyncOptions } from "nestjs-telegraf";
export function telegrafConfig(): TelegrafModuleAsyncOptions {
return {
inject: [ConfigService],
useFactory: async (configService: ConfigService) => ({
token: configService.getOrThrow<string>("TELEGRAM_BOT_TOKEN"),
botName: configService.getOrThrow<string>("TELEGRAM_BOT_NAME"),
}),
};
}