diff --git a/zbxtg.py b/zbxtg.py index fbc06bc..c8dc18d 100755 --- a/zbxtg.py +++ b/zbxtg.py @@ -19,6 +19,8 @@ def __init__(self, key, proxies): self.key = key self.proxies = proxies self.type = "private" # 'private' for private chats or 'group' for group chats + if len(sys.argv) > 4 and (sys.argv[4] == "private" or sys.argv[4] == "group"): + self.type = sys.argv[4] def get_updates(self): url = self.tg_url_bot_general + self.key + "/getUpdates" @@ -320,4 +322,4 @@ def main(): if __name__ == "__main__": - main() \ No newline at end of file + main()