Update Wikipedia bot to reply to multiple user private chats.
This commit is contained in:
parent
657478cfc5
commit
ad25f27853
|
@ -31,7 +31,7 @@ class WikipediaHandler(object):
|
||||||
if message['type'] == 'private':
|
if message['type'] == 'private':
|
||||||
client.send_message(dict(
|
client.send_message(dict(
|
||||||
type='private',
|
type='private',
|
||||||
to=message['sender_email'],
|
to=[x['email'] for x in message['display_recipient'] if client.email != x['email']],
|
||||||
content=bot_response,
|
content=bot_response,
|
||||||
))
|
))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue