diff --git a/mmcli/mmcli.py b/mmcli/mmcli.py index 44d4ce1..e22047b 100755 --- a/mmcli/mmcli.py +++ b/mmcli/mmcli.py @@ -414,11 +414,11 @@ def send(mm_api: mattermost.MMApi, cmdline_args): print(f"Illegal message, missing channel: {line.strip()}", file=sys.stderr) raise ValueError("Illegal message, missing channel") - sent = mm_api.create_post(channel_id, msg["message"], props={"from_mmcli": "true"}, filepaths=msg.get("attachments", msg.get("attachments")), root_id=msg.get("thread", msg.get("root_id"))) + sent = mm_api.create_post(channel_id, msg["message"], filepaths=msg.get("attachments", msg.get("attachments")), root_id=msg.get("thread", msg.get("root_id"))) print(sent) else: - sent = mm_api.create_post(channel["id"], cmdline_args.message, props={"from_mmcli": "true"}, filepaths=cmdline_args.attach, root_id=cmdline_args.thread) + sent = mm_api.create_post(channel["id"], cmdline_args.message, filepaths=cmdline_args.attach, root_id=cmdline_args.thread) print(sent)