From ad25f278534bc21310c1e3bd8a8021154bc19126 Mon Sep 17 00:00:00 2001 From: neiljp Date: Mon, 22 May 2017 19:08:38 -0700 Subject: [PATCH] Update Wikipedia bot to reply to multiple user private chats. --- contrib_bots/bots/wikipedia/wikipedia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib_bots/bots/wikipedia/wikipedia.py b/contrib_bots/bots/wikipedia/wikipedia.py index 02eb300..64ef02c 100644 --- a/contrib_bots/bots/wikipedia/wikipedia.py +++ b/contrib_bots/bots/wikipedia/wikipedia.py @@ -31,7 +31,7 @@ class WikipediaHandler(object): if message['type'] == 'private': client.send_message(dict( type='private', - to=message['sender_email'], + to=[x['email'] for x in message['display_recipient'] if client.email != x['email']], content=bot_response, )) else: