From 6116bc9ca42aec938d0fb967ff59d5df0afe7db3 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Wed, 6 Jun 2018 16:39:23 +0200 Subject: [PATCH] `addUsersToGroup` can no longer return the message id Updated documentation and tests --- fbchat/client.py | 1 - tests/test_thread_interraction.py | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/fbchat/client.py b/fbchat/client.py index aedcd0d..da9751a 100644 --- a/fbchat/client.py +++ b/fbchat/client.py @@ -1038,7 +1038,6 @@ class Client(object): :param user_ids: One or more user IDs to add :param thread_id: Group ID to add people to. See :ref:`intro_threads` :type user_ids: list - :return: :ref:`Message ID ` of the executed action :raises: FBchatException if request failed """ thread_id, thread_type = self._getThread(thread_id, None) diff --git a/tests/test_thread_interraction.py b/tests/test_thread_interraction.py index 8737b60..e897dbb 100644 --- a/tests/test_thread_interraction.py +++ b/tests/test_thread_interraction.py @@ -25,13 +25,9 @@ def test_remove_from_and_add_to_group(client1, client2, group, catch_event): ) finally: with catch_event("onPeopleAdded") as x: - mid = client1.addUsersToGroup(client2.uid, group["id"]) + client1.addUsersToGroup(client2.uid, group["id"]) assert subset( - x.res, - mid=mid, - added_ids=[client2.uid], - author_id=client1.uid, - thread_id=group["id"], + x.res, added_ids=[client2.uid], author_id=client1.uid, thread_id=group["id"] )