From 1066e8772b9ca5df63cfa0632f1db400f0918e61 Mon Sep 17 00:00:00 2001 From: Flummi Date: Sat, 7 May 2022 10:40:37 +0200 Subject: [PATCH] e.photo -> e.media --- src/inc/events/message.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inc/events/message.mjs b/src/inc/events/message.mjs index 19b51d8..ef5fb8f 100644 --- a/src/inc/events/message.mjs +++ b/src/inc/events/message.mjs @@ -20,7 +20,7 @@ export default async bot => { let trigger; - if(e.photo) { + if(e.media) { trigger = [...bot._trigger.entries()].filter(t => t[1].name === "parser"); if(!e.message) e.message = "";