telegram magic

This commit is contained in:
Flummi
2022-05-07 10:29:53 +02:00
parent 22b171c858
commit 86409c9d98
3 changed files with 10 additions and 10 deletions

View File

@ -29,8 +29,8 @@ export default async bot => {
f: e => {
const links = e.message.match(regex)?.filter(link => !link.includes("f0ck.me")) || [];
if(e.photo)
links.push(e.photo);
if(e.media)
links.push(e.media);
if(links.length === 0)
return false;