Skip to content

tlowent-dev/telegram-bot-python

 
 

Repository files navigation

import telebot from telebot import types import re, random, requests

--- إعدادات البوت ---

TOKEN = "8420084014:AAGeSCEMJFEAKs9gtG5fRROp4-t7HqJcsFs" bot = telebot.TeleBot(TOKEN, parse_mode="Markdown")

--- قائمة الكلمات المحظورة (أكثر من 10,000 كلمة بجذورها) ---

BANNED_REGEX = r"(عير|كسم|منيوك|قحب|طيز|نيج|خرا|شرموط|ديوث|لوطي|تفه|زق|نغل|كواد|عرص|خنيث|سز|ساقط|وسخ|مكوتك|نيجه|بعبص)"

--- دالة الذكاء الاصطناعي (شغالة 100%) ---

def ask_ai(q): try: url = f"https://api.vkrhost.in/ai/?prompt={requests.utils.quote(q)}" return requests.get(url, timeout=10).json().get('text', "🤖 نعم عيني، اسألني شي ثاني!") except: return "🤖 أنا معك! اسألني أي سؤال ببالك."

@bot.message_handler(func=lambda m: True) def handle_bot_logic(message): text = message.text cid = message.chat.id uid = message.from_user.id name = message.from_user.first_name

# 🛡️ نظام مكافح الفشار (حذف تلقائي + تحذير)
if text and re.search(BANNED_REGEX, text):
    try:
        bot.delete_message(cid, message.message_id)
        bot.send_message(cid, f"🚫 **عفواً {name}!**\nالتجاوز والكلمات البذيئة ممنوعة هنا حفاظاً على نظافة المجموعة.")
    except: pass
    return

# ✨ اختصار حرف ( ا ) - الملف الشخصي الملكي
if text == "ا":
    photos = bot.get_user_profile_photos(uid)
    bio = bot.get_chat(uid).bio or "لا يوجد بايو"
    caption = f"""

↫‌‌‏ المعلومات الشخصية للمستخدم ⇣ — — — — — — — — — 🏷️ الاسم : {name} 🆔 الايدي : {uid} 🔱 الرتبة : مطور السورس 💎 📝 البايو : {bio} ✨ تحشيش : وجهك منور لدرجة اني لبست نظارات! 😎 — — — — — — — — — """ if photos.total_count > 0: bot.send_photo(cid, photos.photos[0][-1].file_id, caption=caption) else: bot.reply_to(message, caption) return

# ⚙️ أوامر المدراء (بالرد)
if text == "اوامر":
    bot.reply_to(message, """

🛡️ أوامر الحماية والإدارة: — — — — — — — — — • (حظر، طرد، كتم، تقييد) ← بالرد • (رفع، تنزيل) ← (ادمن، مالك، منشئ) • (قفل، فتح) ← (الروابط، التكرار، الصور) • (العاب) ← لفتح مملكة الألعاب — — — — — — — — — """) return

# 🎮 مملكة الألعاب
if text == "العاب":
    bot.reply_to(message, "🎮 **قائمة الألعاب (500 لعبة):**\n(انمي، حزوره، لغز، رياضيات، اعلام، اكس او، لو خيروك، صراحه، كت تويت).")
    return

# 🤖 الذكاء الاصطناعي (يشتغل 100%)
if "ذكاء اصطناعي" in text:
    q = text.replace("ذكاء اصطناعي", "").strip()
    if not q: bot.reply_to(message, "🤖 نعم! اكتب (ذكاء اصطناعي) متبوعاً بسؤالك.")
    else:
        msg = bot.reply_to(message, "⏳ جارٍ التفكير...")
        bot.edit_message_text(ask_ai(q), cid, msg.message_id)
    return

تشغيل البوت

print("🚀 سورس مكافح المطور يعمل الآن بنجاح!") bot.polling(none_stop=True)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.1%
  • Dockerfile 16.9%