ulduldp commited on
Commit
24fb484
·
verified ·
1 Parent(s): 1549318

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -141,10 +141,18 @@ async def handle_file(update: Update, context: ContextTypes.DEFAULT_TYPE):
141
  save_data(user_id, data)
142
 
143
  # 3️⃣ send JSON
144
- await context.bot.send_document(
145
  chat_id=GROUP_ID,
146
  document=InputFile(get_json_file(user_id)),
147
  filename=f"{user_id}.json",
 
 
 
 
 
 
 
 
148
  caption=f"📁 Index of {user_id}"
149
  )
150
 
 
141
  save_data(user_id, data)
142
 
143
  # 3️⃣ send JSON
144
+ """await context.bot.send_document(
145
  chat_id=GROUP_ID,
146
  document=InputFile(get_json_file(user_id)),
147
  filename=f"{user_id}.json",
148
+ captpon=f"📁 Index of {user_id}"
149
+ )"""
150
+ await context.bot.send_document(
151
+ chat_id=GROUP_ID,
152
+ document=InputFile(
153
+ get_json_file(user_id),
154
+ filename=f"{user_id}.json"
155
+ ),
156
  caption=f"📁 Index of {user_id}"
157
  )
158