Riy777 commited on
Commit
81d9c2b
·
verified ·
1 Parent(s): 03c9acf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -127,13 +127,16 @@ class MedicalLabBot:
127
 
128
  logger.info("🔄 جاري تهيئة تطبيق التليجرام...")
129
 
130
- custom_transport = CustomDNSTransport()
131
- custom_client = httpx.AsyncClient(transport=custom_transport)
 
 
 
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()