Update Wikipedia bot to reply to multiple user private chats.

This commit is contained in:
neiljp 2017-05-22 19:08:38 -07:00 committed by Tim Abbott
parent 657478cfc5
commit ad25f27853

View file

@ -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: