BinaryONe commited on
Commit ·
1bcafde
1
Parent(s): cf38cab
changes In Upload
Browse files
FileStream/bot/plugins/FileHandlers/stream.py
CHANGED
|
@@ -62,17 +62,13 @@ 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 |
-
reply = await message.reply_text(
|
| 66 |
-
parse_mode=ParseMode.HTML,
|
| 67 |
-
disable_web_page_preview=True,
|
| 68 |
-
)
|
| 69 |
|
| 70 |
reply_markup, stream_text = await upload_type_func(file_info=get_file_info(message, instruction),replied_message=reply.id)
|
| 71 |
await reply.edit_text(text=stream_text,
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
quote=True)
|
| 76 |
except FloodWait as e:
|
| 77 |
print(f"Sleeping for {str(e.value)}s")
|
| 78 |
await asyncio.sleep(e.value)
|
|
|
|
| 62 |
"user_id":message.from_user.id if (message.chat.type == ChatType.PRIVATE) else message.chat.id,
|
| 63 |
"user_type": "TELEGRAM"
|
| 64 |
}
|
| 65 |
+
reply = await message.reply_text(LANG.PROCESSING_TEXT)
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
reply_markup, stream_text = await upload_type_func(file_info=get_file_info(message, instruction),replied_message=reply.id)
|
| 68 |
await reply.edit_text(text=stream_text,
|
| 69 |
+
no_webpage=True,
|
| 70 |
+
reply_markup=reply_markup,
|
| 71 |
+
)
|
|
|
|
| 72 |
except FloodWait as e:
|
| 73 |
print(f"Sleeping for {str(e.value)}s")
|
| 74 |
await asyncio.sleep(e.value)
|