Spaces:
Paused
Paused
Commit ·
112e3ec
1
Parent(s): 9134248
feat: add Telegram bot mode for file uploads and folder management, and update dependencies.
Browse files- requirements.txt +2 -1
- utils/bot_mode.py +3 -1
requirements.txt
CHANGED
|
@@ -8,4 +8,5 @@ aiohttp
|
|
| 8 |
curl_cffi
|
| 9 |
techzdl>=1.2.6
|
| 10 |
tqdm
|
| 11 |
-
dill
|
|
|
|
|
|
| 8 |
curl_cffi
|
| 9 |
techzdl>=1.2.6
|
| 10 |
tqdm
|
| 11 |
+
dill
|
| 12 |
+
pyromod
|
utils/bot_mode.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import asyncio
|
| 2 |
from pyrogram import Client, filters
|
|
|
|
| 3 |
from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton
|
| 4 |
import config
|
| 5 |
from utils.logger import Logger
|
|
@@ -56,7 +57,8 @@ async def set_folder_handler(client: Client, message: Message):
|
|
| 56 |
|
| 57 |
while True:
|
| 58 |
try:
|
| 59 |
-
folder_name = await
|
|
|
|
| 60 |
"Send the folder name where you want to upload files\n\n/cancel to cancel",
|
| 61 |
timeout=60,
|
| 62 |
filters=filters.text,
|
|
|
|
| 1 |
import asyncio
|
| 2 |
from pyrogram import Client, filters
|
| 3 |
+
import pyromod
|
| 4 |
from pyrogram.types import Message, InlineKeyboardMarkup, InlineKeyboardButton
|
| 5 |
import config
|
| 6 |
from utils.logger import Logger
|
|
|
|
| 57 |
|
| 58 |
while True:
|
| 59 |
try:
|
| 60 |
+
folder_name = await client.ask(
|
| 61 |
+
message.chat.id,
|
| 62 |
"Send the folder name where you want to upload files\n\n/cancel to cancel",
|
| 63 |
timeout=60,
|
| 64 |
filters=filters.text,
|