From b1677fd0661f4b77c8b7efecc698a82da6f1155f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20A=2E=20Planch=C3=B3n?= Date: Sun, 10 Nov 2019 21:13:44 -0300 Subject: [PATCH] Fix on allowed_ids parsing. --- telegramgetbotip/telegramgetbotip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegramgetbotip/telegramgetbotip.py b/telegramgetbotip/telegramgetbotip.py index ae2bca9..98a48c1 100644 --- a/telegramgetbotip/telegramgetbotip.py +++ b/telegramgetbotip/telegramgetbotip.py @@ -86,7 +86,7 @@ def start_bot( """ self.bot_token = Path(bot_token_file).read_text() self.allowed_telegram_ids = [int(i) for i in Path( - allowed_telegram_ids_file).read_text().split("\n")] + allowed_telegram_ids_file).read_text().split("\n") if i.isnumeric()] self.time_between_queries = time_between_queries self.verbose = verbose