From 391d9fe9ec7ee44968bc5568ab62b11e1fd053ec Mon Sep 17 00:00:00 2001 From: bolinches Date: Sat, 10 Feb 2018 22:11:02 +0200 Subject: [PATCH 1/2] Update zbxtg.py --- zbxtg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zbxtg.py b/zbxtg.py index 3556d79..bb682a0 100755 --- a/zbxtg.py +++ b/zbxtg.py @@ -184,7 +184,7 @@ def get_uid(self, name): uid = chat["id"] if (chat["type"] == "group" or chat["type"] == "supergroup") and self.type == "group": if "title" in chat: - if chat["title"] == name.decode("utf-8"): + if chat["title"] == name: uid = chat["id"] return uid @@ -885,4 +885,4 @@ def main(): print_message("Settings: " + str(json.dumps(settings, indent=2))) if __name__ == "__main__": - main() \ No newline at end of file + main() From f6f49ef843ed2e1eb7c66119f7e36a518096dbc8 Mon Sep 17 00:00:00 2001 From: bolinches Date: Sat, 10 Feb 2018 22:14:48 +0200 Subject: [PATCH 2/2] Fix for issue 103 Python 3.6 https://github.com/ableev/Zabbix-in-Telegram/issues/103