Skip to content

Commit 9cb9381

Browse files
author
Ilya Ableev
committed
#130, possible fix
1 parent 50bb84b commit 9cb9381

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

zbxtg.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,15 @@ def main():
568568
do_not_exit = True
569569
print_message("Settings: " + str(json.dumps(settings, indent=2)))
570570

571+
# acknowledge message, agrh
572+
# https://github.com/ableev/Zabbix-in-Telegram/issues/130
573+
elif len(args) == 3: # probably someone acknowledges a problem
574+
do_not_exit = True
575+
args.append("")
576+
571577
else:
572578
print(("Hi. You should provide at least three arguments.\n"
579+
"zbxtg.py [TO] [SUBJECT] [BODY]\n\n"
573580
"1. Read main page and/or wiki: {0} + {1}\n"
574581
"2. Public Telegram group (discussion): {2}\n"
575582
"3. Public Telegram channel: {3}\n"

0 commit comments

Comments
 (0)