Merge pull request 'e.photo -> e.media' (#27) from dev into master

Reviewed-on: #27
This commit is contained in:
Flummi 2022-05-07 10:40:50 +02:00
commit 1be456edb4

View File

@ -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 = "";