mirror of
https://github.com/status-im/status-python-sdk.git
synced 2026-08-30 21:51:14 +00:00
bot: Group Chat member addition error handling
- Use status-go default error handling
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user