mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-26 15:58:09 +03:00
6 lines
192 B
TypeScript
6 lines
192 B
TypeScript
import { DEFAULT_BOT_NAME } from '../telegraf.constants';
|
|
|
|
export function getBotToken(name?: string): string {
|
|
return name && name !== DEFAULT_BOT_NAME ? `${name}Bot` : DEFAULT_BOT_NAME;
|
|
}
|