def removeuser( self, conversation_id, otr_status=hangouts_pb2.OFF_THE_RECORD_STATUS_ON_THE_RECORD): """Leave group conversation. conversation_id must be a valid conversation ID. Raises hangups.NetworkError if the request fails. """ request = hangouts_pb2.RemoveUserRequest( request_header=self._get_request_header_pb(), event_request_header=hangouts_pb2.EventRequestHeader( conversation_id=hangouts_pb2.ConversationId( id=conversation_id, ), client_generated_id=self.get_client_generated_id(), expected_otr=otr_status, ), ) response = hangouts_pb2.RemoveUserResponse() yield from self._pb_request('conversations/removeuser', request, response) return response
def remove_user(self, remove_user_request): """Remove a participant from a group conversation.""" response = hangouts_pb2.RemoveUserResponse() yield from self._pb_request('conversations/removeuser', remove_user_request, response) return response