Spaces:
Running
Running
BinaryONe
commited on
Commit
·
7c5fb88
1
Parent(s):
cb3ed83
Callback Update
Browse files
FileStream/bot/plugins/FileHandlers/stream.py
CHANGED
@@ -60,7 +60,8 @@ async def private_receive_handler(bot: Client, message: Message):
|
|
60 |
instruction = {
|
61 |
"privacy_type":"PUBLIC",
|
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)
|
|
|
60 |
instruction = {
|
61 |
"privacy_type":"PUBLIC",
|
62 |
"user_id":message.from_user.id if (message.chat.type == ChatType.PRIVATE) else message.chat.id,
|
63 |
+
"user_type": "TELEGRAM",
|
64 |
+
"type":"Unknown"
|
65 |
}
|
66 |
|
67 |
reply = await message.reply_text(LANG.PROCESSING_TEXT)
|
FileStream/utils/FileProcessors/file_properties.py
CHANGED
@@ -184,6 +184,8 @@ def get_file_info(message, instruction):
|
|
184 |
else:
|
185 |
user_idx = message.chat.id
|
186 |
"""
|
|
|
|
|
187 |
#"caption": clean_text(getattr(message, "caption", f"{get_name(message)}")),
|
188 |
return {
|
189 |
"user_id": instruction['user_id'],
|
@@ -191,7 +193,7 @@ def get_file_info(message, instruction):
|
|
191 |
"message_id": message.id,
|
192 |
"TMDB_id": int(),
|
193 |
"title": "Unknown",
|
194 |
-
"type":
|
195 |
"subtype":"Unknown",
|
196 |
"quality":"Unknown",
|
197 |
"location": message.from_user.id if (message.chat.type == ChatType.PRIVATE) else message.chat.id,
|
|
|
184 |
else:
|
185 |
user_idx = message.chat.id
|
186 |
"""
|
187 |
+
key = 'b'
|
188 |
+
|
189 |
#"caption": clean_text(getattr(message, "caption", f"{get_name(message)}")),
|
190 |
return {
|
191 |
"user_id": instruction['user_id'],
|
|
|
193 |
"message_id": message.id,
|
194 |
"TMDB_id": int(),
|
195 |
"title": "Unknown",
|
196 |
+
"type": instruction['type'],
|
197 |
"subtype":"Unknown",
|
198 |
"quality":"Unknown",
|
199 |
"location": message.from_user.id if (message.chat.type == ChatType.PRIVATE) else message.chat.id,
|