python-zulip-api/zulip/zulip/examples/get-raw-message
2018-06-26 19:42:49 -02:30

22 lines
407 B
Python
Executable file

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import zulip
usage = """get-raw-message <message_id> [options]
Example: get-raw-message 42
"""
parser = zulip.add_default_arguments(argparse.ArgumentParser(usage=usage))
parser.add_argument('message_id', type=int)
options = parser.parse_args()
client = zulip.init_from_options(options)
print(client.get_raw_message(options.message_id))