修复未设置teleid和teletoken变量发生的报错
This commit is contained in:
parent
776c25ac0d
commit
2c9cb57409
3
main.py
3
main.py
|
@ -19,7 +19,8 @@ elif len(sys.argv)==4:
|
||||||
cookie=sys.argv[1]
|
cookie=sys.argv[1]
|
||||||
teleid=sys.argv[2]
|
teleid=sys.argv[2]
|
||||||
teletoken=sys.argv[3]
|
teletoken=sys.argv[3]
|
||||||
tele_enable=True
|
if teleid!="" and teletoken!="":
|
||||||
|
tele_enable=True
|
||||||
|
|
||||||
if tele_enable:
|
if tele_enable:
|
||||||
bot=telepot.Bot(teletoken)
|
bot=telepot.Bot(teletoken)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user