mirror of https://github.com/zulip/zulip.git
inject-messages: use new send_message API
(imported from commit a0ea83fcd1944d06d8b0d9e6bed49a33901b20fe)
This commit is contained in:
parent
84ab466ff3
commit
9edea3454a
|
@ -59,7 +59,7 @@ def send_message(character, text, subject):
|
||||||
client = characters[character]["client"]
|
client = characters[character]["client"]
|
||||||
request = {'type': 'stream',
|
request = {'type': 'stream',
|
||||||
'content': message,
|
'content': message,
|
||||||
'stream': 'othello',
|
'to': ['othello'],
|
||||||
'subject': truncate(subject, 60)}
|
'subject': truncate(subject, 60)}
|
||||||
response = client.send_message(request)
|
response = client.send_message(request)
|
||||||
if response['result'] != 'success':
|
if response['result'] != 'success':
|
||||||
|
|
Loading…
Reference in New Issue