Fix: antipm.py Add PM_PERMIT feature insteade of clearing full chat of users

This commit is contained in:
Abhi
2024-01-04 22:51:46 +00:00
committed by GitHub
parent 92d47703ae
commit f9f064eb5b
5 changed files with 89 additions and 4 deletions

View File

@@ -40,6 +40,15 @@ else
read -r -p "API_HASH > " api_hash
fi
echo
echo "SET PM PERMIT warn limit"
read -r -p "PM_LIMIT warn limit > " pm_limit
if [[ $pm_limit = "" ]]; then
pm_limit="3"
echo "limit not provided by user set to default"
fi
echo
echo "Enter APIFLASH_KEY for webshot plugin"
echo "You can get it here -> https://apiflash.com/dashboard/access_keys"
@@ -120,6 +129,7 @@ RMBG_KEY=${rmbg_key}
VT_KEY=${vt_key}
GEMINI_KEY=${gemini_key}
VCA_API_KEY=${vca_api_key}
PM_LIMIT=${pm_limit}
EOL
python3 install.py 3 || exit 3