From f5278f66d55fe7c20550cfc108da9b3e5b0c5140 Mon Sep 17 00:00:00 2001 From: Champu <117635421+TheChampu@users.noreply.github.com> Date: Fri, 30 Aug 2024 09:34:34 +0530 Subject: [PATCH] try --- ChampuXMusic/plugins/tools/phone.py | 43 ----------------------------- ChampuXMusic/plugins/tools/tiny.py | 1 + requirements.txt | 1 - 3 files changed, 1 insertion(+), 44 deletions(-) delete mode 100644 ChampuXMusic/plugins/tools/phone.py diff --git a/ChampuXMusic/plugins/tools/phone.py b/ChampuXMusic/plugins/tools/phone.py deleted file mode 100644 index 7c1b513..0000000 --- a/ChampuXMusic/plugins/tools/phone.py +++ /dev/null @@ -1,43 +0,0 @@ -from pyrogram import Client, filters -import requests -import json -from ChampuXMusic import app - -def send_message(message, text): - message.reply_text(text) - - -@app.on_message(filters.command("phone")) -def check_phone(client, message): - try: - args = message.text.split(None, 1) - information = args[1] - number = information - key = "f66950368a61ebad3cba9b5924b4532d" - api = ( - "http://apilayer.net/api/validate?access_key=" - + key - + "&number=" - + number - + "&country_code=&format=1" - ) - output = requests.get(api) - content = output.text - obj = json.loads(content) - country_code = obj["country_code"] - country_name = obj["country_name"] - location = obj["location"] - carrier = obj["carrier"] - line_type = obj["line_type"] - validornot = obj["valid"] - aa = "Valid: " + str(validornot) - a = "Phone number: " + str(number) - b = "Country: " + str(country_code) - c = "Country Name: " + str(country_name) - d = "Location: " + str(location) - e = "Carrier: " + str(carrier) - f = "Device: " + str(line_type) - g = f"{aa}\n{a}\n{b}\n{c}\n{d}\n{e}\n{f}" - send_message(message, g) - except Exception as e: - send_message(message, f"Error: {str(e)}") diff --git a/ChampuXMusic/plugins/tools/tiny.py b/ChampuXMusic/plugins/tools/tiny.py index 5a48f15..f43fcab 100644 --- a/ChampuXMusic/plugins/tools/tiny.py +++ b/ChampuXMusic/plugins/tools/tiny.py @@ -1,3 +1,4 @@ +import cv2 import os import cv2 from PIL import Image diff --git a/requirements.txt b/requirements.txt index c9c350f..aafbf4f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -11,7 +11,6 @@ dnspython ffmpeg-python gitpython hachoir -Faker pydub pycountry heroku3