From 4b973ef7f39bf5f07b621ca3d03929e8bea79adf Mon Sep 17 00:00:00 2001 From: PraaneshSelvaraj Date: Sat, 15 Oct 2022 20:16:41 +0530 Subject: [PATCH] Added tag as a parameter in message --- wit/wit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wit/wit.py b/wit/wit.py index 12a8bf7..2b09ce8 100644 --- a/wit/wit.py +++ b/wit/wit.py @@ -54,7 +54,7 @@ def __init__(self, access_token, logger=None): self.access_token = access_token self.logger = logger or logging.getLogger(__name__) - def message(self, msg, context=None, n=None, verbose=None): + def message(self, msg, context=None, n=None, verbose=None, tag=None): params = {} if n is not None: params["n"] = n @@ -64,6 +64,8 @@ def message(self, msg, context=None, n=None, verbose=None): params["context"] = json.dumps(context) if verbose: params["verbose"] = verbose + if tag: + params["tag"] = tag resp = req(self.logger, self.access_token, "GET", "/message", params) return resp