diff --git a/main.py b/main.py index b2083e7..eb58e7b 100644 --- a/main.py +++ b/main.py @@ -19,7 +19,8 @@ elif len(sys.argv)==4: cookie=sys.argv[1] teleid=sys.argv[2] teletoken=sys.argv[3] - tele_enable=True + if teleid!="" and teletoken!="": + tele_enable=True if tele_enable: bot=telepot.Bot(teletoken)