Spaces:
Running
Running
BinaryONe
commited on
Commit
ยท
89ff2c1
1
Parent(s):
ac47e66
changes In Upload
Browse files
FileStream/bot/plugins/FileHandlers/stream.py
CHANGED
@@ -38,7 +38,7 @@ from FileStream.utils.FileProcessors.bot_utils import is_user_banned, is_user_ex
|
|
38 |
from FileStream.utils.FileProcessors.custom_dl import ByteStreamer
|
39 |
from FileStream.utils.FileProcessors.custom_ul import TeleUploader
|
40 |
from FileStream.utils.FileProcessors.custom_mix import TGFileController
|
41 |
-
from FileStream.utils.FileProcessors.translation import LANG, BUTTON
|
42 |
from FileStream.utils.FileProcessors.human_readable import humanbytes
|
43 |
from FileStream.utils.FileProcessors.file_properties import get_file_ids, get_file_info, get_private_file_ids
|
44 |
|
@@ -62,10 +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 |
-
reply = await message.reply_text(text=
|
66 |
parse_mode=ParseMode.HTML,
|
67 |
disable_web_page_preview=True,
|
68 |
-
reply_markup=reply_markup,
|
69 |
quote=True)
|
70 |
|
71 |
reply_markup, stream_text = await upload_type_func(file_info=get_file_info(message, instruction),replied_message=reply.id)
|
|
|
38 |
from FileStream.utils.FileProcessors.custom_dl import ByteStreamer
|
39 |
from FileStream.utils.FileProcessors.custom_ul import TeleUploader
|
40 |
from FileStream.utils.FileProcessors.custom_mix import TGFileController
|
41 |
+
from FileStream.utils.FileProcessors.translation import LANG, BUTTON, PROCESSING_TEXT
|
42 |
from FileStream.utils.FileProcessors.human_readable import humanbytes
|
43 |
from FileStream.utils.FileProcessors.file_properties import get_file_ids, get_file_info, get_private_file_ids
|
44 |
|
|
|
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(text=PROCESSING_TEXT,
|
66 |
parse_mode=ParseMode.HTML,
|
67 |
disable_web_page_preview=True,
|
|
|
68 |
quote=True)
|
69 |
|
70 |
reply_markup, stream_text = await upload_type_func(file_info=get_file_info(message, instruction),replied_message=reply.id)
|
FileStream/utils/FileProcessors/translation.py
CHANGED
@@ -26,6 +26,12 @@ class LANG(object):
|
|
26 |
<b>โฆ CREDIT & SPECIAL Thanks To : <a href='https://github.com/avipatilpro/FileStreamBot'>Avishkar Patil & This Repo Owners </a></b>
|
27 |
\n
|
28 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
STREAM_TEXT = """
|
31 |
<i><u>๐ฌ๐ผ๐๐ฟ ๐๐ถ๐ป๐ธ ๐๐ฒ๐ป๐ฒ๐ฟ๐ฎ๐๐ฒ๐ฑ !</u></i>\n
|
|
|
26 |
<b>โฆ CREDIT & SPECIAL Thanks To : <a href='https://github.com/avipatilpro/FileStreamBot'>Avishkar Patil & This Repo Owners </a></b>
|
27 |
\n
|
28 |
"""
|
29 |
+
PROCESSING_TEXT = """
|
30 |
+
<i><u>๐ฃ๐ฟ๐ผ๐ฐ๐ฒ๐๐๐ถ๐ป๐ด ๐ฌ๐ผ๐๐ฟ ๐ฅ๐ฒ๐พ๐๐ฒ๐๐...</u></i>\n
|
31 |
+
<b>โณ Pสแดแดแดssษชษดษข :</b> ๐ฆ \n
|
32 |
+
<b>๐ Pสแดแดsแด แดกแดษชแด...</b>\n
|
33 |
+
"""
|
34 |
+
|
35 |
|
36 |
STREAM_TEXT = """
|
37 |
<i><u>๐ฌ๐ผ๐๐ฟ ๐๐ถ๐ป๐ธ ๐๐ฒ๐ป๐ฒ๐ฟ๐ฎ๐๐ฒ๐ฑ !</u></i>\n
|