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':
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue