BinaryONe
commited on
Commit
·
0a52c56
1
Parent(s):
e3fc261
Polls Update
Browse files
FileStream/bot/plugins/FileHandlers/stream.py
CHANGED
|
@@ -62,9 +62,9 @@ async def private_receive_handler(bot: Client, message: Message):
|
|
| 62 |
"user_id":message.from_user.id if (message.chat.type == ChatType.PRIVATE) else message.chat.id,
|
| 63 |
"user_type": "TELEGRAM"
|
| 64 |
}
|
| 65 |
-
file_info=get_file_info(message, instruction)
|
| 66 |
-
reply = await message.reply_text(LANG.PROCESSING_TEXT)
|
| 67 |
|
|
|
|
|
|
|
| 68 |
await reply.edit_text(
|
| 69 |
text=f"{file_info['file']['caption'] if file_info['file']['caption'] else file_info['file']['file_name']}",
|
| 70 |
parse_mode=ParseMode.HTML,
|
|
|
|
| 62 |
"user_id":message.from_user.id if (message.chat.type == ChatType.PRIVATE) else message.chat.id,
|
| 63 |
"user_type": "TELEGRAM"
|
| 64 |
}
|
|
|
|
|
|
|
| 65 |
|
| 66 |
+
reply = await message.reply_text(LANG.PROCESSING_TEXT)
|
| 67 |
+
file_info=get_file_info(message, instruction)
|
| 68 |
await reply.edit_text(
|
| 69 |
text=f"{file_info['file']['caption'] if file_info['file']['caption'] else file_info['file']['file_name']}",
|
| 70 |
parse_mode=ParseMode.HTML,
|
FileStream/utils/FileProcessors/file_properties.py
CHANGED
|
@@ -191,7 +191,7 @@ def get_file_info(message, instruction):
|
|
| 191 |
"message_id": message.id,
|
| 192 |
"TMDB_id": int(),
|
| 193 |
"title": "Unknown",
|
| 194 |
-
"type": instruction['type'] if
|
| 195 |
"subtype":"Unknown",
|
| 196 |
"quality":"Unknown",
|
| 197 |
"location": message.from_user.id if (message.chat.type == ChatType.PRIVATE) else message.chat.id,
|
|
@@ -206,8 +206,8 @@ def get_file_info(message, instruction):
|
|
| 206 |
str(message.from_user.id) if (message.chat.type == ChatType.PRIVATE) else str(Telegram.OWNER_ID): instruction['privacy_type']
|
| 207 |
}
|
| 208 |
},
|
| 209 |
-
"time":Time_ISTKolNow(),
|
| 210 |
-
"privacy_type":instruction['privacy_type']
|
| 211 |
}
|
| 212 |
|
| 213 |
|
|
|
|
| 191 |
"message_id": message.id,
|
| 192 |
"TMDB_id": int(),
|
| 193 |
"title": "Unknown",
|
| 194 |
+
"type": instruction['type'] if 'type' in instruction else "Unknown",
|
| 195 |
"subtype":"Unknown",
|
| 196 |
"quality":"Unknown",
|
| 197 |
"location": message.from_user.id if (message.chat.type == ChatType.PRIVATE) else message.chat.id,
|
|
|
|
| 206 |
str(message.from_user.id) if (message.chat.type == ChatType.PRIVATE) else str(Telegram.OWNER_ID): instruction['privacy_type']
|
| 207 |
}
|
| 208 |
},
|
| 209 |
+
"time": Time_ISTKolNow(),
|
| 210 |
+
"privacy_type": instruction['privacy_type']
|
| 211 |
}
|
| 212 |
|
| 213 |
|