fix: always introducing the user
This commit is contained in:
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user