Spaces:
Running
Running
BinaryONe
commited on
Commit
·
2ed5135
1
Parent(s):
8510204
Changes in Database
Browse files
FileStream/__main__.py
CHANGED
@@ -48,7 +48,7 @@ async def start_services():
|
|
48 |
FileStream.id = bot_info.id
|
49 |
FileStream.username = bot_info.username
|
50 |
FileStream.fname = bot_info.first_name
|
51 |
-
[ await FileStream.get_chat(i) for i in Telegram.DATA_SOURCES + [Telegram.FLOG_CHANNEL] ]
|
52 |
#await FileStream.get_users(Telegram.DATA_SOURCES + [Telegram.FLOG_CHANNEL])
|
53 |
print("------------------------------ DONE ------------------------------\n")
|
54 |
|
|
|
48 |
FileStream.id = bot_info.id
|
49 |
FileStream.username = bot_info.username
|
50 |
FileStream.fname = bot_info.first_name
|
51 |
+
#[ await FileStream.get_chat(i) for i in Telegram.DATA_SOURCES + [Telegram.FLOG_CHANNEL] ]
|
52 |
#await FileStream.get_users(Telegram.DATA_SOURCES + [Telegram.FLOG_CHANNEL])
|
53 |
print("------------------------------ DONE ------------------------------\n")
|
54 |
|
FileStream/bot/plugins/FileHandlers/stream.py
CHANGED
@@ -77,7 +77,8 @@ async def private_receive_handler(bot: Client, message: Message):
|
|
77 |
#This Will give a option to Public Private and temporary Upload
|
78 |
response = await upload_type_func(get_file_info(message, instruction),reply)
|
79 |
if response["type"]=="ExistingFile":
|
80 |
-
reply.reply_photo(
|
|
|
81 |
parse_mode=ParseMode.HTML,
|
82 |
disable_web_page_preview=True,
|
83 |
reply_markup= response["reply_markup"],
|
|
|
77 |
#This Will give a option to Public Private and temporary Upload
|
78 |
response = await upload_type_func(get_file_info(message, instruction),reply)
|
79 |
if response["type"]=="ExistingFile":
|
80 |
+
reply.reply_photo(photo=response["poster"],
|
81 |
+
caption=response["stream_text"],
|
82 |
parse_mode=ParseMode.HTML,
|
83 |
disable_web_page_preview=True,
|
84 |
reply_markup= response["reply_markup"],
|