# Run Rclone on Heroku via Telegram Bot

**URL:** <https://onehack.st/t/run-rclone-on-heroku-via-telegram-bot/100068>\
**Category:** Tools & Scripts\
**Tags:** tips-tricks\
**Created:** [August 9, 2020, 11:47am UTC](https://onehack.st/t/run-rclone-on-heroku-via-telegram-bot/100068 "2020-08-09T11:47:09Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashyFlash](https://onehack.st/user_avatar/onehack.st/flashyflash/32/36454_2.png) [@FlashyFlash](https://onehack.st/u/FlashyFlash)\
**Post date:** [August 9, 2020, 11:47am UTC](https://onehack.st/t/run-rclone-on-heroku-via-telegram-bot/100068/1 "2020-08-09T11:47:09Z")

</div>

Hey Guys 🙂,

Rclone has become important nowadays  
Sure there r many methods to run rclone  
But i feel this ones convenient…Have a look  
I tried this recently…confirmed works

[https://github.com/mohitjoshi155/HerokuShell-Rclone](https://github.com/mohitjoshi155/HerokuShell-Rclone)

I updated the bot to latest rclone version

Steps:-

- First get the following prepared:
  - A @BotFather bot token. [Tutorial](https://www.siteguarding.com/en/how-to-get-telegram-bot-api-token)
  - Your Telegram user ID. Talk with [this](https://t.me/userinfobot) bot
  - [OPTIONAL] Your Rclone config, you need to encode it to [Base64](https://www.base64encode.org)

- Next click the Deploy button above, make sure you have a Heroku account
- Fill in the text fields with the information you prepared
- Press the `Deploy` button
- Wait for the app to finish deploying
- Go to the app’s dashboard and go onto the ‘Resources’ tab
- On the `web npm start` worker, click the pencil icon and toggle it off
- On the `worker source setup.sh && bash start.sh` worker, click the the pencil icon and toggle it on
- Now open telegram and use the commands below to interact with your bot

## Commands

- To use rclone commands do `/run rclone [param]...`

```auto
run - Execute command
enter - Send input lines to command
type - Type keys into command
control - Type Control+Letter
meta - Send the next typed key with Alt
keypad - Toggle keypad for special keys
redraw - Force the command to repaint
end - Send EOF to command
cancel - Interrupt command
kill - Send signal to process
status - View status and current settings
cd - Change directory
env - Manipulate the environment
shell - Change shell used to run commands
resize - Change the terminal size
setsilent - Enable / disable silent output
setlinkpreviews - Enable / disable link expansion
setinteractive - Enable / disable shell interactive flag
help - Get help
file - View and edit small text files
upload - Upload and overwrite raw files
r - Alias for /run or /enter

```

I personally use :-  
/run rclone copy “source remote path” “destination remote path” --ignore-existing --drive-server-side-across-configs --drive-acknowledge-abuse --drive-keep-revision-forever --drive-chunk-size 128M --tpslimit 25 --transfers 8 -P -q --stats=15s  
to copy server side

To know complete list of commands and functions visit rclone site

> **[Rclone Guide for Beginners](https://telegra.ph/Rclone-Guide-for-Beginners-04-15)**
>
> Roshanconnor Yo yo
> Hello everyone
> This is a basic guide for rclone (You can find Gdive guide for noobs here)
> Note : I am explaining only basic commands needed for rclone
> For more commands visit rclone.org
> IMP : Like i said before, if you are a pro...

Note:- Bot with dynos don’t sleep so u will hv to manually close workers by going to heroku dashboard otherwise it will never sleep and waste your dyno hours even if u don’t do anything

Note:- Please don’t ask rclone command related questions here.This guide assumes that u have basic knowledge of Rclone cli if u dont then u need to learn that first and then come back to this guide

> **[Commands](https://rclone.org/commands/)**

Hope u guys enjoy my guide 🙂  
Please leave a like if u do  
I have a feeling this will be useful to lots of ppl coz i personally find it very useful 😉

---

<div class="post-metadata">

**Author:** ![TheJoker](https://onehack.st/user_avatar/onehack.st/thejoker/32/22660_2.png) [@TheJoker](https://onehack.st/u/TheJoker)\
**Post date:** [August 9, 2020, 11:48am UTC](https://onehack.st/t/run-rclone-on-heroku-via-telegram-bot/100068/2 "2020-08-09T11:48:24Z")

</div>



---

<div class="post-metadata">

**Author:** ![special\_lectures](https://onehack.st/user_avatar/onehack.st/special_lectures/32/41257_2.png) [@special\_lectures](https://onehack.st/u/special_lectures)\
**Post date:** [August 10, 2020, 3:03am UTC](https://onehack.st/t/run-rclone-on-heroku-via-telegram-bot/100068/13 "2020-08-10T03:03:11Z")

</div>

Nice share!

 ![](https://media.tenor.com/videos/e9a448d8371abfaa09f89a884e64ea6b/mp4)

---

<div class="post-metadata">

**Author:** ![MasterBr1an](https://onehack.st/user_avatar/onehack.st/masterbr1an/32/39448_2.png) [@MasterBr1an](https://onehack.st/u/MasterBr1an)\
**Post date:** [August 10, 2020, 6:03am UTC](https://onehack.st/t/run-rclone-on-heroku-via-telegram-bot/100068/14 "2020-08-10T06:03:52Z")

</div>

Thank you !.

---

<div class="post-metadata">

**Author:** ![Adnan\_Catper](https://onehack.st/user_avatar/onehack.st/adnan_catper/32/18110_2.png) [@Adnan\_Catper](https://onehack.st/u/Adnan_Catper)\
**Post date:** [August 12, 2020, 4:17pm UTC](https://onehack.st/t/run-rclone-on-heroku-via-telegram-bot/100068/15 "2020-08-12T16:17:12Z")

</div>

this is very useful specially for copying whole td to new td.

---

<div class="post-metadata">

**Author:** ![MasterBr1an](https://onehack.st/user_avatar/onehack.st/masterbr1an/32/39448_2.png) [@MasterBr1an](https://onehack.st/u/MasterBr1an)\
**Post date:** [August 13, 2020, 6:43pm UTC](https://onehack.st/t/run-rclone-on-heroku-via-telegram-bot/100068/16 "2020-08-13T18:43:18Z")

</div>

this method is useful.it took some time to understand whats really happening with bot.if you got this this is so easy.

---

<div class="post-metadata">

**Author:** ![Adnan\_Catper](https://onehack.st/user_avatar/onehack.st/adnan_catper/32/18110_2.png) [@Adnan\_Catper](https://onehack.st/u/Adnan_Catper)\
**Post date:** [September 15, 2020, 5:36pm UTC](https://onehack.st/t/run-rclone-on-heroku-via-telegram-bot/100068/17 "2020-09-15T17:36:12Z")

</div>

can you add gclone support??

---

<div class="post-metadata">

**Author:** ![FlashyFlash](https://onehack.st/user_avatar/onehack.st/flashyflash/32/36454_2.png) [@FlashyFlash](https://onehack.st/u/FlashyFlash)\
**Post date:** [September 16, 2020, 9:34am UTC](https://onehack.st/t/run-rclone-on-heroku-via-telegram-bot/100068/18 "2020-09-16T09:34:16Z")

</div>

theres another repo which has all that  
manyhackers/shellbot shd be by this name on github

---

<div class="post-metadata">

**Author:** ![Adnan\_Catper](https://onehack.st/user_avatar/onehack.st/adnan_catper/32/18110_2.png) [@Adnan\_Catper](https://onehack.st/u/Adnan_Catper)\
**Post date:** [September 16, 2020, 12:48pm UTC](https://onehack.st/t/run-rclone-on-heroku-via-telegram-bot/100068/19 "2020-09-16T12:48:41Z")

</div>

i was using that and it was working fine, but due to some reasons i deleted that app, now when i deployed it again its not working, bot is not responding and logs say that app is crashed..i dont kno why.

---

<div class="post-metadata">

**Author:** ![FlashyFlash](https://onehack.st/user_avatar/onehack.st/flashyflash/32/36454_2.png) [@FlashyFlash](https://onehack.st/u/FlashyFlash)\
**Post date:** [September 16, 2020, 2:20pm UTC](https://onehack.st/t/run-rclone-on-heroku-via-telegram-bot/100068/20 "2020-09-16T14:20:49Z")

</div>

show log…

---

<div class="post-metadata">

**Author:** ![Adnan\_Catper](https://onehack.st/user_avatar/onehack.st/adnan_catper/32/18110_2.png) [@Adnan\_Catper](https://onehack.st/u/Adnan_Catper)\
**Post date:** [September 16, 2020, 4:52pm UTC](https://onehack.st/t/run-rclone-on-heroku-via-telegram-bot/100068/21 "2020-09-16T16:52:33Z")

</div>

im going to pm you.
