| import asyncio |
| import os |
| import img2pdf |
| import requests |
| import io |
| from PIL import Image |
| from telegram import Update |
| from telegram.ext import Application, MessageHandler, filters, ContextTypes |
|
|
| |
| TOKEN = "7449216492:AAEsECh8e3h174a6eDKrMReG1__uxo8XU9c" |
| |
| AD_LINK = "https://your-shortened-link.com" |
| DAILY_KEY = "MANGA2026" |
|
|
| async def download_manga(url): |
| |
| |
| pass |
|
|
| async def start_handler(update, context): |
| user_id = update.message.chat_id |
| text = update.message.text |
|
|
| if text == DAILY_KEY: |
| context.user_data['auth'] = True |
| await update.message.reply_text("✅ تم التفعيل! أرسل رابط الفصل الآن.") |
| return |
|
|
| if not context.user_data.get('auth'): |
| await update.message.reply_text(f"⚠️ البوت مجاني ولكن يحتاج تفعيل يومي.\n\nاحصل على الكود من هنا لتدعمنا:\n{AD_LINK}\n\nثم أرسل الكود هنا.") |
| return |
|
|
| |
| |
|
|
| def main(): |
| app = Application.builder().token(TOKEN).build() |
| |
| app.run_polling() |
|
|
| if __name__ == "__main__": |
| main() |