2021-01-02 01:27:01 +03:00
|
|
|
import { DEFAULT_BOT_NAME } from '../telegraf.constants';
|
|
|
|
|
2021-01-03 13:24:07 +03:00
|
|
|
export function getBotToken(name?: string): string {
|
|
|
|
return name && name !== DEFAULT_BOT_NAME ? `${name}Bot` : DEFAULT_BOT_NAME;
|
2021-01-02 01:27:01 +03:00
|
|
|
}
|