add apk to prohibited extensions

This commit is contained in:
Guillermo Roche 2025-06-01 19:06:45 +02:00
parent 7903e2baf4
commit ca333d1964
Signed by: groche97
GPG Key ID: 041FB85BEEA4B9B0

View File

@ -1,6 +1,6 @@
use teloxide::{prelude::*, types::Document}; use teloxide::{prelude::*, types::Document};
static EXTENSIONS: [&str; 3] = ["exe", "deb", "rpm"]; static EXTENSIONS: [&str; 4] = ["exe", "deb", "rpm", "apk"];
pub fn check_file(msg: Message) -> bool { pub fn check_file(msg: Message) -> bool {
match msg.document() { match msg.document() {