From b00f65a68a1d3b0ad0691594b990cd5505f4ced7 Mon Sep 17 00:00:00 2001 From: #ItsMe <53238397+ballicipluck@users.noreply.github.com> Date: Wed, 3 Mar 2021 03:07:33 +0530 Subject: [PATCH 1/9] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dd134735..74ed1b97 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ This is Telegram Files Store Bot by [@AbirHasan2005](https://github.com/AbirHasa * `API_ID` - Get this from [@TeleORG_Bot](https://t.me/TeleORG_Bot) * `API_HASH` - Get this from [@TeleORG_Bot](https://t.me/TeleORG_Bot) * `BOT_TOKEN` - Get this from [@BotFather](https://t.me/BotFather) -* `BOT_USERNAME` - You Bot Username. *(Without [@])* +* `BOT_USERNAME` - Your Bot's Username. *(Without [@])* * `DB_CHANNEL` - The Channel ID which will be used as Database * `BOT_OWNER` - Bot Owner UserID * `DATABASE_URL` - MongoDB Database URI for Saving UserID for Broadcast. @@ -42,4 +42,4 @@ This is Telegram Files Store Bot by [@AbirHasan2005](https://github.com/AbirHasa

-

\ No newline at end of file +

From 2cbb171360194dea152828969343744287d55098 Mon Sep 17 00:00:00 2001 From: #ItsMe <53238397+ballicipluck@users.noreply.github.com> Date: Wed, 3 Mar 2021 03:13:04 +0530 Subject: [PATCH 2/9] Update configs.py --- configs.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/configs.py b/configs.py index 376c891b..d5b243b6 100644 --- a/configs.py +++ b/configs.py @@ -3,15 +3,15 @@ import os class Config(object): - API_ID = int(os.environ.get("API_ID")) - API_HASH = os.environ.get("API_HASH") - BOT_TOKEN = os.environ.get("BOT_TOKEN") - BOT_USERNAME = os.environ.get("BOT_USERNAME") - DB_CHANNEL = int(os.environ.get("DB_CHANNEL")) - BOT_OWNER = int(os.environ.get("BOT_OWNER")) - DATABASE_URL = os.environ.get("DATABASE_URL") - UPDATES_CHANNEL = int(os.environ.get("UPDATES_CHANNEL")) - LOG_CHANNEL = int(os.environ.get("LOG_CHANNEL")) + API_ID = int(os.getenv("API_ID", 12345)) + API_HASH = os.getenv("API_HASH", 'abc123') + BOT_TOKEN = os.getenv("BOT_TOKEN", '142:adn4') + BOT_USERNAME = os.getenv("BOT_USERNAME", 'filerobot') + DB_CHANNEL = int(os.getenv("DB_CHANNEL", -100122)) + BOT_OWNER = int(os.getenv("BOT_OWNER", 1024552)) + DATABASE_URL = os.getenv("DATABASE_URL", 'srv+mongo') + UPDATES_CHANNEL = int(os.getenv("UPDATES_CHANNEL", -100321 )) + LOG_CHANNEL = int(os.getenv("LOG_CHANNEL", -100200)) ABOUT_BOT_TEXT = f""" This is Permanent Files Store Bot! Send me any file I will save it in my Database. Also works for channel. Add me to channel as Admin with Edit Permission, I will add Save Uploaded File in Channel & add Sharable Button Link. @@ -43,4 +43,4 @@ class Config(object): Hi, [{}](tg://user?id={})\n\nThis is Permanent **File Store Bot**. Send me any file I will give you a permanent Sharable Link. I Support Channel Also! Check **About Bot** Button. -""" \ No newline at end of file +""" From 39c6dd34bbd05a34e89bc4074546bb83e454965b Mon Sep 17 00:00:00 2001 From: #ItsMe <53238397+ballicipluck@users.noreply.github.com> Date: Wed, 3 Mar 2021 03:39:42 +0530 Subject: [PATCH 3/9] Update README.md --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 74ed1b97..ceb68d23 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,26 @@ This is Telegram Files Store Bot by [@AbirHasan2005](https://github.com/AbirHasa ### Deploy Now: [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/AbirHasan2005/PyroFilesStoreBot) +#### HOW TO DEPLOY +###### 1. Using the above deploy button if deploying on Heroku. + - Click on it. Make sure you have all the creds ready. + - Enter them in the fields provided, click deploy and wait for `Build Successful` message + - Once it deploys successfully don't forget to **Turn on the Dyno** from `RESOURCES` tab. + +###### 2. Manually deploying to Heroku (Import) + - Import the repo and edit the config.py file and enter your creds if you know where to. + - Heroku -> Create App -> Select it, goto `DEPLOY` tab and select GitHub and connect to your account by pressing the `LINK GITHUB ACCOUNT` button at the bottom. + - Search for and select the imported repo and click deploy. Also, don't forget to **Turn on Dyno** from `RESOURCES` tab once it deploys successfully. + +###### 3. Manually on Heroku (Fork, for lazy people without creds) + - Fork this repo. + - Create app on heroku. Open it and select `DEPLOY` tab and connect your GitHub account. + - Search and select the imported repo and click deploy directly. + - The repo will be deployed with dummy values in the Environment Variables. Doesn't matter as long as you don't turn on the dyno. + - Whenever you are ready just edit the variables in `SETTINGS` -> `REVEAL CONFIG VARS`. + - Turn on the dyno in `RESOURCES` tab once you enter all creds correctly. + + ### Support Group: From 49b0baa57dd1919532c41e50048c784fb9120d6f Mon Sep 17 00:00:00 2001 From: #ItsMe <53238397+ballicipluck@users.noreply.github.com> Date: Wed, 3 Mar 2021 03:40:16 +0530 Subject: [PATCH 4/9] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ceb68d23..ed0af479 100644 --- a/README.md +++ b/README.md @@ -28,17 +28,17 @@ This is Telegram Files Store Bot by [@AbirHasan2005](https://github.com/AbirHasa [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/AbirHasan2005/PyroFilesStoreBot) #### HOW TO DEPLOY -###### 1. Using the above deploy button if deploying on Heroku. +##### 1. Using the above deploy button if deploying on Heroku. - Click on it. Make sure you have all the creds ready. - Enter them in the fields provided, click deploy and wait for `Build Successful` message - Once it deploys successfully don't forget to **Turn on the Dyno** from `RESOURCES` tab. -###### 2. Manually deploying to Heroku (Import) +##### 2. Manually deploying to Heroku (Import) - Import the repo and edit the config.py file and enter your creds if you know where to. - Heroku -> Create App -> Select it, goto `DEPLOY` tab and select GitHub and connect to your account by pressing the `LINK GITHUB ACCOUNT` button at the bottom. - Search for and select the imported repo and click deploy. Also, don't forget to **Turn on Dyno** from `RESOURCES` tab once it deploys successfully. -###### 3. Manually on Heroku (Fork, for lazy people without creds) +##### 3. Manually on Heroku (Fork, for lazy people without creds) - Fork this repo. - Create app on heroku. Open it and select `DEPLOY` tab and connect your GitHub account. - Search and select the imported repo and click deploy directly. From bb47ec70a99656e292df3f54e88b727be009032c Mon Sep 17 00:00:00 2001 From: #ItsMe <53238397+ballicipluck@users.noreply.github.com> Date: Wed, 3 Mar 2021 03:53:01 +0530 Subject: [PATCH 5/9] Update README.md --- README.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ed0af479..6986c218 100644 --- a/README.md +++ b/README.md @@ -28,17 +28,18 @@ This is Telegram Files Store Bot by [@AbirHasan2005](https://github.com/AbirHasa [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/AbirHasan2005/PyroFilesStoreBot) #### HOW TO DEPLOY -##### 1. Using the above deploy button if deploying on Heroku. + +###### 1. Using the above deploy button if deploying on Heroku. - Click on it. Make sure you have all the creds ready. - Enter them in the fields provided, click deploy and wait for `Build Successful` message - Once it deploys successfully don't forget to **Turn on the Dyno** from `RESOURCES` tab. -##### 2. Manually deploying to Heroku (Import) +###### 2. Manually deploying to Heroku (Import) - Import the repo and edit the config.py file and enter your creds if you know where to. - Heroku -> Create App -> Select it, goto `DEPLOY` tab and select GitHub and connect to your account by pressing the `LINK GITHUB ACCOUNT` button at the bottom. - Search for and select the imported repo and click deploy. Also, don't forget to **Turn on Dyno** from `RESOURCES` tab once it deploys successfully. -##### 3. Manually on Heroku (Fork, for lazy people without creds) +###### 3. Manually on Heroku (Fork, for lazy people without creds) - Fork this repo. - Create app on heroku. Open it and select `DEPLOY` tab and connect your GitHub account. - Search and select the imported repo and click deploy directly. @@ -46,6 +47,20 @@ This is Telegram Files Store Bot by [@AbirHasan2005](https://github.com/AbirHasa - Whenever you are ready just edit the variables in `SETTINGS` -> `REVEAL CONFIG VARS`. - Turn on the dyno in `RESOURCES` tab once you enter all creds correctly. +###### 4. VPS. + - Clone this repo with + git clone https://github.com/AbirHasan2005/PyroFilesStoreBot + - Change into the cloned repo. + cd PyroFilesStoreBot + - Edit variables in config.py file with any text editor.(Remove dummy values and put your own) + vim config.py + - Run this command to install the prerequisites: + pip3 install -r requirements.txt + - Lastly, run `python3 bot.py`(Linux) or `python bot.py`(Windows) to start the bot. + + + + ### Support Group: From 4707ab85dee152f294318c0b50e3fc14b1c200b4 Mon Sep 17 00:00:00 2001 From: #ItsMe <53238397+ballicipluck@users.noreply.github.com> Date: Wed, 3 Mar 2021 03:53:53 +0530 Subject: [PATCH 6/9] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6986c218..22250969 100644 --- a/README.md +++ b/README.md @@ -49,13 +49,13 @@ This is Telegram Files Store Bot by [@AbirHasan2005](https://github.com/AbirHasa ###### 4. VPS. - Clone this repo with - git clone https://github.com/AbirHasan2005/PyroFilesStoreBot + git clone https://github.com/AbirHasan2005/PyroFilesStoreBot - Change into the cloned repo. - cd PyroFilesStoreBot + cd PyroFilesStoreBot - Edit variables in config.py file with any text editor.(Remove dummy values and put your own) - vim config.py + vim config.py - Run this command to install the prerequisites: - pip3 install -r requirements.txt + pip3 install -r requirements.txt - Lastly, run `python3 bot.py`(Linux) or `python bot.py`(Windows) to start the bot. From 0d717f8380a9f69ba127bc8e7ff9264f0ffbce13 Mon Sep 17 00:00:00 2001 From: #ItsMe <53238397+ballicipluck@users.noreply.github.com> Date: Wed, 3 Mar 2021 03:54:56 +0530 Subject: [PATCH 7/9] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 22250969..05157da5 100644 --- a/README.md +++ b/README.md @@ -49,13 +49,13 @@ This is Telegram Files Store Bot by [@AbirHasan2005](https://github.com/AbirHasa ###### 4. VPS. - Clone this repo with - git clone https://github.com/AbirHasan2005/PyroFilesStoreBot + git clone https://github.com/AbirHasan2005/PyroFilesStoreBot - Change into the cloned repo. - cd PyroFilesStoreBot + cd PyroFilesStoreBot - Edit variables in config.py file with any text editor.(Remove dummy values and put your own) - vim config.py + vim config.py - Run this command to install the prerequisites: - pip3 install -r requirements.txt + pip3 install -r requirements.txt - Lastly, run `python3 bot.py`(Linux) or `python bot.py`(Windows) to start the bot. From 0725334fe8b62af1033877d2d488cc0d688ab914 Mon Sep 17 00:00:00 2001 From: #ItsMe <53238397+ballicipluck@users.noreply.github.com> Date: Wed, 3 Mar 2021 03:56:24 +0530 Subject: [PATCH 8/9] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 05157da5..a09ae5a8 100644 --- a/README.md +++ b/README.md @@ -48,10 +48,9 @@ This is Telegram Files Store Bot by [@AbirHasan2005](https://github.com/AbirHasa - Turn on the dyno in `RESOURCES` tab once you enter all creds correctly. ###### 4. VPS. - - Clone this repo with - git clone https://github.com/AbirHasan2005/PyroFilesStoreBot - - Change into the cloned repo. - cd PyroFilesStoreBot + - Clone this repo with git clone https://github.com/AbirHasan2005/PyroFilesStoreBot + - Change into the cloned repo.
+ cd PyroFilesStoreBot - Edit variables in config.py file with any text editor.(Remove dummy values and put your own) vim config.py - Run this command to install the prerequisites: From 9ba6898a16e47263d7ec758563fce3f225a64573 Mon Sep 17 00:00:00 2001 From: #ItsMe <53238397+ballicipluck@users.noreply.github.com> Date: Wed, 3 Mar 2021 03:58:12 +0530 Subject: [PATCH 9/9] Update README.md --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a09ae5a8..2ef64d14 100644 --- a/README.md +++ b/README.md @@ -48,13 +48,10 @@ This is Telegram Files Store Bot by [@AbirHasan2005](https://github.com/AbirHasa - Turn on the dyno in `RESOURCES` tab once you enter all creds correctly. ###### 4. VPS. - - Clone this repo with git clone https://github.com/AbirHasan2005/PyroFilesStoreBot - - Change into the cloned repo.
- cd PyroFilesStoreBot - - Edit variables in config.py file with any text editor.(Remove dummy values and put your own) - vim config.py - - Run this command to install the prerequisites: - pip3 install -r requirements.txt + - Clone this repo with `git clone https://github.com/AbirHasan2005/PyroFilesStoreBot` + - Change into the cloned repo `cd PyroFilesStoreBot` + - Edit variables in config.py file with any text editor.(Remove dummy values and put your own). Vim: `vim config.py` + - Run this command to install the prerequisites:`pip3 install -r requirements.txt` - Lastly, run `python3 bot.py`(Linux) or `python bot.py`(Windows) to start the bot.