sam-max / rcmltb Goto Github PK
View Code? Open in Web Editor NEWAn rclone telegram bot to mirror-leech and copy between many cloud servers
Home Page: https://t.me/rcmltb
License: GNU General Public License v3.0
An rclone telegram bot to mirror-leech and copy between many cloud servers
Home Page: https://t.me/rcmltb
License: GNU General Public License v3.0
After new commit bot upload not working.I am trying to upload to my onedrive.But the download progress is stuck at 100% and upload is not working.
2022-10-15 15:39:43,645 INFO Thread-4 (__onDownloadStarted) bot onDownloadStarted: goong.s1.br.48-pahe.ph.part1.rar - Gid: 5fa90b7664d64445
2022-10-15 15:39:43,646 INFO MainThread bot Aria2Download started: 5fa90b7664d64445
2022-10-15 15:40:28,639 INFO Thread-5 (__onDownloadComplete) bot onDownloadComplete: goong.s1.br.48-pahe.ph.part1.rar - Gid: 5fa90b7664d64445
2022-10-15 15:40:33,824 ERROR MainThread asyncio Task exception was never retrieved
future: <Task finished name='Task-3210' coro=<setInterval.setInterval() done, defined at /usr/src/app/bot/helper/ext_utils/bot_utils.py:176> exception=RuntimeError('<asyncio.locks.Lock object at 0xffff8d5adc30 [unlocked, waiters:1]> is bound to a different event loop')>
Traceback (most recent call last):
File "/usr/src/app/bot/helper/ext_utils/bot_utils.py", line 181, in setInterval
await self.action()
File "/usr/src/app/bot/helper/ext_utils/message_utils.py", line 119, in update_all_messages
msg, buttons = await get_readable_message()
File "/usr/src/app/bot/helper/ext_utils/bot_utils.py", line 96, in get_readable_message
async with status_dict_lock:
File "/usr/lib/python3.10/asyncio/locks.py", line 14, in aenter
await self.acquire()
File "/usr/lib/python3.10/asyncio/locks.py", line 106, in acquire
fut = self._get_loop().create_future()
File "/usr/lib/python3.10/asyncio/mixins.py", line 30, in _get_loop
raise RuntimeError(f'{self!r} is bound to a different event loop')
RuntimeError: <asyncio.locks.Lock object at 0xffff8d5adc30 [unlocked, waiters:1]> is bound to a different event loop
2022-10-15 15:47:26,393 INFO MainThread pyrogram.connection.connection Connecting...
2022-10-15 15:47:26,450 INFO MainThread pyrogram.connection.connection Connected! Production DC5 (media) - IPv4 - TCPAbridgedO
2022-10-15 15:47:26,451 INFO MainThread pyrogram.session.session NetworkTask started
2022-10-15 15:47:26,753 INFO MainThread pyrogram.session.session Session initialized: Layer 146
2022-10-15 15:47:26,753 INFO MainThread pyrogram.session.session Device: CPython 3.10.6 - Pyrogram 2.0.57
2022-10-15 15:47:26,753 INFO MainThread pyrogram.session.session System: Linux 5.15.0-1019-oracle (EN)
2022-10-15 15:47:26,753 INFO MainThread pyrogram.session.session Session started
I am using a free mega account. When I try to zipmirror or mirror a mega link I get this error.
2022-09-05 02:12:28,128 INFO MainThread telethon.client.uploads Uploading file of 4884 bytes in 1 chunks of 131072
2022-09-05 02:12:29,010 ERROR MainThread pyrogram.dispatcher {'dlinfo': 'failed', 'message': 'no such gid currently exists in downloader'}
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker
await handler.callback(self.client, *args)
File "/usr/src/app/bot/modules/mirror.py", line 35, in handle_zip_mirror
await mirror_leech(client, message, isZip=True)
File "/usr/src/app/bot/modules/mirror.py", line 151, in mirror_leech
state, rmsg, path= await mega_dl.execute(path= f'{DOWNLOAD_DIR}{message.id}')
File "/usr/src/app/bot/downloaders/mega/mega_download.py", line 40, in execute
status, rmsg, path= await mega_status.create_status()
File "/usr/src/app/bot/utils/status_utils/mega_status.py", line 31, in create_status
self._dl_info = await self._obj.loop.run_in_executor(None, partial(self._obj.mega_client.getDownloadInfo, self.__gid))
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/dist-packages/megasdkrestclient/client.py", line 33, in getDownloadInfo
return checkAndRaise(res, 'dlinfo')
File "/usr/local/lib/python3.10/dist-packages/megasdkrestclient/utils.py", line 9, in checkAndRaise
raise MegaSdkRestClientException(obj)
megasdkrestclient.errors.MegaSdkRestClientException: {'dlinfo': 'failed', 'message': 'no such gid currently exists in downloader'}
Hey is it possible to deploy t on github action, where we get free vm, since it is banned on heroku and others PaaS.
Here is a refrence for Github Action workflow - https://github.com/hitesh920/GhostMirror-Workflow-v2
@itachixxxa
I tried to depoly this repo in heroku.. after few min heroku banning my account any solution
Hey i successfully deployed the master branch, but i am unable to add rclone configs in it.
Also, do i need to keep the first line of rclone.conf file.
My rclone.conf file looks like this.
[Onedrive]
type = onedrive
client_id = xyz
client_secret = 12345
token = {"access_token":"123xyz"}
drive_id = b!AWkpb6haR0OuWlRa2
drive_type = business
and my variable RCLONE_CONFIG looks like
RCLONE_CONFIG = "[Onedrive]
type = onedrive
client_id = xyz
client_secret = 12345
token = {"access_token":"123xyz"}
drive_id = b!AWkpb6haR0OuWlRa2
drive_type = business
"
the format is right?
i was using the above format but the app threw some error, i have attached the error logs below.
https://gist.github.com/hackevil/a48564cde157f8901458003bf5a20857
I was leeching a 100gb file with not a lot of seeders, and out of nowhere I see the uptime message from the bot, and the download stops moving. I assume this isn't a code issue, rather a heroku issue. Does anyone know about this issue and possibly how to circumvent it? Only real issue I have with the bit itself is that each download has its own message, which with many concurrent downloads can be a bit of a chore to keep track of. Otherwise, great bot, keep up the great work!
2022-06-28T07:03:34.093876+00:00 app[worker.1]: Traceback (most recent call last):
2022-06-28T07:03:34.093876+00:00 app[worker.1]: File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker
2022-06-28T07:03:34.093877+00:00 app[worker.1]: await handler.callback(self.client, *args)
2022-06-28T07:03:34.093877+00:00 app[worker.1]: File "/usr/src/app/bot/core/menus/callbacks/handle_leech_menu_cb.py", line 65, in handle_setting_leech_menu_callback
2022-06-28T07:03:34.093878+00:00 app[worker.1]: await rclone_leech.leech()
2022-06-28T07:03:34.093878+00:00 app[worker.1]: File "/usr/src/app/bot/uploaders/rclone/rclone_leech.py", line 71, in leech
2022-06-28T07:03:34.093879+00:00 app[worker.1]: rcres= await self.__rclone_update()
2022-06-28T07:03:34.093879+00:00 app[worker.1]: File "/usr/src/app/bot/uploaders/rclone/rclone_leech.py", line 174, in __rclone_update
2022-06-28T07:03:34.093880+00:00 app[worker.1]: if time.time() - start > edit_time:
2022-06-28T07:03:34.093880+00:00 app[worker.1]: TypeError: '>' not supported between instances of 'float' and 'NoneType'
This happens after we send leech command and select file/folder to be leeched. Nothing gets uploaded and bot shows this error.
Also i do hope you are alright and recovering after surgery greatly as i saw previous issue comment.
Used the unzipleech command.File get downloaded successfully.But file doesn't get unzipped.!
Thats all, btw i really liked your bot.
Does this support torrent?
When I leech zip file of upload max size it creates a new zip file of the existing zip file. I am uploading a zip file of 6GB on telegram it should be spilt as file.zip.001 file.zip.002 file.zip.003
but bot uploads it as file.zip.zip.001 file.zip.zip.002 file.zip.zip.003
request to add heroku support along with bypass as in anasty 17 mirror leech bot
I think your project is awesome. Because me and a lot of others prefer to use Rclone instead of Gd-utils to upload data to Drive.
But it would be great if you could combine a few things:
Those are small issues that I think if you have time you can improve on it.
can you add this flag in copy function for rclone --ignore-existing
this one it would be helpful to avoid copying duplicate files.
Or point the line number where I can add it please ?
I am trying to upload a zip file to my onedrive using an index link.The file downloads successfully.But when uploading the upload happena partially.Upload progress go about 5% then suddenly shows upload complete message.The file is also in my onedrive and it shows the full file size.But when I download the file and try extract it says corrupted zip file.
I don't know if this is a bug. It has appeared twice, and the status has not been updated, causing the file to be copied from the cloud to the cloud to be interrupted.If you copy large-capacity files, if this problem occurs, it is very painful, because you have to start from scratch and cannot continue
Bot is awesome but when I add it to my supergroup, It replies every message with "Send an Rclone config file". Even I send config file. I can't use it on supergroup.
Screenshot: https://prnt.sc/AsHOIbRfXE8g
Note: Bot is admin but saying "This message doesn't contain any downloadable media" to my config file.
Sorry for my bad English.
2022-09-11 08:40:57,601 ERROR MainThread pyrogram.dispatcher Telegram says: [406 CHANNEL_PRIVATE] - The channel/supergroup is not accessible (caused by "messages.SendMessage") Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker await handler.callback(self.client, *args) File "/usr/src/app/bot/modules/config.py", line 19, in handle_config question= await client.send_message(message.chat.id, File "/usr/local/lib/python3.10/dist-packages/pyrogram/methods/messages/send_message.py", line 124, in send_message r = await self.invoke( File "/usr/local/lib/python3.10/dist-packages/pyrogram/methods/advanced/invoke.py", line 77, in invoke r = await self.session.invoke( File "/usr/local/lib/python3.10/dist-packages/pyrogram/session/session.py", line 361, in invoke return await self.send(query, timeout=timeout) File "/usr/local/lib/python3.10/dist-packages/pyrogram/session/session.py", line 331, in send RPCError.raise_it(result, type(data)) File "/usr/local/lib/python3.10/dist-packages/pyrogram/errors/rpc_error.py", line 91, in raise_it raise getattr( pyrogram.errors.exceptions.not_acceptable_406.ChannelPrivate: Telegram says: [406 CHANNEL_PRIVATE] - The channel/supergroup is not accessible (caused by "messages.SendMessage") 2022-09-11 08:40:58,004 INFO MainThread telethon.client.updates Timeout waiting for updates expired 2022-09-11 08:40:58,005 INFO MainThread telethon.client.updates Getting difference for account updates 2022-09-11 08:40:58,047 INFO MainThread telethon.client.updates Getting difference for channel updates 2022-09-11 08:40:58,068 INFO MainThread telethon.client.updates Account is now banned in "I hidden my channel ID" so we can no longer fetch updates from it 2022-09-11 08:43:33,008 INFO MainThread pyrogram.session.session NetworkTask stopped 2022-09-11 08:43:33,009 INFO MainThread pyrogram.session.session PingTask stopped 2022-09-11 08:43:33,009 INFO MainThread pyrogram.connection.connection Disconnected 2022-09-11 08:43:33,010 INFO MainThread pyrogram.session.session Session stopped 2022-09-11 08:43:33,010 INFO MainThread pyrogram.connection.connection Connecting... 2022-09-11 08:43:33,010 INFO MainThread pyrogram.session.session [1] Retrying "messages.DeleteMessages" due to TimeoutError() 2022-09-11 08:43:33,012 INFO MainThread pyrogram.connection.connection Connected! Production DC4 - IPv4 - TCPAbridgedO 2022-09-11 08:43:33,013 INFO MainThread pyrogram.session.session NetworkTask started 2022-09-11 08:43:33,109 INFO MainThread pyrogram.session.session Session initialized: Layer 145 2022-09-11 08:43:33,110 INFO MainThread pyrogram.session.session Device: CPython 3.10.4 - Pyrogram 2.0.51 2022-09-11 08:43:33,110 INFO MainThread pyrogram.session.session System: Linux 5.15.0-1017-oracle (EN) 2022-09-11 08:43:33,110 INFO MainThread pyrogram.session.session Session started 2022-09-11 08:43:33,110 INFO MainThread pyrogram.session.session PingTask started 2022-09-11 08:48:06,795 INFO MainThread telethon.client.updates Timeout waiting for updates expired 2022-09-11 08:48:06,796 INFO MainThread telethon.client.updates Getting difference for account updates 2022-09-11 08:48:21,691 INFO MainThread telethon.client.updates Timeout waiting for updates expired 2022-09-11 08:48:21,691 INFO MainThread telethon.client.updates Getting difference for channel updates 2022-09-11 08:48:25,437 INFO MainThread telethon.client.updates Timeout waiting for updates expired 2022-09-11 08:48:25,437 INFO MainThread telethon.client.updates Getting difference for channel updates 2022-09-11 08:48:41,588 INFO MainThread telethon.client.updates Timeout waiting for updates expired 2022-09-11 08:48:41,588 INFO MainThread telethon.client.updates Getting difference for channel updates 2022-09-11 08:49:19,128 INFO MainThread telethon.client.updates Timeout waiting for updates expired 2022-09-11 08:49:19,129 INFO MainThread telethon.client.updates Getting difference for account updates 2022-09-11 08:49:23,742 INFO MainThread pyrogram.connection.connection Connecting... 2022-09-11 08:49:23,744 INFO MainThread pyrogram.connection.connection Connected! Production DC4 (media) - IPv4 - TCPAbridgedO 2022-09-11 08:49:23,745 INFO MainThread pyrogram.session.session NetworkTask started 2022-09-11 08:49:23,812 INFO MainThread pyrogram.session.session Session initialized: Layer 145 2022-09-11 08:49:23,812 INFO MainThread pyrogram.session.session Device: CPython 3.10.4 - Pyrogram 2.0.51 2022-09-11 08:49:23,812 INFO MainThread pyrogram.session.session System: Linux 5.15.0-1017-oracle (EN) 2022-09-11 08:49:23,812 INFO MainThread pyrogram.session.session Session started 2022-09-11 08:49:23,812 INFO MainThread pyrogram.session.session PingTask started 2022-09-11 08:49:23,827 WARNING MainThread pyrogram.parser.html Unclosed tags: <code> (x1)
When using /qbmirror to download a magnetic or torrent file, it will not be automatically uploaded to the cloud after the download is complete. I found that it should be the tag problem in the newly added qb configuration file.
2022-09-02 07:35:13,166 INFO MainThread bot QbitDownload started: 88888axa432554qw864348243 - Hash: 88888axa432554qw864348243 2022-09-02 07:36:58,137 INFO MainThread bot dict_values([<bot.utils.status_utils.qbit_status.qBitTorrentStatus object at 0xfff812243880>]) 2022-09-02 07:36:58,137 INFO MainThread bot Cancelling Download: 88888axa432554qw864348243, cause: Download stopped by user!! 2022-09-02 07:37:07,582 INFO MainThread bot QbitDownload started: 88888axa432554qw864348243 - Hash: 88888axa432554qw864348243 2022-09-02 07:38:29,617 ERROR MainThread pyrogram.dispatcher local variable 'tag' referenced before assignment Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker await handler.callback(self.client, *args) File "/usr/src/app/bot/core/handlers/handle_mirror.py", line 30, in handle_qbit_mirror_command await mirror(client, message, isQbit=True) File "/usr/src/app/bot/core/handlers/handle_mirror.py", line 140, in mirror rclone_mirror = RcloneMirror(path, rmsg, tag) UnboundLocalError: local variable 'tag' referenced before assignment 2022-09-02 07:39:49,199 INFO MainThread telethon.client.uploads Uploading file of 9263 bytes in 1 chunks of 131072
2022-09-06 04:38:22,339 INFO MainThread pyrogram.session.session [1] Retrying "messages.EditMessage" due to TimeoutError()
there is a lot logs like this
/mirror
/qbmirror
Nothing happens, even though I reply to the magnet link, there is still no response
When try to use qb commands on a torrent I get this error.
022-08-05 13:39:11,209 ERROR MainThread pyrogram.dispatcher 'builtin_function_or_method' object has no attribute 'time'
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker
await handler.callback(self.client, *args)
File "/usr/src/app/bot/core/handlers/handle_mirror_cm.py", line 29, in handle_qbit_mirror_command
await mirror(client, message, isQbit=True)
File "/usr/src/app/bot/core/handlers/handle_mirror_cm.py", line 114, in mirror
state, message, path, name = await qbit_dl.add_qb_torrent(link)
File "/usr/src/app/bot/downloaders/qbit/qbit_downloader.py", line 39, in add_qb_torrent
time_s= str(time.time()).replace(".","")
AttributeError: 'builtin_function_or_method' object has no attribute 'time'
I'm trying this bot as second bot in one VDS. I changed the port to "81" at my config.env But I get an error message when build the docker.
Successfully tagged rclone-tg-bot_app:latest WARNING: Image for service app was built because it did not already exist. To rebuild this image you must use
docker-compose buildor
docker-compose
up --build. Creating rclone-tg-bot_app_1 ... Creating rclone-tg-bot_app_1 ... error ERROR: for rclone-tg-bot_app_1 Cannot start service app: driver failed programming external connectivity on endpoint rclone-tg-bot_app_1 (52e45d8e1f5f2c0ce97ad59568a01e3ac467599bae02dcaef538e26119edfe19): Bind for 0.0.0.0:80 failed: port is already allocated ERROR: for app Cannot start service app: driver failed programming external connectivity on endpoint rclone-tg-bot_app_1 (52e45d8e1f5f2c0ce97ad59568a01e3ac467599bae02dcaef538e26119edfe19): Bind for 0.0.0.0:80 failed: port is already allocated ERROR: Encountered errors while bringing up the project.
https://logpaste.com/UhTgGSAX
Like the title said, also, when I click cancel, it wont cancel
nothing happens
2022-08-06 12:17:13,058 INFO MainThread bot Rclone file loaded!! 2022-08-06 12:17:13,582 INFO MainThread bot Initializing Aria2c 2022-08-06 12:17:39,076 INFO MainThread bot MEGA_API_KEY not provided! 2022-08-06 12:17:40,613 INFO MainThread telethon.network.mtprotosender Connecting to 149.154.167.51:443/TcpFull... 2022-08-06 12:17:42,482 INFO MainThread telethon.network.mtprotosender Connection to 149.154.167.51:443/TcpFull complete! 2022-08-06 12:17:43,848 INFO MainThread telethon.client.users Phone migrated to 5 2022-08-06 12:17:43,848 INFO MainThread telethon.client.telegrambaseclient Reconnecting to new data center 5 2022-08-06 12:17:44,101 INFO MainThread telethon.network.mtprotosender Disconnecting from 149.154.167.51:443/TcpFull... 2022-08-06 12:17:44,101 INFO MainThread telethon.network.mtprotosender Disconnection from 149.154.167.51:443/TcpFull complete! 2022-08-06 12:17:44,101 INFO MainThread telethon.network.mtprotosender Connecting to 91.108.56.128:443/TcpFull... 2022-08-06 12:17:45,287 INFO MainThread telethon.network.mtprotosender Connection to 91.108.56.128:443/TcpFull complete! 2022-08-06 12:17:45,562 INFO MainThread bot Telethon client created. 2022-08-06 12:17:46,041 INFO MainThread pyrogram.session.auth Start creating a new auth key on DC2 2022-08-06 12:17:46,041 INFO MainThread pyrogram.connection.connection Connecting... 2022-08-06 12:17:46,288 INFO MainThread pyrogram.connection.connection Connected! Production DC2 - IPv4 - TCPAbridgedO 2022-08-06 12:17:48,049 INFO MainThread pyrogram.session.auth Done auth key exchange: DhGenOk 2022-08-06 12:17:48,049 INFO MainThread pyrogram.connection.connection Disconnected 2022-08-06 12:17:48,223 INFO MainThread pyrogram.connection.connection Connecting... 2022-08-06 12:17:48,459 INFO MainThread pyrogram.connection.connection Connected! Production DC2 - IPv4 - TCPAbridgedO 2022-08-06 12:17:48,459 INFO MainThread pyrogram.session.session NetworkTask started 2022-08-06 12:17:48,973 INFO MainThread pyrogram.session.internals.msg_id Time synced: 2022-08-06 12:17:48.858429 UTC 2022-08-06 12:17:49,531 INFO MainThread pyrogram.session.session Session initialized: Layer 143 2022-08-06 12:17:49,532 INFO MainThread pyrogram.session.session Device: CPython 3.10.4 - Pyrogram 2.0.35 2022-08-06 12:17:49,532 INFO MainThread pyrogram.session.session System: Linux 5.4.0-1078-oracle (EN) 2022-08-06 12:17:49,532 INFO MainThread pyrogram.session.session Session started 2022-08-06 12:17:49,560 INFO MainThread pyrogram.session.session PingTask started 2022-08-06 12:17:49,871 INFO MainThread pyrogram.session.session PingTask stopped 2022-08-06 12:17:49,872 INFO MainThread pyrogram.connection.connection Disconnected 2022-08-06 12:17:49,872 INFO MainThread pyrogram.session.session NetworkTask stopped 2022-08-06 12:17:49,872 INFO MainThread pyrogram.session.session Session stopped 2022-08-06 12:17:49,962 INFO MainThread pyrogram.session.auth Start creating a new auth key on DC5 2022-08-06 12:17:49,962 INFO MainThread pyrogram.connection.connection Connecting... 2022-08-06 12:17:50,041 INFO MainThread pyrogram.connection.connection Connected! Production DC5 - IPv4 - TCPAbridgedO 2022-08-06 12:17:51,269 INFO MainThread pyrogram.session.auth Done auth key exchange: DhGenOk 2022-08-06 12:17:51,269 INFO MainThread pyrogram.connection.connection Disconnected 2022-08-06 12:17:51,388 INFO MainThread pyrogram.connection.connection Connecting... 2022-08-06 12:17:51,466 INFO MainThread pyrogram.connection.connection Connected! Production DC5 - IPv4 - TCPAbridgedO 2022-08-06 12:17:51,466 INFO MainThread pyrogram.session.session NetworkTask started 2022-08-06 12:17:51,869 INFO MainThread pyrogram.session.session Session initialized: Layer 143 2022-08-06 12:17:51,869 INFO MainThread pyrogram.session.session Device: CPython 3.10.4 - Pyrogram 2.0.35 2022-08-06 12:17:51,869 INFO MainThread pyrogram.session.session System: Linux 5.4.0-1078-oracle (EN) 2022-08-06 12:17:51,869 INFO MainThread pyrogram.session.session Session started 2022-08-06 12:17:51,870 INFO MainThread pyrogram.session.session PingTask started 2022-08-06 12:17:52,340 INFO MainThread pyrogram.dispatcher Started 8 HandlerTasks 2022-08-06 12:17:52,340 INFO MainThread bot pyro Bot client created 2022-08-06 12:17:52,748 INFO MainThread pyrogram.connection.connection Connecting... 2022-08-06 12:17:52,828 INFO MainThread pyrogram.connection.connection Connected! Production DC5 - IPv4 - TCPAbridgedO 2022-08-06 12:17:52,828 INFO MainThread pyrogram.session.session NetworkTask started 2022-08-06 12:17:53,216 INFO MainThread pyrogram.session.session Session initialized: Layer 143 2022-08-06 12:17:53,216 INFO MainThread pyrogram.session.session Device: CPython 3.10.4 - Pyrogram 2.0.35 2022-08-06 12:17:53,216 INFO MainThread pyrogram.session.session System: Linux 5.4.0-1078-oracle (EN) 2022-08-06 12:17:53,216 INFO MainThread pyrogram.session.session Session started 2022-08-06 12:17:53,270 INFO MainThread pyrogram.session.session PingTask started 2022-08-06 12:17:53,539 INFO MainThread pyrogram.dispatcher Started 8 HandlerTasks 2022-08-06 12:17:53,715 INFO MainThread pyrogram.dispatcher Stopped 8 HandlerTasks 2022-08-06 12:17:53,715 INFO MainThread pyrogram.session.session PingTask stopped 2022-08-06 12:17:53,715 INFO MainThread pyrogram.connection.connection Disconnected 2022-08-06 12:17:53,715 INFO MainThread pyrogram.session.session NetworkTask stopped 2022-08-06 12:17:53,715 INFO MainThread pyrogram.session.session Session stopped 2022-08-06 12:17:54,120 INFO MainThread pyrogram.connection.connection Connecting... 2022-08-06 12:17:54,201 INFO MainThread pyrogram.connection.connection Connected! Production DC5 - IPv4 - TCPAbridgedO 2022-08-06 12:17:54,201 INFO MainThread pyrogram.session.session NetworkTask started 2022-08-06 12:17:54,609 INFO MainThread pyrogram.session.session Session initialized: Layer 143 2022-08-06 12:17:54,609 INFO MainThread pyrogram.session.session Device: CPython 3.10.4 - Pyrogram 2.0.35 2022-08-06 12:17:54,609 INFO MainThread pyrogram.session.session System: Linux 5.4.0-1078-oracle (EN) 2022-08-06 12:17:54,609 INFO MainThread pyrogram.session.session Session started 2022-08-06 12:17:54,663 INFO MainThread pyrogram.session.session PingTask started 2022-08-06 12:17:54,841 INFO MainThread pyrogram.dispatcher Started 8 HandlerTasks 2022-08-06 12:17:54,841 INFO MainThread bot pyrogram_session client created 2022-08-06 12:17:55,025 ERROR MainThread root The variable was not found in either the constants or environment, variable is :- UPTOBOX_TOKEN 2022-08-06 12:17:59,486 INFO MainThread telethon.client.uploads Uploading file of 6565 bytes in 1 chunks of 131072 2022-08-06 12:19:30,596 ERROR MainThread pyrogram.dispatcher 'builtin_function_or_method' object has no attribute 'time' Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker await handler.callback(self.client, *args) File "/usr/src/app/bot/core/handlers/handle_mirror_cm.py", line 29, in handle_qbit_mirror_command await mirror(client, message, isQbit=True) File "/usr/src/app/bot/core/handlers/handle_mirror_cm.py", line 114, in mirror state, message, path, name = await qbit_dl.add_qb_torrent(link) File "/usr/src/app/bot/downloaders/qbit/qbit_downloader.py", line 39, in add_qb_torrent time_s= str(time.time()).replace(".","") AttributeError: 'builtin_function_or_method' object has no attribute 'time' 2022-08-06 12:19:41,182 INFO MainThread telethon.client.uploads Uploading file of 7491 bytes in 1 chunks of 131072
Hi, I have several folders and when trying to /copy a folder from second page it will not open.. folders listed in first page open and I can copy those, however, folders that appear in page 2 onwards do not open.
I have deployed different versions of repo (anasty-like repo) and the issue remains.
I have an older version of the repo (before anasty-like) and there I can copy whatever folder from any page in the copy menu..
So there might be something wrong in the newest code.. sadly I don't have any logs to show but I suspect it doesn't show in the logs either.
Edit: I just checked latest commit and saw you fixed something in copy module.. so I guess that's the solution.. will deploy and verify.
Edit2: Still same issue..
Thanks for your work!
My config
Should I keep port number 80 or keep it blank
app_1 | 2022-09-07 11:53:48,006 ERROR MainThread pyrogram.dispatcher 'CallbackQuery' object has no attribute 'delete' app_1 | Traceback (most recent call last): app_1 | File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker app_1 | await handler.callback(self.client, *args) app_1 | File "/usr/src/app/bot/modules/copy.py", line 229, in copy_menu_settings app_1 | await query.delete() app_1 | AttributeError: 'CallbackQuery' object has no attribute 'delete'
1.Shareable files and folders link.
When /myfiles is used, it list files and when a file is selected it only shows its name & delete option, it would be nice to have link along with it and also give a delete option for folder too, it will be very tiring process to delete each files individually.
Message containing link of file/folder when leeching/mirroring is completed.
2. Status Command
3. A better Upload status message.
Few tweaks for /leech command
4.File selection for /qbmirror
I may add more suggestion later, right now i can only think of these.
Also make an telegram group for more discussion about features and their implementation.
Whenever I try to use mirror and other commands I get this error.All variables are filled correctly.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker
await handler.callback(self.client, *args)
File "/usr/src/app/bot/core/handlers/handle_mirror_cm.py", line 20, in handle_mirror_command
await mirror(client, message)
File "/usr/src/app/bot/core/handlers/handle_mirror_cm.py", line 34, in mirror
if user_id in get_val("ALLOWED_USERS") or chat_id in get_val("ALLOWED_CHATS") or user_id == get_val("OWNER_ID"):
File "/usr/src/app/bot/core/get_vars.py", line 6, in get_val
return SessionVars.get_var(variable)
File "/usr/src/app/bot/core/var_holder.py", line 50, in get_var
ausers_second.append(int(user))
ValueError: invalid literal for int() with base 10: ''
2022-08-07 15:39:57,110 ERROR MainThread pyrogram.dispatcher invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker
await handler.callback(self.client, *args)
File "/usr/src/app/bot/core/handlers/handle_mirror_cm.py", line 20, in handle_mirror_command
await mirror(client, message)
File "/usr/src/app/bot/core/handlers/handle_mirror_cm.py", line 34, in mirror
if user_id in get_val("ALLOWED_USERS") or chat_id in get_val("ALLOWED_CHATS") or user_id == get_val("OWNER_ID"):
File "/usr/src/app/bot/core/get_vars.py", line 6, in get_val
return SessionVars.get_var(variable)
File "/usr/src/app/bot/core/var_holder.py", line 50, in get_var
ausers_second.append(int(user))
ValueError: invalid literal for int() with base 10: ''
2022-08-07 15:39:58,564 ERROR MainThread pyrogram.dispatcher invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker
await handler.callback(self.client, *args)
File "/usr/src/app/bot/core/handlers/handle_mirror_cm.py", line 20, in handle_mirror_command
await mirror(client, message)
File "/usr/src/app/bot/core/handlers/handle_mirror_cm.py", line 34, in mirror
if user_id in get_val("ALLOWED_USERS") or chat_id in get_val("ALLOWED_CHATS") or user_id == get_val("OWNER_ID"):
File "/usr/src/app/bot/core/get_vars.py", line 6, in get_val
return SessionVars.get_var(variable)
File "/usr/src/app/bot/core/var_holder.py", line 50, in get_var
ausers_second.append(int(user))
ValueError: invalid literal for int() with base 10: ''
2022-08-07 15:39:59,267 ERROR MainThread pyrogram.dispatcher invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker
await handler.callback(self.client, *args)
File "/usr/src/app/bot/core/handlers/handle_mirror_cm.py", line 20, in handle_mirror_command
await mirror(client, message)
File "/usr/src/app/bot/core/handlers/handle_mirror_cm.py", line 34, in mirror
if user_id in get_val("ALLOWED_USERS") or chat_id in get_val("ALLOWED_CHATS") or user_id == get_val("OWNER_ID"):
File "/usr/src/app/bot/core/get_vars.py", line 6, in get_val
return SessionVars.get_var(variable)
File "/usr/src/app/bot/core/var_holder.py", line 50, in get_var
ausers_second.append(int(user))
ValueError: invalid literal for int() with base 10: ''
2022-08-07 15:40:00,301 ERROR MainThread pyrogram.dispatcher invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker
await handler.callback(self.client, *args)
File "/usr/src/app/bot/core/handlers/handle_mirror_cm.py", line 20, in handle_mirror_command
await mirror(client, message)
File "/usr/src/app/bot/core/handlers/handle_mirror_cm.py", line 34, in mirror
if user_id in get_val("ALLOWED_USERS") or chat_id in get_val("ALLOWED_CHATS") or user_id == get_val("OWNER_ID"):
File "/usr/src/app/bot/core/get_vars.py", line 6, in get_val
return SessionVars.get_var(variable)
File "/usr/src/app/bot/core/var_holder.py", line 50, in get_var
ausers_second.append(int(user))
ValueError: invalid literal for int() with base 10: ''
add index link and service acc and qbittorent
No need
Bro can you remove this flag --drive-server-side-across-configs
as if we are copying from restricted drive to non restricted drive it throws error if this flag isn't used it works perfectly.
or keep that flag optional with button
Thanks
Pretty much the title.
I have attached the logs below.
https://gist.github.com/hackevil/d13376ae3907d55b629e2a989655504c
https://logpaste.com/ZiTPzJIZ
#32 similar as this one right here.
Whenever I send a link or a telegram file ownerset command executes automatically.
Please add multi link mirror support.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.