From 2c9cb57409a7bc897794cbf29c0bf62b001faec6 Mon Sep 17 00:00:00 2001 From: Pesy Wu Date: Sun, 22 Nov 2020 22:16:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E8=AE=BE=E7=BD=AEte?= =?UTF-8?q?leid=E5=92=8Cteletoken=E5=8F=98=E9=87=8F=E5=8F=91=E7=94=9F?= =?UTF-8?q?=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)