some code cleanup

This commit is contained in:
2026-02-16 19:52:28 +03:00
parent b8b3895310
commit 8bec34413f
2 changed files with 4 additions and 10 deletions
+1 -1
View File
@@ -1149,7 +1149,7 @@ export async function processNewMessage(msg: Message): Promise<void> {
logError(e);
}
if ((msg.new_chat_members?.length || 0 > 0)) {
if ((msg.new_chat_members?.length)) {
await bot.sendMessage({chat_id: msg.chat.id, text: randomValue(Environment.ANSWERS.invite)}).catch(logError);
return;
}