
import telebot

# ==========================
# قسم القرآن الكريم (Global)
# ==========================
class Quran:
    # قاعدة البيانات (روابط مباشرة)
    _data = {
    "yasser": {
        "1": "https://server11.mp3quran.net/yasser/001.mp3",
        "2": "https://server11.mp3quran.net/yasser/002.mp3",
        "3": "https://server11.mp3quran.net/yasser/003.mp3",
        "4": "https://server11.mp3quran.net/yasser/004.mp3",
        "5": "https://server11.mp3quran.net/yasser/005.mp3",
        "6": "https://server11.mp3quran.net/yasser/006.mp3",
        "7": "https://server11.mp3quran.net/yasser/007.mp3",
        "8": "https://server11.mp3quran.net/yasser/008.mp3",
        "9": "https://server11.mp3quran.net/yasser/009.mp3",
        "10": "https://server11.mp3quran.net/yasser/010.mp3",
        "11": "https://server11.mp3quran.net/yasser/011.mp3",
        "12": "https://server11.mp3quran.net/yasser/012.mp3",
        "13": "https://server11.mp3quran.net/yasser/013.mp3",
        "14": "https://server11.mp3quran.net/yasser/014.mp3",
        "15": "https://server11.mp3quran.net/yasser/015.mp3",
        "16": "https://server11.mp3quran.net/yasser/016.mp3",
        "17": "https://server11.mp3quran.net/yasser/017.mp3",
        "18": "https://server11.mp3quran.net/yasser/018.mp3",
        "19": "https://server11.mp3quran.net/yasser/019.mp3",
        "20": "https://server11.mp3quran.net/yasser/020.mp3",
        "21": "https://server11.mp3quran.net/yasser/021.mp3",
        "22": "https://server11.mp3quran.net/yasser/022.mp3",
        "23": "https://server11.mp3quran.net/yasser/023.mp3",
        "24": "https://server11.mp3quran.net/yasser/024.mp3",
        "25": "https://server11.mp3quran.net/yasser/025.mp3",
        "26": "https://server11.mp3quran.net/yasser/026.mp3",
        "27": "https://server11.mp3quran.net/yasser/027.mp3",
        "28": "https://server11.mp3quran.net/yasser/028.mp3",
        "29": "https://server11.mp3quran.net/yasser/029.mp3",
        "30": "https://server11.mp3quran.net/yasser/030.mp3",
        "31": "https://server11.mp3quran.net/yasser/031.mp3",
        "32": "https://server11.mp3quran.net/yasser/032.mp3",
        "33": "https://server11.mp3quran.net/yasser/033.mp3",
        "34": "https://server11.mp3quran.net/yasser/034.mp3",
        "35": "https://server11.mp3quran.net/yasser/035.mp3",
        "36": "https://server11.mp3quran.net/yasser/036.mp3",
        "37": "https://server11.mp3quran.net/yasser/037.mp3",
        "38": "https://server11.mp3quran.net/yasser/038.mp3",
        "39": "https://server11.mp3quran.net/yasser/039.mp3",
        "40": "https://server11.mp3quran.net/yasser/040.mp3",
        "41": "https://server11.mp3quran.net/yasser/041.mp3",
        "42": "https://server11.mp3quran.net/yasser/042.mp3",
        "43": "https://server11.mp3quran.net/yasser/043.mp3",
        "44": "https://server11.mp3quran.net/yasser/044.mp3",
        "45": "https://server11.mp3quran.net/yasser/045.mp3",
        "46": "https://server11.mp3quran.net/yasser/046.mp3",
        "47": "https://server11.mp3quran.net/yasser/047.mp3",
        "48": "https://server11.mp3quran.net/yasser/048.mp3",
        "49": "https://server11.mp3quran.net/yasser/049.mp3",
        "50": "https://server11.mp3quran.net/yasser/050.mp3",
        "51": "https://server11.mp3quran.net/yasser/051.mp3",
        "52": "https://server11.mp3quran.net/yasser/052.mp3",
        "53": "https://server11.mp3quran.net/yasser/053.mp3",
        "54": "https://server11.mp3quran.net/yasser/054.mp3",
        "55": "https://server11.mp3quran.net/yasser/055.mp3",
        "56": "https://server11.mp3quran.net/yasser/056.mp3",
        "57": "https://server11.mp3quran.net/yasser/057.mp3",
        "58": "https://server11.mp3quran.net/yasser/058.mp3",
        "59": "https://server11.mp3quran.net/yasser/059.mp3",
        "60": "https://server11.mp3quran.net/yasser/060.mp3",
        "61": "https://server11.mp3quran.net/yasser/061.mp3",
        "62": "https://server11.mp3quran.net/yasser/062.mp3",
        "63": "https://server11.mp3quran.net/yasser/063.mp3",
        "64": "https://server11.mp3quran.net/yasser/064.mp3",
        "65": "https://server11.mp3quran.net/yasser/065.mp3",
        "66": "https://server11.mp3quran.net/yasser/066.mp3",
        "67": "https://server11.mp3quran.net/yasser/067.mp3",
        "68": "https://server11.mp3quran.net/yasser/068.mp3",
        "69": "https://server11.mp3quran.net/yasser/069.mp3",
        "70": "https://server11.mp3quran.net/yasser/070.mp3",
        "71": "https://server11.mp3quran.net/yasser/071.mp3",
        "72": "https://server11.mp3quran.net/yasser/072.mp3",
        "73": "https://server11.mp3quran.net/yasser/073.mp3",
        "74": "https://server11.mp3quran.net/yasser/074.mp3",
        "75": "https://server11.mp3quran.net/yasser/075.mp3",
        "76": "https://server11.mp3quran.net/yasser/076.mp3",
        "77": "https://server11.mp3quran.net/yasser/077.mp3",
        "78": "https://server11.mp3quran.net/yasser/078.mp3",
        "79": "https://server11.mp3quran.net/yasser/079.mp3",
        "80": "https://server11.mp3quran.net/yasser/080.mp3",
        "81": "https://server11.mp3quran.net/yasser/081.mp3",
        "82": "https://server11.mp3quran.net/yasser/082.mp3",
        "83": "https://server11.mp3quran.net/yasser/083.mp3",
        "84": "https://server11.mp3quran.net/yasser/084.mp3",
        "85": "https://server11.mp3quran.net/yasser/085.mp3",
        "86": "https://server11.mp3quran.net/yasser/086.mp3",
        "87": "https://server11.mp3quran.net/yasser/087.mp3",
        "88": "https://server11.mp3quran.net/yasser/088.mp3",
        "89": "https://server11.mp3quran.net/yasser/089.mp3",
        "90": "https://server11.mp3quran.net/yasser/090.mp3",
        "91": "https://server11.mp3quran.net/yasser/091.mp3",
        "92": "https://server11.mp3quran.net/yasser/092.mp3",
        "93": "https://server11.mp3quran.net/yasser/093.mp3",
        "94": "https://server11.mp3quran.net/yasser/094.mp3",
        "95": "https://server11.mp3quran.net/yasser/095.mp3",
        "96": "https://server11.mp3quran.net/yasser/096.mp3",
        "97": "https://server11.mp3quran.net/yasser/097.mp3",
        "98": "https://server11.mp3quran.net/yasser/098.mp3",
        "99": "https://server11.mp3quran.net/yasser/099.mp3",
        "100": "https://server11.mp3quran.net/yasser/100.mp3",
        "101": "https://server11.mp3quran.net/yasser/101.mp3",
        "102": "https://server11.mp3quran.net/yasser/102.mp3",
        "103": "https://server11.mp3quran.net/yasser/103.mp3",
        "104": "https://server11.mp3quran.net/yasser/104.mp3",
        "105": "https://server11.mp3quran.net/yasser/105.mp3",
        "106": "https://server11.mp3quran.net/yasser/106.mp3",
        "107": "https://server11.mp3quran.net/yasser/107.mp3",
        "108": "https://server11.mp3quran.net/yasser/108.mp3",
        "109": "https://server11.mp3quran.net/yasser/109.mp3",
        "110": "https://server11.mp3quran.net/yasser/110.mp3",
        "111": "https://server11.mp3quran.net/yasser/111.mp3",
        "112": "https://server11.mp3quran.net/yasser/112.mp3",
        "113": "https://server11.mp3quran.net/yasser/113.mp3",
        "114": "https://server11.mp3quran.net/yasser/114.mp3"
    }
}

    @staticmethod
    def get_audio_url(reader_key, surah_number):
        '''
        جلب الرابط المباشر للسورة (يعمل مع كل البوتات)
        '''
        reader_data = Quran._data.get(reader_key)
        if reader_data:
            return reader_data.get(str(surah_number))
        return None
        
    @staticmethod
    def get_audio_id(reader_key, surah_number):
        # دالة لضمان التوافق مع الكود القديم
        # ترجع الرابط أيضاً لأن send_audio يقبل الروابط
        return Quran.get_audio_url(reader_key, surah_number)

