From c7a4be1b73b6cf99f3d62d80919b8cee9f55c6f3 Mon Sep 17 00:00:00 2001 From: Nick Ninov Date: Wed, 22 Jul 2026 13:13:10 +0300 Subject: [PATCH] bot: Group Chat member addition error handling - Use status-go default error handling --- status_sdk/group_chat.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/status_sdk/group_chat.py b/status_sdk/group_chat.py index 3f20cf0..88b9e08 100644 --- a/status_sdk/group_chat.py +++ b/status_sdk/group_chat.py @@ -137,6 +137,10 @@ class GroupChat: params = [self.id, public_keys] response: dict = self.__account._call_rpc("messaging", "addMembersToGroupChat", params) + error = response.get("error", {}) + if error: + raise exceptions.GroupChatMembersError(response["error"]["message"]) + self.__action_log(public_keys, "add") return self