Update app.py
Browse files
app.py
CHANGED
|
@@ -127,13 +127,16 @@ class MedicalLabBot:
|
|
| 127 |
|
| 128 |
logger.info("🔄 جاري تهيئة تطبيق التليجرام...")
|
| 129 |
|
| 130 |
-
|
| 131 |
-
|
|
|
|
|
|
|
|
|
|
| 132 |
|
|
|
|
| 133 |
self.application = (
|
| 134 |
Application.builder()
|
| 135 |
.token(TELEGRAM_BOT_TOKEN)
|
| 136 |
-
.http_client(custom_client)
|
| 137 |
.build()
|
| 138 |
)
|
| 139 |
await self.setup_handlers()
|
|
|
|
| 127 |
|
| 128 |
logger.info("🔄 جاري تهيئة تطبيق التليجرام...")
|
| 129 |
|
| 130 |
+
# ========== الحل الجذري (DNS) ==========
|
| 131 |
+
# سنستخدم الناقل المخصص لاحقاً إذا لزم الأمر
|
| 132 |
+
# custom_transport = CustomDNSTransport()
|
| 133 |
+
# custom_client = httpx.AsyncClient(transport=custom_transport)
|
| 134 |
+
# ============================================
|
| 135 |
|
| 136 |
+
# بناء التطبيق بدون http_client المخصص (لإصلاح الخطأ)
|
| 137 |
self.application = (
|
| 138 |
Application.builder()
|
| 139 |
.token(TELEGRAM_BOT_TOKEN)
|
|
|
|
| 140 |
.build()
|
| 141 |
)
|
| 142 |
await self.setup_handlers()
|