fix: always introducing the user

This commit is contained in:
2025-07-10 10:06:16 +01:00
parent 60fed78d17
commit e6aa7f9aa4

View File

@ -82,9 +82,9 @@ export const setupTelegram = ({ bossChatId, config }: TelegramOptions) => {
return; return;
} }
const userInfo = const intro = `This is ${msg.from?.first_name} ${msg.from?.last_name}\n`;
config.whitelist[fromUsername] ??
`This is ${msg.from?.first_name} ${msg.from?.last_name}. We don't know anything about them.`; const userInfo = intro + (config.whitelist[fromUsername] ?? "");
chats.addMessage(msg.chat.id, text); chats.addMessage(msg.chat.id, text);