From 0a72aa5feca7d8bd3a76d239cc9b5d7dfd5babec Mon Sep 17 00:00:00 2001 From: Damir Modyarov Date: Sun, 15 Dec 2024 14:59:22 +0300 Subject: [PATCH] fix: Update chat filter --- src/telegram/bot/download.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/telegram/bot/download.ts b/src/telegram/bot/download.ts index 5e84ea4..e5e40d3 100644 --- a/src/telegram/bot/download.ts +++ b/src/telegram/bot/download.ts @@ -19,7 +19,7 @@ import { evaluatorsFor } from "@/telegram/helpers/text" export const downloadDp = Dispatcher.child() -downloadDp.onNewMessage(filters.chat("private"), async (msg) => { +downloadDp.onNewMessage(filters.chat("user"), async (msg) => { const { e, t } = await evaluatorsFor(msg.sender) const urlEntity = msg.entities.find(e => e.is("text_link") || e.is("url"))