botgram / shell-bot

:robot: Telegram bot that executes commands and sends the live output
GNU General Public License v3.0
787 stars 493 forks source link

Add a /download command to the bot #22

Closed samthelion17 closed 4 years ago

samthelion17 commented 4 years ago

It will work similar to /upload, for example: -user sends /download message to the bot. -bot replies something like "Waiting for you to send a file..." or "The file will be saved to /home/user (current working dir)" -user sends the file, photo or video -bot replies that it is downloading and if possible will show progress.

I would do it myself if i could, but i don't know how.

Best Regards!

mildsunrise commented 4 years ago

This is already implemented :) When the bot says «Now at: ...», reply to that message with a file and it will be saved to that folder. You can also reply to an upload from the bot (see /upload) to overwrite that file.

samthelion17 commented 4 years ago

This is already implemented :) When the bot says «Now at: ...», reply to that message with a file and it will be saved to that folder. You can also reply to an upload from the bot (see /upload) to overwrite that file.

Cool! I didn't knew that...