سحب بيانات منظمه P.E
Відкрити в Telegram
- WeLcoMe To ChanneL . - 𝖫𝗂𝗇𝗄 ChaT : https://t.me/Chat_Data_PE1 - 𝖫𝖾𝖺𝖣𝖾𝗋 : @PE_1_DATA1_bot . - super : https://t.me/Data_PE1 .
Показати більше2 124
Підписники
+324 години
+47 днів
-1330 днів
Архів дописів
2 126
import telebot
import requests
BOT_TOKEN = "YOUR_BOT_TOKEN" #توكن
ADMIN_BOT_TOKEN = "YOUR_ADMIN_BOT_TOKEN" # id
CHANNEL_USERNAME = "xmasterxz" # بدون @
API_URL = "https://venom.x10.mx/API/img.php"
bot = telebot.TeleBot(BOT_TOKEN)
admin_bot = telebot.TeleBot(ADMIN_BOT_TOKEN)
def is_subscribed(user_id):
try:
member = bot.get_chat_member(f"@{CHANNEL_USERNAME}", user_id)
return member.status not in ['left', 'kicked']
except Exception:
return False
@bot.message_handler(commands=['start'])
def start(message):
bot.reply_to(message, "🎨 أرسل لي وصف الصورة التي تريد إنشاؤها.")
@bot.message_handler(func=lambda m: True)
def handle_message(message):
user_id = message.from_user.id
chat_id = message.chat.id
text = message.text.strip()
if not is_subscribed(user_id):
markup = telebot.types.InlineKeyboardMarkup()
markup.add(telebot.types.InlineKeyboardButton("اشترك في القناة", url=f"https://t.me/{CHANNEL_USERNAME}"))
markup.add(telebot.types.InlineKeyboardButton("تحقق من الاشتراك", callback_data="check_sub"))
bot.send_message(chat_id, "🔒 يجب عليك الاشتراك في القناة أولاً.", reply_markup=markup)
return
if len(text) < 3:
bot.reply_to(message, "⚠️ يرجى إرسال وصف واضح وطويل قليلاً.")
return
msg = bot.send_message(chat_id, "⏳ جاري توليد الصورة...")
try:
params = {'txt': text, 'key': 'VENOM-IMG'}
res = requests.get(API_URL, params=params, timeout=60)
data = res.json()
img_url = data.get('img')
if img_url:
caption = f"📌 *تم إنشاء الصورة بنجاح:*\n`{text}`"
bot.send_photo(chat_id, img_url, caption=caption, parse_mode='Markdown')
else:
bot.reply_to(message, "❌ فشل توليد الصورة. حاول لاحقًا.")
admin_bot.send_message(
ADMIN_BOT_TOKEN,
f"🚨 خطأ لمستخدم:\n- ID: {user_id}\n- نص: {text}\n- الرد: {res.text}"
)
except Exception as e:
bot.reply_to(message, "⚠️ حدث خطأ، يرجى المحاولة لاحقًا.")
admin_bot.send_message(
ADMIN_BOT_TOKEN,
f"🚨 خطأ غير متوقع:\n- ID: {user_id}\n- نص: {text}\n- الخطأ: {str(e)}"
)
@bot.callback_query_handler(func=lambda call: call.data == "check_sub")
def check_subscription(call):
user_id = call.from_user.id
chat_id = call.message.chat.id
if is_subscribed(user_id):
bot.send_message(chat_id, "✅ تم التحقق من اشتراكك، يمكنك الآن إرسال وصف.")
else:
bot.send_message(chat_id, "❌ لا تزال غير مشترك. يرجى الاشتراك أولاً.")
bot.polling()
بوت عمل صور ب AI ⚡️2 126
• اضافة جديده 😶🌫✨
• رفــع مــلــفــات بــايــثــون علــي استضافه مجانيه الشرح بالبوت 👇👇• https://t.me/VIPCODE2_bot?start=bc6a5e6d2de0db7d63ec8f08715f5061
2 126
تم نشر API عمل صور 🌟
يدعم جميع اللغات 📌
https://venom.x10.mx/API/img.php?txt=الوصف&key=مفتاحك
الحصول على مفتاح ✔️
@VENOM_API_BOTالمطور 😐
@N1_VEN0M
