jagrit007/Telegram-CloneBot

[Feature Request] Bot should ask source and destination folder id every time we run clone

askfriends opened this issue · 7 comments

hi..
first of all thanks for the bot.

but i want to ask why we need to put folder id in the config file?
bcoz we will not copy just one folder but we will use this bot to manage our tds, lets say about 10 tds, and there are so many folders inside we want to clone, if we put folder id in config file it means we will be able to copy that folder only??

you need to make it variable, and it must ask folder id from user in telegram instead.

Hi there.

The Folder ID in the config is for the folder where you want to store all the things you clone.
(2nd Point: GDRIVE_FOLDER_ID : This is the folder ID of the Google Drive Folder to which you want to clone)

To actually provide bot to clone any TD/File/folder, you have to send /clone FOLDER_ID (or Folder Link)
More of that can be seen by sending /help to bot.

Hi there.

The Folder ID in the config is for the folder where you want to store all the things you clone.
(2nd Point: GDRIVE_FOLDER_ID : This is the folder ID of the Google Drive Folder to which you want to clone)

To actually provide bot to clone any TD/File/folder, you have to send /clone FOLDER_ID (or Folder Link)
More of that can be seen by sending /help to bot.

i see..so both ids will be asked by bot when we run clone command?
i mean source folder id will be giving using clone but destination folder id will also be asked by the bot or its fixed (what we set it in config file)

Yeah, the Destination Folder ID, where it'll save everything will be fixed by what's provided in config file. So If you want the flexibility to provide destination folder id everytime with the clone command, just rename this issue to a feature request. So I can consider that while working on an update. 👍🏻

Update 1.1.0
Now you can provide destination ID in the command itself and the ID in config.py will be the default id to use in case no ID is given in the clone command.

Usage:
/clone <ID> [DESTINATION]
Example:
/clone 0AO-ISIXXXXXXXXXXXX 0AO-CXLX-XXXXXXXXX

Update 1.1.0
Now you can provide destination ID in the command itself and the ID in config.py will be the default id to use in case no ID is given in the clone command.

Usage:
/clone [DESTINATION]
Example:
/clone 0AO-ISIXXXXXXXXXXXX 0AO-CXLX-XXXXXXXXX

thats great..thanks for that.
btw its like that
/clone Source-ID[space]Destination-ID ?

Yes

Yes

Thanks a lot once again..now its more feasable and easy to use.
btw any plan to add gclone support? i think you wont need much effort to do that.