mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-25 15:34:38 +03:00
8 lines
198 B
TypeScript
8 lines
198 B
TypeScript
|
import { DEFAULT_BOT_NAME } from '../telegraf.constants';
|
||
|
|
||
|
export function getBotToken(name?: string) {
|
||
|
return name && name !== DEFAULT_BOT_NAME
|
||
|
? `${name}_BOT_NAME`
|
||
|
: DEFAULT_BOT_NAME;
|
||
|
}
|