Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
* Update README.md

* Update __init__.py

* Update __main__.py

* Update config_sample.env

* Update app.json
  • Loading branch information
breakdowns authored Jun 10, 2021
1 parent af18513 commit c40cc9f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 14 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ Fill up rest of the fields. Meaning of each fields are discussed below:
- **UPTOBOX_TOKEN**: Uptobox token to mirror uptobox links. Get it from [Uptobox Premium Account](https://uptobox.com/my_account).
- **HEROKU_API_KEY**: (Only if you deploying on Heroku) Your Heroku API key, get it from https://dashboard.heroku.com/account.
- **HEROKU_APP_NAME**: (Only if you deploying on Heroku) Your Heroku app name.
- **IGNORE_PENDING_REQUESTS**: If you want the bot to ignore pending requests after it restarts, set this to `True`.
- **SHORTENER_API**: Fill your Shortener api key if you are using Shortener.
- **SHORTENER**: if you want to use Shortener in Gdrive and index link, fill Shortener url here. Examples:
```
Expand Down
4 changes: 0 additions & 4 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,6 @@
"description": "Show Image/Logo in /start message, Use telegra.ph or any direct link image.",
"value": "https://telegra.ph/file/db03910496f06094f1f7a.jpg",
"required": false
},
"IGNORE_PENDING_REQUESTS": {
"description": "If you want the bot to ignorepending requests after it restarts, set this to True.",
"required": false
},
"VIEW_LINK": {
"description": "View Link button to open file Index Link in browser instead of direct download link, you can figure out if it's compatible with your Index code or not, open any video from you Index and check if the END of link from browser link bar is ?a=view, if yes make it True it will work (Compatible with Bhadoo Index Code).",
Expand Down
6 changes: 0 additions & 6 deletions bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,6 @@ def mktable():
except KeyError:
IMAGE_URL = 'https://telegra.ph/file/db03910496f06094f1f7a.jpg'

IGNORE_PENDING_REQUESTS = False
try:
if getConfig("IGNORE_PENDING_REQUESTS").lower() == "true":
IGNORE_PENDING_REQUESTS = True
except KeyError:
pass

updater = tg.Updater(token=BOT_TOKEN, use_context=True)
bot = updater.bot
Expand Down
4 changes: 2 additions & 2 deletions bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from telegram import ParseMode, BotCommand
from telegram.ext import CommandHandler, run_async
from bot import bot, dispatcher, updater, botStartTime, IMAGE_URL, IGNORE_PENDING_REQUESTS
from bot import bot, dispatcher, updater, botStartTime, IMAGE_URL
from bot.helper.ext_utils import fs_utils
from bot.helper.telegram_helper.bot_commands import BotCommands
from bot.helper.telegram_helper.message_utils import *
Expand Down Expand Up @@ -238,7 +238,7 @@ def main():
dispatcher.add_handler(help_handler)
dispatcher.add_handler(stats_handler)
dispatcher.add_handler(log_handler)
updater.start_polling(IGNORE_PENDING_REQUESTS)
updater.start_polling()
LOGGER.info("Bot Started!")
signal.signal(signal.SIGINT, fs_utils.exit_clean_up)

Expand Down
1 change: 0 additions & 1 deletion config_sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ TELEGRAM_HASH = ""
DATABASE_URL = ""
# Optional config
AUTHORIZED_CHATS = ""
IGNORE_PENDING_REQUESTS = ""
USE_SERVICE_ACCOUNTS = ""
INDEX_URL = ""
UPTOBOX_TOKEN = ""
Expand Down

0 comments on commit c40cc9f

Please sign in to comment.