Skip to content

Commit

Permalink
Update argparser.py
Browse files Browse the repository at this point in the history
Add parameter for telegram bot token. This will allow to configure telegram bot token directly from zabbix.
  • Loading branch information
ozaryx authored Jan 27, 2023
1 parent 84bf7a3 commit ab7578d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zbxTelegram_files/classes/argparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def create_parser(self):
self.parser.add_argument('username', nargs='?', help='Set username Telegram')
self.parser.add_argument('subject', nargs='?', help='Set subject')
self.parser.add_argument('messages', nargs='?', help='Set message')
self.parser.add_argument('token', nargs='?', help='Set token', default=False)
self.parser.add_argument('--debug', type=str, nargs='?', const=True, default=False, help='Debug mode')
# res = parser.parse_args()

Expand Down

0 comments on commit ab7578d

Please sign in to comment.