Fix include issue

This commit is contained in:
USA Hexor
2018-05-17 15:58:53 +00:00
parent 67244888af
commit 6b948d4b2b
2 changed files with 7 additions and 5 deletions

2
.gitignore vendored
View File

@ -1,6 +1,8 @@
# configs
creds.ini
tg_settings.py
*.swp
*.swo
# Byte-compiled / optimized / DLL files
__pycache__/

View File

@ -11,6 +11,11 @@ import telegram
from telegram.error import NetworkError, Unauthorized
from time import sleep
import tg_settings
try:
if os.environ["DRYRUN"]:
from dryrun import Perdoliq
except:
from main import Perdoliq
update_id = None
@ -20,11 +25,6 @@ def main():
global update_id
# Telegram Bot Authorization Token
TOKEN = tg_settings.TG_TOKEN
try:
if os.environ["DRYRUN"]:
from dryrun import Perdoliq
except:
from main import Perdoliq
bot = telegram.Bot(TOKEN)
# get the first pending update_id,