api: Fix edit-message example.

The message ID necessarily has to be an integer, and if no casting is
made it was being considered a string, causing problems when running
the example.
This commit is contained in:
Yago González 2018-05-14 21:07:02 +02:00 committed by Tim Abbott
parent 2ba6f75fb3
commit cb171409c5

View file

@ -36,7 +36,7 @@ Specify your Zulip API credentials and server in a ~/.zuliprc file or using the
import zulip
parser = zulip.add_default_arguments(argparse.ArgumentParser(usage=usage))
parser.add_argument('--message-id', default="")
parser.add_argument('--message-id', type=int)
parser.add_argument('--subject', default="")
parser.add_argument('--content', default="")
options = parser.parse_args()