Update app.py
Browse files
app.py
CHANGED
|
@@ -141,12 +141,13 @@ async def handle_file(update: Update, context: ContextTypes.DEFAULT_TYPE):
|
|
| 141 |
save_data(user_id, data)
|
| 142 |
|
| 143 |
# 3️⃣ send JSON
|
| 144 |
-
|
| 145 |
chat_id=GROUP_ID,
|
| 146 |
document=InputFile(get_json_file(user_id)),
|
| 147 |
filename=f"{user_id}.json",
|
| 148 |
-
|
| 149 |
)"""
|
|
|
|
| 150 |
await context.bot.send_document(
|
| 151 |
chat_id=GROUP_ID,
|
| 152 |
document=InputFile(
|
|
|
|
| 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 |
+
|
| 151 |
await context.bot.send_document(
|
| 152 |
chat_id=GROUP_ID,
|
| 153 |
document=InputFile(
|