fix: always introducing the user
This commit is contained in:
@ -82,9 +82,9 @@ export const setupTelegram = ({ bossChatId, config }: TelegramOptions) => {
|
||||
return;
|
||||
}
|
||||
|
||||
const userInfo =
|
||||
config.whitelist[fromUsername] ??
|
||||
`This is ${msg.from?.first_name} ${msg.from?.last_name}. We don't know anything about them.`;
|
||||
const intro = `This is ${msg.from?.first_name} ${msg.from?.last_name}\n`;
|
||||
|
||||
const userInfo = intro + (config.whitelist[fromUsername] ?? "");
|
||||
|
||||
chats.addMessage(msg.chat.id, text);
|
||||
|
||||
|
Reference in New Issue
Block a user